: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::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; }
.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: 0; z-index: 20; display: flex; align-items: center; min-height: 76px; padding: 13px clamp(18px, 4vw, 52px); background: var(--header); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.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; }
[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 { width: 18px; color: var(--ocean); font-size: 17px; text-align: center; }
.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-globe { font-size: 18px; line-height: 1; }
.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; }
.menu-button span { display: block; width: 19px; height: 2px; background: currentColor; border-radius: 3px; }
.menu-panel { position: absolute; top: calc(100% + 9px); right: 0; z-index: 40; width: min(310px, calc(100vw - 28px)); padding: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow); }
.menu-panel[hidden] { display: none; }
.menu-profile { width: 100%; margin: 0 0 7px; padding: 9px 10px 13px; border-bottom: 1px solid var(--line); }
.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: var(--surface-soft); }
.menu-action > span:last-child { display: grid; gap: 2px; }
.menu-action strong { font-size: 13px; }
.menu-action small { color: var(--muted); font-size: 11px; }
.sign-out-action { margin-top: 7px; padding-top: 14px; border-top: 1px solid var(--line); border-radius: 0 0 11px 11px; }
.sign-out-action .nav-icon { color: var(--red); }
.content { max-width: 1440px; margin: auto; padding: 34px clamp(18px, 4vw, 52px) 80px; }
.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 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; }
.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; padding: 9px 11px; color: var(--muted); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 999px; font-size: 12px; 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: auto auto auto auto; align-items: baseline; gap: 5px 8px; color: var(--muted); font-size: 12px; }
.map-coverage strong { color: var(--ink); font-size: 17px; }
.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 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 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: 11px; text-transform: uppercase; letter-spacing: .07em; }
td { font-size: 13px; line-height: 1.35; }
.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; }
.id { white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.id { color: var(--ocean); font-weight: 850; }
.record-link { 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)); }
.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; }
.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; }
.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; gap: 13px; margin-bottom: 22px; }
.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: 12px; 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: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.detail-list dd { margin: 0; font-size: 13px; font-weight: 720; }
.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; }
.wide-card { grid-column: 1 / -1; }
.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.amber, [data-theme="dark"] .offline-chip { color: #f1c66f; background: #342714; }
[data-theme="dark"] .pill.red { color: #ff9e9e; background: #381d22; }
.empty-state { padding: 56px 20px; color: var(--muted); text-align: center; }
.retry-button { margin-top: 20px; padding: 11px 16px; color: var(--navy); background: var(--water); border: 0; border-radius: 12px; 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) { .help-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .shell { display: block; }
  .rail { display: none; }
  .topbar {
    min-height: calc(68px + env(safe-area-inset-top));
    padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  }
  .mobile-brand { display: flex; align-items: center; gap: 8px; padding: 0; color: var(--ink); background: transparent; border: 0; text-align: left; }
  .mobile-brand .wata-logo { width: 32px; height: 32px; flex-basis: 32px; }
  .mobile-brand > span { display: grid; gap: 1px; }
  .mobile-brand strong { font-size: 11px; letter-spacing: .12em; }
  .mobile-brand small { color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
  .scope-wrap label, .profile > span:last-child { display: none; }
  .scope-wrap { margin-left: auto; }
  .scope-wrap select { min-width: 130px; max-width: 145px; padding: 9px 28px 9px 9px; font-size: 12px; }
  .top-menu { margin-left: auto; }
  .menu-profile { display: flex; }
  .avatar { width: 36px; height: 36px; }
  .content { padding: 20px 14px 100px; }
  .site-footer { margin: 0 14px; padding-bottom: 104px; }
  .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: 10px; right: 10px; bottom: calc(9px + env(safe-area-inset-bottom)); z-index: 30; display: flex; 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); }
  .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; }
  .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; }
  .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 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); }
  .table-scroll { overflow: visible; }
  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 (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
