:root {
  --harbour-ink: #123536;
  --harbour-deep: #0c292a;
  --harbour-field: #1a4545;
  --paper-ground: #eef2ed;
  --paper-card: #fbfcf9;
  --paper-inset: #e6ebe5;
  --sandstone: #ded6c2;
  --sandstone-soft: #eee9dc;
  --eucalyptus: #12796e;
  --eucalyptus-dark: #0a685f;
  --eucalyptus-bright: #42b5a0;
  --eucalyptus-wash: #d9eee8;
  --skyline: #315f68;
  --amber: #a55f0d;
  --amber-dark: #764408;
  --amber-wash: #f3e4c8;
  --vermilion: #ac433c;
  --vermilion-wash: #f5dfdc;
  --ink-primary: #132624;
  --ink-secondary: #455b56;
  --ink-tertiary: #526963;
  --ink-muted: #5b6f69;
  --line: rgba(18, 53, 54, 0.13);
  --line-strong: rgba(18, 53, 54, 0.24);
  --light-line: rgba(255, 255, 255, 0.16);
  --radius-control: 8px;
  --radius-panel: 14px;
  --space: 4px;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--paper-ground);
  color: var(--ink-primary);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  scrollbar-color: rgba(18, 53, 54, .35) var(--paper-ground);
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; margin: 0; background: var(--paper-ground); }
button, input, select { font: inherit; }
button, a, input, select, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { scroll-margin-top: 92px; }
a { color: inherit; }
::selection { background: var(--eucalyptus); color: #fff; }
* { caret-color: var(--eucalyptus); }

.skip-link {
  position: fixed;
  left: 12px;
  top: 8px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--paper-card);
  color: var(--harbour-ink);
  font-weight: 700;
  transition: transform 160ms cubic-bezier(.23, 1, .32, 1);
}

.skip-link:focus { transform: translateY(0); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--harbour-ink);
  color: #f7faf6;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.brand, .login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand strong, .login-brand strong {
  display: block;
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.brand small, .login-brand small {
  display: block;
  margin-top: 4px;
  color: rgba(239, 248, 244, .58);
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .18em;
}

.brand-mark {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

.brand-mark i {
  position: absolute;
  border: 1px solid rgba(119, 211, 192, .42);
  border-radius: 50%;
}

.brand-mark i:nth-child(1) { width: 34px; height: 34px; }
.brand-mark i:nth-child(2) { width: 23px; height: 23px; }
.brand-mark i:nth-child(3) { width: 10px; height: 10px; }
.brand-mark b {
  position: absolute;
  right: 4px;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--eucalyptus-bright);
}

.topbar-actions { display: flex; align-items: center; gap: 18px; }
.topbar-actions form { margin: 0; }
.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}
.mode-badge > span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mode-shadow { color: #f0ba67; }
.mode-live { color: #76dbc6; }
.quiet-button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-control);
  background: transparent;
  color: rgba(255, 255, 255, .72);
  cursor: pointer;
  transition: color 140ms ease-out, border-color 140ms ease-out, background-color 140ms ease-out;
}
.quiet-button:hover { color: #fff; border-color: rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .06); }
.quiet-button:active { transform: scale(.97); }

.shell { width: min(100%, 1460px); margin: 0 auto; padding: 34px 32px 64px; }

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 24px;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.page-heading p {
  max-width: 70ch;
  margin: 10px 0 0;
  color: var(--ink-secondary);
  font-size: 13px;
  text-wrap: pretty;
}

.export-button, .primary-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--harbour-ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease-out, transform 120ms cubic-bezier(.23, 1, .32, 1);
}

.export-button { gap: 12px; padding: 0 8px 0 16px; }
.export-button small {
  min-width: 38px;
  padding: 5px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .12);
  font-family: Bahnschrift, sans-serif;
  font-size: 9px;
  letter-spacing: .08em;
  text-align: center;
}
.export-button:hover, .primary-button:hover { background: var(--harbour-field); }
.export-button:active, .primary-button:active { transform: scale(.97); }

.freshness-runway {
  min-height: 196px;
  display: grid;
  grid-template-columns: minmax(300px, .75fr) minmax(0, 1.6fr);
  overflow: hidden;
  border-radius: var(--radius-panel);
  background: var(--harbour-ink);
  color: #f5faf6;
  border: 1px solid rgba(7, 28, 29, .24);
}

.runway-focus {
  position: relative;
  min-width: 0;
  padding: 24px 26px;
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  background: var(--harbour-deep);
  border-right: 1px solid var(--light-line);
}

.runway-radar {
  position: relative;
  width: 126px;
  height: 126px;
  border: 1px solid rgba(118, 219, 198, .3);
  border-radius: 50%;
}
.runway-radar::before, .runway-radar::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(118, 219, 198, .22);
  transform-origin: left center;
}
.runway-radar::before { width: 50%; height: 1px; }
.runway-radar::after {
  width: 48%;
  height: 2px;
  background: var(--eucalyptus-bright);
  animation: radar-sweep 4.8s linear infinite;
}
.runway-radar i {
  position: absolute;
  border: 1px solid rgba(118, 219, 198, .18);
  border-radius: 50%;
}
.runway-radar i:nth-child(1) { inset: 21px; }
.runway-radar i:nth-child(2) { inset: 44px; }
.runway-radar b {
  position: absolute;
  right: 22px;
  top: 28px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8de5d2;
  box-shadow: 0 0 0 5px rgba(66, 181, 160, .13);
}

@keyframes radar-sweep { to { transform: rotate(360deg); } }

.live-label, .access-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a4d8cd;
  font-size: 11px;
  font-weight: 700;
}
.live-label i, .access-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--eucalyptus-bright);
}
.runway-focus strong {
  display: block;
  margin-top: 4px;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 64px;
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.runway-focus p { margin: 8px 0 0; color: rgba(240, 248, 244, .62); font-size: 13px; }

.runway-track {
  position: relative;
  min-width: 0;
  padding: 30px 30px 24px;
  display: grid;
  align-content: center;
}
.sweep-line { position: relative; height: 32px; margin: 0 16px 26px; border-top: 1px solid rgba(255, 255, 255, .18); }
.sweep-line::after {
  content: "监测前沿";
  position: absolute;
  right: 0;
  top: -25px;
  color: rgba(255, 255, 255, .48);
  font-size: 10px;
  letter-spacing: .08em;
}
.sweep-line span { position: absolute; top: -5px; width: 9px; height: 9px; border: 2px solid var(--harbour-field); border-radius: 50%; background: #79d8c5; }
.sweep-line span:nth-child(1) { left: 0; }
.sweep-line span:nth-child(2) { left: 50%; }
.sweep-line span:nth-child(3) { right: 0; width: 11px; height: 11px; top: -6px; background: #f0ba67; }
.runway-track dl { margin: 0; display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); }
.runway-track dl > div { min-width: 0; padding: 0 16px; border-left: 1px solid var(--light-line); }
.runway-track dl > div:first-child { padding-left: 0; border-left: 0; }
.runway-track dt { color: rgba(240, 248, 244, .56); font-size: 10px; font-weight: 600; }
.runway-track dd {
  margin: 6px 0 0;
  color: #fff;
  font-family: Bahnschrift, "Microsoft YaHei UI", sans-serif;
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.has-alert { color: var(--vermilion) !important; }
.runway-track .has-alert { color: #ffc0b9 !important; }

.filter-bar {
  margin: 14px 0 30px;
  padding: 12px;
  border-radius: 11px;
  background: var(--sandstone-soft);
  border: 1px solid rgba(121, 105, 73, .16);
}
.filter-bar form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.source-filter { min-width: 240px; display: grid; gap: 5px; }
.source-filter > span, .login-form label > span { color: var(--ink-secondary); font-size: 11px; font-weight: 700; }
select, .login-form input {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  outline: 0;
  background: var(--paper-inset);
  color: var(--ink-primary);
}
select:hover, .login-form input:hover { border-color: rgba(18, 53, 54, .42); }
select:focus, .login-form input:focus { border-color: var(--eucalyptus); box-shadow: 0 0 0 3px rgba(18, 121, 110, .14); }
.check-control {
  position: relative;
  min-height: 42px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-control);
  color: var(--ink-secondary);
  cursor: pointer;
}
.check-control:hover { background: rgba(255, 255, 255, .44); color: var(--ink-primary); }
.check-control input { width: 18px; height: 18px; margin: 0; accent-color: var(--eucalyptus); }
.check-control span { font-size: 12px; font-weight: 700; }
.filter-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.filter-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--harbour-ink);
  border-radius: var(--radius-control);
  background: var(--harbour-ink);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 140ms ease-out, transform 100ms ease-out;
}
.filter-button:hover { background: var(--harbour-field); }
.filter-button:active { transform: scale(.97); }
.clear-filter { min-height: 42px; padding: 0 10px; display: inline-flex; align-items: center; color: var(--ink-secondary); font-size: 12px; text-underline-offset: 3px; }

.operations-grid { display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: 28px; align-items: start; }
.feed-panel, .source-rail { min-width: 0; }
.source-rail { position: sticky; top: 94px; max-height: calc(100vh - 114px); overflow: auto; padding-right: 3px; scrollbar-width: thin; }
.section-heading { min-height: 54px; margin-bottom: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-heading h2 { margin: 0; font-size: 20px; line-height: 1.2; letter-spacing: -.025em; }
.section-heading p { margin: 5px 0 0; color: var(--ink-tertiary); font-size: 11px; }
.section-count { padding-bottom: 2px; color: var(--ink-tertiary); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.listing-list {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--paper-card);
}
.listing-row { padding: 22px 24px 21px 12px; display: grid; grid-template-columns: 31px minmax(0, 1fr); border-top: 1px solid var(--line); }
.listing-row:first-child { border-top: 0; }
.listing-row.is-unread { background: rgba(217, 238, 232, .42); }
.freshness-marker { position: relative; display: flex; justify-content: center; }
.freshness-marker::after { content: ""; position: absolute; top: 17px; bottom: -39px; width: 1px; background: var(--line); }
.listing-row:last-child .freshness-marker::after { display: none; }
.freshness-marker span { z-index: 1; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--ink-muted); }
.is-unread .freshness-marker span { background: var(--eucalyptus); box-shadow: 0 0 0 5px var(--eucalyptus-wash); }
.listing-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.listing-header h3 { margin: 5px 0 0; font-size: 18px; line-height: 1.38; letter-spacing: -.015em; text-wrap: pretty; }
.listing-meta { margin: 0; color: var(--ink-tertiary); font-size: 11px; font-variant-numeric: tabular-nums; }
.new-label { display: inline-block; margin-left: 8px; color: var(--eucalyptus); font-size: 10px; font-weight: 800; }
.rent { flex: 0 0 auto; color: var(--skyline); font-family: Bahnschrift, "Microsoft YaHei UI", sans-serif; font-size: 19px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.location-line { margin: 9px 0 0; color: var(--ink-secondary); font-size: 13px; font-weight: 700; }
.summary { margin: 10px 0 0; color: var(--ink-secondary); line-height: 1.65; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.contact-band { margin: 17px 0 0; display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 1px; overflow: hidden; border-radius: 10px; background: var(--line); }
.contact-band > div { min-width: 0; padding: 11px 13px; background: var(--paper-inset); }
.contact-band dt { color: var(--ink-tertiary); font-size: 10px; font-weight: 700; }
.contact-band dd { margin: 5px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.contact-band small { display: block; margin-top: 2px; color: var(--ink-tertiary); font-size: 9px; font-weight: 400; }
.phone-value { font-family: Bahnschrift, "Microsoft YaHei UI", sans-serif; font-variant-numeric: tabular-nums; }
.contact-status { display: inline-flex; padding: 4px 7px; border-radius: 5px; background: #dfe5df; color: var(--ink-secondary); font-size: 10px; font-weight: 800; }
.status-found_public { background: var(--eucalyptus-wash); color: var(--eucalyptus-dark); }
.status-captcha_required, .status-login_required { background: var(--amber-wash); color: var(--amber); }
.status-parse_failed { background: var(--vermilion-wash); color: var(--vermilion); }
.listing-footer { margin-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.source-links { display: flex; flex-wrap: wrap; gap: 7px; }
.source-links a { min-height: 36px; padding: 0 7px; display: inline-flex; align-items: center; gap: 3px; color: var(--skyline); font-size: 12px; font-weight: 700; text-underline-offset: 3px; }
.source-links svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.row-actions { display: flex; gap: 4px; }
.row-actions form { margin: 0; }
.row-actions button { min-height: 40px; padding: 0 9px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-secondary); font-size: 12px; cursor: pointer; }
.row-actions button:hover { background: var(--paper-inset); color: var(--ink-primary); }
.row-actions .danger-action:hover { background: var(--vermilion-wash); color: var(--vermilion); }

.source-summary { min-height: 44px; margin-bottom: 9px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-radius: 9px; background: var(--harbour-ink); color: rgba(255, 255, 255, .68); font-size: 11px; }
.source-summary strong { color: #fff; font-family: Bahnschrift, sans-serif; font-size: 15px; font-variant-numeric: tabular-nums; }
.source-summary .has-alert { color: #ffc0b9 !important; }
.source-summary .has-alert strong { color: #ffc0b9; }
.source-list { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.source-list > li { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper-card); }
.source-topline { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: start; gap: 9px; }
.source-topline strong { display: block; font-size: 13px; line-height: 1.35; }
.source-topline small { display: block; margin-top: 3px; color: var(--ink-tertiary); font-size: 9px; }
.source-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--ink-muted); }
.status-dot-active, .status-dot-shadow, .status-dot-baselining { background: var(--eucalyptus); }
.status-dot-degraded { background: var(--amber); }
.status-dot-policy_blocked, .status-dot-unsupported_newness { background: var(--vermilion); }
.source-state { padding: 3px 6px; border-radius: 5px; background: var(--paper-inset); color: var(--ink-secondary); font-size: 9px; font-weight: 800; white-space: nowrap; }
.state-active, .state-shadow, .state-baselining { background: var(--eucalyptus-wash); color: var(--eucalyptus-dark); }
.state-degraded { background: var(--amber-wash); color: var(--amber-dark); }
.state-policy_blocked, .state-unsupported_newness { background: var(--vermilion-wash); color: var(--vermilion); }
.source-metrics { margin: 12px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border-radius: 8px; background: var(--line); }
.source-metrics > div { min-width: 0; padding: 8px; background: var(--paper-inset); }
.source-metrics dt { color: var(--ink-tertiary); font-size: 8px; }
.source-metrics dd { margin: 3px 0 0; color: var(--ink-primary); font-size: 9px; font-weight: 700; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.source-error { margin: 8px 0; color: var(--vermilion); font-size: 10px; }
.source-error summary { min-height: 32px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.source-error p { margin: 5px 0 8px; color: var(--ink-secondary); line-height: 1.5; overflow-wrap: anywhere; }
.source-toggle { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--paper-inset); color: var(--ink-secondary); font-size: 11px; font-weight: 700; cursor: pointer; }
.source-toggle:hover { border-color: var(--line-strong); color: var(--ink-primary); }
.source-toggle.is-on:hover { border-color: rgba(165, 95, 13, .3); background: var(--amber-wash); color: var(--amber); }
.candidate-drawer { margin-top: 10px; border: 1px solid var(--line); border-radius: 11px; background: rgba(251, 252, 249, .62); }
.candidate-drawer > summary { min-height: 58px; padding: 10px 13px; display: grid; align-content: center; cursor: pointer; list-style-position: inside; }
.candidate-drawer > summary span { font-size: 12px; font-weight: 800; }
.candidate-drawer > summary small { margin-top: 2px; color: var(--ink-tertiary); font-size: 9px; }
.candidate-drawer[open] > summary { border-bottom: 1px solid var(--line); }
.source-list-candidate { padding: 8px; }
.source-list-candidate > li { border-color: transparent; background: var(--paper-inset); }
.unavailable-drawer > summary span { color: var(--vermilion); }

.empty-state {
  min-height: 410px;
  padding: 38px 28px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--paper-card);
}
.empty-radar { position: relative; width: 104px; height: 104px; border: 1px solid var(--line-strong); border-radius: 50%; }
.empty-radar::before, .empty-radar::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--line-strong); }
.empty-radar::before { width: 45%; height: 1px; transform: rotate(-34deg); transform-origin: left center; }
.empty-radar::after { width: 1px; height: 90%; top: 5%; }
.empty-radar i { position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.empty-radar i:nth-child(1) { inset: 18px; }
.empty-radar i:nth-child(2) { inset: 37px; }
.empty-radar span { position: absolute; right: 20px; top: 24px; width: 8px; height: 8px; border-radius: 50%; background: var(--eucalyptus); box-shadow: 0 0 0 6px var(--eucalyptus-wash); }
.empty-status { margin: 22px 0 0 !important; display: inline-flex; align-items: center; gap: 7px; color: var(--eucalyptus) !important; font-size: 11px !important; font-weight: 800; }
.empty-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--eucalyptus); }
.empty-state h3 { max-width: 520px; margin: 9px 0 6px; font-size: 20px; line-height: 1.35; letter-spacing: -.02em; text-wrap: balance; }
.empty-state > p:last-child { max-width: 540px; margin: 0; color: var(--ink-tertiary); font-size: 12px; line-height: 1.65; text-wrap: pretty; }
.pagination { padding: 18px; display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--ink-tertiary); font-size: 12px; }
.pagination a { min-height: 40px; display: inline-flex; align-items: center; }

.login-shell { min-height: 100vh; padding: 28px; display: grid; place-items: center; background: var(--paper-ground); }
.login-panel { width: min(100%, 980px); min-height: 580px; display: grid; grid-template-columns: 1.18fr .82fr; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--paper-card); }
.login-stage { position: relative; min-width: 0; padding: 36px 42px 46px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; background: var(--harbour-deep); color: #f6faf7; }
.login-brand { position: relative; z-index: 2; }
.login-radar { position: absolute; right: -90px; top: 16px; width: 420px; height: 420px; border: 1px solid rgba(118, 219, 198, .2); border-radius: 50%; }
.login-radar::before, .login-radar::after { content: ""; position: absolute; left: 50%; top: 50%; background: rgba(118, 219, 198, .18); }
.login-radar::before { width: 50%; height: 1px; transform: rotate(30deg); transform-origin: left center; }
.login-radar::after { width: 1px; height: 100%; top: 0; }
.login-radar span { position: absolute; border: 1px solid rgba(118, 219, 198, .13); border-radius: 50%; }
.login-radar span:nth-child(1) { inset: 62px; }
.login-radar span:nth-child(2) { inset: 126px; }
.login-radar span:nth-child(3) { inset: 190px; }
.login-radar b { position: absolute; left: 105px; bottom: 82px; width: 9px; height: 9px; border-radius: 50%; background: var(--eucalyptus-bright); box-shadow: 0 0 0 7px rgba(66, 181, 160, .12); }
.login-radar i { position: absolute; right: 74px; top: 134px; width: 6px; height: 6px; border-radius: 50%; background: #f0ba67; }
.login-copy { position: relative; z-index: 2; max-width: 510px; }
.login-copy h1 { margin: 0; font-size: clamp(42px, 5.4vw, 68px); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.login-copy p { max-width: 38ch; margin: 20px 0 0; color: rgba(240, 248, 244, .68); font-size: 14px; line-height: 1.75; }
.login-access { padding: 42px 36px 34px; display: flex; flex-direction: column; justify-content: center; background: var(--paper-card); }
.login-access-heading { margin-bottom: 28px; }
.access-state { color: var(--eucalyptus); }
.login-access-heading h2 { margin: 10px 0 0; font-size: 24px; line-height: 1.3; letter-spacing: -.025em; }
.login-access-heading p { margin: 5px 0 0; color: var(--ink-tertiary); font-size: 12px; }
.login-form { display: grid; gap: 16px; }
.login-form label { display: grid; gap: 6px; }
.login-form input { background: var(--paper-inset); }
.primary-button { width: 100%; margin-top: 4px; }
.form-error { margin: 0; padding: 10px 11px; border-radius: 7px; background: var(--vermilion-wash); color: var(--vermilion); font-size: 11px; }
.login-boundary { margin: 24px 0 0; color: var(--ink-muted); font-size: 10px; line-height: 1.7; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(18, 121, 110, .3);
  outline-offset: 2px;
}
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .55; }
.htmx-request { cursor: progress; }
.htmx-request button { pointer-events: none; opacity: .58; }

@media (max-width: 1120px) {
  .operations-grid { grid-template-columns: 1fr; }
  .source-rail { position: static; max-height: none; overflow: visible; padding-right: 0; }
  .source-list-active { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .shell { padding-inline: 24px; }
  .freshness-runway { grid-template-columns: 300px minmax(0, 1fr); }
  .runway-focus { grid-template-columns: 96px minmax(0, 1fr); padding: 22px; }
  .runway-radar { width: 96px; height: 96px; }
  .runway-focus strong { font-size: 52px; }
  .runway-track { padding-inline: 22px; }
  .runway-track dl { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .runway-track dl > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .login-panel { grid-template-columns: 1fr 380px; }
  .login-stage { padding-inline: 34px; }
}

@media (max-width: 680px) {
  .topbar { min-height: 64px; padding: 0 15px; }
  .brand-mark { flex-basis: 30px; width: 30px; height: 30px; }
  .brand-mark i:nth-child(1) { width: 30px; height: 30px; }
  .brand-mark i:nth-child(2) { width: 20px; height: 20px; }
  .brand small { display: none; }
  .mode-badge { display: none; }
  .shell { padding: 25px 14px 46px; }
  .page-heading { align-items: flex-start; margin-bottom: 20px; }
  .page-heading h1 { font-size: 31px; }
  .page-heading p { font-size: 12px; }
  .export-button { flex: 0 0 44px; width: 44px; padding: 0; }
  .export-button span { display: none; }
  .export-button small { min-width: 0; background: transparent; padding: 0; }
  .freshness-runway { grid-template-columns: 1fr; min-height: 0; }
  .runway-focus { min-height: 150px; grid-template-columns: 94px minmax(0, 1fr); border-right: 0; border-bottom: 1px solid var(--light-line); }
  .runway-track { padding: 22px 18px 20px; }
  .sweep-line { margin-bottom: 20px; }
  .runway-track dl { gap: 17px 0; }
  .runway-track dl > div { padding: 0 12px; }
  .runway-track dt { font-size: 9px; }
  .runway-track dd { font-size: 16px; }
  .filter-bar { margin-bottom: 24px; }
  .filter-bar form > * { flex: 1 1 100%; }
  .source-filter { min-width: 0; }
  .check-control { flex-basis: calc(50% - 6px) !important; justify-content: center; }
  .filter-actions { margin-left: 0; }
  .filter-button { flex: 1; }
  .section-heading { align-items: flex-end; }
  .section-heading p { max-width: 260px; }
  .listing-row { grid-template-columns: 21px minmax(0, 1fr); padding: 19px 13px 18px 7px; }
  .listing-header { display: block; }
  .listing-header h3 { font-size: 17px; }
  .rent { display: block; margin-top: 8px; }
  .contact-band { grid-template-columns: 1fr; }
  .listing-footer { display: block; }
  .row-actions { margin-top: 8px; justify-content: flex-end; }
  .source-list-active { grid-template-columns: 1fr; }
  .empty-state { min-height: 390px; padding-inline: 20px; }
  .empty-state h3 { font-size: 18px; }
  .login-shell { padding: 12px; align-items: start; }
  .login-panel { min-height: calc(100vh - 24px); grid-template-columns: 1fr; grid-template-rows: 300px 1fr; border-radius: 14px; }
  .login-stage { padding: 26px 24px 28px; }
  .login-radar { width: 310px; height: 310px; right: -100px; top: -5px; }
  .login-copy h1 { font-size: 39px; }
  .login-copy p { margin-top: 12px; font-size: 12px; }
  .login-access { padding: 28px 24px; }
  .login-access-heading { margin-bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
