:root {
  --page-gutter:clamp(16px,2.22vw,32px);
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #172d28; background: #eef3ef;
  --ink: #172d28; --muted: #52665e; --edge: #dbe5de; --accent: #126a50;
  --surface: #fff; --soft: #f3f7f4; --radius: 19px;
}
* {box-sizing:border-box}
body {margin:0}
button,input,select {font:inherit}
button {cursor:pointer}
button:disabled {cursor:default;opacity:.46}
:focus-visible {outline:2px solid #167d5c;outline-offset:3px}
[hidden] {display:none!important}
.mast {background:#fcfefc;border-bottom:1px solid var(--edge)}
.mast-inner {width:100%;max-width:none;min-width:0;margin:0;padding:13px var(--page-gutter);display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand,.mast-actions {display:flex;align-items:center;gap:12px}
.brand strong {font-size:22px;line-height:1.05;letter-spacing:-.045em}
.brand small {display:block;color:var(--muted);font-size:11px}
.mark {display:block;flex:none}
.mast-actions {gap:16px}
.mast-actions form {margin:0}
.status {display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}
.status::before {content:"";width:7px;height:7px;border-radius:50%;background:#a16b29;flex:none}
.status[data-live=true]::before {background:#1a8a63;box-shadow:0 0 0 3px #e3f5ea}
.logout,.pages button {background:#fff;color:var(--ink);border:1px solid var(--edge);border-radius:9px;padding:7px 12px;font-size:12px;font-weight:650}
.logout:hover,.pages button:not(:disabled):hover {background:var(--soft)}
main {width:100%;max-width:none;min-width:0;margin:0;padding:22px var(--page-gutter)}
.hero {position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;min-height:163px;padding:25px clamp(22px,4vw,40px);border-radius:24px;color:#effcf5;background:linear-gradient(110deg,#122f29 24%,#194b3b 100%)}
.hero-copy {max-width:650px;position:relative;z-index:1}
.eyebrow,.section-label {font-size:11px;font-weight:750;letter-spacing:.06em}
.eyebrow {color:#a3e4c3}
.section-label {color:var(--accent)}
h1,h2,p {margin:0}
h1 {margin-top:6px;font-size:clamp(32px,4vw,50px);line-height:1.05;letter-spacing:-.055em}
h2 {font-size:20px;line-height:1.25;letter-spacing:-.025em}
.hero p {margin-top:10px;color:#d4e9df;font-size:14px}
.hero-art {position:absolute;right:4%;bottom:-4px;width:30%;height:100%;color:#8fe7b6}
.art-grid {fill:none;stroke:#9bceba;stroke-opacity:.16}
.art-line,.art-shadow {fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}
.art-line {stroke-width:2.5}.art-shadow {stroke-width:10;opacity:.12}.art-dot {fill:#b4f8d2}
.metrics,.grid,.research-layout {display:grid;gap:14px}
.metrics {grid-template-columns:repeat(3,minmax(0,1fr));margin:14px 0 19px}
.metric,.panel {background:var(--surface);border:1px solid var(--edge);border-radius:var(--radius);box-shadow:0 3px 9px #153a2510}
.metric {padding:13px 17px}.metric-accent {background:#e4f4e9;border-color:#c9e5d2}
.metric span,.search span {display:block;font-size:12px;color:var(--muted)}
.metric strong {display:block;font-size:clamp(18px,2.5vw,26px);letter-spacing:-.035em;margin-top:2px;font-variant-numeric:tabular-nums}
.tabs {display:inline-flex;gap:4px;background:#e3ebe5;border:1px solid var(--edge);border-radius:12px;padding:4px;margin-bottom:13px}
.tabs button {border:0;border-radius:8px;background:transparent;padding:7px 13px;color:var(--muted);font-weight:650}
.tabs [aria-pressed=true] {color:var(--ink);background:#fff;box-shadow:0 1px 4px #153a2520}
.grid {grid-template-columns:minmax(0,1.07fr) minmax(0,1fr);align-items:start}
.panel {min-width:0;overflow:hidden}
.heading {padding:16px 18px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.subtitle {margin-top:3px;color:var(--muted);font-size:12px}
.search span {margin-bottom:3px}
.search input,.search select {width:100%;max-width:176px;border:1px solid var(--edge);padding:6px 9px;border-radius:8px;background:var(--soft);color:var(--ink)}
.filters,.pages,.window-metrics {display:flex;gap:8px;flex-wrap:wrap;padding:0 18px 12px;color:var(--muted);font-size:12px}
.filters label {display:flex;align-items:center;gap:5px;border:1px solid var(--edge);border-radius:8px;padding:4px 8px;cursor:pointer}
.filters label:has(:checked) {background:#e4f4e9;border-color:#b9deca;color:#144b39}
.filters input {margin:0;accent-color:var(--accent)}
.table-scroll {min-width:0;max-width:100%;overflow:auto}
table {width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}
th,td {padding:9px 12px;text-align:right;white-space:nowrap;border-bottom:1px solid #eaf0ec}
th {background:var(--soft);color:#475e55;font-size:11px}
th:first-child,td:first-child,th:nth-child(2),td:nth-child(2) {text-align:left}
td button {padding:0;border:0;background:none;color:var(--ink);font-weight:760;text-align:left}
td button:hover {text-decoration:underline}
tbody tr:hover {background:#f3f8f5}
.selected {background:#def1e6!important}
.top {color:var(--accent);font-weight:800}
.up {color:#137253}.down {color:#aa394d}.muted {color:var(--muted)}
.reference-heading th {text-align:left;background:#e6efea;color:#375c4c}
.reference-row {background:#f7faf8}
#references tr:last-child td {border-bottom:2px solid var(--edge)}
.pages {justify-content:space-between;align-items:center;padding:11px 18px}
.window-metrics span {background:#eaf3ee;border-radius:7px;padding:5px 8px}
.chart {margin:0 12px 10px;padding:8px 9px 0;background:#f6f9f7;border:1px solid #e8efea;border-radius:11px}
.chart>span {font-size:12px;color:var(--muted);font-weight:650}
canvas {width:100%;height:154px;display:block}
.hint {margin:3px 18px 13px;color:var(--muted);font-size:12px}
.empty {text-align:center;color:var(--muted);padding:25px}
.signal-close {display:block;font-size:11px;margin-top:2px}
footer {padding-top:18px;color:var(--muted);font-size:12px}
.login-screen {min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at 24% 14%,#28634c 0%,transparent 55%),#102e26}
.login-layout {width:min(100%,456px);padding:24px}
.login-layout>.brand {margin:0 0 18px 3px;color:#f5fff8}
.login-layout .brand small {color:#c0dece}
.login-layout .mark {flex:none}
.login-card {background:white;padding:clamp(21px,6vw,34px);border-radius:22px;box-shadow:0 18px 60px #0004}
.login-card h1 {font-size:34px;margin:0 0 8px}
.login-card p {color:var(--muted);margin-bottom:21px}
.login-card label {display:block;font-size:13px;font-weight:700;margin-bottom:6px}
.login-card input+label {margin-top:13px}
.login-card input,.login-card button {width:100%;min-height:44px;padding:8px 12px;border-radius:9px}
.login-card input {border:1px solid #b9cbc1;color:var(--ink);background:#f9fcfa}
.login-card button {background:#12674e;color:white;border:0;font-weight:750;margin-top:16px}
.login-card button:hover {background:#0d503d}
.login-card .login-error {color:#9d2631;font-size:13px;margin:9px 0 0}
@media(max-width:1050px) {.hero-art {opacity:.65}.grid {grid-template-columns:1fr}}
@media(max-width:550px) {
  .mast-actions {gap:8px}.mast .mark {width:36px;height:36px}.mast .brand {gap:8px}
  .status {max-width:105px;font-size:11px}.hero-art {width:44%;opacity:.3}.hero {min-height:145px}
  .metrics {grid-template-columns:1fr 1fr;gap:8px}.metric:last-child {grid-column:1/-1}
  .metric {padding:9px 12px}.heading {padding-inline:13px}
  th,td {padding:8px 9px}.search input {max-width:154px}
}

.research-daily {font-variant-numeric:tabular-nums}
.research-daily th,.research-daily td {white-space:nowrap;text-align:right}
.research-daily thead th {position:sticky;top:0;z-index:3;background:var(--soft)}
.research-daily thead th:first-child {left:0;z-index:5;text-align:left}
.research-daily tbody th:first-child {position:sticky;left:0;z-index:2;min-width:180px;text-align:left;background:#f2f7f4}
.research-daily tbody tr.research-all-row,.research-daily tbody tr.research-all-row th:first-child {background:#edf6f1}
.research-daily tbody tr.research-week-row,.research-daily tbody tr.research-week-row th:first-child {background:#e9f2ec}
.research-daily tbody tr.research-week-row:hover,.research-daily tbody tr.research-week-row:hover th:first-child {background:#e1eee5}
.research-daily tbody tr.research-day-row th:first-child {background:#fbfdfb}
.research-daily tbody tr.research-day-row:hover th:first-child {background:#f3f8f5}
.research-daily td {vertical-align:top;min-width:92px}
.research-week-row td strong {font-weight:800}
.weekly-toggle {display:inline-flex;align-items:center;gap:6px;text-align:left;background:none;border:0;padding:2px 0;color:var(--ink);font-weight:750}
.weekly-toggle:hover {text-decoration:underline}
.weekly-chevron {width:16px;flex:none;font-size:17px;line-height:1;color:var(--accent);text-align:center}
.weekly-status {display:block;margin-left:22px;font-size:10px;font-weight:500;color:var(--muted)}
.research-day-label {padding-left:22px}
#research-daily-panel .table-scroll {max-height:min(78vh,900px)}
.pager {display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;padding:16px}
.pager span {margin-right:auto;color:var(--muted)}

/* Wide research tables scroll inside panels; all sections share the page width. */
.research-layout {grid-template-columns:minmax(0,1fr)}
.research-layout th,.research-layout td {padding-inline:clamp(6px,.6vw,12px)}
.research-layout thead th {white-space:normal}
.signals-table {table-layout:fixed;min-width:1220px}
.signals-table th:nth-child(1) {width:100px}
.signals-table th:nth-child(2) {width:116px}
.signals-table th:nth-child(3) {width:54px}
.signals-table th:nth-child(4) {width:74px}
.signals-table th:nth-child(5) {width:92px}
.signals-table td:nth-child(2) {white-space:normal;overflow-wrap:anywhere}
.signals-table .signal-close {white-space:normal;overflow-wrap:anywhere;line-height:1.35}

/* Password visibility control on the login form. */
.login-password {position:relative}
.login-password input {padding-right:48px}
.login-card .password-toggle {position:absolute;right:3px;top:50%;transform:translateY(-50%);width:40px;min-height:38px;margin:0;padding:8px;display:grid;place-items:center;background:transparent;color:var(--muted);border:0;border-radius:7px}
.login-card .password-toggle:hover {background:#e4efe9;color:#12674e}
.password-toggle svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.password-toggle .eye-off,.password-toggle[aria-pressed="true"] .eye-on {display:none}
.password-toggle[aria-pressed="true"] .eye-off {display:block}

.collector-health {position:relative;min-width:0}
.collector-health summary {list-style:none;cursor:pointer;padding:4px 8px;border-radius:9px}
.collector-health summary::-webkit-details-marker {display:none}
.collector-health summary:hover {background:var(--soft)}
.collector-health .status {font-weight:700;max-width:none;white-space:nowrap}
.collector-health .status[data-level=ok] {color:#126a50}
.collector-health .status[data-level=ok]::before {background:#1a8a63;box-shadow:0 0 0 3px #e3f5ea}
.collector-health .status[data-level=warning] {color:#8d5b14}
.collector-health .status[data-level=error] {color:#aa394d}
.collector-health .status[data-level=error]::before {background:#bd3949;box-shadow:0 0 0 3px #fce5e8}
.collector-health summary small {display:block;font-size:11px;color:var(--muted);margin-left:14px;white-space:nowrap}
.collector-popover {position:absolute;z-index:20;right:0;top:calc(100% + 8px);width:min(440px,calc(100vw - 32px));max-height:70vh;overflow:auto;background:var(--surface);border:1px solid var(--edge);border-radius:14px;box-shadow:0 12px 32px #172d2822;padding:15px}
.collector-popover h2 {font-size:16px;margin-bottom:6px}
.collector-popover .subtitle {white-space:pre-line}
.collector-streams {margin-top:10px;font-size:12px}
.collector-stream {padding:6px 0;border-top:1px solid var(--edge);overflow-wrap:anywhere}
.collector-stream small {display:block;color:var(--muted)}
@media(max-width:600px){.collector-health summary {padding:3px}.collector-health .status {font-size:11px}.collector-health summary small {font-size:10px}.collector-popover {position:fixed;top:70px;right:16px;left:auto}.mast-actions {gap:6px}}

.collector-popover {width:min(350px,calc(100vw - 32px))}
.collector-health summary .collector-countdown {font-weight:650;color:var(--accent);font-variant-numeric:tabular-nums}
.collector-metrics {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;margin:10px 0;font-size:12px}
.collector-metrics dt {color:var(--muted)}
.collector-metrics dd {margin:0;text-align:right;font-weight:600;font-variant-numeric:tabular-nums}
.collector-technical {border-top:1px solid var(--edge);margin-top:10px;padding-top:6px}
.collector-technical summary {list-style:revert;font-size:12px;color:var(--muted);padding:4px 0}
.collector-technical summary::-webkit-details-marker {display:inline}
.collector-problem {font-size:12px;color:#aa394d}
