:root {
  --map-sea: #DCEBF5; --map-land: #F8F9FC; --map-line: #AEBBD0;
  --ground: #F5F6F8; --surface: #FFFFFF; --surface-2: #F1F3F6; --line: #E3E6EB; --line-2: #EEF0F3; --input: #C9CFD8;
  --ink: #111827; --ink-2: #1F2937; --text: #374151; --muted: #4B5563; --faint: #5F6773;
  --accent: #2B3FD6; --accent-ink: #1C2A9E; --accent-soft: #EEF0FD; --accent-line: #AEB7F5;
  --nav: #0F1420; --nav-2: #1B2233; --nav-active: #262F45; --nav-line: #343E57; --nav-text: #C9D1E0; --nav-accent: #8C99FF;
  --high: #0B6B4F; --high-soft: #E6F4EE; --high-line: #B7DFCC;
  --med: #B86E00; --med-ink: #8A5300; --med-soft: #FDF1DE;
  --low: #B3261E; --low-ink: #9B1C15; --low-soft: #FCE9E7;
  --radius: 12px; --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--ink); font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif; font-size: 15px; line-height: 1.45; }
a { color: var(--accent); } a:hover { color: var(--accent-ink); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.boot { padding: 40px; color: var(--muted); }
.mono { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; } .tiny { font-size: 12px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1 1 auto; min-width: 0; }

/* ---------- header */
.top { background: var(--nav); color: #fff; padding: 0 24px; position: sticky; top: 0; z-index: 20; }
.top-in { max-width: 1360px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; }
.brand:hover { color: #fff; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { padding: 10px 14px; border-radius: 8px; color: var(--nav-text); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover { color: #fff; background: var(--nav-2); }
.nav a[aria-current="page"] { color: #fff; background: var(--nav-active); font-weight: 600; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--nav-text); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #4ADE80; }
.navbtn { color: #fff; background: var(--nav-2); border: 1px solid var(--nav-line); border-radius: 8px; padding: 8px 12px; min-height: 40px; cursor: pointer; font-size: 13px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--nav-accent); color: var(--nav); font-weight: 700; font-size: 14px; cursor: pointer; }
.menu { position: absolute; right: 24px; top: 60px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(15,20,32,.16); padding: 8px; min-width: 240px; z-index: 30; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; background: none; border: none; color: var(--ink-2); text-decoration: none; font-size: 14px; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--surface-2); color: var(--ink); }
.menu .who { padding: 8px 12px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }

/* ---------- page */
main.page { max-width: 1360px; margin: 0 auto; padding: 32px 24px 72px; display: flex; flex-direction: column; gap: 24px; }
.head h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.head p { margin-top: 6px; color: var(--muted); max-width: 780px; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel h2 { font-size: 17px; font-weight: 600; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split > .main { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split > .side { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.grid-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.kpi .label { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi .value { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; }
.kpi .sub { font-size: 13px; color: var(--faint); margin-top: 4px; }
.empty { padding: 36px; background: var(--surface); border: 1px dashed #D5DAE1; border-radius: var(--radius); text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 14px; align-items: center; }

/* ---------- controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 0 16px; min-height: 44px; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; border: 1px solid var(--input); background: var(--surface); color: var(--ink-2); white-space: nowrap; }
.btn:hover { border-color: #9AA3B0; color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); color: #fff; }
.btn.soft { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.btn.danger { color: var(--low-ink); border-color: #E7B7B2; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.on { background: var(--high-soft); color: var(--high); border-color: var(--high-line); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { flex: none; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.input, select.input, textarea.input { font-size: 15px; font-weight: 400; border: 1px solid var(--input); border-radius: 10px; padding: 0 12px; min-height: 44px; background: var(--surface); color: var(--ink); width: 100%; }
textarea.input { padding: 10px 12px; resize: vertical; }
.input.mono { font-family: var(--mono); font-size: 14px; }
.input:focus, .btn:focus-visible, .chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.hint { font-size: 13px; color: var(--muted); font-weight: 400; }
.req { font-size: 12px; font-weight: 600; color: var(--low-ink); }
.opt { font-size: 12px; font-weight: 500; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 14px; font-weight: 500; border-radius: 999px; padding: 0 16px; min-height: 40px; cursor: pointer; background: var(--surface); color: var(--ink-2); border: 1px solid #D5DAE1; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.searchbox { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid #D5DAE1; border-radius: 10px; padding: 0 12px; min-height: 44px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.tb-search { flex: 1 1 150px; min-width: 120px; min-height: 40px; }
.tb-group { display: contents; }
.tb-field { display: flex; flex: 0 1 110px; min-width: 64px; }
.tb-field .input { min-height: 40px; font-size: 13px; width: 100%; padding: 0 4px 0 8px; color: var(--ink-2); }
.tb-field .input.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent); }
.tb-sort { flex: 0 1 190px; }
.tb-lab { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.toolbar .btn { min-height: 40px; }
@media (max-width: 900px) { .toolbar { flex-wrap: wrap; } .tb-search { flex-basis: 100% !important; } .tb-field { flex: 1 1 40% !important; } }
@media (min-width: 901px) { .toolbar { flex-wrap: nowrap; } }
.searchbox input { border: none; outline: none; background: transparent; min-width: 0; flex: 1; font-size: 14px; }

/* ---------- tags */
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.tag .sw { width: 8px; height: 8px; border-radius: 50%; }
.pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill.passed, .pill.good, .pill.accepted { color: var(--high); background: var(--high-soft); }
.pill.warnings, .pill.warn, .pill.pending { color: var(--med-ink); background: var(--med-soft); }
.pill.failed, .pill.fail, .pill.interrupted, .pill.declined { color: var(--low-ink); background: var(--low-soft); }
.pill.running, .pill.queued, .pill.info { color: var(--accent-ink); background: var(--accent-soft); }
.pill.neutral, .pill.notrun { color: var(--text); background: var(--surface-2); }
.reason { font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: 6px; }
.reason.match { background: var(--high-soft); color: #0B5A42; }
.reason.diff { background: var(--med-soft); color: #7A4800; }
.repo { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--ink); color: #fff; }

/* confidence meter */
.meter { display: flex; gap: 4px; } .meter span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.meter.sm { gap: 3px; } .meter.sm span { width: 14px; flex: none; }
.meter.High span { background: var(--high); }
.meter.Medium span:nth-child(-n+2) { background: var(--med); }
.meter.Low span:first-child { background: var(--low); }
.c-High { color: var(--high); } .c-Medium { color: var(--med-ink); } .c-Low { color: var(--low-ink); }

/* ---------- data cards */
.dcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.dcard h3 { font-size: 16px; font-weight: 600; line-height: 1.35; }
.dcard dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; font-size: 13px; }
.dcard dt { color: var(--muted); font-size: 12px; } .dcard dd { margin: 2px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.dcard .conf { border-top: 1px solid var(--line-2); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar { display: grid; grid-template-columns: minmax(90px, 160px) minmax(0, 1fr) 48px; align-items: center; gap: 10px; font-size: 13px; }
.bar .track { background: var(--line-2); border-radius: 4px; height: 10px; } .bar .fill { height: 10px; border-radius: 4px; background: var(--accent); }
.bar .n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
/* chart boxes take their height from the Metadata confidence box and scroll inside */
.chart-panel { display: flex; flex-direction: column; min-width: 0; }
.bars-scroll { flex: 1 1 auto; height: 0; min-height: 140px; overflow-y: auto; padding-right: 8px; scrollbar-width: thin; scrollbar-color: #C9CFD8 transparent; }
.bars-scroll::-webkit-scrollbar { width: 6px; } .bars-scroll::-webkit-scrollbar-thumb { background: #C9CFD8; border-radius: 3px; }
.bars-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.bars-scroll.more { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent); }
@media (max-width: 979px) { .bars-scroll { height: auto; max-height: 320px; } }
.stacked { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; background: var(--line-2); }
.legend { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.legend div { display: flex; justify-content: space-between; }
.legend .key { display: inline-flex; align-items: center; gap: 8px; } .legend .key i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.kpi-btn { text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; }
.kpi-btn:hover:not(:disabled) { border-color: var(--accent-line); box-shadow: 0 2px 8px rgba(43,63,214,.08); }
.kpi-btn:hover:not(:disabled) .sub { color: var(--accent); }
.kpi-btn:disabled { cursor: default; }
.mini-btn { font: inherit; color: inherit; border: 1px solid transparent; cursor: pointer; background: var(--ground); border-radius: 8px; padding: 10px 6px; }
.mini-btn:hover:not(:disabled) { border-color: var(--accent-line); background: var(--accent-soft); }
.mini-btn:disabled { cursor: default; opacity: .7; }
.mini-btn b { font-size: 20px; display: block; } .mini-btn span { font-size: 12px; color: var(--muted); }
#cards-h { scroll-margin-top: 84px; }
.mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.mini > div { background: var(--ground); border-radius: 8px; padding: 10px 6px; } .mini b { font-size: 20px; display: block; } .mini span { font-size: 12px; color: var(--muted); }
.progress { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; } .progress > div { height: 100%; background: var(--accent); border-radius: 4px; transition: width .4s; }

/* ---------- steps */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps .mk { flex: 0 0 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--line-2); color: var(--muted); }
.steps .done .mk { background: var(--high); color: #fff; } .steps .running .mk { background: var(--accent); color: #fff; } .steps .skipped .mk { background: var(--surface-2); color: var(--faint); }
.steps b { font-size: 14px; display: block; } .steps span { font-size: 13px; color: var(--muted); }
.kv { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-2); padding-bottom: 10px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

/* ---------- tables */
.tablewrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.t td, table.t tbody th { padding: 11px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.t tbody th { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); white-space: nowrap; }
table.t .num { text-align: right; font-variant-numeric: tabular-nums; }
.ev { font-size: 13px; color: var(--muted); } .ev .src { font-weight: 600; color: var(--text); }
.ev details summary { cursor: pointer; color: var(--accent); font-size: 12px; margin-top: 4px; }
.ev ul { margin: 6px 0 0; padding-left: 16px; }
.conflict { font-size: 12px; color: var(--med-ink); font-weight: 600; margin-top: 4px; }
.flag { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 10px 12px; border-radius: 10px; background: var(--med-soft); color: #5C3800; }
.flag.fail { background: var(--low-soft); color: #6E140F; }
.chart { display: flex; align-items: flex-end; gap: 2px; height: 140px; border-bottom: 1px solid var(--input); padding-top: 8px; }
.chart span { flex: 1; border-radius: 3px 3px 0 0; background: var(--accent); min-width: 2px; max-width: 40px; }
.chart span.low { background: var(--low); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile { background: var(--ground); border-radius: 10px; padding: 14px; }
.tile .k { font-size: 12px; color: var(--muted); } .tile .v { font-size: 22px; font-weight: 700; margin-top: 4px; } .tile .s { font-size: 12px; font-weight: 600; margin-top: 4px; }
.tile .s.good { color: var(--high); } .tile .s.warn { color: var(--med-ink); } .tile .s.fail { color: var(--low-ink); } .tile .s.info { color: var(--muted); font-weight: 500; }

/* ---------- discover */
.result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-wrap: wrap; gap: 16px 24px; }
.sim { flex: 0 0 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--accent-soft); border-radius: 10px; padding: 10px 0; color: var(--accent-ink); }
.sim b { font-size: 22px; } .sim span { font-size: 11px; font-weight: 600; }
.result .body { flex: 999 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.result .act { flex: 1 1 180px; display: flex; flex-direction: column; gap: 8px; justify-content: center; font-size: 12px; color: var(--muted); }
.tray { background: var(--nav); color: #fff; border-radius: 14px; padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.tray table.t th { color: var(--nav-text); border-color: var(--nav-line); } .tray table.t td, .tray table.t tbody th { border-color: var(--nav-active); color: #fff; }
.notice { font-size: 13px; padding: 10px 12px; border-radius: 10px; background: var(--med-soft); color: #5C3800; }
.notice.info { background: var(--accent-soft); color: var(--accent-ink); }

/* ---------- network */
.radio-card { display: flex; gap: 12px; align-items: flex-start; border-radius: 10px; padding: 14px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); }
.radio-card:has(input:checked) { border: 2px solid var(--accent); background: #F6F7FE; padding: 13px; }
.radio-card input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }

/* ---------- board */
.board { overflow-x: auto; padding-bottom: 6px; }
.board-in { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; min-width: 1000px; }
.col { background: #ECEEF2; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.col.drop { outline: 2px dashed var(--accent); outline-offset: -4px; background: #E6E9F7; }
.col h2 { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; min-width: 0; }
.col > .row { flex-wrap: nowrap; }
.col h2 i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.count { font-size: 12px; font-weight: 700; color: var(--text); background: var(--surface); border-radius: 999px; padding: 2px 8px; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.kcard[draggable="true"] { cursor: grab; }
.kcard h3 { font-size: 14px; font-weight: 600; line-height: 1.35; }
.kcard h3 a { color: var(--ink); text-decoration: none; } .kcard h3 a:hover { color: var(--accent); }
.timeline { display: flex; flex-direction: column; gap: 10px; min-width: 760px; }
.tl-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px; align-items: center; }
.tl-track { position: relative; height: 28px; background: var(--ground); border-radius: 6px; }
.tl-bar { position: absolute; top: 5px; height: 18px; border-radius: 4px; background: var(--med); }
.tl-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); }
.tl-label { position: absolute; top: 5px; font-size: 12px; font-weight: 600; padding-left: 8px; white-space: nowrap; }
.tl-months { display: grid; font-size: 12px; color: var(--muted); }

/* ---------- auth */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--nav); }
.auth-box { background: var(--surface); border-radius: 16px; padding: 32px; width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 16px; }
.auth-box .brand { color: var(--ink); } .auth-box h1 { font-size: 22px; }
.err { color: var(--low-ink); font-size: 14px; font-weight: 500; }
.tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 10px; }
.tabs button { flex: 1; border: none; background: none; padding: 10px; border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* ---------- modal & toast */
.overlay { position: fixed; inset: 0; background: rgba(15,20,32,.45); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; z-index: 50; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 14px; width: 100%; max-width: 720px; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.modal h2 { font-size: 18px; }
.fs-list { border: 1px solid var(--line); border-radius: 10px; max-height: 50vh; overflow-y: auto; }
.fs-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line-2); font-size: 14px; cursor: pointer; background: none; border-left: none; border-right: none; border-top: none; width: 100%; text-align: left; }
.fs-item:hover, .fs-item.sel { background: var(--accent-soft); }
.fs-item .sz { margin-left: auto; color: var(--faint); font-size: 12px; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; display: none; z-index: 60; max-width: 90vw; }
#toast.show { display: block; }

@media (max-width: 640px) {
  main.page { padding: 20px 16px 56px; }
  .top { padding: 0 16px; } .top-right .status-text { display: none; }
  .head h1 { font-size: 24px; }
  .bar { grid-template-columns: 90px minmax(0, 1fr) 40px; }
  .panel { padding: 16px; }
}

@media print {
  .top, .btn, #toast, .menu, nav[aria-label="Breadcrumb"] { display: none !important; }
  body, html { background: #fff; }
  main.page { padding: 0; }
  .panel, .dcard { border-color: #ccc; break-inside: avoid; }
  details { display: block; } details > * { display: block; }
}

/* ---------- dataset list (Data Board) */
.dlist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.dlist > .dl-head { border-radius: var(--radius) var(--radius) 0 0; }
#dlbody > :last-child { border-radius: 0 0 var(--radius) var(--radius); }
.dl-head, .dl-row { display: grid; grid-template-columns: minmax(0, 1fr) 78px 86px 132px 132px; gap: 0 10px; padding: 0 18px; align-items: center; }
.dl-head { background: var(--ground); border-bottom: 1px solid var(--line); padding-top: 10px; padding-bottom: 10px; align-items: start; position: sticky; top: 64px; z-index: 5; }
.dl-head .dl-c { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dl-head .dl-main { flex-direction: row; gap: 4px; align-items: center; }
.sortbtn { font: inherit; font-size: 11px; font-weight: 700; color: var(--muted); background: none; border: none; padding: 4px 2px; cursor: pointer; text-align: left; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.sortbtn:hover, .sortbtn.on { color: var(--accent-ink); }
.sortbtn span { font-size: 13px; letter-spacing: 0; }
.hfilter { min-height: 32px !important; font-size: 12px !important; padding: 0 4px 0 8px !important; border-radius: 8px !important; width: 100%; }
.hfilter.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.dl-year { display: flex; align-items: baseline; gap: 10px; padding: 7px 18px 5px; background: #F8F9FB; border-bottom: 1px solid var(--line-2); font-size: 12px; font-weight: 700; color: var(--text); letter-spacing: .04em; }
.dl-row { padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); color: inherit; text-decoration: none; }
.dl-row:last-child { border-bottom: none; }
.dl-row:hover { background: #F7F8FE; color: inherit; }
.dl-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.dl-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dl-l1 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.dl-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.dl-row:hover .dl-name { color: var(--accent-ink); }
.dl-l2 { font-size: 13px; color: var(--text); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.dl-l3 { font-size: 12px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 2px 14px; }
.dl-l3 .mono { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.dl-why { display: block; margin-top: 4px; line-height: 1.3; }
.dl-row .dl-c .pill { display: inline-block; }
.stage-chip { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.stage-chip.s-embargoed { border-color: #EBC98F; color: #7A4800; }
.stage-chip.s-metadata_public { border-color: #CDBDF5; color: #5B21B6; }
.stage-chip.s-public { border-color: var(--high-line); color: var(--high); }
.confcell { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 8px; align-items: center; font-size: 14px; }
.confcell .tiny { grid-column: 2; }
.cbar { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.cbar-fill { display: block; height: 100%; border-radius: 4px; }
.cbar-fill.good { background: var(--high); } .cbar-fill.warn { background: var(--med); } .cbar-fill.fail { background: var(--low); }
.bar-special span:first-child { font-style: italic; color: var(--muted); }
@media (max-width: 1100px) {
  .dl-head, .dl-row { grid-template-columns: minmax(0, 1fr) 72px 80px 104px 120px; gap: 0 8px; }
}
@media (max-width: 860px) {
  .dl-head { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sortbtn { white-space: normal; }
  .dl-head .dl-main { grid-column: 1 / -1; }
  .dl-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dl-row .dl-main { grid-column: 1 / -1; }
  .dl-row .dl-c[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
}

.dl-head .dl-c:not(.dl-main) .sortbtn { white-space: normal; line-height: 1.25; }
.dl-row .dl-c:not(.dl-main) .pill { font-size: 11px; padding: 3px 8px; white-space: normal; line-height: 1.25; }
.confcell { grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto; font-size: 13px; }

/* ---------- compact list rows (title / project name / details / tags) */
.dl-head, .dl-row { grid-template-columns: minmax(0, 1fr) 96px 104px 132px 156px; gap: 0 8px; padding-right: 12px; }
.dl-row { padding-top: 9px; padding-bottom: 9px; align-items: center; }
.dl-main { gap: 1px; }
.dl-title { font-size: 15px; font-weight: 650; color: var(--ink); line-height: 1.3; }
.dl-row:hover .dl-title { color: var(--accent-ink); }
.dl-code, .pname { font-family: var(--mono); font-size: 12px; color: var(--faint); overflow-wrap: anywhere; line-height: 1.35; }
.pname span { font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-right: 6px; }
.dl-d { font-size: 12.5px; color: var(--text); line-height: 1.4; }
.dl-path { display: flex; flex-wrap: wrap; gap: 0 14px; color: var(--faint); }
.dl-path .mono { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.dl-tags { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 4px; }
.dl-tags .tag, .dl-tags .pill { font-size: 11px; padding: 2px 8px; }
.dl-tags .stage-chip { font-size: 11px; padding: 1px 8px; }
.sbadge { display: block; width: 100%; text-align: center; font-size: 13px; font-weight: 700; padding: 7px 4px; border-radius: 8px; line-height: 1.2; }
.sbadge.good { color: var(--high); background: var(--high-soft); } .sbadge.warn { color: var(--med-ink); background: var(--med-soft); }
.sbadge.fail { color: var(--low-ink); background: var(--low-soft); } .sbadge.info { color: var(--accent-ink); background: var(--accent-soft); }
.sbadge.neutral { color: var(--muted); background: var(--surface-2); font-weight: 600; }
.sconf { display: flex; flex-direction: column; gap: 4px; padding: 5px 8px; border-radius: 8px; }
.sconf b { font-size: 16px; line-height: 1; }
.sconf.good { background: var(--high-soft); color: var(--high); } .sconf.warn { background: var(--med-soft); color: var(--med-ink); } .sconf.fail { background: var(--low-soft); color: var(--low-ink); }
.sconf .cbar { background: rgba(255,255,255,.75); height: 7px; }
.dl-why { display: block; text-align: center; font-size: 11px; color: var(--muted); margin-top: 3px; }
.dl-head .dl-c:not(.dl-main) { align-items: center; }
.dl-head .dl-c:not(.dl-main) .sortbtn { text-align: center; }
@media (max-width: 1100px) { .dl-head, .dl-row { grid-template-columns: minmax(0, 1fr) 84px 92px 112px 132px; } }
@media (max-width: 860px) {
  .dl-head, .dl-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-right: 18px; }
  .sbadge { text-align: left; padding: 6px 10px; } .dl-why { text-align: left; }
  .dl-head .dl-c:not(.dl-main) { align-items: flex-start; }
}
.dl-head .dl-c:not(.dl-main) .sortbtn { white-space: nowrap; letter-spacing: .02em; }
.sconf { align-items: center; }
.sconf .cbar { align-self: stretch; }
@media (max-width: 860px) { .sconf { align-items: flex-start; } }

/* ---------- year filter on the statistics boxes */
.box-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.box-head h2 { font-size: 17px; font-weight: 600; margin: 0; }
.panel.stack .box-head { margin-bottom: 0; }
.yearbtn { font: inherit; font-size: 12px; font-weight: 600; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; min-height: 28px; cursor: pointer; white-space: nowrap; flex: none; }
.yearbtn:hover { border-color: var(--accent-line); color: var(--accent-ink); }
.yearbtn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.yearbtn span { font-size: 10px; margin-left: 2px; }
.yearmenu { position: absolute; z-index: 40; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15,20,32,.16); padding: 6px; min-width: 190px; display: flex; flex-direction: column; }
.yearmenu button { display: flex; justify-content: space-between; gap: 14px; align-items: center; font: inherit; font-size: 14px; text-align: left; background: none; border: none; border-radius: 8px; padding: 9px 10px; cursor: pointer; color: var(--ink-2); }
.yearmenu button:hover, .yearmenu button:focus-visible { background: var(--surface-2); outline: none; }
.yearmenu button[aria-checked="true"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.yearmenu .n { font-size: 12px; color: var(--faint); font-weight: 400; }

/* ---------- discover: carousel of in-house datasets */
.carousel { padding: 18px 18px 14px; }
.car-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 2px; padding: 2px 2px 10px; scrollbar-width: thin; scrollbar-color: #C9CFD8 transparent; }
.car-track::-webkit-scrollbar { height: 6px; } .car-track::-webkit-scrollbar-thumb { background: #C9CFD8; border-radius: 3px; }
.car-card { flex: 0 0 240px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; text-align: left; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; min-height: 150px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.car-card:hover { border-color: var(--accent-line); box-shadow: 0 4px 14px rgba(43,63,214,.08); transform: translateY(-1px); }
.car-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.car-card.sel { border: 2px solid var(--accent); background: #F6F7FE; padding: 11px 13px; }
.car-tick { display: none; font-size: 11px; font-weight: 700; color: var(--accent-ink); white-space: nowrap; }
.car-card.sel .car-tick { display: inline; }
.car-card .tag { font-size: 11px; padding: 2px 8px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.car-title { font-size: 14px; font-weight: 650; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; }
.car-code { font-family: var(--mono); font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.car-meta { font-size: 12px; color: var(--text); margin-top: auto; }
.car-conf { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 12px; }
.car-nav { min-width: 36px; font-size: 18px; padding: 0; }
.searchbox.flash { box-shadow: 0 0 0 3px var(--accent-line); border-color: var(--accent) !important; transition: box-shadow .2s; }
.repo-ls { background: var(--accent); }
@media (max-width: 640px) { .car-card { flex-basis: 78%; } }
.car-card .tag .sw { flex: none; }

/* ---------- compact "what other labs can see" selector */
.seg { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.seg legend { font-size: 14px; font-weight: 500; margin-bottom: 6px; padding: 0; }
.seg-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.seg-opt { position: relative; display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 8px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); text-align: center; }
.seg-opt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-opt:hover { color: var(--ink); }
.seg-opt:has(input:checked) { background: var(--surface); color: var(--accent-ink); box-shadow: 0 1px 3px rgba(15,20,32,.12); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.seg .hint { margin: 0; }
@media (max-width: 700px) { .seg-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.board { min-width: 0; max-width: 100%; }
main.page > *, .tablewrap { min-width: 0; max-width: 100%; }
.board, .tablewrap, .car-track, .bars-scroll { position: relative; }

/* ---------- "what other labs can see": one compact line per option */
.lvl { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lvl legend { font-size: 14px; font-weight: 500; margin-bottom: 8px; padding: 0; }
.lvl-row { display: grid; grid-template-columns: 18px 210px minmax(0, 1fr); align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--surface); }
.lvl-row:hover { border-color: var(--accent-line); }
.lvl-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.lvl-row b { font-size: 14px; font-weight: 600; color: var(--ink); }
.lvl-row span { font-size: 13px; color: var(--muted); }
.lvl-row:has(input:checked) { border-color: var(--accent); background: #F6F7FE; box-shadow: inset 0 0 0 1px var(--accent); }
.lvl-row:has(input:checked) b { color: var(--accent-ink); }
@media (max-width: 700px) { .lvl-row { grid-template-columns: 18px minmax(0, 1fr); } .lvl-row span { grid-column: 2; } }

/* ---------- release stages: columns show about three cards, then scroll */
.col { min-height: 0; }
.col-head { padding: 4px 4px 2px; flex-wrap: nowrap; }
.col-list { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding: 2px 2px 4px; margin: 0 -2px; scrollbar-width: thin; scrollbar-color: #C9CFD8 transparent; position: relative; }
.col-list::-webkit-scrollbar { width: 6px; } .col-list::-webkit-scrollbar-thumb { background: #C9CFD8; border-radius: 3px; }
.col-list:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.col-list.more { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent); }
.kcard { flex: none; }

/* project consistency */
.cons .panel-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.cbadge { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.cbadge.ok { background: var(--high-soft); color: var(--high); } .cbadge.warn { background: var(--med-soft); color: var(--med-ink); }
.cbadge.fail { background: var(--low-soft); color: var(--low-ink); } .cbadge.info { background: var(--surface-2); color: var(--muted); }
.clist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 10px; }
.clist li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--ground); font-size: 14px; min-width: 0; }
.clist li > div { min-width: 0; overflow-wrap: anywhere; }
.clist li.fail { background: var(--low-soft); } .clist li.warn { background: var(--med-soft); }
.clist .cm { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--faint); }
.clist li.ok .cm { background: var(--high); } .clist li.warn .cm { background: var(--med); } .clist li.fail .cm { background: var(--low); }
.clist details { margin-top: 4px; } .clist summary { cursor: pointer; color: var(--accent-ink); }
.hdrkv { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 20px; }
.sheetbox { max-height: 460px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; position: relative; max-width: 100%; }
table.t.sheet { font-size: 13px; } table.t.sheet th { position: sticky; top: 0; background: var(--surface); z-index: 1; white-space: nowrap; }
table.t.sheet td { white-space: nowrap; padding: 6px 10px; border-bottom: 1px solid var(--line-2); }
table.t.sheet th.xcol { color: var(--accent-ink); }

/* relevance */
.rel-chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent-line); white-space: nowrap; }
.relpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 4px 0 8px; }
.relopt { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; cursor: pointer; }
.relopt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

/* detailed metadata template */
.tpl .panel-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.tbars { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.tbar { display: flex; flex-direction: column; gap: 6px; }
.tbar .cbar { display: block; width: 100%; }
.cbar-fill.neutral { background: var(--faint); }
details.tlevel { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; min-width: 0; max-width: 100%; }
details.tlevel > summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
details.tlevel[open] > summary { margin-bottom: 6px; }
table.tplt th[scope=row] { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); font-weight: 600; max-width: 320px; }
table.tplt th[scope=row] .tl { margin-right: 6px; }
.rq { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; vertical-align: 1px; }
.rq.required { background: var(--low-soft); color: var(--low-ink); } .rq.recommended { background: var(--med-soft); color: var(--med-ink); }
.rq.optional, .rq.cond { background: var(--surface-2); color: var(--muted); }
.tpl select.input { width: 260px; max-width: 100%; }
.tpl .panel-head > div { min-width: 0; max-width: 100%; }
.tpl .tb-field { min-width: 0; max-width: 100%; }
table.tplt th[scope=row] { white-space: normal; width: 34%; overflow-wrap: anywhere; }
table.tplt td { overflow-wrap: anywhere; }
.chart { max-width: 100%; overflow-x: auto; position: relative; }
.side .panel, .cons, .tpl, .panel .small { overflow-wrap: anywhere; }

/* Network & Colab map */
.netpanel { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.netstats { display: flex; gap: 22px; font-size: 13px; color: var(--muted); }
.netstats b { display: block; font-size: 22px; color: var(--ink); line-height: 1.1; }
.netmapbox { position: relative; isolation: isolate; z-index: 0; height: 600px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
#netmap { position: absolute; inset: 0; background: var(--map-sea); }
@media (max-width: 900px) { .netmapbox { height: 420px; } .netstats { gap: 14px; } }
.netshowing { position: absolute; z-index: 800; top: 12px; right: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; max-width: calc(100% - 70px);
  background: rgba(255,255,255,.96); border: 1px solid #F59E0B; border-radius: 10px; padding: 6px 8px 6px 12px; font-size: 13px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.netlist { display: flex; gap: 8px 10px; align-items: baseline; flex-wrap: wrap; }
.netchips { display: flex; flex-wrap: wrap; gap: 6px; }
.netchip { font: inherit; font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.netchip:hover { border-color: var(--accent); color: var(--accent-ink); }
.netchip.mine { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); }
.modal.wide { width: min(920px, 100%); max-width: 920px; }
.nlab-detail h4 { margin: 14px 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.nlab-detail p { margin: 0; }
.nl-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0 28px; }
button.nlab { width: 100%; text-align: left; font: inherit; color: inherit; }
.netlegend { position: absolute; z-index: 800; left: 12px; bottom: 18px; background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 12px; color: var(--muted); }
.netlegend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.npin { background: #0EA5A0; color: #fff; border: 2px solid #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3); transition: transform .12s; cursor: pointer; }
.npin:hover { transform: scale(1.12); }
.npin.mine { background: var(--accent); }
.npin.sel { background: var(--accent-ink); box-shadow: 0 0 0 4px rgba(43,63,214,.25), 0 2px 8px rgba(0,0,0,.3); }
.npin.partner { background: #F59E0B; }
.npin.dim { background: #B7BEC7; }
.nl-inst { font-size: 16px; margin: 10px 0 2px; }
.nlab { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 10px; background: var(--surface); cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.nlab:hover, .nlab:focus-visible { border-color: var(--accent-line); outline: none; }
.nlab.open { border-color: var(--accent); cursor: default; box-shadow: 0 2px 12px rgba(43,63,214,.12); }
.nlab h4 { margin: 10px 0 0; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.nlab p { margin: 0; }
.nl-title { font-weight: 700; font-size: 15px; color: var(--ink); }
.nl-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); }
.nl-k { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.nchips { display: flex; flex-wrap: wrap; gap: 5px; }
.nchip { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #E6F6F5; color: #0B6F6B; }
.nchip b { font-weight: 800; margin-left: 2px; }
.nchip.rel { background: var(--accent-soft); color: var(--accent-ink); }
.nl-proj { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; padding: 7px 0; border-top: 1px solid var(--line-2); font-size: 13px; }
.nl-proj:first-of-type { border-top: 0; }
.nl-partner { display: flex; justify-content: space-between; width: 100%; gap: 8px; text-align: left; background: none; border: 0; border-top: 1px solid var(--line-2);
  padding: 7px 0; font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.nl-partner:hover { color: var(--accent-ink); }
.leaflet-container { font: inherit; }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px 16px; }
.lp-city { position: relative; }
.lp-sugg { position: absolute; z-index: 50; top: 100%; left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 260px; overflow-y: auto; }
.lp-sugg button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 12px; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.lp-sugg button:hover { background: var(--accent-soft); }
.overlay { z-index: 3000; }
