:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #edf4ff;
  background: #0a101c;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 3%, rgba(47, 87, 149, 0.2), transparent 38%),
    linear-gradient(145deg, #0a101c 0%, #101b2b 54%, #0a111e 100%);
  color: #edf4ff;
}

button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.ambient {
  position: fixed;
  width: 420px;
  height: 420px;
  pointer-events: none;
  border: 1px solid rgba(119, 164, 235, 0.075);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(119, 164, 235, 0.018), 0 0 0 96px rgba(119, 164, 235, 0.012);
}
.ambient-one { top: -280px; right: 4%; }
.ambient-two { bottom: -355px; left: -210px; width: 560px; height: 560px; opacity: .6; }

.auth-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: auto;
  padding: 36px 20px 60px;
}

.auth-card {
  position: relative;
  width: min(100%, 440px);
  overflow: hidden;
  border: 1px solid rgba(166, 190, 225, .17);
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(25, 38, 58, .96), rgba(16, 26, 42, .97));
  box-shadow: 0 32px 90px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .035);
  backdrop-filter: blur(18px);
}

.auth-brand, .hub-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #c5d3e8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .17em;
}
.auth-brand { padding: 25px 30px; border-bottom: 1px solid rgba(166, 190, 225, .11); }
.auth-brand b, .hub-brand b { color: #f1f6ff; font-weight: 800; }
.auth-mark {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(117, 164, 239, .3);
  border-radius: 11px;
  color: #8fb8ff;
  background: linear-gradient(145deg, rgba(69, 119, 202, .24), rgba(41, 76, 132, .14));
}
.auth-mark svg { width: 22px; height: 22px; }
.auth-content { padding: 34px 36px 30px; }
.auth-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid rgba(112, 158, 231, .24);
  border-radius: 13px;
  color: #9abaff;
  background: rgba(66, 111, 188, .13);
}
.auth-icon svg { width: 23px; height: 23px; }
.eyebrow {
  margin: 0 0 9px;
  color: #8eb3f1;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .19em;
}
.auth-content h1, .hub-intro h1 {
  margin: 0;
  color: #f1f5fc;
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.2;
}
.auth-subtitle, .hub-subtitle {
  margin: 10px 0 27px;
  color: #8fa1bc;
  font-size: 13px;
  line-height: 1.65;
}
.auth-form { display: flex; flex-direction: column; }
.auth-form label { margin: 0 0 8px; color: #c8d4e5; font-size: 12px; font-weight: 600; }
.auth-form input {
  width: 100%;
  height: 46px;
  margin-bottom: 20px;
  padding: 0 14px;
  border: 1px solid rgba(157, 180, 213, .2);
  border-radius: 9px;
  outline: 0;
  color: #f0f5fd;
  background: rgba(7, 13, 23, .48);
  font-size: 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.auth-form input::placeholder { color: #65758d; }
.auth-form input:focus { border-color: #6b9ce9; background: rgba(8, 15, 27, .72); box-shadow: 0 0 0 3px rgba(75, 129, 212, .16); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 48px; }
.visibility-button {
  position: absolute;
  top: 0;
  right: 3px;
  display: grid;
  width: 42px;
  height: 46px;
  place-items: center;
  border: 0;
  color: #8294ad;
  background: transparent;
  cursor: pointer;
}
.visibility-button svg { width: 19px; height: 19px; }
.visibility-button:hover { color: #cfdbec; }
.submit-button {
  display: flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
  border: 1px solid rgba(158, 191, 248, .32);
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(110deg, #3973cc, #4b83d9);
  box-shadow: 0 8px 20px rgba(36, 83, 153, .22), inset 0 1px 0 rgba(255, 255, 255, .15);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: filter 150ms ease, transform 150ms ease;
}
.submit-button:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.submit-button:disabled { cursor: wait; opacity: .78; }
.login-error, .service-error { color: #ffaaaa; font-size: 12px; line-height: 1.5; }
.login-error { margin: -8px 0 14px; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 22px; color: #788ba5; font-size: 11px; }
.secure-note span { color: #71bc99; font-size: 8px; }
.service-error { position: fixed; bottom: 44px; }
.auth-footer { position: fixed; bottom: 20px; color: rgba(164, 183, 210, .42); font-size: 9px; font-weight: 700; letter-spacing: .22em; }

.hub-page { --website-card-width: max(176px, calc((98% - 70px) / 6)); position: relative; width: min(calc(100% - 48px), 1680px); margin: 0 auto; padding: 5px 0 22px; }
.hub-header { display: flex; align-items: center; justify-content: space-between; min-height: 62px; border-bottom: 1px solid rgba(166, 190, 225, .13); }
.app-switcher { display: flex; align-items: center; gap: 6px; margin-left: auto; margin-right: 24px; }
.app-switcher a { padding: 7px 10px; border: 1px solid rgba(166, 190, 225, .14); border-radius: 8px; color: #a8b8ce; font-size: 11px; text-decoration: none; transition: color .18s ease, border-color .18s ease, background .18s ease; }
.app-switcher a:hover { color: #edf4ff; border-color: rgba(145, 184, 251, .4); background: rgba(145, 184, 251, .08); }
.hub-brand { text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.signed-in { display: inline-flex; align-items: center; gap: 8px; color: #a8b8ce; font-size: 12px; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #63c69a; box-shadow: 0 0 10px rgba(99, 198, 154, .5); }
.logout-button { border: 0; color: #91a5bf; background: transparent; font-size: 12px; cursor: pointer; }
.logout-button:hover { color: #f2f6ff; }
.logout-button span { margin-left: 4px; color: #7eabed; }
.hub-intro { display: grid; grid-template-columns: minmax(0, 1fr) 480px 440px; align-items: start; gap: 24px; padding: 30px 0 34px; }
.hub-intro > div { grid-column: 1; }
.hub-intro h1 { font-size: clamp(28px, 4vw, 38px); }
.hub-subtitle { margin: 11px 0 0; font-size: 14px; }
.hub-intro > .hub-feature-links { grid-column: 3; display: grid; width: 440px; grid-template-columns: repeat(2, minmax(0, 47%)); justify-content: space-between; gap: 0; justify-self: end; margin-right: min(16.8px, calc((100vw - 48px) * 0.01)); }
.hub-feature-links .link-card { width: auto; min-width: 0; min-height: 133px; flex: none; margin: 0; }
.link-card.usage-feature .card-subtitle { min-height: 20px; margin-top: 10px; }
.link-card.usage-feature .card-url { padding-top: 8px; }
.search-box {
  display: flex;
  grid-column: 2;
  width: 480px;
  height: 44px;
  align-self: end;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  border: 1px solid rgba(157, 180, 213, .18);
  border-radius: 10px;
  color: #7d92ae;
  background: rgba(15, 26, 42, .72);
}
.search-box svg { width: 18px; height: 18px; flex: 0 0 auto; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: #eaf1fb; background: transparent; font-size: 12px; }
.search-box input::placeholder { color: #71839c; }
.search-box input::-webkit-search-cancel-button { cursor: pointer; }
.search-shortcut { display: grid; width: 21px; height: 21px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(157, 180, 213, .16); border-radius: 5px; color: #8294ad; font-family: ui-monospace, monospace; font-size: 11px; }
.link-groups { display: grid; gap: 38px; }
.link-group { min-width: 0; }
.group-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.group-heading h2 { margin: 0; color: #e2ebf8; font-size: 18px; font-weight: 650; letter-spacing: -.015em; }
.group-heading p { margin: 5px 0 0; color: #7e91ab; font-size: 13px; }
.group-count { color: #627791; font-family: ui-monospace, monospace; font-size: 11px; }
.card-grid { display: flex; width: 98%; flex-wrap: wrap; gap: 14px; margin-inline: auto; }
.link-card {
  display: flex;
  min-width: 0;
  min-height: 166px;
  flex: 1 1 max(176px, calc((100% - 70px) / 6));
  flex-direction: column;
  align-items: stretch;
  padding: 16px 17px 14px;
  border: 1px solid rgba(153, 179, 216, .14);
  border-radius: 13px;
  color: inherit;
  background: linear-gradient(145deg, rgba(24, 38, 59, .74), rgba(15, 25, 41, .82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.link-card:hover { transform: translateY(-2px); border-color: rgba(113, 160, 233, .42); background: linear-gradient(145deg, rgba(31, 50, 77, .88), rgba(17, 30, 50, .94)); box-shadow: 0 16px 36px rgba(0, 0, 0, .18); }
.card-heading { display: flex; min-width: 0; align-items: center; gap: 11px; }
.card-icon { position: relative; display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; overflow: hidden; border: 1px solid rgba(153, 179, 216, .22); border-radius: 12px; color: #dce9ff; background: linear-gradient(145deg, rgba(69, 119, 202, .3), rgba(41, 76, 132, .18)); }
.card-icon-fallback { font-size: 12px; font-weight: 750; letter-spacing: .04em; }
.card-icon img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 6px; object-fit: contain; background: rgba(12, 20, 33, .92); }
.card-icon.has-image .card-icon-fallback { opacity: 0; }
.card-title-block { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 5px; }
.card-project { overflow: hidden; color: #83a9e5; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.card-title-row { display: flex; min-width: 0; align-items: center; gap: 8px; }
.card-title { display: -webkit-box; overflow: hidden; color: #edf4ff; font-size: 16px; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-arrow { color: #7189a9; font-size: 15px; transition: color 150ms ease, transform 150ms ease; }
.link-card:hover .card-arrow { transform: translate(2px, -2px); color: #9bbdff; }
.card-subtitle { min-height: 36px; margin-top: 13px; color: #a8b7cb; font-size: 12px; line-height: 1.5; }
.card-url { overflow: hidden; margin-top: auto; padding-top: 12px; color: #8496af; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.empty-state { padding: 38px; border: 1px dashed rgba(153, 179, 216, .2); border-radius: 12px; color: #8fa1bc; text-align: center; font-size: 13px; }
.hub-footer { display: flex; justify-content: space-between; margin-top: 42px; padding: 18px 0 4px; border-top: 1px solid rgba(166, 190, 225, .1); color: #647892; font-size: 10px; }

@media (max-width: 1250px) {
  .hub-intro { grid-template-columns: 1fr; gap: 18px; padding-top: 38px; }
  .hub-intro > div, .search-box { grid-column: 1; }
  .hub-intro > .hub-feature-links { grid-column: 1; width: min(100%, 440px); justify-self: start; margin-right: 0; }
  .search-box { width: min(100%, 480px); align-self: center; }
}
@media (max-width: 800px) {
  .search-box { width: 100%; }
}
@media (max-width: 540px) {
  .auth-page { padding: 18px 16px 52px; }
  .auth-card { border-radius: 18px; }
  .auth-brand { padding: 21px 23px; }
  .auth-content { padding: 29px 24px 25px; }
  .hub-page { width: min(calc(100% - 32px), 1680px); padding-top: 18px; }
  .hub-header { min-height: 56px; }
  .app-switcher { gap: 4px; margin-right: 10px; }
  .app-switcher a { padding: 6px 7px; font-size: 10px; }
  .header-actions { gap: 11px; }
  .signed-in { font-size: 10px; }
  .logout-button { font-size: 11px; }
  .hub-intro { gap: 21px; padding: 34px 0 27px; }
  .link-card { min-height: 142px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.keycloak-sign-in { display: block; width: fit-content; margin: 14px auto 0; color: #a9c7f4; font-size: 12px; font-weight: 650; text-decoration: none; } .keycloak-sign-in:hover { color: #fff; text-decoration: underline; }

.hub-page{width:var(--tawil-page-width,90%);container-type:inline-size}
@container (max-width:1000px){.hub-header{height:auto;min-height:64px;flex-wrap:wrap;gap:10px;padding-block:10px}.app-switcher{margin-left:auto;margin-right:0}}
.hub-header{height:64px;min-height:64px;border-bottom-color:rgba(166,190,225,.13);background:rgba(9,16,27,.52);backdrop-filter:blur(14px)}
.app-switcher a,.page-width-control select{display:inline-flex;min-height:36px;align-items:center;padding:0 10px;border:1px solid rgba(166,190,225,.17);border-radius:8px;color:#b8c8dd;background:rgba(18,31,49,.55);font:inherit;font-size:11px;font-weight:600;text-decoration:none;white-space:nowrap}
.app-switcher a:hover{border-color:rgba(145,184,251,.4);color:#edf4ff;background:rgba(54,86,132,.55)}
.page-width-control{display:inline-flex;align-items:center;gap:6px;color:#91a3bc;font-size:11px;white-space:nowrap}
.page-width-control select{cursor:pointer}
.header-actions{gap:12px}
.link-card{background:linear-gradient(145deg,rgba(24,38,59,.56),rgba(15,25,41,.48));backdrop-filter:blur(12px)}
.link-card:hover{background:linear-gradient(145deg,rgba(31,50,77,.68),rgba(17,30,50,.62))}
@media(max-width:860px){.hub-header{height:auto;min-height:64px;flex-wrap:wrap;gap:10px;padding:10px 0}.app-switcher{margin-left:auto;margin-right:0}}

.page-width-control{position:relative;z-index:25;display:inline-flex;align-items:center;flex:none}
.page-width-trigger{display:inline-flex;width:56px;height:36px;align-items:center;justify-content:center;padding:0;border:1px solid rgba(167,190,225,.2);border-radius:999px;color:#d8e5f8;background:rgba(18,31,49,.7);font:inherit;font-size:11px;font-weight:700;cursor:pointer;white-space:nowrap}
.page-width-trigger:hover,.page-width-trigger[aria-expanded="true"]{border-color:rgba(145,184,251,.48);background:rgba(54,86,132,.58)}
.page-width-options{position:absolute;top:calc(100% + 8px);right:0;display:flex;gap:4px;padding:5px;border:1px solid rgba(167,190,225,.2);border-radius:999px;background:rgba(13,23,38,.97);box-shadow:0 12px 30px rgba(0,0,0,.3);white-space:nowrap}
.page-width-options[hidden]{display:none}
.page-width-options button{min-width:42px;height:30px;padding:0 7px;border:1px solid transparent;border-radius:999px;color:#aebfd7;background:transparent;font:inherit;font-size:10px;font-weight:650;cursor:pointer}
.page-width-options button:hover,.page-width-options button.is-selected{border-color:rgba(145,184,251,.3);color:#f1f6ff;background:rgba(77,117,180,.35)}

.app-switcher a{display:inline-flex;min-height:36px;align-items:center;justify-content:center;padding:0 10px;border:1px solid rgba(167,190,225,.16);border-radius:8px;color:#b8c8dd;background:rgba(18,31,49,.55);font-size:11px;font-weight:600;text-decoration:none;white-space:nowrap;transition:border-color .18s ease,color .18s ease,background .18s ease}
.app-switcher a:hover,.app-switcher a:focus-visible{border-color:rgba(145,184,251,.4);color:#edf4ff;background:rgba(54,86,132,.55)}

.hub-intro{gap:18px;padding:22px 0 25px}
.hub-intro h1{font-size:clamp(24px,3vw,30px)}
.hub-subtitle{margin:8px 0 0;font-size:12px;line-height:1.5}
.search-box{transform:translateX(-25px)}
.link-groups{gap:28px}
.group-heading{gap:12px;margin-bottom:11px}
.group-heading h2{font-size:16px}
.group-heading p{margin-top:4px;font-size:12px}
.card-grid{width:100%;gap:10px}
.link-card{min-height:125px;padding:12px 13px 11px;flex-basis:max(155px,calc((100% - 50px)/6))}
.card-heading{gap:9px}
.card-icon{width:34px;height:34px;flex-basis:34px;border-radius:10px}
.card-icon img{padding:5px}
.card-title-block{gap:4px}
.card-project{font-size:9px}
.card-title{font-size:14px;line-height:1.2}
.card-subtitle{min-height:28px;margin-top:9px;font-size:11px;line-height:1.4}
.card-url{padding-top:9px;font-size:10px}
.link-card.usage-feature{min-height:100px}
.link-card.usage-feature .card-subtitle{min-height:28px;margin-top:8px}
.link-card.usage-feature .card-url{padding-top:7px}
.hub-footer{margin-top:31px;padding-top:14px}
@media(max-width:1250px){.hub-intro{gap:14px;padding:23px 0 20px}.search-box{transform:none}}
@media(max-width:540px){.hub-intro{gap:16px;padding:25px 0 20px}.link-card{min-height:106px}}
@media(max-width:540px){.hub-feature-links{grid-template-columns:1fr;gap:10px}.hub-feature-links .link-card{min-height:106px}}
.signed-in{display:inline-flex;align-items:center;gap:6px;padding-left:9px;border-left:1px solid rgba(165,190,226,.16);color:#91a5bf;font-size:10px;text-transform:lowercase;white-space:nowrap}
.signed-in svg,.signed-in-user svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round;opacity:.8}
/* Keep page-width controls above the link cards and preserve a 25px viewport gutter at 100%. */
.hub-page{width:min(var(--tawil-page-width,80vw),calc(100vw - 50px))!important;padding-top:5px}
.hub-header{position:relative;z-index:30;overflow:visible}
.page-width-control{z-index:1000}
.page-width-options{z-index:1001}
.signed-in{margin-right:15px;font-size:11px}
.logout-button{display:grid;width:34px;height:34px;place-items:center;padding:0}
.logout-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* Match the app wordmark accent to the shared Tawil palette. */
.hub-brand b{color:#9bbdff}

/* Match the primary headline scale across the three companion apps. */
.hub-intro h1{font-size:clamp(18px,2.25vw,22.5px)}
.hub-intro h1 em{color:#9bbdff;font-style:normal}

/* Match the shared wordmark and small host label layout. */
.hub-brand-copy{display:flex;flex-direction:column;gap:3px}
.hub-brand-name{white-space:nowrap}
.hub-brand-host{color:#8795a9;font-size:9px;font-weight:500;letter-spacing:.04em;line-height:1;text-transform:none}

/* Center app navigation and trim button height by 25% across Tawil headers. */
.hub-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 12px;padding-block:7px}
.hub-header .app-switcher{position:static;grid-column:1/-1;display:grid;width:min(560px,100%);grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,25px);justify-self:center;gap:3px 5px;margin:0;transform:none}
.hub-header .app-switcher a{height:24px;min-height:24px;padding:0 6px;font-size:10px}
@media(max-width:1100px){.hub-header{height:auto;min-height:64px;flex-wrap:wrap;gap:8px;padding-block:8px}.hub-header .app-switcher{position:static;grid-column:1/-1;flex:1 0 100%;justify-content:center}}

/* Keep the shared header 75% transparent so the app backdrop remains visible. */
.hub-header{background:rgba(9,16,27,.25)!important;backdrop-filter:blur(14px) saturate(150%);-webkit-backdrop-filter:blur(14px) saturate(150%)}

/* Keep the page intro close to the app header and finish the page with a matching rule. */
.hub-intro{padding:14px 0 16px;border-bottom:1px solid rgba(166,190,225,.1);margin-bottom:20px}
@media(max-width:1250px){.hub-intro{padding:14px 0 16px}}

/* Match the AI Usage intro label, headline, and subtitle scale. */
.hub-intro .eyebrow{margin:0 0 9px;color:#8eb3f1;font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:10px;font-weight:750;letter-spacing:.19em}
.hub-intro h1{margin:0;color:#f1f5fc;font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:clamp(18px,2.25vw,22.5px);font-weight:650;line-height:1.2;letter-spacing:-.035em}
.hub-intro h1 em{color:#9bbdff;font-style:normal}
.hub-intro .hub-subtitle{margin:8px 0 0;color:#91a3bc;font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:12px;font-weight:400;line-height:1.5}

/* Keep the title and all four companion apps on one row, with search below the title. */
.hub-intro{grid-template-columns:minmax(260px,1fr) minmax(0,2.6fr);grid-template-rows:auto auto;column-gap:24px;row-gap:14px;align-items:start}
.hub-intro>div:not(.hub-feature-links){grid-column:1;grid-row:1}
.hub-intro>.search-box{grid-column:1;grid-row:2;width:min(624px,100%);align-self:start;transform:none}
.hub-intro>.hub-feature-links{grid-column:2;grid-row:1 / span 2;display:grid;width:100%;max-width:100%;grid-template-columns:repeat(4,minmax(0,1fr));justify-content:stretch;justify-self:end;align-self:start;gap:8px;margin:0}
.hub-feature-links .link-card{min-height:104px;padding:10px 11px 9px}
.hub-feature-links .card-icon{width:30px;height:30px;flex-basis:30px;border-radius:8px}
.hub-feature-links .card-icon img{padding:3px;background:transparent}
.hub-feature-links .card-heading{gap:8px}
.hub-feature-links .card-title{font-size:.8125rem}
.hub-feature-links .card-subtitle{min-height:28px;margin-top:8px;font-size:.625rem;line-height:1.4}
.hub-feature-links .card-url{padding-top:7px;font-size:.5625rem}
.link-groups{display:grid;grid-template-columns:minmax(0,1fr);gap:22px}
.link-group-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.link-group-pair.is-single{grid-template-columns:minmax(0,1fr)}
.link-card{min-height:108px;padding:10px 11px 9px;flex-basis:max(132px,calc((100% - 50px)/6))}
.card-icon{width:30px;height:30px;flex-basis:30px;border-radius:8px}
.card-icon img{padding:4px}
.card-heading{gap:8px}
.card-project{font-size:.5625rem}
.card-title{font-size:.8125rem;line-height:1.2}
.card-subtitle{min-height:28px;margin-top:8px;font-size:.625rem;line-height:1.4}
.card-url{padding-top:7px;font-size:.5625rem}
.group-heading h2{font-size:1rem}
.group-heading p{font-size:.75rem}
.group-count{font-size:.6875rem}
.search-box input{font-size:.75rem}
@media(max-width:1250px){
  .hub-intro{grid-template-columns:minmax(260px,1fr) minmax(0,2.6fr);grid-template-rows:auto auto;column-gap:18px;row-gap:12px}
}
@media(max-width:980px){
  .hub-intro{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;row-gap:12px}
  .hub-intro>div:not(.hub-feature-links),.hub-intro>.search-box,.hub-intro>.hub-feature-links{grid-column:1;grid-row:auto}
  .hub-intro>.hub-feature-links{width:100%;justify-self:stretch}
}
@media(max-width:860px){.link-group-pair{grid-template-columns:minmax(0,1fr)}}
@media(max-width:540px){
  .hub-intro>.hub-feature-links{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hub-feature-links .link-card{min-height:98px}
  .link-card{min-height:96px}
}

/* On light theme, let the shared page canvas show through between the widgets. */
html[data-infra-theme="light"] .hub-page,
html[data-infra-theme="light"] .hub-page :is(.hub-intro,.hub-feature-links,.link-groups,.link-group-pair,.link-group,.group-heading,.group-heading>div,.group-count,.hub-footer),
html[data-infra-theme="light"] .hub-page :is(.card-heading,.card-icon,.card-title-block,.card-project,.card-title-row,.card-title,.card-arrow,.card-subtitle,.card-url){
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
html[data-infra-theme="light"] .hub-page :is(.link-card,.search-box){
  color:#26384a!important;
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  border-color:rgb(67 83 100 / 32%)!important;
  box-shadow:0 1px 3px rgb(38 56 74 / 12%)!important;
}
html[data-infra-theme="light"] .hub-page .link-card:hover{
  transform:none;
  box-shadow:0 1px 3px rgb(38 56 74 / 12%)!important;
}
html[data-infra-theme="light"] .hub-page .card-icon{border-color:rgb(67 83 100 / 32%)!important}
html[data-infra-theme="light"] .hub-page .card-icon img{background:transparent!important}
@media(max-width:540px){html[data-infra-theme="light"] .hub-feature-links{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Compact app widgets: three full-width cards above four cards. */
.hub-intro>.hub-feature-links{grid-template-columns:repeat(12,minmax(0,1fr));column-gap:7px;row-gap:7px}
.hub-feature-links .app-quick-widget{grid-column:span 3;min-height:108px;padding:9px 10px 8px}
.hub-feature-links .app-quick-widget:nth-child(-n+3){grid-column:span 4}
.hub-feature-links .app-quick-widget .card-heading{gap:7px}
.hub-feature-links .app-quick-widget .card-icon{width:28px;height:28px;flex-basis:28px;border-radius:8px}
.hub-feature-links .app-shortcut-icon svg{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.hub-feature-links .app-quick-widget .card-project{font-size:.54rem}
.hub-feature-links .app-quick-widget .card-title{font-size:.78rem}
.hub-feature-links .app-quick-widget .card-subtitle{min-height:24px;margin-top:7px;font-size:.59rem;line-height:1.35}
.hub-feature-links .app-quick-widget .card-url{padding-top:6px;font-size:.53rem}
@media(max-width:980px){.hub-intro>.hub-feature-links{grid-template-columns:repeat(12,minmax(0,1fr))}}
@media(max-width:540px){.hub-intro>.hub-feature-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.hub-feature-links .app-quick-widget,.hub-feature-links .app-quick-widget:nth-child(-n+3){grid-column:span 1;min-height:96px;padding:8px}.hub-feature-links .app-quick-widget .card-subtitle{min-height:24px}}
