:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-soft: #f2f3f5;
  --sidebar: #111318;
  --sidebar-hover: #1b1e25;
  --text: #181a20;
  --text-soft: #343740;
  --muted: #777c87;
  --muted-2: #a0a5af;
  --border: #e2e4e8;
  --border-strong: #d4d7dc;
  --accent: #5168e8;
  --accent-soft: #eef0ff;
  --success: #168566;
  --success-soft: #eaf7f3;
  --danger: #c94555;
  --danger-soft: #fbeef0;
  --warning: #a7681d;
  --warning-soft: #fbf3e8;
  --radius: 6px;
  font-size: 15px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: "Helvetica Neue", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
svg.icon { width: 17px; height: 17px; flex: 0 0 auto; }
:focus-visible { outline: 2px solid rgba(81, 104, 232, .35); outline-offset: 2px; }

/* Shell */
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  width: 220px;
  padding: 0;
  color: #eceef2;
  background: var(--sidebar);
  border-right: 1px solid #252830;
}
.sidebar::before { display: none; }
.sidebar-inner { height: 100%; display: flex; flex-direction: column; padding: 24px 14px 16px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 0 8px 23px;
  color: #fff;
  font: 400 16.5px/1 "Helvetica Neue", sans-serif;
  letter-spacing: -.2px;
}
.brand-logo { width: 26px; height: 26px; display: block; flex: 0 0 auto; }
.sidebar-project {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  margin: 0 6px 10px;
  padding: 12px 2px 14px;
  border-top: 1px solid #292c34;
  border-bottom: 1px solid #292c34;
}
.sidebar-project strong,
.sidebar-project > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-project strong { color: #fff; font-size: 12px; font-weight: 500; }
.sidebar-project > span:last-child { color: #777d8b; font-size: 10.5px; }
.side-nav { flex: 1; overflow-y: auto; }
.side-group { display: flex; flex-direction: column; gap: 2px; margin-top: 15px; }
.side-label {
  padding: 0 9px 6px;
  color: #666c79;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .9px;
  text-transform: uppercase;
}
.sidebar-project .side-label { padding: 0 0 4px; }
.side-link {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-radius: 4px;
  color: #999faa;
  font-size: 12.5px;
  font-weight: 400;
  transition: color .12s ease, background .12s ease;
}
.side-link:hover { color: #fff; background: var(--sidebar-hover); }
.side-link.active { color: #fff; background: var(--sidebar-hover); box-shadow: inset 2px 0 var(--accent); }
.side-link.active .icon { color: #9aa8ff; }
.sidebar-bottom { display: grid; gap: 8px; }
.side-install {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  color: #b4b8c1;
  background: transparent;
  border: 1px solid #292c34;
  border-radius: 4px;
  text-align: left;
  cursor: pointer;
}
.side-install:hover { color: #fff; background: var(--sidebar-hover); }
.side-install span { display: grid; gap: 1px; min-width: 0; }
.side-install strong { font-size: 11px; font-weight: 500; }
.side-install small { color: #666c79; font-size: 9.5px; }
.sidebar-account {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 3px 0;
  border-top: 1px solid #292c34;
}
.account-avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 4px; color: #cfd4ff; background: #242938; font-size: 9px; font-weight: 500; }
.account-copy { min-width: 0; flex: 1; display: grid; gap: 1px; }
.account-copy strong { overflow: hidden; color: #dfe1e6; font-size: 10px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.account-copy small { color: #626875; font-size: 9px; }
.icon-btn { width: 32px; height: 32px; display: grid; place-items: center; color: var(--muted); background: transparent; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; }
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn.dark { color: #686e7a; border-color: transparent; }
.icon-btn.dark:hover { color: #fff; background: var(--sidebar-hover); }

.main-shell { min-width: 0; margin-left: 220px; }
.page-container { width: min(1320px, 100%); margin: 0 auto; padding: 38px 42px 64px; }
.container { width: 100%; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.page-heading { min-width: 0; }
.eyebrow { margin-bottom: 7px; color: var(--muted); font-size: 9.5px; font-weight: 500; letter-spacing: .9px; text-transform: uppercase; }
h1, h2, h3 { color: var(--text); font-family: "Helvetica Neue", Inter, sans-serif; font-weight: 400; letter-spacing: -.025em; }
h1 { font-size: clamp(27px, 3vw, 34px); line-height: 1.1; }
h2 { font-size: 18px; line-height: 1.3; }
h3 { font-size: 14px; }
.sub { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* Controls */
.btn {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 5px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}
.btn:hover { background: #4359d5; border-color: #4359d5; transform: none; box-shadow: none; }
.btn.ghost { color: var(--text-soft); background: var(--surface); border-color: var(--border-strong); box-shadow: none; }
.btn.ghost:hover { color: var(--text); background: var(--surface-soft); border-color: #c9ccd2; box-shadow: none; }
.btn.soft { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.btn.small { min-height: 31px; padding: 0 10px; border-radius: 4px; font-size: 11px; }
.btn.danger { color: var(--danger); background: var(--danger-soft); border-color: transparent; }
.btn svg { width: 14px; height: 14px; }
input, select {
  height: 38px;
  padding: 0 11px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  outline: none;
  box-shadow: none;
  font-size: 12px;
}
input::placeholder { color: var(--muted-2); }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(81, 104, 232, .1); }
select { cursor: pointer; }
input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--accent); box-shadow: none; }

/* Content */
.card { position: relative; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: none; backdrop-filter: none; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.card-title { display: grid; gap: 3px; }
.card-title strong { color: var(--text); font-size: 13px; font-weight: 500; }
.card-title span { color: var(--muted); font-size: 11px; }
.label { color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: .7px; text-transform: uppercase; }
.grid { display: grid; gap: 12px; }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.metric-card { min-height: 104px; padding: 16px; border: 0; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); border-radius: 0; overflow: visible; }
.metric-card::after { display: none; }
.metric-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10.5px; font-weight: 400; }
.metric-label .signal-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--metric-color, var(--accent)); }
.metric-value { margin-top: 20px; font-size: 24px; line-height: 1; font-weight: 400; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.metric-value.live { color: var(--success); }
.metric-value.bad { color: var(--danger); }

.signal-hero {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  align-items: center;
  gap: 40px;
  margin-bottom: 24px;
  padding: 24px 0;
  color: var(--text);
  background: transparent;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.signal-hero::after { display: none; }
.signal-copy { max-width: 650px; }
.signal-copy .eyebrow { color: var(--muted); }
.signal-copy h2 { max-width: 600px; color: var(--text); font-size: clamp(20px, 2.2vw, 27px); font-weight: 400; }
.signal-copy p { max-width: 570px; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.signal-status { width: 100%; padding: 0 0 0 24px; background: transparent; border: 0; border-left: 1px solid var(--border); border-radius: 0; backdrop-filter: none; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 33px; }
.status-row + .status-row { margin: 0; padding: 0; border-top: 1px solid var(--border); }
.status-row span { color: var(--muted); font-size: 10.5px; }
.status-row strong { color: var(--text); font-size: 11px; font-weight: 500; }

.badge { min-height: 23px; display: inline-flex; align-items: center; gap: 5px; padding: 0 7px; color: var(--muted); background: var(--surface-soft); border: 1px solid var(--border); border-radius: 99px; font-size: 9.5px; font-weight: 400; white-space: nowrap; }
.badge.live { color: var(--success); background: var(--success-soft); border-color: #d3ebe4; }
.badge.live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--success); animation: none; box-shadow: none; }
.badge.rage { color: var(--warning); background: var(--warning-soft); border-color: #eddfcc; }
.badge.err { color: var(--danger); background: var(--danger-soft); border-color: #f0d4d8; }

.create-panel { margin-bottom: 26px; padding: 0 0 26px; background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none; }
.create-panel .form-row { margin-top: 13px; }
.form-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.form-row > input { flex: 1 1 220px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.project-card { min-height: 0; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 15px; transition: border-color .12s ease, background .12s ease; }
.project-card:hover { transform: none; border-color: var(--border-strong); background: #fbfbfc; box-shadow: none; }
.project-card-top { display: contents; }
.project-icon { grid-column: 1; grid-row: 1 / span 3; width: 34px; height: 34px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); border-radius: 5px; }
.project-icon svg { width: 16px; }
.project-card .badge { grid-column: 3; grid-row: 1; }
.project-card h3 { grid-column: 2; grid-row: 1; margin: 0; font-size: 13px; }
.project-domain { grid-column: 2; grid-row: 2; margin: -8px 0 0; color: var(--muted); font-size: 10.5px; }
.project-meta { grid-column: 2 / 4; grid-row: 3; display: flex; gap: 24px; margin: 0; padding-top: 7px; }
.project-meta span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9.5px; }
.project-meta strong { color: var(--text-soft); font: 400 9.5px/1.2 "SFMono-Regular", Consolas, monospace; }

.data-card { padding: 0; overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
th { height: 40px; padding: 0 13px; text-align: left; color: var(--muted); background: #fafafa; border-bottom: 1px solid var(--border); font-size: 9px; font-weight: 500; letter-spacing: .55px; text-transform: uppercase; white-space: nowrap; }
td { padding: 12px 13px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbfc; }
tr.clickable { cursor: pointer; }
.filter-bar { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-bottom: 12px; }
.filter-option { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.filter-bar .right { margin-left: auto; }

.bar-row { min-height: 29px; display: flex; align-items: center; gap: 9px; font-size: 11px; }
.bar-row + .bar-row { border-top: 1px solid var(--border); }
.bar-row .name { width: 105px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.bar-row .bar { flex: 1; height: 4px; overflow: hidden; background: var(--surface-soft); border-radius: 0; }
.bar-row .bar i { display: block; height: 100%; background: var(--accent); border-radius: 0; }
.bar-row .val { min-width: 30px; color: var(--text-soft); font: 400 9.5px/1 "SFMono-Regular", Consolas, monospace; text-align: right; }
.chart { height: 138px; display: flex; align-items: flex-end; gap: 6px; padding-top: 12px; }
.chart .col { height: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; min-width: 0; }
.chart .col i { width: min(24px, 100%); min-height: 2px; background: var(--accent); border-radius: 2px 2px 0 0; box-shadow: none; }
.chart .col span { color: var(--muted-2); font: 400 8.5px/1 "SFMono-Regular", Consolas, monospace; white-space: nowrap; }
.empty { padding: 42px 20px; color: var(--muted); font-size: 11.5px; text-align: center; }
.empty-icon { width: 38px; height: 38px; display: grid; place-items: center; margin: 0 auto 11px; color: var(--accent); background: var(--accent-soft); border-radius: 5px; }
.empty-icon svg { width: 18px; }
.empty strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 12px; font-weight: 500; }

/* Install, replay, heatmap */
.install-panel { display: none; margin-bottom: 24px; padding: 0; overflow: hidden; }
.install-panel.open { display: grid; grid-template-columns: minmax(0, 1fr) 250px; }
.install-main, .install-aside { padding: 18px; }
.install-aside { color: var(--text-soft); background: var(--surface-soft); border-left: 1px solid var(--border); }
.install-aside strong { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 500; }
.install-aside p { color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.snippet { margin-top: 11px; padding: 12px; overflow-x: auto; color: var(--accent); background: #fafafa; border: 1px solid var(--border); border-radius: 4px; font: 400 10px/1.55 "SFMono-Regular", Consolas, monospace; white-space: pre; }
.replay-stage { overflow: hidden; padding: 8px; background: #111318; border: 0; border-radius: 4px; box-shadow: none; }
.rr-player { float: none !important; margin: 0 auto; background: transparent !important; }
.session-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 11px 0 18px; }
.session-meta > span { min-height: 25px; display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 4px; font-size: 10px; }
.session-meta b { color: var(--text-soft); font-weight: 500; }
.heatmap-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 12px; align-items: start; min-width: 0; }
.hm-stage { position: relative; min-width: 0; min-height: 420px; max-height: calc(100vh - 155px); overflow-x: hidden; overflow-y: auto; background: #fff; border: 1px solid var(--border); border-radius: 4px; box-shadow: none; }
.hm-scale-shell { position: relative; width: 100%; overflow: hidden; }
.hm-content { position: absolute; top: 0; left: 0; transform-origin: top left; }
.hm-stage iframe { display: block; border: 0; background: #fff; }
.hm-canvas { position: absolute; top: 0; left: 0; z-index: 10; pointer-events: none; }

/* Auth */
.auth-page { overflow-x: hidden; background: #fff; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(400px, .8fr) minmax(520px, 1.2fr); }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 56px clamp(34px, 7vw, 100px); }
.auth-brand { margin-bottom: 48px; }
.auth-brand .brand { padding: 0; color: var(--text); font-size: 17px; }
.auth-copy { max-width: 420px; }
.auth-copy h1 { font-size: clamp(33px, 4vw, 44px); font-weight: 400; }
.auth-copy > p { margin: 12px 0 26px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.auth-card { max-width: 420px; padding: 0; background: transparent; border: 0; border-radius: 0; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { color: var(--text-soft); font-size: 10.5px; font-weight: 500; }
.field input { width: 100%; height: 42px; }
.auth-card .btn { width: 100%; min-height: 42px; margin-top: 4px; }
.switch { margin-top: 16px; color: var(--muted); font-size: 11px; text-align: center; }
.switch a { color: var(--accent); font-weight: 500; cursor: pointer; }
.err { min-height: 17px; margin-bottom: 6px; color: var(--danger); font-size: 10.5px; }
.auth-visual { position: relative; overflow: hidden; margin: 0; color: #fff; background: var(--sidebar); border-radius: 0; }
.auth-visual::before { display: none; }
.auth-insight { position: absolute; inset: 50% auto auto 50%; width: min(72%, 540px); transform: translate(-50%, -50%); }
.auth-insight > span { color: #858b97; font-size: 9px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }
.auth-insight h2 { max-width: 490px; margin-top: 13px; color: #fff; font-size: clamp(26px, 3.2vw, 39px); font-weight: 300; line-height: 1.12; }
.auth-insight p { max-width: 430px; margin-top: 13px; color: #8d929e; font-size: 11.5px; line-height: 1.6; }
.insight-card { margin-top: 32px; padding: 15px; background: transparent; border: 1px solid #2b2e36; border-radius: 4px; backdrop-filter: none; }
.insight-line { height: 45px; overflow: hidden; }
.insight-line svg { width: 100%; height: 100%; }
.insight-meta { display: flex; justify-content: space-between; padding-top: 11px; border-top: 1px solid #2b2e36; }
.insight-meta span { display: grid; gap: 4px; color: #696f7b; font-size: 9px; }
.insight-meta strong { color: #e6e8ec; font-size: 10.5px; font-weight: 400; }

/* AI insights */
.insights-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.ai-summary { display: flex; gap: 20px; align-items: center; margin-bottom: 12px; }
.ai-score { flex: 0 0 auto; width: 74px; height: 74px; display: grid; place-items: center; align-content: center; gap: 2px; border: 1px solid var(--border); border-radius: 50%; box-shadow: inset 0 0 0 2px var(--score-color, var(--accent)); }
.ai-score strong { color: var(--score-color, var(--accent)); font-size: 21px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1; }
.ai-score span { color: var(--muted); font-size: 8.5px; letter-spacing: .5px; text-transform: uppercase; }
.ai-summary-copy { min-width: 0; flex: 1; }
.ai-summary-copy p { color: var(--text-soft); font-size: 12.5px; line-height: 1.6; }
.finding-list { display: grid; gap: 10px; }
.finding-card { border-left: 3px solid var(--border-strong); }
.finding-card.sev-critical { border-left-color: var(--danger); }
.finding-card.sev-warning { border-left-color: var(--warning); }
.finding-card.sev-positive { border-left-color: var(--success); }
.finding-card.sev-info { border-left-color: var(--accent); }
.finding-card h3 { margin-top: 11px; font-size: 13.5px; font-weight: 500; }
.finding-detail { margin-top: 6px; color: var(--text-soft); font-size: 12px; line-height: 1.55; }
.finding-evidence, .finding-reco { margin-top: 10px; padding: 10px 12px; border-radius: 4px; font-size: 11px; line-height: 1.5; }
.finding-evidence { color: var(--muted); background: var(--surface-soft); border: 1px solid var(--border); }
.finding-reco { color: var(--text-soft); background: var(--accent-soft); border: 1px solid #dee2fb; }
.finding-evidence > span, .finding-reco > span { display: block; margin-bottom: 3px; font-size: 8.5px; font-weight: 500; letter-spacing: .7px; text-transform: uppercase; }
.finding-evidence > span { color: var(--muted-2); }
.finding-reco > span { color: var(--accent); }
.badge.mono-badge { font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; }
.btn-spinner { width: 12px; height: 12px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }

.tabs { display: none; }
.muted { color: var(--muted); }
.mono { font-family: "SFMono-Regular", Consolas, monospace; font-size: 10.5px; }
.mt { margin-top: 12px; }
.flex { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.right { margin-left: auto; }
.spinner { width: 22px; height: 22px; margin: 40px auto; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 100; min-height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: #fff; background: #181a20; border: 0; border-radius: 4px; box-shadow: none; font-size: 11px; opacity: 0; transform: translateY(5px); transition: opacity .15s ease, transform .15s ease; }
.toast.visible { opacity: 1; transform: none; }
.toast svg { width: 14px; color: #7ed3ba; }

@media (max-width: 1120px) {
  .metric-grid, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-container { padding-inline: 28px; }
}
@media (max-width: 900px) {
  .sidebar { position: sticky; inset: 0; width: 100%; height: 62px; border: 0; border-bottom: 1px solid #252830; }
  .sidebar-inner { height: 62px; flex-direction: row; align-items: center; gap: 12px; padding: 0 13px; }
  .brand { padding: 0; }
  .brand > span:last-child, .sidebar-project, .side-label { display: none; }
  .side-nav { display: flex; flex: 1; overflow-x: auto; }
  .side-group { flex-direction: row; gap: 2px; margin: 0; }
  .side-group.project-links { margin-left: 4px; padding-left: 6px; border-left: 1px solid #2b2e36; }
  .side-link { min-height: 34px; padding: 0 8px; white-space: nowrap; }
  .side-link.active { box-shadow: inset 0 -2px var(--accent); }
  .sidebar-bottom { display: block; }
  .side-install, .account-avatar, .account-copy { display: none; }
  .sidebar-account { min-height: 0; padding: 0; border: 0; }
  .main-shell { margin-left: 0; }
  .page-container { padding-top: 26px; }
  .signal-hero { grid-template-columns: 1fr; gap: 18px; }
  .signal-status { padding: 0; border-left: 0; }
  .heatmap-layout { grid-template-columns: 1fr; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { min-height: 100vh; }
}
@media (max-width: 660px) {
  .page-container { padding: 22px 15px 50px; }
  .page-header { flex-direction: column; gap: 16px; margin-bottom: 25px; }
  .header-actions { width: 100%; justify-content: flex-start; }
  .metric-grid, .grid.cols-4, .grid.cols-2, .project-grid { grid-template-columns: 1fr; }
  .install-panel.open { grid-template-columns: 1fr; }
  .install-aside { display: none; }
  .filter-bar .right { width: 100%; margin-left: 0; }
  .auth-panel { padding: 40px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
