@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --bg: #08090c;
  --bg-deep: #050609;
  --surface: #101217;
  --surface-2: #15181e;
  --surface-3: #1b1f26;
  --text: #f1f4f7;
  --text-soft: #c2c8d0;
  --muted: #8b939e;
  --muted-2: #626a75;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --ice: #86e7ff;
  --ice-dim: rgba(134, 231, 255, 0.11);
  --green: #68d6a8;
  --amber: #f3b85c;
  --red: #ff7676;
  --chrome: linear-gradient(118deg, #5f6670 0%, #f8fafc 29%, #8c949e 53%, #dce2e8 76%, #646b74 100%);
  --chrome-dark: linear-gradient(120deg, #171a20 0%, #424852 43%, #17191e 66%, #30353d 100%);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --rail: 218px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 80% -20%, rgba(134, 231, 255, 0.06), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
a { color: inherit; }

button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  padding: 26px 16px 20px;
  background: rgba(6, 7, 10, 0.96);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.brand {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--chrome-dark);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 24px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -55%;
  width: 50%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
}

.brand-mark i { position: absolute; left: 7px; width: 12px; height: 1px; background: rgba(255,255,255,.78); }
.brand-mark i:nth-child(1) { top: 8px; }
.brand-mark i:nth-child(2) { top: 13px; width: 8px; }
.brand-mark i:nth-child(3) { top: 18px; width: 10px; }

.brand-name, .mobile-brand {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
}
.brand-name span, .mobile-brand span { color: var(--muted-2); font-weight: 500; }

.nav-list { display: grid; gap: 5px; margin-top: 50px; }
.nav-item {
  min-height: 46px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  text-align: left;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 130ms var(--ease-out);
}
.nav-item svg, .icon-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-item span { font-size: 14px; font-weight: 500; }
.nav-item b { min-width: 22px; padding: 2px 5px; border-radius: 5px; color: var(--text-soft); background: rgba(255,255,255,.06); font: 500 11px/1.5 "IBM Plex Mono", monospace; text-align: center; }
.nav-item.is-active { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.055); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.nav-item.is-active svg { color: var(--ice); }
.nav-item:active, .chrome-button:active, .analyzer-form button:active, .icon-button:active, .watch-button:active, .row-open:active, .mobile-close:active { transform: scale(.97); }

.rail-status { margin-top: auto; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; padding: 14px 10px 4px; border-top: 1px solid var(--line); }
.rail-status strong { display: block; color: var(--text-soft); font-size: 12px; font-weight: 600; }
.rail-status span:not(.status-orbit) { display: block; margin-top: 2px; color: var(--muted-2); font-size: 11px; line-height: 1.35; }
.status-orbit { position: relative; width: 26px; height: 26px; border: 1px solid var(--line-strong); border-radius: 50%; }
.status-orbit::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 12px rgba(134,231,255,.45); }

.main { grid-column: 2; min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(20px, 3vw, 46px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 12, 0.84);
  backdrop-filter: blur(18px) saturate(130%);
}
.mobile-brand { display: none; }
.command-search { position: relative; width: min(580px, 52vw); display: flex; align-items: center; }
.command-search svg { position: absolute; left: 14px; width: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.command-search input {
  width: 100%;
  height: 42px;
  padding: 0 72px 0 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: rgba(255,255,255,.035);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
.command-search input::placeholder { color: var(--muted-2); }
.command-search input:focus { border-color: rgba(134,231,255,.5); background: rgba(255,255,255,.055); box-shadow: 0 0 0 4px var(--ice-dim); outline: none; }
.command-search kbd { position: absolute; right: 10px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: rgba(0,0,0,.28); font: 500 11px/1.5 "IBM Plex Mono", monospace; }
.topbar-meta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.topbar-meta > span { color: var(--muted); font: 500 11px/1 "IBM Plex Mono", monospace; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.live-dot { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(104,214,168,.58); }
.icon-button { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.035); transition: transform 130ms var(--ease-out), border-color 160ms ease, background-color 160ms ease; }
.mobile-filter-button { display: none; }

.workspace { max-width: 1660px; margin: 0 auto; padding: 36px clamp(20px, 3vw, 46px) 64px; }
.view[hidden] { display: none; }
.page-heading { display: flex; justify-content: space-between; gap: 28px; align-items: flex-end; margin-bottom: 28px; }
.eyebrow { margin: 0 0 7px; color: var(--ice); font: 500 11px/1.2 "IBM Plex Mono", monospace; letter-spacing: .12em; }
h1, h2, h3, p { text-wrap: pretty; }
h1 { margin: 0; font-size: clamp(28px, 3.1vw, 46px); line-height: 1.06; letter-spacing: -.045em; font-weight: 650; text-wrap: balance; }
.page-note { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.heading-actions { display: flex; align-items: center; gap: 16px; }
.last-scan { color: var(--muted-2); font: 400 11px/1.4 "IBM Plex Mono", monospace; white-space: nowrap; }
.last-scan time { color: var(--text-soft); }
.chrome-button {
  position: relative;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 10px;
  color: #0b0d11;
  background: var(--chrome);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 30px rgba(0,0,0,.32);
  font-size: 13px;
  font-weight: 700;
  transition: transform 130ms var(--ease-out), filter 180ms ease, box-shadow 180ms ease;
}
.chrome-button::after { content: ""; position: absolute; inset: -80% auto -80% -40%; width: 18%; transform: rotate(18deg); background: rgba(255,255,255,.75); opacity: 0; }
.chrome-button.is-scanning::after { opacity: 1; animation: chrome-scan 1.2s linear infinite; }
.chrome-button.is-scanning .scan-glyph { animation: spin 650ms linear infinite; }
.scan-glyph { width: 14px; height: 14px; border: 2px solid rgba(0,0,0,.28); border-top-color: #0b0d11; border-radius: 50%; }
@keyframes chrome-scan { to { transform: translateX(420px) rotate(18deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

.metrics { display: grid; grid-template-columns: .8fr 1fr .8fr 2fr; border-block: 1px solid var(--line); margin-bottom: 24px; }
.metric { min-width: 0; padding: 17px 20px 18px 0; }
.metric + .metric { padding-left: 20px; border-left: 1px solid var(--line); }
.metric > span, .metric small { display: block; color: var(--muted); font-size: 11px; }
.metric > span { font-family: "IBM Plex Mono", monospace; letter-spacing: .05em; text-transform: uppercase; }
.metric strong { display: block; margin: 8px 0 3px; font-size: clamp(24px, 2.5vw, 34px); line-height: 1; letter-spacing: -.04em; }
.metric-wide strong { padding-top: 3px; font-size: clamp(15px, 1.4vw, 20px); letter-spacing: -.015em; }

.analyzer { position: relative; display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: center; padding: 20px; margin-bottom: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: linear-gradient(105deg, rgba(255,255,255,.055), rgba(255,255,255,.018)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.analyzer::before { content: ""; position: absolute; inset: -1px auto -1px -1px; width: 2px; border-radius: 2px; background: var(--ice); box-shadow: 0 0 18px rgba(134,231,255,.34); }
.analyzer-copy, .panel-heading > div, .feed-toolbar > div { display: flex; gap: 12px; align-items: flex-start; }
.module-index { flex: 0 0 auto; color: var(--muted-2); font: 500 10px/1.4 "IBM Plex Mono", monospace; letter-spacing: .08em; }
.analyzer h2, .panel-heading h2, .feed-toolbar h2 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.analyzer-copy p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.analyzer-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.analyzer-form input { min-width: 0; height: 48px; padding: 0 15px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: rgba(0,0,0,.24); transition: border-color 180ms ease, box-shadow 180ms ease; }
.analyzer-form input::placeholder { color: var(--muted-2); }
.analyzer-form input:focus { border-color: rgba(134,231,255,.5); box-shadow: 0 0 0 4px var(--ice-dim); outline: none; }
.analyzer-form button { min-height: 48px; display: inline-flex; align-items: center; gap: 16px; padding: 0 17px; border: 1px solid var(--line-strong); border-radius: 9px; background: rgba(255,255,255,.08); font-size: 13px; font-weight: 600; transition: transform 130ms var(--ease-out), background-color 180ms ease, border-color 180ms ease; }
.analyzer-form button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.analyzer-result { grid-column: 1 / -1; padding-top: 15px; border-top: 1px solid var(--line); }
.match-strip { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.match-strip > span { align-self: center; color: var(--muted); font: 500 11px/1.4 "IBM Plex Mono", monospace; text-transform: uppercase; }
.mini-match { min-height: 56px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0,0,0,.16); }
.mini-match strong { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-match span { display: block; margin-top: 3px; color: var(--ice); font: 500 11px/1.4 "IBM Plex Mono", monospace; }

.dashboard-grid { display: grid; grid-template-columns: 218px minmax(480px, 1fr) 280px; gap: 16px; align-items: start; }
.filters, .feed-panel, .insight-panel { min-width: 0; }
.filters, .insight-panel { padding: 18px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.018); }
.feed-panel { border-top: 1px solid var(--line); }
.panel-heading, .feed-toolbar { min-height: 48px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.text-button, .activity-heading button { min-height: 32px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.filter-group { min-width: 0; margin: 0; padding: 18px 0; border: 0; border-top: 1px solid var(--line); }
.filter-group legend, .range-heading label { color: var(--muted-2); font: 500 10px/1.4 "IBM Plex Mono", monospace; letter-spacing: .09em; text-transform: uppercase; }
.filter-group legend { padding: 0 0 9px; }
.switch-row { position: relative; min-height: 56px; display: grid; grid-template-columns: 1fr 34px; align-items: center; gap: 8px; cursor: pointer; }
.switch-row span { min-width: 0; }
.switch-row strong, .switch-row small { display: block; }
.switch-row strong { font-size: 13px; font-weight: 500; }
.switch-row small { margin-top: 2px; color: var(--muted-2); font-size: 11px; line-height: 1.3; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row i { position: relative; width: 34px; height: 20px; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--surface-3); transition: border-color 180ms ease, background-color 180ms ease; }
.switch-row i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); transition: transform 180ms var(--ease-out), background-color 180ms ease; }
.switch-row input:checked + i { border-color: rgba(134,231,255,.5); background: var(--ice-dim); }
.switch-row input:checked + i::after { transform: translateX(14px); background: var(--ice); box-shadow: 0 0 10px rgba(134,231,255,.4); }
.switch-row input:focus-visible + i { outline: 2px solid var(--ice); outline-offset: 3px; }
.range-heading { display: flex; justify-content: space-between; align-items: center; }
.range-heading output { color: var(--ice); font: 600 12px/1 "IBM Plex Mono", monospace; }
.range { --range-progress: 60%; width: 100%; height: 28px; margin: 10px 0 0; appearance: none; background: transparent; }
.range::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--ice) 0 var(--range-progress), rgba(255,255,255,.12) var(--range-progress) 100%); }
.range::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -6px; appearance: none; border: 3px solid var(--bg); border-radius: 50%; background: var(--ice); box-shadow: 0 0 0 1px rgba(134,231,255,.6); }
.range::-moz-range-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--ice) 0 var(--range-progress), rgba(255,255,255,.12) var(--range-progress) 100%); }
.range::-moz-range-thumb { width: 12px; height: 12px; border: 3px solid var(--bg); border-radius: 50%; background: var(--ice); box-shadow: 0 0 0 1px rgba(134,231,255,.6); }
.range-labels { display: flex; justify-content: space-between; color: var(--muted-2); font-size: 10px; }
.mobile-close { display: none; }

.feed-toolbar { min-height: 66px; align-items: center; padding: 0 8px; border-bottom: 1px solid var(--line); }
.feed-toolbar h2 b { display: inline-grid; place-items: center; min-width: 24px; height: 21px; margin-left: 5px; border-radius: 5px; color: var(--ice); background: var(--ice-dim); font: 500 11px/1 "IBM Plex Mono", monospace; }
.sort-control { display: flex; align-items: center; gap: 9px; }
.sort-control > span { color: var(--muted-2); font-size: 11px; }
.sort-control select { min-height: 36px; padding: 0 30px 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--text-soft); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b939e' stroke-width='2'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat calc(100% - 9px) center; appearance: none; font-size: 11px; }
.vacancy-list { display: grid; }
.vacancy-row { position: relative; display: grid; grid-template-columns: 50px minmax(0, 1fr) 130px 42px; gap: 14px; align-items: center; min-height: 118px; padding: 16px 8px; border-bottom: 1px solid var(--line); transition: background-color 170ms ease, border-color 170ms ease; }
.risk-score { position: relative; width: 46px; height: 46px; display: grid; place-items: center; }
.risk-score svg { position: absolute; inset: 0; width: 46px; height: 46px; transform: rotate(-90deg); }
.risk-score circle { fill: none; stroke-width: 2.4; }
.risk-score .track { stroke: rgba(255,255,255,.1); }
.risk-score .value { stroke: var(--risk-color); stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: calc(113.1 - 113.1 * var(--risk) / 100); }
.risk-score strong { font: 600 12px/1 "IBM Plex Mono", monospace; }
.vacancy-main { min-width: 0; }
.vacancy-meta { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; color: var(--muted-2); font: 500 10px/1.3 "IBM Plex Mono", monospace; text-transform: uppercase; }
.vacancy-meta .risk-label { color: var(--risk-color); }
.vacancy-main h3 { margin: 0; font-size: 14px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
.employer { margin: 4px 0 0; color: var(--text-soft); font-size: 12px; }
.signal-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.signal-tag { padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: rgba(255,255,255,.02); font: 400 10px/1.3 "IBM Plex Mono", monospace; }
.vacancy-pay { text-align: right; }
.vacancy-pay strong { display: block; font: 600 13px/1.35 "IBM Plex Mono", monospace; }
.vacancy-pay span { display: block; margin-top: 5px; color: var(--muted-2); font-size: 10px; }
.row-actions { display: grid; gap: 6px; }
.watch-button, .row-open { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); transition: transform 130ms var(--ease-out), color 160ms ease, background-color 160ms ease, border-color 160ms ease; }
.watch-button svg, .row-open svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.watch-button.is-watched { color: var(--ice); border-color: rgba(134,231,255,.22); background: var(--ice-dim); }
.watch-button.is-watched svg { fill: rgba(134,231,255,.18); }
.empty-state { padding: 70px 20px; text-align: center; color: var(--muted); }
.empty-state svg { width: 30px; fill: none; stroke: var(--muted-2); stroke-width: 1.5; }
.empty-state h3 { margin: 14px 0 4px; color: var(--text); font-size: 15px; }
.empty-state p { margin: 0; font-size: 12px; }

.signal-profile { display: grid; gap: 14px; padding: 18px 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-row { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; }
.profile-row span, .profile-row b { font-size: 11px; }
.profile-row span { color: var(--text-soft); }
.profile-row b { color: var(--muted); font: 500 10px/1.4 "IBM Plex Mono", monospace; }
.profile-row i { grid-column: 1 / -1; position: relative; display: block; height: 3px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.profile-row i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--value); background: linear-gradient(90deg, #6b747e, #dbe1e7 58%, var(--ice)); }
.pattern-note { padding: 19px 0; border-bottom: 1px solid var(--line); }
.pattern-note > span { color: var(--amber); font: 500 10px/1.4 "IBM Plex Mono", monospace; letter-spacing: .09em; }
.pattern-note p { margin: 8px 0 0; color: var(--text-soft); font-size: 12px; line-height: 1.55; }
.telegram-panel { padding: 18px 0; border-bottom: 1px solid var(--line); }
.telegram-heading { display: flex; align-items: center; gap: 10px; }
.telegram-heading strong, .telegram-heading small { display: block; }
.telegram-heading strong { font-size: 12px; }
.telegram-heading small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.telegram-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(134,231,255,.24); border-radius: 9px; color: var(--ice); background: var(--ice-dim); }
.telegram-icon svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.telegram-panel p { margin: 11px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.telegram-panel a { min-height: 40px; display: flex; align-items: center; justify-content: center; margin-top: 12px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text); background: rgba(255,255,255,.06); text-decoration: none; font-size: 12px; font-weight: 600; transition: background-color 160ms ease, border-color 160ms ease, transform 130ms var(--ease-out); }
.telegram-panel a:active { transform: scale(.97); }
.activity { padding-top: 18px; }
.activity-heading { display: flex; justify-content: space-between; align-items: center; }
.activity-heading h3 { margin: 0; font-size: 12px; font-weight: 600; }
.activity ul { display: grid; gap: 13px; margin: 14px 0 0; padding: 0; list-style: none; }
.activity li { display: grid; grid-template-columns: 38px 1fr; gap: 9px; color: var(--muted); font-size: 11px; }
.activity time { color: var(--muted-2); font: 400 10px/1.5 "IBM Plex Mono", monospace; }

.compact-heading { align-items: flex-start; margin-bottom: 40px; }
.cluster-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.cluster { min-height: 350px; display: flex; flex-direction: column; padding: 26px; background: var(--bg); }
.cluster-index { color: var(--muted-2); font: 500 11px/1 "IBM Plex Mono", monospace; }
.cluster h2 { margin: 28px 0 8px; font-size: 22px; line-height: 1.12; letter-spacing: -.035em; }
.cluster > p { margin: 0; color: var(--muted); font-size: 13px; }
.cluster-jobs { display: grid; gap: 0; margin-top: 28px; }
.cluster-job { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.cluster-job span { font-size: 11px; color: var(--text-soft); }
.cluster-job b { color: var(--ice); font: 500 10px/1.4 "IBM Plex Mono", monospace; }
.cluster footer { margin-top: auto; padding-top: 24px; color: var(--muted-2); font: 400 10px/1.5 "IBM Plex Mono", monospace; text-transform: uppercase; }

.method-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 36px; }
.attention-scale { margin-bottom: 28px; }
.attention-scale-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.attention-scale-heading h2 { margin: 0; font-size: 14px; }
.attention-bands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--line); gap: 1px; }
.attention-band { min-height: 180px; padding: 18px; background: var(--bg); }
.attention-band strong, .attention-band span { display: block; }
.attention-band strong { color: var(--band-color); font: 600 20px/1 "IBM Plex Mono", monospace; }
.attention-band span { margin-top: 10px; font-size: 12px; font-weight: 600; text-transform: capitalize; }
.attention-band p { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.method-rules { border-top: 1px solid var(--line); }
.method-rule { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 20px; align-items: center; min-height: 94px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.method-weight { color: var(--ice); font: 600 20px/1 "IBM Plex Mono", monospace; }
.method-rule h2 { margin: 0; font-size: 14px; }
.method-rule p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.method-rule > span:last-child { color: var(--muted-2); font: 500 10px/1.4 "IBM Plex Mono", monospace; text-transform: uppercase; }
.method-disclaimer { position: sticky; top: 104px; align-self: start; padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.method-disclaimer h2 { margin: 18px 0 8px; font-size: 22px; line-height: 1.15; letter-spacing: -.03em; }
.method-disclaimer > p { margin: 0; color: var(--muted); font-size: 13px; }
.checklist { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.checklist > span { color: var(--text-soft); font-size: 12px; font-weight: 600; }
.checklist ol { margin: 14px 0 0; padding-left: 20px; color: var(--muted); font-size: 12px; }
.checklist li + li { margin-top: 10px; }

.drawer-layer { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: flex-end; }
.drawer-layer[hidden] { display: none; }
.drawer-scrim { position: absolute; inset: 0; border: 0; background: rgba(0,0,0,.64); backdrop-filter: blur(5px); opacity: 1; transition: opacity 180ms ease; }
.detail-drawer { position: relative; z-index: 1; width: min(520px, 94vw); height: 100%; overflow-y: auto; padding: 28px; border-left: 1px solid var(--line-strong); background: #0c0e12; box-shadow: -30px 0 80px rgba(0,0,0,.48); transform: translateX(0); transition: transform 240ms var(--ease-drawer); }
.drawer-layer.is-closing .detail-drawer { transform: translateX(100%); }
.drawer-layer.is-closing .drawer-scrim { opacity: 0; }
.drawer-handle { display: none; }
.drawer-topline { display: flex; justify-content: space-between; align-items: center; }
.drawer-kicker { color: var(--ice); font: 500 10px/1.4 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.drawer-close { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.03); }
.drawer-close svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.drawer-title { margin: 28px 0 7px; font-size: clamp(25px, 4vw, 36px); line-height: 1.08; letter-spacing: -.04em; }
.drawer-employer { margin: 0; color: var(--text-soft); font-size: 14px; }
.drawer-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 28px 0; border: 1px solid var(--line); background: var(--line); }
.drawer-summary div { min-width: 0; padding: 14px; background: var(--bg-deep); }
.drawer-summary span, .drawer-summary strong { display: block; }
.drawer-summary span { color: var(--muted-2); font-size: 10px; text-transform: uppercase; }
.drawer-summary strong { margin-top: 6px; font-size: 12px; word-break: break-word; }
.drawer-section { padding: 22px 0; border-top: 1px solid var(--line); }
.drawer-section h3 { margin: 0 0 13px; font-size: 13px; }
.reason-list { display: grid; gap: 12px; }
.reason { display: grid; grid-template-columns: 38px 1fr; gap: 12px; }
.reason b { display: grid; place-items: center; width: 34px; height: 24px; border-radius: 5px; color: var(--amber); background: rgba(243,184,92,.09); font: 500 10px/1 "IBM Plex Mono", monospace; }
.reason strong { display: block; font-size: 12px; }
.reason p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.drawer-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding-top: 22px; }
.source-button, .drawer-watch { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--line-strong); border-radius: 9px; text-decoration: none; background: rgba(255,255,255,.07); font-size: 13px; font-weight: 600; }
.source-button svg, .drawer-watch svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drawer-watch { width: 48px; padding: 0; }
.drawer-watch.is-watched { color: var(--ice); border-color: rgba(134,231,255,.28); background: var(--ice-dim); }

.toast { position: fixed; z-index: 90; right: 24px; bottom: 24px; max-width: min(360px, calc(100vw - 32px)); padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text-soft); background: rgba(20,23,28,.96); box-shadow: 0 18px 50px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.08); opacity: 0; transform: translateY(12px) scale(.97); pointer-events: none; transition: opacity 180ms ease, transform 180ms var(--ease-out); font-size: 12px; }
.toast.is-visible { opacity: 1; transform: translateY(0) scale(1); }

@media (hover: hover) and (pointer: fine) {
  .nav-item:hover { color: var(--text); background: rgba(255,255,255,.04); }
  .chrome-button:hover { filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 12px 34px rgba(0,0,0,.4); }
  .analyzer-form button:hover, .icon-button:hover { border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.11); }
  .vacancy-row:hover { background: rgba(255,255,255,.025); }
  .vacancy-row:hover .row-open { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.05); }
  .watch-button:hover { color: var(--ice); background: var(--ice-dim); }
  .source-button:hover, .drawer-watch:hover { background: rgba(255,255,255,.11); }
}

@media (max-width: 1280px) {
  .dashboard-grid { grid-template-columns: 205px minmax(440px, 1fr); }
  .insight-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
  .insight-panel > .panel-heading { grid-column: 1 / -1; min-height: 28px; }
  .signal-profile, .pattern-note { border-top: 1px solid var(--line); border-bottom: 0; padding-top: 18px; }
  .activity { padding-top: 18px; border-top: 1px solid var(--line); }
}

@media (max-width: 960px) {
  :root { --rail: 76px; }
  .rail { align-items: center; padding-inline: 10px; }
  .brand { padding: 0; }
  .brand-name, .nav-item span, .nav-item b, .rail-status div { display: none; }
  .nav-item { grid-template-columns: 1fr; place-items: center; width: 48px; padding: 0; }
  .rail-status { grid-template-columns: 1fr; padding-inline: 0; }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .metric-wide { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--line); padding-left: 0 !important; }
  .analyzer { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .filters {
    position: fixed;
    z-index: 60;
    inset: auto 12px 12px calc(var(--rail) + 12px);
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding: 20px;
    background: rgba(13,15,19,.98);
    box-shadow: 0 30px 80px rgba(0,0,0,.66);
    transform: translateY(calc(100% + 24px));
    transition: transform 240ms var(--ease-drawer);
    visibility: hidden;
  }
  .filters.is-open { transform: translateY(0); visibility: visible; }
  .mobile-filter-button { display: inline-grid; }
  .mobile-close { width: 100%; min-height: 46px; display: block; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--chrome); color: #0b0d11; font-weight: 700; }
  .insight-panel { grid-template-columns: 1fr 1fr; }
  .activity { grid-column: 1 / -1; }
  .cluster-grid { grid-template-columns: 1fr; }
  .cluster { min-height: 280px; }
}

@media (max-width: 720px) {
  :root { --rail: 0px; }
  .app-shell { display: block; padding-bottom: 70px; }
  .main { grid-column: auto; }
  .rail { inset: auto 0 0 0; width: 100%; height: 66px; flex-direction: row; justify-content: center; padding: 8px max(12px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); border-right: 0; border-top: 1px solid var(--line); }
  .brand, .rail-status { display: none; }
  .nav-list { width: min(360px, 100%); grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
  .nav-item { width: auto; grid-template-columns: 20px auto; justify-content: center; place-items: center; min-height: 48px; }
  .nav-item span { display: block; font-size: 12px; }
  .topbar { height: 64px; gap: 12px; padding: 0 16px; }
  .mobile-brand { display: block; flex: 0 0 auto; }
  .command-search { width: auto; flex: 1; }
  .command-search input { height: 42px; padding-right: 12px; }
  .command-search kbd, .topbar-meta > span { display: none; }
  .topbar-meta { margin-left: 0; }
  .workspace { padding: 25px 16px 40px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .heading-actions { width: 100%; justify-content: space-between; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .metric:nth-child(2) { padding-right: 0; }
  .metric-wide { grid-column: 1 / -1; }
  .analyzer { padding: 16px; }
  .analyzer-form { grid-template-columns: 1fr; }
  .analyzer-form button { justify-content: space-between; }
  .match-strip { grid-template-columns: 1fr; }
  .match-strip > span { margin-bottom: 2px; }
  .filters { inset: auto 10px 76px 10px; }
  .vacancy-row { grid-template-columns: 46px minmax(0, 1fr) 40px; gap: 10px; padding: 15px 4px; }
  .vacancy-pay { grid-column: 2; grid-row: 2; text-align: left; margin-top: -5px; }
  .vacancy-pay span { display: inline; margin-left: 8px; }
  .row-actions { grid-column: 3; grid-row: 1 / 3; }
  .signal-tags .signal-tag:nth-child(n+3) { display: none; }
  .insight-panel { grid-template-columns: 1fr; }
  .activity { grid-column: auto; }
  .method-layout { grid-template-columns: 1fr; }
  .attention-bands { grid-template-columns: 1fr 1fr; }
  .method-disclaimer { position: static; }
  .method-rule { grid-template-columns: 58px minmax(0, 1fr); }
  .method-rule > span:last-child { display: none; }
  .detail-drawer { align-self: flex-end; width: 100%; height: min(88vh, 760px); padding: 20px; border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 18px 18px 0 0; transform: translateY(0); }
  .drawer-layer { align-items: flex-end; }
  .drawer-layer.is-closing .detail-drawer { transform: translateY(100%); }
  .drawer-handle { display: block; width: 42px; height: 4px; margin: 0 auto 18px; border-radius: 4px; background: rgba(255,255,255,.2); }
  .drawer-summary { grid-template-columns: 1fr; }
  .toast { right: 16px; bottom: 86px; }
}

@media (max-width: 480px) {
  .attention-bands { grid-template-columns: 1fr; }
  .attention-band { min-height: 0; }
}

@media (max-width: 420px) {
  .mobile-brand { font-size: 11px; }
  .command-search input { font-size: 13px; }
  h1 { font-size: 30px; }
  .chrome-button { width: 100%; justify-content: center; }
  .heading-actions { align-items: stretch; flex-direction: column; }
  .last-scan { order: 2; text-align: center; }
  .metric { padding-right: 12px; }
  .metric + .metric { padding-left: 12px; }
  .metric strong { font-size: 26px; }
  .metric-wide { padding-left: 0 !important; }
  .sort-control > span { display: none; }
  .feed-toolbar { padding-inline: 4px; }
  .vacancy-row { grid-template-columns: 42px minmax(0, 1fr) 38px; }
  .risk-score, .risk-score svg { width: 42px; height: 42px; }
}

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