:root {
  --navy: #122449;
  --navy-2: #1b3569;
  --ocean: #3052a4;
  --water: #02bef7;
  --mist: #edf8fd;
  --foam: #f8fcfc;
  --ink: #16313e;
  --muted: #6c818b;
  --line: #dce9ec;
  --amber: #f4a340;
  --red: #df5d5d;
  --green: #2b9a72;
  --page: #edf5f5;
  --surface: #ffffff;
  --surface-soft: #f8fcfc;
  --header: rgba(248, 252, 252, .85);
  --partner-accent: #3052a4;
  --partner-accent-soft: rgba(48, 82, 164, .13);
  --shadow: 0 20px 60px rgba(19, 61, 76, .10);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
}
[data-theme="dark"] {
  color-scheme: dark;
  --navy: #071429;
  --navy-2: #0d2040;
  --ocean: #56a7ff;
  --water: #02bef7;
  --mist: #0a1b35;
  --foam: #0d202a;
  --ink: #e7f6fa;
  --muted: #90aeb9;
  --line: #23424e;
  --green: #63d7ac;
  --page: #061226;
  --surface: #0c1d38;
  --surface-soft: #09182f;
  --header: rgba(6, 18, 38, .90);
  --shadow: 0 24px 70px rgba(0, 0, 0, .30);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { position: relative; margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(circle at 85% 0, color-mix(in srgb, var(--water) 14%, transparent) 0, transparent 28rem), var(--page); transition: color .2s ease, background-color .2s ease; }
body.drawer-open { overflow: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: url("assets/brand/topography.svg"); background-position: center top; background-size: 820px auto; opacity: .16; mask-image: linear-gradient(145deg, black, transparent 74%); }
[data-theme="dark"] body::before { opacity: .095; mix-blend-mode: screen; }
button, select, input { font: inherit; }
button { cursor: pointer; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid color-mix(in srgb, var(--water) 62%, transparent); outline-offset: 3px; }
.shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 26px 18px 20px; color: white; background-color: var(--navy); background-image: linear-gradient(180deg, rgba(18,36,73,.92), rgba(7,20,41,.98)), url("assets/brand/topography.svg"); background-size: auto, 680px auto; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 28px; color: white; font-size: 22px; font-weight: 900; letter-spacing: .14em; text-decoration: none; }
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { font-size: 17px; letter-spacing: .14em; }
.brand-copy small { color: #8edfff; font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.wata-logo { width: 42px; height: 42px; flex: 0 0 42px; object-fit: contain; filter: drop-shadow(0 5px 12px rgba(0, 190, 247, .18)); }
.hub-brand-icon { border-radius: 12px; }
.rail nav { display: grid; gap: 7px; }
.rail nav button { display: flex; align-items: center; gap: 13px; width: 100%; padding: 13px 14px; color: #bcd0d8; background: transparent; border: 0; border-radius: 13px; font-weight: 750; text-align: left; }
.nav-icon { width: 21px; height: 21px; flex: 0 0 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail nav button .nav-icon { color: #70cfff; }
.rail nav button:hover, .rail nav button.active { color: white; background: rgba(105, 217, 228, .13); }
.rail nav button.active .nav-icon { color: #00d5ff; }
/* Registry host correction: solid menus must keep every destination readable.
   Registry view buttons use `.active`; ARIA current is applied only by some hosts. */
html[data-product="portal"]:not([data-theme="light"])[data-wata-menu-material="solid"]
  :is(.rail nav.wata-glass-nav, .mobile-nav.wata-glass-nav)
  [data-wata-menu-nav]:not(.active):not([aria-current="page"]):not([aria-selected="true"]):not([aria-pressed="true"]) {
  color: #dcebee !important;
}
html[data-product="portal"][data-wata-menu-material="solid"]
  :is(.rail nav.wata-glass-nav, .mobile-nav.wata-glass-nav)
  [data-wata-menu-nav] .nav-icon {
  color: #69d6f2;
}
html[data-product="portal"][data-wata-menu-material="solid"][data-wata-menu-selection="accent"]
  :is(.rail nav.wata-glass-nav, .mobile-nav.wata-glass-nav)
  [data-wata-menu-nav]:is(.active, [aria-current="page"], [aria-selected="true"], [aria-pressed="true"]) {
  color: #061014 !important;
}
html[data-product="portal"][data-wata-menu-material="solid"][data-wata-menu-selection="black"]
  :is(.rail nav.wata-glass-nav, .mobile-nav.wata-glass-nav)
  [data-wata-menu-nav]:is(.active, [aria-current="page"], [aria-selected="true"], [aria-pressed="true"]) {
  color: var(--wf-bright, #39d5f4) !important;
}
/* Navigation glyphs use the chosen accent until a selection/held state supplies its contrasting foreground. */
html[data-product="portal"] :is(.rail nav.wata-glass-nav, .mobile-nav.wata-glass-nav):not(.wata-glass-held) [data-wata-menu-nav]:not([aria-current="page"]):not([aria-selected="true"]):not([aria-pressed="true"]) .nav-icon { color: var(--wf-accent); }
html[data-product="portal"] :is(.rail nav.wata-glass-nav, .mobile-nav.wata-glass-nav) [data-wata-menu-nav]:is(.active, [aria-current="page"], [aria-selected="true"], [aria-pressed="true"]) .nav-icon,
html[data-product="portal"] :is(.rail nav.wata-glass-nav, .mobile-nav.wata-glass-nav).wata-glass-held [data-wata-menu-nav] .nav-icon { color: currentColor; }
.rail-foot { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 12px; color: #9db6c0; font-size: 12px; }
.status-dot { width: 8px; height: 8px; background: var(--amber); border-radius: 50%; box-shadow: 0 0 0 4px rgba(244,163,64,.13); }
.status-dot.connected { background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 18%, transparent); }
main { min-width: 0; }
.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  width: calc(100% - 28px);
  min-height: 68px;
  margin: 14px 14px 12px;
  padding: 10px 14px;
  overflow: visible;
  background: color-mix(in srgb,var(--wf-surface,var(--header)) 82%,transparent) !important;
  border: 1px solid color-mix(in srgb,var(--wf-accent,var(--water)) 30%,transparent) !important;
  border-radius: 22px;
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .2), 0 6px 20px rgb(0 0 0 / .12) !important;
  isolation: isolate;
  backdrop-filter: blur(22px) saturate(1.3) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.3) !important;
}
.topbar::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  pointer-events: none;
  background: var(--wf-accent,var(--water)) !important;
  border-radius: inherit;
  opacity: .2 !important;
  -webkit-mask: url("assets/design-foundation/terrain.svg") center / cover no-repeat !important;
  mask: url("assets/design-foundation/terrain.svg") center / cover no-repeat !important;
}
.topbar::after {
  position: absolute;
  inset: -1px;
  z-index: 3;
  padding: 1.25px;
  pointer-events: none;
  background: linear-gradient(145deg,color-mix(in srgb,var(--wf-accent,var(--water)) 55%,white),transparent 30%,color-mix(in srgb,var(--wf-accent,var(--water)) 25%,transparent) 55%,color-mix(in srgb,var(--wf-accent,var(--water)) 50%,white) 85%,transparent);
  border-radius: inherit;
  content: "";
  -webkit-mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
.topbar > * { position: relative; z-index: 4; }
.topbar :is(.mobile-brand,.scope-wrap select,.language-button,.menu-button) { min-height: 44px; }
html[data-theme="light"] .topbar::before { opacity: .27 !important; }
html[data-wata-menu-material="solid"] .topbar {
  background: var(--wf-surface,var(--header)) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.mobile-brand { display: none; }
[data-product="hub"] .shell { grid-template-columns: 250px minmax(0, 1fr); }
[data-product="hub"] .mobile-nav { display: none !important; }
[data-product="portal"] [data-hub-only] { display: none !important; }
html[data-product="portal"] body::before, html[data-product="portal"] .content::before { display: none !important; }
html[data-product="portal"] body { background: radial-gradient(circle at 16% 14%, rgb(2 190 247 / .12), transparent 36rem), var(--page); }
html[data-product="portal"][data-theme="dark"] body { background: radial-gradient(circle at 19% 17%, rgb(2 190 247 / .22), transparent 40rem), linear-gradient(115deg, #123650, #0c2741 57%, #0a1d33); }
[data-product="hub"] .content { max-width: 1280px; }
.hub-rail { background-image: linear-gradient(180deg, rgba(13,32,64,.94), rgba(5,16,34,.99)), url("assets/brand/topography.svg"); }
.hub-brand { padding-bottom: 34px; letter-spacing: 0; }
.hub-brand img { width: 46px; height: 46px; border-radius: 14px; }
.hub-brand > span { display: grid; gap: 2px; }
.hub-brand strong { font-size: 17px; letter-spacing: .13em; }
.hub-brand small { color: #8edfff; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.rail-label { margin: 0 12px 10px; color: #7194a7; font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.hub-quick-links { display: grid; gap: 5px; }
.hub-quick-link { display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 8px 10px; color: #d9edf4; border-radius: 13px; font-size: 13px; font-weight: 750; text-decoration: none; }
.hub-quick-link:hover { color: white; background: rgba(105,217,228,.12); }
.hub-quick-link.disabled { color: #698895; cursor: default; }
.mini-tool-icon { display: grid; place-items: center; overflow: hidden; width: 29px; height: 29px; flex: 0 0 29px; color: white; background: linear-gradient(135deg,var(--water),var(--ocean)); border-radius: 8px; }
.mini-tool-icon img { width: 100%; height: 100%; object-fit: contain; }
.mini-tool-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hub-topbar { min-height: 68px; padding: 9px clamp(18px,4vw,52px); background: color-mix(in srgb,var(--surface) 91%,transparent); }
.hub-heading { display: flex; align-items: center; gap: 11px; }
.hub-heading img { display: none; border-radius: 11px; }
.hub-heading > span { display: grid; gap: 1px; }
.hub-heading strong { font-size: 14px; letter-spacing: -.01em; }
.hub-heading small { color: var(--muted); font-size: 11px; }
.hub-content { padding-top: 30px; }
.hub-app-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 3px 2px 20px; }
.hub-app-head h1 { color: var(--ink); font-size: clamp(30px,4vw,48px); line-height: 1.03; }
.hub-app-head .eyebrow { margin-bottom: 8px; color: var(--ocean); }
.hub-app-head > span { padding: 7px 10px; color: var(--green); background: color-mix(in srgb,var(--green) 9%,var(--surface)); border: 1px solid color-mix(in srgb,var(--green) 23%,var(--line)); border-radius: 99px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.menu-guide-list { max-height: min(52vh,430px); overflow-y: auto; margin: 4px 3px 8px; padding: 7px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px; }
.menu-guide-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 5px; border-bottom: 1px solid var(--line); font-size: 11px; }
.menu-guide-row:last-child { border-bottom: 0; }
.menu-guide-row > span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; }
.menu-guide-row a { padding: 5px 7px; color: white; background: var(--ocean); border-radius: 7px; font-weight: 850; text-decoration: none; }
.hub-tool-card { position: relative; min-height: 268px; border-radius: 24px; }
.hub-tool-card .tool-open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hub-tool-card .app-icon { width: 62px; height: 62px; border-radius: 18px; }
.hub-tool-card .app-icon-image img { width: 62px; height: 62px; border-radius: 16px; object-fit: contain; }
.scope-wrap { display: flex; align-items: center; gap: 10px; }
.scope-wrap label { color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.scope-wrap select { min-width: 190px; padding: 10px 34px 10px 12px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 11px; font-weight: 750; }
.theme-icon { display: grid; place-items: center; width: 20px; color: var(--ocean); }
.theme-icon svg, .utility-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile { display: flex; align-items: center; gap: 10px; margin-left: 10px; padding: 4px; color: var(--ink); background: transparent; border: 0; text-align: left; }
.profile > span:last-child { display: grid; gap: 2px; }
.profile small { color: var(--muted); }
.avatar, .partner-mark { display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; color: white; background: linear-gradient(135deg, color-mix(in srgb, var(--partner-accent) 68%, white), var(--partner-accent)); font-weight: 900; }
.partner-mark img { width: 100%; height: 100%; object-fit: contain; padding: 5px; background: white; }
.avatar { width: 40px; height: 40px; border-radius: 13px; }
.top-menu { position: relative; display: flex; align-items: center; gap: 8px; margin-left: auto; }
.language-picker { position: relative; }
.language-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 13px; }
.language-button:hover { background: var(--surface-soft); border-color: color-mix(in srgb, var(--ocean) 45%, var(--line)); }
.language-menu { position: absolute; top: calc(100% + 9px); right: 0; z-index: 45; width: 190px; padding: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.language-menu button { display: grid; grid-template-columns: 26px 1fr 18px; align-items: center; gap: 8px; width: 100%; padding: 10px; color: var(--ink); background: transparent; border: 0; border-radius: 10px; text-align: left; }
.language-menu button:hover, .language-menu button.active { background: var(--surface-soft); }
.language-menu button > span:first-child { font-size: 20px; }
.language-menu strong { font-size: 13px; }
.language-check { visibility: hidden; color: var(--green); font-weight: 900; }
.language-menu button.active .language-check { visibility: visible; }
.menu-button { display: grid; place-content: center; gap: 4px; width: 44px; height: 44px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 13px; }
.drawer-scrim { position: fixed; inset: 0; z-index: 79; background: rgba(3,12,24,.62); backdrop-filter: blur(3px); }
.menu-panel { position: fixed; inset: 0 0 0 auto; z-index: 80; width: min(390px, 100vw); height: 100dvh; padding: calc(20px + env(safe-area-inset-top)) calc(20px + env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left)); overflow-y: auto; color: var(--ink); background: var(--surface); border-left: 1px solid var(--line); box-shadow: -24px 0 60px rgba(5,20,38,.28); }
.menu-panel[hidden] { display: none; }
.drawer-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.menu-profile { width: 100%; min-width: 0; margin: 0; padding: 4px; }
.drawer-head .menu-profile > span:last-child { display: grid; }
.close-button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 50%; }
.drawer-nav { display: grid; }
.menu-section-label { margin: 22px 5px 7px; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.menu-group { overflow: hidden; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 18px; }
.menu-action { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 10px; color: var(--ink); background: transparent; border: 0; border-radius: 11px; text-align: left; }
.menu-action { text-decoration: none; }
.menu-action:hover { background: color-mix(in srgb, var(--partner-accent) 6%, var(--surface-soft)); }
.menu-action.active, .menu-action[aria-current="page"] { color: var(--partner-accent); background: color-mix(in srgb, var(--partner-accent) 10%, var(--surface-soft)); }
[data-theme="dark"] .menu-action.active, [data-theme="dark"] .menu-action[aria-current="page"] { color: var(--water); background: color-mix(in srgb, var(--water) 10%, var(--surface-soft)); }
.menu-action:focus-visible, .language-button:focus-visible, .menu-button:focus-visible, .close-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--partner-accent) 28%, transparent); outline-offset: 2px; }
.menu-action:disabled { cursor: not-allowed; opacity: .62; }
.menu-group > .menu-action { min-height: 56px; padding: 11px 14px; border-bottom: 1px solid var(--line); border-radius: 0; }
.menu-group > .menu-action:last-child { border-bottom: 0; }
.menu-action > span:last-of-type { display: grid; flex: 1; gap: 2px; }
.menu-action > .theme-icon { display: block; flex: 0 0 21px; }
.theme-switch { position: relative; flex: 0 0 38px; width: 38px; height: 22px; margin-right: 2px; background: var(--line); border-radius: 99px; }
.theme-switch b { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: white; border-radius: 50%; box-shadow: 0 2px 5px rgba(5,20,38,.25); transition: transform .2s ease; }
#themeToggle[aria-pressed="true"] .theme-switch { background: var(--water); }
#themeToggle[aria-pressed="true"] .theme-switch b { transform: translateX(16px); }
.menu-action strong { font-size: 13px; }
.menu-action small { color: var(--muted); font-size: 11px; }
.menu-chevron { width: 8px; height: 8px; margin-right: 4px; border-top: 1.5px solid var(--muted); border-right: 1.5px solid var(--muted); transform: rotate(45deg); }
[aria-expanded="true"] > .menu-chevron { transform: rotate(135deg); }
.menu-external { color: var(--muted); font-size: 16px; font-style: normal; }
.drawer-submenu { padding: 8px; background: color-mix(in srgb, var(--surface) 56%, transparent); border-bottom: 1px solid var(--line); }
.drawer-language-panel button { display: grid; grid-template-columns: 28px 1fr 18px; align-items: center; gap: 8px; width: 100%; padding: 11px; color: var(--ink); background: transparent; border: 0; border-radius: 10px; text-align: left; }
.drawer-language-panel button:hover, .drawer-language-panel button.active { background: var(--surface); }
.drawer-language-panel button.active .language-check { visibility: visible; }
.drawer-signout { min-height: 58px; margin-top: 18px; padding: 12px 14px; color: var(--red); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 17px; }
.menu-version { display: flex; justify-content: space-between; gap: 12px; padding: 17px 5px 2px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sign-out-action .nav-icon { color: var(--red); }
.content { max-width: 1720px; margin: auto; padding: 34px clamp(18px, 2.6vw, 38px) 80px; }
.command-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 4px 2px 22px; }
.command-head h1 { color: var(--ink); font-size: clamp(40px, 5vw, 68px); font-weight: 900; letter-spacing: -.045em; }
.command-head > div:first-child > p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.command-sync { display: flex; align-items: center; gap: 11px; min-width: 240px; padding: 13px 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 10px 28px rgba(19,61,76,.05); }
.command-sync > div { display: grid; gap: 3px; }
.command-sync strong { font-size: 12px; }
.command-sync small { color: var(--muted); font-size: 10px; }
.command-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.command-kpi { position: relative; overflow: hidden; display: grid; gap: 9px; min-height: 142px; padding: 18px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 10px 28px rgba(19,61,76,.05); text-align: left; }
button.command-kpi { cursor: pointer; }
button.command-kpi:hover { border-color: color-mix(in srgb,var(--water) 48%,var(--line)); transform: translateY(-2px); }
.command-kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg,var(--water),var(--ocean)); }
.command-kpi > span { color: var(--muted); font-family: "JetBrains Mono",ui-monospace,monospace; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.command-kpi strong { align-self: center; font-family: "Barlow Condensed",Inter,sans-serif; font-size: 2.25rem; line-height: .9; }
.command-kpi strong small { color: var(--muted); font-size: 1.0625rem; }
.command-kpi em { align-self: end; color: var(--muted); font-size: .75rem; font-style: normal; font-weight: 750; }
.command-kpi.warning strong { color: var(--amber); }
.command-kpi.warning::before { background: var(--amber); }
.command-kpi.healthy strong { color: var(--green); }
.command-kpi.healthy::before { background: var(--green); }
.command-panel { margin-top: 14px; padding: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 10px 28px rgba(19,61,76,.05); }
.command-main-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; align-items: start; }
.command-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.command-panel-head > div { display: flex; align-items: center; gap: 10px; }
.command-panel-head h2 { margin: 0; color: var(--ink); font-size: 18px; }
.command-panel-head p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.command-panel-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.command-panel-actions .country-filters { flex-wrap: nowrap; }
.command-panel-icon { display: grid; place-items: center; width: 34px; height: 34px; color: var(--water); background: color-mix(in srgb,var(--water) 12%,transparent); border-radius: 10px; }
.command-panel-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.command-lifecycle .lifecycle-workspace { min-width: 0; margin: 0 -18px -18px; border-top: 1px solid var(--line); }
.command-lifecycle .lifecycle-axis { padding-top: 10px; }
.command-queue-list { display: grid; margin: 0 -18px -18px; border-top: 1px solid var(--line); }
.command-queue-group { display: grid; padding-top: 10px; border-bottom: 1px solid var(--line); }
.command-queue-group > strong { padding: 3px 18px 9px; color: var(--ocean); font-size: 11px; }
.command-queue-group > p, .command-queue-note { margin: 0; padding: 6px 18px 13px; color: var(--muted); font-size: 11px; }
.command-queue-note { margin: 18px -18px 0; border-top: 1px solid var(--line); }
.command-queue-row { display: grid; grid-template-columns: 72px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 72px; padding: 11px 18px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); text-align: left; }
.command-queue-row:last-child { border-bottom: 0; }
.command-queue-row:hover { background: color-mix(in srgb,var(--water) 6%,var(--surface)); }
.command-queue-row > span { display: grid; gap: 3px; min-width: 0; }
.command-queue-row > span:last-child { text-align: right; }
.command-queue-row strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.command-queue-row small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.command-overdue-link { width: calc(100% + 36px); margin: 18px -18px -18px; padding: 12px 18px; color: #8a3f12; background: color-mix(in srgb,var(--amber) 15%,var(--surface)); border: 0; border-top: 1px solid color-mix(in srgb,var(--amber) 40%,var(--line)); font-size: 11px; font-weight: 800; text-align: left; }
.command-queue-badge { display: inline-flex !important; place-self: center start; width: auto; padding: 5px 7px; color: var(--muted); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 7px; font-size: 8px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.command-queue-badge.soon { color: #5b4300; background: #f7cf4b; border-color: #f7cf4b; }
.command-queue-badge.planning { color: #795117; background: #fff0cc; border-color: #e7c879; }
.command-queue-badge.overdue { color: white; background: #ed8624; border-color: #ed8624; }
.command-impact-chart { display: grid; gap: 13px; padding: 5px 2px 2px; }
.command-impact-row { display: grid; grid-template-columns: minmax(130px,190px) minmax(120px,1fr) 58px; align-items: center; gap: 12px; }
.command-impact-row > span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.command-impact-row > i { height: 10px; overflow: hidden; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 99px; }
.command-impact-row > i > b { display: block; width: var(--width); height: 100%; background: var(--water); border-radius: inherit; }
.command-impact-row > i > b.blue { background: var(--ocean); }
.command-impact-row > i > b.green { background: var(--green); }
.command-impact-row > i > b.cyan { background: linear-gradient(90deg,var(--ocean),var(--water)); }
.command-impact-row > strong { color: var(--ink); font-size: 13px; text-align: right; }
.recent-activity-list { display: grid; max-height: min(58vh,560px); margin: 0 -18px -18px; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); scrollbar-color: color-mix(in srgb,var(--muted) 45%,transparent) transparent; scrollbar-gutter: stable; }
.recent-activity-list:focus-visible { outline: 3px solid color-mix(in srgb,var(--water) 55%,transparent); outline-offset: -3px; }
.recent-activity-row { display: grid; grid-template-columns: 12px minmax(0,1fr) auto; align-items: center; gap: 11px; min-height: 62px; padding: 10px 18px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); text-align: left; }
.recent-activity-row:last-child { border-bottom: 0; }
.recent-activity-row:hover { background: color-mix(in srgb,var(--water) 6%,var(--surface)); }
.recent-activity-row > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.recent-activity-row strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.recent-activity-row small, .recent-activity-row time { color: var(--muted); font-size: 10px; }
.activity-dot { width: 10px; height: 10px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 2px color-mix(in srgb,var(--green) 18%,transparent); }
.activity-dot.follow-up { background: #367ee8; box-shadow: 0 0 0 2px color-mix(in srgb,#367ee8 18%,transparent); }
.activity-dot.drop-off { background: #e85aad; box-shadow: 0 0 0 2px color-mix(in srgb,#e85aad 18%,transparent); }
.activity-dot.transition { background: linear-gradient(90deg,#e85aad 0 50%,var(--green) 50% 100%); box-shadow: 0 0 0 2px color-mix(in srgb,var(--green) 18%,transparent); }
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, .6fr); gap: 24px; padding: clamp(24px, 4vw, 42px); color: white; background-color: var(--navy); background-image: linear-gradient(125deg, rgba(48,82,164,.96), rgba(18,36,73,.97)), url("assets/brand/topography.svg"); background-size: auto, 720px auto; border-radius: 28px; box-shadow: var(--shadow); }
.hero::after { content: ""; position: absolute; width: 360px; height: 360px; right: -170px; top: -190px; border: 62px solid rgba(118, 222, 231, .12); border-radius: 50%; }
.eyebrow { margin: 0 0 11px; color: #8de9ff; font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .13em; }
h1 { max-width: 760px; margin: 0; font-size: clamp(34px, 5vw, 64px); line-height: .98; letter-spacing: -.045em; }
.hero-copy { max-width: 660px; margin: 18px 0 0; color: #d6ebef; font-size: 16px; line-height: 1.6; }
.sync-card { align-self: end; padding: 18px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.15); border-radius: 18px; backdrop-filter: blur(10px); }
.sync-card span { display: block; color: #a8d8df; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.sync-card strong { display: block; margin-top: 7px; font-size: 18px; }
.sync-card small { display: block; margin-top: 6px; color: #b7d2d7; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 34px 2px 16px; }
.section-head h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.section-head p { margin: 5px 0 0; color: var(--muted); }
.link-button { padding: 9px 13px; color: var(--ocean); background: var(--surface); border: 1px solid var(--line); border-radius: 11px; font-size: 13px; font-weight: 800; }
.app-grid, .stat-grid { display: grid; gap: 14px; }
.app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.app-card { display: grid; min-height: 210px; padding: 20px; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 21px; box-shadow: 0 10px 28px rgba(19,61,76,.05); text-align: left; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.app-icon { display: grid; place-items: center; width: 50px; height: 50px; color: white; background: linear-gradient(135deg, var(--water), var(--ocean)); border-radius: 16px; font-size: 24px; }
.app-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-icon-image { overflow: hidden; background: transparent; border-radius: 16px; }
.app-icon-image img { width: 58px; height: 58px; object-fit: contain; }
.app-card:nth-child(2) .app-icon { background: linear-gradient(135deg, #36c9ff, #155fa0); }
.app-card:nth-child(3) .app-icon { background: linear-gradient(135deg, #00d5ff, #087ec0); }
.app-card:nth-child(4) .app-icon { background: linear-gradient(135deg, #49bdeb, #173f75); }
.app-card h3 { align-self: end; margin: 28px 0 5px; font-size: 18px; }
.app-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.app-card b { margin-top: 18px; color: var(--ocean); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tool-card { display: grid; grid-template-rows: auto 1fr auto; min-height: 280px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 21px; box-shadow: 0 10px 28px rgba(19,61,76,.05); }
.tool-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tool-status { padding: 5px 8px; color: var(--muted); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 99px; font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.tool-status.ready { color: var(--green); background: color-mix(in srgb, var(--green) 10%, var(--surface)); border-color: color-mix(in srgb, var(--green) 25%, var(--line)); }
.tool-audience { margin: 24px 0 7px !important; color: var(--partner-accent) !important; font-size: 10px !important; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.tool-card h3 { margin: 0 0 7px; font-size: 19px; letter-spacing: -.02em; }
.tool-card > div > p:not(.tool-audience) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.tool-footer { display: grid; grid-template-columns: 1fr; align-items: center; gap: 8px; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); }
.tool-open, .tool-coming { display: inline-flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 10px 12px; border-radius: 11px; font-size: 12px; font-weight: 850; text-decoration: none; }
.tool-open { color: white; background: var(--ocean); border: 0; }
.tool-open:hover { background: color-mix(in srgb, var(--ocean) 84%, black); }
.tool-coming { color: var(--muted); background: var(--surface-soft); border: 1px dashed var(--line); }
.guide-menu { position: relative; }
.guide-menu summary { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 40px; padding: 10px 11px; color: var(--ocean); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 11px; cursor: pointer; font-size: 11px; font-weight: 850; list-style: none; }
.guide-menu summary::-webkit-details-marker { display: none; }
.guide-menu[open] summary { color: white; background: var(--navy-2); border-color: var(--navy-2); }
.guide-links { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 15; display: grid; gap: 5px; width: 100%; min-width: 205px; max-height: 320px; overflow-y: auto; padding: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.guide-links a { display: flex; align-items: center; gap: 9px; padding: 9px; color: var(--ink); border-radius: 9px; text-decoration: none; }
.guide-links a:hover { background: var(--surface-soft); }
.guide-links b { display: grid; place-items: center; width: 36px; height: 28px; color: white; background: var(--partner-accent); border-radius: 7px; font-size: 9px; letter-spacing: .06em; }
.guide-links span { font-size: 11px; font-weight: 750; }
.guide-pending { padding: 10px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 21px; background: var(--surface); border: 1px solid var(--line); border-radius: 19px; }
.stat-grid .stat:nth-child(1) { border-top: 3px solid var(--water); }
.stat-grid .stat:nth-child(2) { border-top: 3px solid var(--ocean); }
.stat-grid .stat:nth-child(3) { border-top: 3px solid var(--green); }
.stat-grid .stat:nth-child(4) { border-top: 3px solid var(--amber); }
.stat span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.stat strong { display: block; margin-top: 9px; font-size: clamp(27px, 4vw, 40px); letter-spacing: -.05em; }
.stat small { display: block; margin-top: 5px; color: var(--partner-accent); font-weight: 750; }
.panel { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 21px; }
.table-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 15px; border-bottom: 1px solid var(--line); }
.search { width: min(360px, 100%); padding: 11px 13px; color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 11px; outline: none; }
.compact-search { width: min(240px, 100%); font-size: .75rem; }
.sort-control { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: .6875rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.sort-control select { min-width: 180px; font-size: .75rem; text-transform: none; }
.view-switcher { display: inline-flex; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 8px 24px rgba(19,61,76,.06); }
.view-switcher button { min-height: 36px; padding: 8px 13px; color: var(--muted); background: transparent; border: 0; border-radius: 9px; font-size: 12px; font-weight: 850; }
.view-switcher button.active { color: white; background: var(--partner-accent); }
.lifecycle-tools select, #filterSort, #followupSort, #followupStatusFilter, #issueTypeFilter { min-height: 44px; padding: 9px 34px 9px 12px; color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 11px; font-weight: 750; }
.followup-tools .country-filters, .issue-tools .country-filters { margin-left: auto; }
.filter-status-switcher { display: inline-flex; flex-wrap: nowrap; gap: 5px; max-width: 100%; padding: 4px; overflow-x: auto; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 13px; scrollbar-width: none; }
.filter-status-switcher::-webkit-scrollbar { display: none; }
.filter-status-switcher button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 7px 10px; color: var(--muted); background: transparent; border: 0; border-radius: 9px; font-size: .75rem; font-weight: 850; }
.filter-status-switcher button b { padding: 2px 6px; background: color-mix(in srgb,var(--line) 60%,transparent); border-radius: 99px; font-size: .625rem; }
.filter-status-switcher button.active { color: white; background: var(--partner-accent); }
.filter-status-switcher button.distributed.active { background: var(--green); }
.filter-status-switcher button.inventory.active { background: #e85aad; }
.country-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.table-tools .country-filters { margin-left: auto; }
.country-button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 9px 11px; color: var(--muted); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 999px; font-size: .75rem; font-weight: 800; }
.country-button.country-flag { min-width: 64px; justify-content: center; font-size: 21px; line-height: 1; }
.country-button span { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; color: var(--muted); background: color-mix(in srgb, var(--line) 55%, transparent); border-radius: 99px; font-size: 10px; }
.country-button:hover, .country-button.active { color: white; background: var(--partner-accent); border-color: var(--partner-accent); }
.country-button.active span { color: var(--partner-accent); background: white; }

.map-panel { padding: 14px; overflow: hidden; }
.map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.map-coverage { display: grid; grid-template-columns: repeat(3,auto auto); align-items: baseline; gap: 5px 8px; color: var(--muted); font-size: 12px; }
.map-coverage strong { color: var(--ink); font-size: 17px; }
.map-location-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 4px 2px; color: var(--muted); font-size: 11px; }
.map-location-legend span { display: inline-flex; align-items: center; gap: 7px; }
.map-location-legend i { width: 12px; height: 12px; background: var(--green); border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 1px var(--green); }
.map-location-legend i.approximate { background: color-mix(in srgb,var(--green) 62%,transparent); border: 2px dashed var(--ocean); box-shadow: none; }
.map-status-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 9px; padding: 4px 4px 10px; color: var(--muted); font-size: 11px; }
.map-status-summary strong { color: var(--ink); }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 12px; color: var(--muted); font-size: 11px; font-weight: 750; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend-title { flex: 0 0 100%; color: var(--ink); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.map-legend-title small { margin-left: 8px; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.map-legend i { width: 11px; height: 11px; background: var(--marker); border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--marker) 55%, var(--line)); }
.map-legend .legend-installed { --marker: #2fb785; }
.map-legend .legend-followup { --marker: #367ee8; }
.map-legend .legend-due { --marker: #e3b72f; }
.map-legend .legend-missing { --marker: #ed8624; }
.map-legend .legend-issue { --marker: #f2c94c; }
.map-legend .legend-inventory { --marker: #e85aad; }
.map-legend b { color: var(--ink); font-size: 10px; }
.registry-map { position: relative; z-index: 0; width: 100%; min-height: 520px; overflow: hidden; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 18px; }
.map-loading, .map-empty, .map-zero { display: grid; place-content: center; gap: 6px; min-height: 520px; padding: 24px; color: var(--muted); text-align: center; }
.map-empty strong { color: var(--ink); font-size: 18px; }
.map-zero { position: absolute; inset: 50% auto auto 50%; z-index: 500; min-height: auto; width: min(330px, calc(100% - 32px)); padding: 16px; color: var(--ink); background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); transform: translate(-50%, -50%); }
.map-footnote { margin: 10px 3px 0; color: var(--muted); font-size: 11px; }
.map-popup { display: grid; gap: 5px; min-width: 190px; color: #17313f; }
.map-popup > strong { font-size: 14px; }
.map-popup > span, .map-popup > small { color: #526a76; }
.map-popup > div { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.map-record-link { padding: 5px 7px; color: #214a91; background: #eef5ff; border: 1px solid #bfd3f5; border-radius: 7px; font: inherit; font-size: 10px; font-weight: 800; }
.map-more { align-self: center; font-size: 10px; }
.leaflet-container { font-family: inherit; }
.leaflet-control-attribution { font-size: 9px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 17px; border-bottom: 1px solid #edf3f4; text-align: left; }
th { color: var(--muted); background: var(--surface-soft); font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; }
td { font-size: .875rem; line-height: 1.35; }
.resizable-table th { position: relative; }
.column-resizer { position: absolute; z-index: 5; top: 7px; right: -5px; bottom: 7px; width: 10px; cursor: col-resize; touch-action: none; }
.column-resizer::after { position: absolute; top: 0; bottom: 0; left: 4px; width: 1px; background: color-mix(in srgb,var(--muted) 28%,transparent); content: ""; }
.column-resizer:hover::after, .column-resizer:focus-visible::after { width: 2px; background: var(--water); }
.column-resizer:focus-visible { outline: 2px solid var(--water); outline-offset: -2px; }
.registry-table { width: 100%; min-width: 1120px; table-layout: fixed; }
.registry-table th, .registry-table td { overflow-wrap: anywhere; vertical-align: middle; }
.registry-table .pill { max-width: 100%; white-space: normal; }
.filters-table th:nth-child(1), .filters-table td:nth-child(1) { width: 150px; }
.filters-table th:nth-child(2), .filters-table td:nth-child(2) { width: 140px; }
.filters-table th:nth-child(3), .filters-table td:nth-child(3) { width: 54px; text-align: center; }
.filters-table th:nth-child(4), .filters-table td:nth-child(4) { width: 170px; }
.filters-table th:nth-child(5), .filters-table td:nth-child(5) { width: 138px; }
.filters-table th:nth-child(6), .filters-table td:nth-child(6) { width: 150px; }
.filters-table th:nth-child(7), .filters-table td:nth-child(7) { width: 150px; }
.filters-table th:nth-child(8), .filters-table td:nth-child(8) { width: 86px; }
.filters-table th:nth-child(9), .filters-table td:nth-child(9) { width: 140px; }
.filter-result-count { display: none; color: var(--muted); font-size: .6875rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.filter-card-list { display: none; }
.filter-card { position: relative; display: grid; gap: 10px; width: 100%; min-width: 0; padding: 14px 15px 14px 17px; overflow: hidden; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 8px 22px rgba(19,61,76,.07); font: inherit; text-align: left; }
.filter-card::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--green); content: ""; }
.filter-card.inventory::before { background: #e85aad; }
.filter-card-topline, .filter-card-primary, .filter-card-summary, .filter-card-followup { display: flex; align-items: center; }
.filter-card-topline, .filter-card-primary { justify-content: space-between; gap: 12px; }
.filter-card-country { color: var(--muted); font-size: 11px; font-weight: 800; }
.filter-card-primary > span, .filter-card-summary > span:first-child, .filter-card-followup > span:last-child { display: grid; gap: 2px; min-width: 0; }
.filter-card-primary strong { color: var(--ocean); font-size: clamp(1.3125rem,6vw,1.625rem); letter-spacing: -.035em; }
.filter-card-primary small { color: var(--muted); font-size: .75rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; white-space: normal; }
.filter-card-primary svg { width: 23px; height: 23px; flex: 0 0 23px; fill: none; stroke: var(--ocean); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.filter-card-summary { display: grid; grid-template-columns: minmax(82px,.7fr) minmax(0,1.3fr); gap: 11px; padding-top: 9px; border-top: 1px solid var(--line); }
.filter-card-summary > span:first-child small { color: var(--muted); font-size: .6875rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.filter-card-summary > span:first-child strong { font-size: .75rem; }
.filter-card-followup { gap: 8px; min-width: 0; padding-left: 10px; border-left: 1px solid var(--line); }
.filter-card-followup-dot { width: 10px; height: 10px; flex: 0 0 10px; background: var(--water); border: 2px solid var(--surface); border-radius: 50%; box-shadow: 0 0 0 1px var(--water); }
.filter-card-followup strong, .filter-card-followup small { display: block; }
.filter-card-followup strong, .filter-card-followup small { overflow-wrap: anywhere; white-space: normal; }
.filter-card-followup strong { font-size: .75rem; line-height: 1.3; }
.filter-card-followup small { color: var(--muted); font-size: .6875rem; line-height: 1.35; }
.filter-card-followup.current .filter-card-followup-dot { background: #367ee8; box-shadow: 0 0 0 1px #367ee8; }
.filter-card-followup.due .filter-card-followup-dot { background: #e3b72f; box-shadow: 0 0 0 1px #e3b72f; }
.filter-card-followup.overdue .filter-card-followup-dot { background: #ed8624; box-shadow: 0 0 0 1px #ed8624; }
.filter-card-followup.inventory .filter-card-followup-dot { background: #e85aad; box-shadow: 0 0 0 1px #e85aad; }
.filter-card-followup.unscheduled .filter-card-followup-dot { background: var(--muted); box-shadow: 0 0 0 1px var(--muted); }
.filter-card-empty { padding: 42px 20px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 20px; text-align: center; }
[data-theme="dark"] .filter-card { box-shadow: 0 16px 34px rgba(0,0,0,.2); }
.followup-table { min-width: 1450px; }
.followup-table th:nth-child(1), .followup-table td:nth-child(1) { width: 130px; }
.followup-table th:nth-child(2), .followup-table td:nth-child(2) { width: 145px; }
.followup-table th:nth-child(3), .followup-table td:nth-child(3) { width: 150px; }
.followup-table th:nth-child(4), .followup-table td:nth-child(4) { width: 145px; }
.followup-table th:nth-child(5), .followup-table td:nth-child(5) { width: 145px; }
.followup-table th:nth-child(6), .followup-table td:nth-child(6) { width: 135px; }
.followup-table th:nth-child(7), .followup-table td:nth-child(7) { width: 120px; }
.followup-table th:nth-child(8), .followup-table td:nth-child(8) { width: 210px; }
.followup-table th:nth-child(9), .followup-table td:nth-child(9) { width: 54px; text-align: center; }
.followup-table th:nth-child(10), .followup-table td:nth-child(10) { width: 170px; }
.schedule-summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 0 0 14px; }
.schedule-summary-grid button { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; min-width: 0; padding: 15px 17px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-align: left; box-shadow: var(--shadow); }
.schedule-summary-grid button:hover, .schedule-summary-grid button:focus-visible { border-color: var(--water); }
.schedule-summary-grid span { color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.schedule-summary-grid strong { grid-row: 1 / span 2; grid-column: 2; color: var(--ocean); font-size: 27px; line-height: 1; }
.schedule-summary-grid small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.schedule-population-note { display: flex; align-items: baseline; gap: 8px; padding: 10px 17px; color: var(--muted); background: color-mix(in srgb,var(--water) 5%,var(--surface)); border-top: 1px solid var(--line); font-size: 11px; }
.schedule-population-note strong { color: var(--ink); }
.context-cell { min-width: 190px; }
.context-cell strong, .context-cell span, .context-cell small { display: block; }
.context-cell strong { color: var(--ink); }
.context-cell span { margin-top: 4px; color: var(--muted); }
.context-cell small { margin-top: 4px; color: var(--partner-accent); font-weight: 800; }
.country-heading, .country-flag-cell { width: 52px; min-width: 52px; text-align: center; }
.country-heading svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; vertical-align: middle; }
.country-flag-cell { font-size: 20px; }
.program-cell { min-width: 150px; }
.program-cell strong, .program-cell small { display: block; }
.program-cell small { margin-top: 4px; color: var(--partner-accent); font-size: 10px; font-weight: 800; }
.id { white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.id { color: var(--ocean); font-weight: 850; }
.record-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; color: var(--ocean); background: transparent; border: 0; font-weight: 900; text-align: left; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.record-link:hover { color: var(--water); text-decoration-color: currentColor; }
.clickable-row { cursor: pointer; transition: background-color .16s ease; }
.clickable-row:hover { background: color-mix(in srgb, var(--water) 6%, var(--surface)); }
.clickable-row:focus-visible { outline: 3px solid color-mix(in srgb,var(--water) 68%,transparent); outline-offset: -3px; }
.table-scroll[role="region"]:focus-visible { outline: 3px solid color-mix(in srgb,var(--water) 58%,transparent); outline-offset: -3px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 99px; background: #edf7f3; color: var(--green); font-size: 11px; font-weight: 850; }
.pill.amber { color: #9b650f; background: #fff4df; }
.pill.red { color: #a63f3f; background: #fdeaea; }
.pill.issue-open { color: #241b00; background: #f7cf4b; }
.pill.review-flag { color: #5d2877; background: #f0dcfa; border: 1px solid #ddbbed; }
.pill.inventory { color: #8e245f; background: #fce5f3; }
.pill.issue-type { white-space: nowrap; border: 1px solid transparent; }
.pill.issue-qr { color: #2457a9; background: #e9f2ff; border-color: #cbdfff; }
.pill.issue-family { color: #79389b; background: #f4e8fb; border-color: #e5cef2; }
.pill.issue-duplicate { color: #a63f3f; background: #fdeaea; border-color: #f5cccc; }
.pill.issue-location { color: #885c08; background: #fff4d7; border-color: #f3dda8; }
.pill.issue-generic { color: var(--muted); background: var(--surface-soft); border-color: var(--line); }
.followup-chip { display: inline-flex; margin: 2px; padding: 4px 7px; color: #2457a9; background: #e9f2ff; border-radius: 99px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.pill.planning { color: #77511c; background: #fff0cc; }
.planning-label { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 750; }
.recorded-visits-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; flex-wrap: wrap; }
.visit-stage-filters { display: flex; flex-wrap: wrap; gap: 5px; }
.visit-stage-filters button, .visit-pages button { min-height: 36px; padding: 7px 11px; color: var(--ocean); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 9px; font-size: 12px; font-weight: 800; }
.visit-stage-filters button.active { color: white; background: var(--ocean); border-color: var(--ocean); }
.visit-pages { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; color: var(--muted); font-size: 12px; font-weight: 750; }
.visit-pages button:disabled { opacity: .45; cursor: not-allowed; }
.visit-count { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.notice { display: flex; align-items: start; gap: 12px; margin-bottom: 18px; padding: 14px 16px; color: #795516; background: #fff6e5; border: 1px solid #f4ddb1; border-radius: 14px; font-size: 13px; line-height: 1.5; }
.notice b { flex: 0 0 auto; }
.issue-action-summary { margin: 0 0 28px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.issue-action-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.issue-action-heading h2 { margin: 3px 0 0; font-size: 21px; }
.issue-action-heading > span { color: var(--muted); font-size: 12px; font-weight: 750; }
.issue-action-summary ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.issue-action-summary li { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.issue-action-summary li:last-child { padding-bottom: 0; border-bottom: 0; }
.issue-action-summary li strong, .issue-action-summary li small { display: block; }
.issue-action-summary li small { margin-top: 4px; color: var(--muted); line-height: 1.45; }
.issue-action-cell { min-width: 300px; max-width: 500px; color: var(--muted); }
.partner-summary { position: relative; display: flex; align-items: center; gap: 13px; overflow: hidden; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.partner-summary::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--partner-accent); }
.partner-mark { width: 46px; height: 46px; border-radius: 15px; }
.partner-summary h2 { margin: 0; }
.partner-summary p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.detail-head { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; margin-bottom: 22px; }
.detail-head > div { flex: 1 1 220px; min-width: 0; }
.detail-head > .pill { margin-left: auto; }
.back-button { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; color: var(--ocean); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px rgba(19,61,76,.07); }
.back-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.detail-head h1 { color: var(--ink); font-size: clamp(27px, 4vw, 42px); line-height: 1.05; }
.detail-head p { margin: 5px 0 0; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.detail-card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 19px; }
.detail-card h3 { margin: 0 0 16px; color: var(--partner-accent); font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; }
.detail-list { display: grid; gap: 0; margin: 0; }
.detail-list > div { display: grid; grid-template-columns: minmax(100px,.75fr) minmax(0,1.25fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.detail-list dd { margin: 0; font-size: .875rem; font-weight: 720; overflow-wrap: anywhere; }
.timeline { position: relative; display: grid; gap: 16px; margin: 0; padding: 2px 0 2px 22px; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -21px; top: 5px; width: 10px; height: 10px; background: var(--surface); border: 3px solid var(--partner-accent); border-radius: 50%; }
.timeline strong, .timeline span { display: block; }
.timeline strong { font-size: 13px; }
.timeline span { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.lifecycle-panel { overflow: hidden; }
.lifecycle-workspace { min-width: 0; overflow: hidden; }
.lifecycle-axis { display: grid; grid-template-columns: 190px minmax(360px,1fr) 170px; align-items: center; gap: 14px; padding: 15px 18px 9px; color: var(--muted); background: var(--surface-soft); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.lifecycle-axis strong { position: relative; height: 30px; color: var(--partner-accent); text-align: center; }
.lifecycle-months { position: absolute; inset: 0; display: block; }
.lifecycle-months > span { position: absolute; left: var(--position); bottom: 9px; color: var(--muted); font-size: 8px; font-weight: 800; transform: translateX(-50%); }
.lifecycle-axis-title { position: relative; z-index: 2; display: inline-block; padding: 0 6px; background: var(--surface-soft); }
.lifecycle-axis strong i { position: absolute; left: var(--position); bottom: -1px; color: var(--water); font-size: 8px; font-style: normal; transform: translateX(-50%); }
.lifecycle-calendar-axis strong { height: 30px; }
.lifecycle-calendar-axis strong i { bottom: 4px; color: var(--muted); font-size: 9px; }
.lifecycle-axis-today { position: absolute; top: -5px; left: var(--position); padding: 1px 4px; color: #9a4700; background: #fff1df; border-radius: 5px; font-size: 8px; line-height: 1.4; letter-spacing: 0; text-transform: none; transform: translateX(-50%); }
.lifecycle-calendar-axis span:last-child { color: var(--muted); font-size: 10px; }
.lifecycle-axis span:last-child { text-align: right; }
.lifecycle-relative-axis strong { height: auto; color: var(--muted); font-size: 9px; letter-spacing: .03em; }
.lifecycle-column-head, .lifecycle-row { display: grid; grid-template-columns: 190px minmax(360px,1fr) 170px; align-items: center; gap: 14px; }
.lifecycle-column-head { position: sticky; top: 0; z-index: 8; padding: 9px 18px; color: var(--muted); background: color-mix(in srgb,var(--surface) 94%,transparent); border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; backdrop-filter: blur(12px); }
.lifecycle-column-head span:nth-child(2) { text-align: center; }
.lifecycle-column-head span:last-child { text-align: right; }
.lifecycle-rows { max-height: min(68vh,760px); overflow-y: auto; }
.lifecycle-row { min-height: 88px; padding: 12px 18px; border-bottom: 1px solid var(--line); transition: background-color .16s ease; }
.lifecycle-row:hover { background: color-mix(in srgb,var(--water) 5%,var(--surface)); }
.lifecycle-row:last-child { border-bottom: 0; }
.lifecycle-identity { display: grid; gap: 4px; min-width: 0; padding: 0; color: inherit; background: transparent; border: 0; text-align: left; }
.lifecycle-identity strong { overflow: hidden; color: var(--ocean); font-size: 13px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.lifecycle-identity span, .lifecycle-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lifecycle-identity span { font-size: 12px; font-weight: 760; }
.lifecycle-identity small { color: var(--muted); font-size: 10px; }
.lifecycle-track { position: relative; height: 52px; min-width: 0; background: repeating-linear-gradient(90deg,transparent 0,transparent calc(8.333% - 1px),color-mix(in srgb,var(--line) 58%,transparent) calc(8.333% - 1px),color-mix(in srgb,var(--line) 58%,transparent) 8.333%); }
.lifecycle-today { position: absolute; z-index: 2; top: 1px; bottom: 0; left: var(--position); width: 2px; background: #f08a24; box-shadow: 0 0 0 1px color-mix(in srgb,#f08a24 16%,transparent); }
.lifecycle-today b { position: absolute; top: -13px; left: 50%; padding: 1px 4px; color: #9a4700; background: color-mix(in srgb,#fff1df 92%,var(--surface)); border-radius: 5px; font-size: 8px; line-height: 1.4; white-space: nowrap; transform: translateX(-50%); }
.lifecycle-baseline, .lifecycle-segment { position: absolute; top: 25px; height: 3px; border-radius: 99px; }
.lifecycle-baseline { left: 1.5%; right: 1.5%; background: var(--line); }
.lifecycle-segment { left: calc(var(--start) + var(--start-nudge, 0px)); width: calc(var(--width) + var(--end-nudge, 0px) - var(--start-nudge, 0px)); background: var(--green); }
.lifecycle-segment.completed { min-width: 2px; }
.lifecycle-segment.drop-off { background: #e85aad; }
.lifecycle-segment.follow-up { background: #367ee8; }
.lifecycle-segment.scheduled { height: 0; background: none; border-top: 2px dashed var(--amber); border-radius: 0; }
.lifecycle-segment.scheduled.overdue { border-color: var(--red); }
.lifecycle-segment b { position: absolute; left: 50%; bottom: 7px; padding: 2px 4px; color: var(--muted); background: var(--surface); border-radius: 5px; font-size: 9px; line-height: 1; transform: translateX(-50%); }
.lifecycle-marker { position: absolute; top: 18px; left: calc(var(--position) + var(--nudge, 0px)); z-index: 3; display: grid; place-items: center; width: 18px; height: 18px; padding: 0; background: transparent; border: 0; transform: translateX(-50%); }
.lifecycle-marker > span { width: 12px; height: 12px; background: var(--green); border: 2px solid var(--surface); border-radius: 50%; box-shadow: 0 0 0 1px var(--green); transition: transform .15s ease; }
.lifecycle-marker.follow-up > span { background: #367ee8; box-shadow: 0 0 0 1px #367ee8; }
.lifecycle-marker.drop-off > span { background: #e85aad; box-shadow: 0 0 0 1px #e85aad; }
.lifecycle-marker.due > span { width: 14px; height: 14px; background: #367ee8; border: 3px solid var(--amber); box-shadow: 0 0 0 2px color-mix(in srgb,var(--amber) 16%,transparent); }
.lifecycle-marker.due.overdue > span { border-color: var(--red); box-shadow: 0 0 0 2px color-mix(in srgb,var(--red) 22%,transparent); }
.lifecycle-marker:hover > span, .lifecycle-marker:focus-visible > span { transform: scale(1.35); }
.lifecycle-marker.follow-up::after { content: attr(data-milestone); position: absolute; bottom: 31px; left: 50%; padding: 1px 3px; color: #367ee8; background: var(--surface); border-radius: 4px; font-size: 8px; font-weight: 900; line-height: 1; transform: translateX(-50%); }
.lifecycle-marker.drop-off::after { content: "Drop"; position: absolute; top: 30px; left: 50%; padding: 1px 3px; color: #bd3985; background: var(--surface); border-radius: 4px; font-size: 8px; font-weight: 900; line-height: 1; transform: translateX(-50%); }
.lifecycle-marker.distribution::after { content: "Install"; position: absolute; bottom: 31px; left: 50%; padding: 1px 3px; color: var(--green); background: var(--surface); border-radius: 4px; font-size: 8px; font-weight: 900; line-height: 1; transform: translateX(-50%); }
.lifecycle-recency { display: grid; gap: 4px; text-align: right; }
.lifecycle-recency strong { font-size: 12px; }
.lifecycle-recency span { color: var(--muted); font-size: 10px; }
.lifecycle-recency.overdue strong, .lifecycle-recency.overdue span { color: var(--red); }
.lifecycle-row.inventory { opacity: .74; }
.lifecycle-recency.inventory strong { color: var(--muted); }
.lifecycle-row.status-conflict { background: color-mix(in srgb,var(--amber) 8%,var(--surface)); }
.lifecycle-mini { display: grid; gap: 22px; }
.lifecycle-row.compact { grid-template-columns: 0 minmax(280px,1fr) minmax(140px,190px); min-height: 76px; padding: 0; border: 0; }
.lifecycle-row.compact .lifecycle-identity { visibility: hidden; }
.lifecycle-list { grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); padding-left: 0; }
.lifecycle-list::before, .lifecycle-list li::before { display: none; }
.lifecycle-list li { padding: 10px 12px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 11px; }
.lifecycle-list li.event-drop-off { border-left: 4px solid #e85aad; }
.lifecycle-list li.event-distribution { border-left: 4px solid var(--green); }
.lifecycle-list li.event-follow-up { border-left: 4px solid #367ee8; }
.lifecycle-list li.scheduled { border-style: dashed; border-color: var(--amber); }
.lifecycle-list li.scheduled.overdue { color: var(--red); border-color: var(--red); }
.lifecycle-list li.inventory-note { color: #8e245f; border-left: 4px solid #e85aad; }
.wide-card { grid-column: 1 / -1; }
.event-evidence-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 12px; }
.event-evidence-card { overflow: hidden; display: grid; grid-template-columns: 92px minmax(0,1fr); min-height: 92px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 14px; }
.event-evidence-card > img { width: 92px; height: 100%; min-height: 92px; object-fit: cover; }
.event-evidence-card > div { display: grid; align-content: center; gap: 4px; padding: 12px; }
.event-evidence-card strong { font-size: 13px; }
.event-evidence-card span, .event-evidence-card a { color: var(--muted); font-size: 11px; }
.event-evidence-card a { color: var(--ocean); font-weight: 750; text-decoration: none; }
.historical-impact-note { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; padding: 15px 17px; color: #795516; background: #fff6e5; border: 1px solid #f4ddb1; border-radius: 15px; font-size: 13px; line-height: 1.55; }
.historical-impact-note strong { flex: 0 0 auto; }
.global-impact-map { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 21px; box-shadow: var(--shadow); }
.global-impact-map iframe { display: block; width: 100%; height: min(720px, 75vh); min-height: 560px; border: 0; background: var(--navy); }
.global-impact-map a { display: block; padding: 13px 17px; color: var(--ocean); border-top: 1px solid var(--line); font-size: 12px; font-weight: 850; text-align: right; text-decoration: none; }
.global-impact-map a:hover { color: var(--water); }
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.help-card { position: relative; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 19px; }
.help-card > span { color: var(--water); font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.help-card h3 { margin: 12px 0 8px; font-size: 17px; }
.help-card p, .help-copy { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.offline-chip { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 4px 8px; color: #9b650f; background: #fff4df; border-radius: 99px; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
[data-theme="dark"] .notice { color: #f0c675; background: #2b2315; border-color: #58451f; }
[data-theme="dark"] .historical-impact-note { color: #f0c675; background: #2b2315; border-color: #58451f; }
[data-theme="dark"] .pill { color: #7be4c0; background: #153b35; border: 1px solid #296657; }
[data-theme="dark"] .pill.amber, [data-theme="dark"] .offline-chip { color: #f1c66f; background: #342714; }
[data-theme="dark"] .pill.red { color: #ff9e9e; background: #381d22; }
[data-theme="dark"] .pill.issue-open { color: #241b00; background: #f7cf4b; }
[data-theme="dark"] .pill.review-flag { color: #edc8ff; background: #382048; border-color: #654079; }
[data-theme="dark"] .pill.inventory { color: #f1d5ff; background: #432454; }
[data-theme="dark"] .pill.issue-qr, [data-theme="dark"] .followup-chip { color: #8fc2ff; background: #142d57; border-color: #284c80; }
[data-theme="dark"] .pill.issue-family { color: #e6b4ff; background: #382048; border-color: #59336d; }
[data-theme="dark"] .pill.issue-location { color: #f1c66f; background: #342714; border-color: #5b4420; }
[data-theme="dark"] .stat small, [data-theme="dark"] .context-cell small, [data-theme="dark"] .detail-card h3, [data-theme="dark"] .lifecycle-axis strong { color: var(--water); }
.empty-state { padding: 56px 20px; color: var(--muted); text-align: center; }
.registry-loading { display: flex; align-items: center; gap: 13px; width: min(520px,calc(100% - 36px)); margin: clamp(36px,9vh,92px) auto; padding: 18px 20px; color: var(--ink); background: color-mix(in srgb,var(--surface) 94%,transparent); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.registry-loading > div { display: grid; gap: 4px; }
.registry-loading strong { font-size: 16px; }
.registry-loading small { color: var(--muted); font-size: 12px; }
.registry-loading-spinner { width: 20px; height: 20px; border: 2px solid color-mix(in srgb,var(--water) 24%,var(--line)); border-top-color: var(--water); border-radius: 50%; animation: registry-spin .75s linear infinite; }
@keyframes registry-spin { to { transform: rotate(360deg); } }
.retry-button { min-height: 44px; margin-top: 20px; padding: 11px 16px; color: var(--navy); background: var(--water); border: 0; border-radius: 12px; font-size: .875rem; font-weight: 850; }
.mobile-nav { display: none; }
.site-footer { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 0 clamp(18px, 4vw, 52px); padding: 22px 12px 34px; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.site-footer img { width: 30px; height: 30px; object-fit: contain; }
@media (max-width: 1050px) { .app-grid, .tool-grid { grid-template-columns: repeat(2, 1fr); } .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1050px) { .command-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 980px) { .command-main-grid { grid-template-columns: 1fr; } }
@media (max-width: 1050px) { .help-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .schedule-summary-grid { grid-template-columns: 1fr; }
  .shell { display: block; }
  .rail { display: none; }
  .topbar {
    top: calc(8px + env(safe-area-inset-top));
    width: calc(100% - 16px - env(safe-area-inset-left) - env(safe-area-inset-right));
    min-height: 74px;
    margin: calc(8px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) 8px calc(8px + env(safe-area-inset-left));
    padding: 10px 12px;
    gap: 10px;
    border-radius: 19px;
  }
  .mobile-brand { display: flex; min-width: 0; flex: 1 1 auto; align-items: center; gap: 8px; padding: 0; overflow: hidden; color: var(--ink); background: transparent; border: 0; text-align: left; }
  .mobile-brand .wata-logo { width: 42px; height: 42px; flex-basis: 42px; }
  .mobile-brand > span { display: grid; gap: 4px; min-width: 0; }
  .mobile-brand strong, .mobile-brand small { display: block; overflow: hidden; text-overflow: ellipsis; }
  .mobile-brand strong { font-size: 18px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; white-space: nowrap; }
  .mobile-brand small { color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.35; letter-spacing: 0; text-transform: none; white-space: nowrap; }
  .scope-wrap label, .profile > span:last-child { display: none; }
  .scope-wrap { flex: 0 0 auto; margin-left: 0; }
  .scope-wrap select { width: 68px; min-width: 68px; max-width: 68px; padding: 9px 22px 9px 8px; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
  .top-menu { margin-left: auto; }
  .menu-profile { display: flex; }
  .avatar { width: 36px; height: 36px; }
  .content { padding: 20px calc(14px + env(safe-area-inset-right)) 100px calc(14px + env(safe-area-inset-left)); }
  .menu-panel { padding: calc(16px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left)); }
  .command-head { align-items: stretch; flex-direction: column; margin-bottom: 17px; }
  .command-head h1 { font-size: 42px; }
  .command-sync { min-width: 0; }
  .command-kpis { gap: 10px; }
  .command-kpi { min-height: 128px; padding: 15px; }
  .command-panel { padding: 15px; }
  .command-panel-head { align-items: flex-start; }
  .command-panel-head .link-button { min-height: 36px; }
  .command-lifecycle .command-panel-head { align-items: stretch; flex-direction: column; }
  .command-lifecycle .command-panel-actions { display: grid; width: 100%; justify-content: stretch; }
  .command-lifecycle .command-panel-actions .country-filters { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .command-lifecycle .command-panel-actions .link-button { justify-self: start; }
  .command-lifecycle .lifecycle-workspace { min-width: 0; margin: 0; border-top: 0; }
  .command-queue-list { margin: 0; border: 0; }
  .command-queue-row { grid-template-columns: 64px minmax(0,1fr); padding: 11px 0; }
  .command-queue-row > span:last-child { grid-column: 2; text-align: left; }
  .command-impact-row { grid-template-columns: minmax(104px,1fr) minmax(80px,1.4fr) 48px; gap: 8px; }
  .site-footer { margin: 0 calc(14px + env(safe-area-inset-right)) 0 calc(14px + env(safe-area-inset-left)); padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .hero { grid-template-columns: 1fr; padding: 25px 21px; border-radius: 22px; }
  h1 { font-size: 39px; }
  .hero-copy { font-size: 14px; }
  .app-grid, .tool-grid, .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .app-card { min-height: 178px; padding: 16px; border-radius: 17px; }
  .app-card h3 { margin-top: 18px; }
  .stat { padding: 16px; }
  .section-head { margin-top: 27px; }
  .mobile-nav { position: fixed; left: calc(10px + env(safe-area-inset-left)); right: auto; bottom: calc(9px + env(safe-area-inset-bottom)); z-index: 30; display: flex; width: calc(100vw - 20px - env(safe-area-inset-left) - env(safe-area-inset-right)); max-width: calc(100vw - 20px - env(safe-area-inset-left) - env(safe-area-inset-right)); height: 66px; padding: 7px; background: rgba(16,47,67,.96); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; box-shadow: 0 18px 50px rgba(12,39,56,.3); backdrop-filter: blur(16px); }
  /* Shared glass housings are relative by default; Registry's phone tray must stay viewport-fixed. */
  .mobile-nav[data-wata-glass-housing] { position: fixed; }
  .mobile-nav button { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 3px; padding: 5px; color: #97b3bf; background: transparent; border: 0; font-size: 9px; font-weight: 800; }
  .mobile-nav .nav-icon { width: 20px; height: 20px; }
  .mobile-nav button.active { color: #74dbe3; }
  .detail-grid { grid-template-columns: 1fr; }
  .help-grid { grid-template-columns: 1fr; }
  .notice { display: grid; gap: 5px; }
  .issue-action-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .issue-action-summary li { grid-template-columns: 1fr; }
  .issue-action-cell { min-width: 230px; }
  .historical-impact-note { display: grid; gap: 5px; }
  .global-impact-map iframe { height: 68vh; min-height: 470px; }
  .table-tools .country-filters { width: 100%; margin-left: 0; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .filters-panel { overflow: visible; background: transparent; border: 0; }
  .filters-panel .table-tools { position: sticky; top: calc(80px + env(safe-area-inset-top)); z-index: 12; margin: 0 -4px 12px; padding: 12px; background: color-mix(in srgb,var(--surface) 94%,transparent); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 9px 25px rgba(19,61,76,.09); backdrop-filter: blur(18px); }
  .filters-panel .compact-search { order: -1; width: 100%; min-height: 44px; font-size: 14px; }
  .filters-panel #filterSort { flex: 1 1 160px; }
  .filters-panel .filter-result-count { display: block; margin-left: auto; }
  .filter-status-switcher { width: 100%; }
  .filter-status-switcher { flex-wrap: nowrap; gap: 3px; }
  .filter-status-switcher button { flex: 1 1 0; min-width: 0; justify-content: center; gap: 4px; padding-inline: 5px; font-size: .6875rem; white-space: nowrap; }
  .filter-status-switcher button b { padding-inline: 5px; font-size: .5625rem; }
  .filter-status-long { display: none; }
  .country-button { flex: 0 0 auto; }
  .map-panel { padding: 9px; }
  .map-toolbar { align-items: stretch; flex-direction: column; }
  .map-toolbar .country-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .map-coverage { grid-template-columns: auto 1fr; }
  .registry-map, .map-loading, .map-empty { min-height: 58vh; }
  .map-legend { gap: 7px 10px; }
  .detail-head { align-items: flex-start; }
  .detail-list > div { grid-template-columns: 102px minmax(0,1fr); }
  .section-head { align-items: stretch; flex-direction: column; }
  .view-switcher { align-self: flex-start; }
  .lifecycle-notice { display: none; }
  .lifecycle-panel { overflow: visible; background: transparent; border: 0; }
  .lifecycle-tools { padding: 0 0 12px; border: 0; }
  .lifecycle-tools .search, .lifecycle-tools select { width: 100%; }
  .lifecycle-workspace { min-width: 0; overflow: visible; }
  .lifecycle-axis, .lifecycle-column-head { display: none; }
  .lifecycle-rows { display: grid; gap: 10px; max-height: none; overflow: visible; }
  .lifecycle-row, .lifecycle-row.compact { grid-template-columns: 1fr; gap: 9px; min-height: 0; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }
  .lifecycle-row.compact { padding: 12px; background: var(--surface-soft); }
  .lifecycle-row.compact .lifecycle-identity { display: none; }
  .lifecycle-track { min-height: 52px; }
  .lifecycle-recency { text-align: left; }
  .lifecycle-list { grid-template-columns: 1fr; }
  .table-scroll { overflow: visible; }
  .filters-table-scroll { display: none; }
  .filter-card-list { display: grid; gap: 10px; padding: 2px 0; }
  .filter-card { min-height: 0; }
  .filter-card:active { transform: scale(.992); }
  .registry-table { min-width: 0; table-layout: auto; }
  .registry-table th, .registry-table td { width: 100% !important; text-align: left !important; }
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tbody { padding: 8px; }
  tr { margin: 8px 0; padding: 8px 12px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 14px; }
  tr:last-child td { border-bottom: 1px solid var(--line); }
  td, tr:last-child td:last-child { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 2px; border-bottom: 1px solid var(--line); white-space: normal; }
  td:last-child { border-bottom: 0 !important; }
  td::before { content: attr(data-label); color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
  td.empty-state { display: block; padding: 30px 10px; border: 0 !important; text-align: center; }
  td.empty-state::before { display: none; }
}
@media (max-width: 760px) {
  [data-product="hub"] .hub-rail { display: none; }
  [data-product="hub"] .shell { display: block; }
  [data-product="hub"] .hub-topbar {
    min-height: calc(64px + env(safe-area-inset-top));
    padding: calc(8px + env(safe-area-inset-top)) 14px 8px;
  }
  [data-product="hub"] .hub-heading img { display: block; width: 38px; height: 38px; }
  [data-product="hub"] .hub-content { padding: 22px 14px 42px; }
  [data-product="hub"] .site-footer { padding-bottom: 30px; }
  [data-product="hub"] .hub-app-head { margin-bottom: 17px; }
  [data-product="hub"] .hub-app-head h1 { font-size: 28px; }
  [data-product="hub"] .hub-app-head > span { display: none; }
  [data-product="hub"] .hub-tool-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px 9px; }
  [data-product="hub"] .hub-tool-card { display: flex; min-width: 0; min-height: 0; padding: 0; flex-direction: column; align-items: center; background: transparent; border: 0; box-shadow: none; text-align: center; }
  [data-product="hub"] .hub-tool-card .tool-card-top { display: block; }
  [data-product="hub"] .hub-tool-card .app-icon { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 9px 20px rgba(19,61,76,.13); }
  [data-product="hub"] .hub-tool-card .app-icon-image img { width: 72px; height: 72px; border-radius: 19px; background: transparent; }
  [data-product="hub"] .hub-tool-card .tool-status,
  [data-product="hub"] .hub-tool-card .tool-audience,
  [data-product="hub"] .hub-tool-card > div > p:not(.tool-audience),
  [data-product="hub"] .hub-tool-card .guide-menu { display: none; }
  [data-product="hub"] .hub-tool-card h3 { margin: 9px 0 0; font-size: 12px; line-height: 1.2; }
  [data-product="hub"] .hub-tool-card .tool-footer { width: 100%; margin: 5px 0 0; padding: 0; border: 0; }
  [data-product="hub"] .hub-tool-card .tool-open,
  [data-product="hub"] .hub-tool-card .tool-coming { justify-content: center; min-height: 0; padding: 2px; color: var(--muted); background: transparent; border: 0; font-size: 9px; }
  [data-product="hub"] .hub-tool-card .tool-open span { display: none; }
}
@media (max-width: 560px) { .tool-grid { grid-template-columns: 1fr; } .tool-card { min-height: 255px; } }
@media (max-width: 430px) { .app-grid { grid-template-columns: 1fr; } }
@media (max-width: 360px) {
  .mobile-brand .brand-copy, .mobile-brand > span { display: none; }
  .scope-wrap select { width: 68px; min-width: 68px; max-width: 68px; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar { background: var(--wf-surface,var(--header)) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .topbar::after { display: none; }
}
@media (forced-colors: active) {
  .topbar { border-color: CanvasText !important; box-shadow: none !important; }
  .topbar::before, .topbar::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Founder total and survey/data coverage belong in one metric so the field
   count stays primary without implying that every filter has a survey row. */
.filter-count-kpi { grid-template-rows: auto 1fr auto auto; }
.filter-count-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.filter-count-toolbar > span { color: var(--muted); font-family: "JetBrains Mono",ui-monospace,monospace; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.filter-count-toggle { display: inline-flex; min-width: 0; padding: 3px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 999px; }
.filter-count-toggle button { min-width: 0; min-height: 25px; padding: 4px 8px; color: var(--muted); background: transparent; border: 0; border-radius: 999px; font-size: 9px; font-weight: 850; line-height: 1; white-space: nowrap; }
.filter-count-toggle button.active { color: var(--navy); background: var(--water); box-shadow: 0 3px 9px color-mix(in srgb,var(--water) 28%,transparent); }
.filter-count-kpi > em { align-self: auto; }
.filter-count-route { justify-self: start; min-height: 0; padding: 0; color: var(--ocean); background: transparent; border: 0; font-size: .72rem; font-weight: 850; text-align: left; }
.filter-count-route:hover { text-decoration: underline; }
.legacy-boundary-notice { display: grid; grid-template-columns: minmax(190px,.32fr) minmax(0,1fr); gap: 18px; margin-bottom: 16px; padding: 16px 18px; color: color-mix(in srgb,var(--amber) 35%,var(--ink)); background: color-mix(in srgb,var(--amber) 11%,var(--surface)); border: 1px solid color-mix(in srgb,var(--amber) 44%,var(--line)); border-radius: 16px; }
.legacy-boundary-notice strong { font-size: 14px; }
.legacy-boundary-notice span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.legacy-summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.legacy-summary-grid article { display: grid; gap: 7px; min-height: 130px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 10px 30px rgba(19,61,76,.06); }
.legacy-summary-grid span { color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.legacy-summary-grid strong { font-size: clamp(27px,3vw,42px); line-height: 1; }
.legacy-summary-grid small { align-self: end; color: var(--muted); line-height: 1.35; }
.legacy-minimum-note { display: flex; gap: 9px; align-items: baseline; margin: 0 0 16px; padding: 13px 16px; color: var(--muted); background: var(--surface-soft); border: 1px dashed var(--line); border-radius: 14px; font-size: 13px; }
.legacy-minimum-note strong { color: var(--ink); }
.legacy-panel { padding: 0; overflow: hidden; }
.legacy-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 18px; border-bottom: 1px solid var(--line); }
.legacy-toolbar h2 { margin: 0 0 4px; font-size: 20px; }
.legacy-toolbar p { margin: 0; color: var(--muted); font-size: 12px; }
.legacy-controls { display: flex; gap: 10px; align-items: flex-end; }
.legacy-controls .search { width: min(330px,34vw); }
.legacy-country-control { min-width: 180px; }
.legacy-result-line { padding: 10px 18px; color: var(--muted); background: var(--surface-soft); border-bottom: 1px solid var(--line); font-size: 12px; }
.legacy-result-line strong { color: var(--ink); }
.legacy-unit-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(250px,1fr)); gap: 10px; padding: 14px; }
.legacy-unit-card { min-width: 0; padding: 15px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 14px; }
.legacy-unit-head { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.legacy-state { color: color-mix(in srgb,var(--amber) 70%,var(--ink)); text-align: right; }
.legacy-unit-card h3 { margin: 13px 0 5px; overflow-wrap: anywhere; color: var(--ocean); font-size: 17px; }
.legacy-unit-card > p { margin: 0 0 13px; color: var(--ink); font-weight: 750; }
.legacy-unit-card dl { display: grid; gap: 8px; margin: 0; }
.legacy-unit-card dl div { display: grid; grid-template-columns: 86px minmax(0,1fr); gap: 8px; }
.legacy-unit-card dt { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.legacy-unit-card dd { margin: 0; overflow-wrap: anywhere; color: var(--muted); font-size: 11px; }
.legacy-pagination { display: flex; justify-content: center; align-items: center; gap: 15px; padding: 15px; border-top: 1px solid var(--line); }
.legacy-pagination button { min-height: 38px; padding: 0 15px; color: var(--ocean); background: var(--surface); border: 1px solid var(--line); border-radius: 11px; font-weight: 800; }
.legacy-pagination button:disabled { opacity: .42; cursor: default; }
.legacy-pagination span { color: var(--muted); font-size: 12px; font-weight: 750; }
.legacy-batches { margin-top: 16px; overflow: hidden; }
.legacy-batches summary { padding: 17px 18px; cursor: pointer; color: var(--ocean); font-weight: 850; }
.legacy-batches[open] summary { border-bottom: 1px solid var(--line); }
.legacy-batches td strong, .legacy-batches td small { display: block; }
.legacy-batches td small { margin-top: 4px; color: var(--muted); font-size: 11px; }

@media (max-width: 940px) {
  .legacy-summary-grid { grid-template-columns: 1fr 1fr; }
  .legacy-toolbar { align-items: stretch; flex-direction: column; }
  .legacy-controls .search { width: 100%; }
}
@media (max-width: 620px) {
  .filter-count-kpi { grid-column: 1 / -1; }
  .filter-count-toolbar { align-items: flex-start; flex-direction: column; }
  .filter-count-toggle { width: 100%; }
  .filter-count-toggle button { flex: 1 1 0; }
  .legacy-boundary-notice { grid-template-columns: 1fr; gap: 6px; }
  .legacy-summary-grid { gap: 9px; }
  .legacy-summary-grid article { min-height: 112px; padding: 14px; }
  .legacy-controls { align-items: stretch; flex-direction: column; }
  .legacy-country-control { min-width: 0; }
  .legacy-country-control select { width: 100%; }
  .legacy-unit-grid { grid-template-columns: 1fr; padding: 10px; }
}
