:root {
  --bg: #060913;
  --bg-grad-1: rgba(99, 102, 241, 0.16);
  --bg-grad-2: rgba(16, 185, 129, 0.11);
  --surface: rgba(15, 23, 42, 0.82);
  --surface-strong: #0f172a;
  --surface-2: rgba(30, 41, 59, 0.62);
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #f8fafc;
  --text-2: #cbd5e1;
  --muted: #94a3b8;
  --accent: #6366f1;
  --accent-2: #38bdf8;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --emerald: #10b981;
  --emerald-bg: rgba(16, 185, 129, 0.14);
  --amber: #f59e0b;
  --amber-bg: rgba(245, 158, 11, 0.14);
  --purple: #a855f7;
  --purple-bg: rgba(168, 85, 247, 0.14);
  --danger: #f43f5e;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-grad-1: rgba(99, 102, 241, 0.08);
  --bg-grad-2: rgba(16, 185, 129, 0.07);
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-2: #f1f5f9;
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.2);
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --accent: #4f46e5;
  --accent-2: #0284c7;
  --accent-glow: rgba(79, 70, 229, 0.22);
  --emerald: #059669;
  --emerald-bg: rgba(5, 150, 105, 0.12);
  --amber: #d97706;
  --amber-bg: rgba(217, 119, 6, 0.12);
  --purple: #7c3aed;
  --purple-bg: rgba(124, 58, 237, 0.12);
  --shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(900px 500px at 15% -10%, var(--bg-grad-1), transparent 60%),
    radial-gradient(700px 450px at 90% 0%, var(--bg-grad-2), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* HUD */
.hud {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}

.hud-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 16px 0 16px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--emerald));
  display: grid; place-items: center; font-size: 19px;
  box-shadow: 0 6px 20px var(--accent-glow);
}
.brand-title { font-weight: 800; font-size: 17px; letter-spacing: -0.3px; display: flex; align-items: center; gap: 6px; }
.brand-tag {
  font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 999px;
  background: var(--emerald-bg); color: var(--emerald); border: 1px solid color-mix(in srgb, var(--emerald) 35%, transparent);
}
.brand-sub { font-size: 11.5px; color: var(--muted); }

.hud-actions { display: flex; align-items: center; gap: 7px; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 36px; padding: 0 11px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: transform .14s ease, border-color .14s ease;
}
.icon-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.icon-btn:active { transform: scale(0.96); }
.pdf-btn { background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(56,189,248,0.14)); border-color: rgba(99,102,241,0.35); }

/* Metrics Strip */
.metrics-strip {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.95fr 1.2fr;
  gap: 8px;
  margin-bottom: 10px;
}

.metric-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 11px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.metric-odds { flex-direction: row; align-items: center; gap: 10px; }
.metric-ring { position: relative; width: 42px; height: 42px; flex-shrink: 0; }
.metric-ring svg { width: 42px; height: 42px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--border-strong); stroke-width: 3.4; }
.ring-fill { fill: none; stroke: var(--emerald); stroke-width: 3.4; stroke-linecap: round; transition: stroke-dasharray .5s cubic-bezier(.2,.8,.2,1); }
.metric-ring span {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 800; color: var(--emerald);
}

.metric-val { font-size: 17px; font-weight: 800; line-height: 1.15; }
.metric-dim { font-size: 12px; font-weight: 600; color: var(--muted); }
.metric-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }
.metric-sub { font-size: 11px; color: var(--text-2); margin-top: 1px; }

.sprint-dots { display: flex; gap: 4px; margin-top: 4px; }
.sprint-dot {
  width: 14px; height: 7px; border-radius: 999px;
  background: var(--border-strong); transition: all .25s ease;
}
.sprint-dot.done { background: linear-gradient(90deg, var(--amber), var(--emerald)); box-shadow: 0 0 8px rgba(16,185,129,0.5); }

.xp-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 5px; }
.lvl-badge { font-size: 11px; font-weight: 800; color: var(--accent-2); }
.xp-num { font-size: 11px; font-weight: 700; color: var(--text-2); }
.xp-track { height: 6px; background: var(--border-strong); border-radius: 999px; overflow: hidden; margin-bottom: 3px; }
.xp-bar { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--emerald)); transition: width .45s cubic-bezier(.2,.8,.2,1); }

/* Desktop Nav */
.desktop-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.desktop-nav::-webkit-scrollbar { display: none; }
.nav-tab {
  background: transparent; border: none; border-bottom: 2.5px solid transparent;
  color: var(--muted); font-size: 13px; font-weight: 700;
  padding: 9px 13px; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .15s ease, border-color .15s ease;
}
.nav-tab:hover { color: var(--text); }
.nav-tab.active { color: var(--text); border-bottom-color: var(--accent-2); }
.tab-count {
  font-size: 10px; font-weight: 800; padding: 1.5px 6px; border-radius: 999px;
  background: var(--emerald-bg); color: var(--emerald);
}

/* Main */
.app-main { max-width: 1180px; margin: 0 auto; padding: 18px 16px 32px 16px; }
.view { display: none; }
.view.active { display: block; opacity: 1; }

.glass-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
h2 { margin: 0 0 6px 0; font-size: 18px; letter-spacing: -0.3px; }
.muted { color: var(--muted); font-size: 13px; margin: 0 0 12px 0; }

/* Chips */
.chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px;
  cursor: pointer; white-space: nowrap;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--accent-2); color: var(--text); }
.chip.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff; border-color: transparent;
  box-shadow: 0 4px 14px var(--accent-glow);
}

/* SPRINT DECK */
.sprint-toolbar {
  display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px;
}
.sprint-filters { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.sprint-filters::-webkit-scrollbar { display: none; }
.sprint-queue-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--muted); font-weight: 600;
}
kbd {
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: 5px; padding: 1px 6px; font-size: 11px; color: var(--text);
  font-family: "SF Mono", Menlo, monospace;
}

.sprint-stage { max-width: 780px; margin: 0 auto 22px auto; }
.sprint-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(99,102,241,0.14);
  transition: transform .26s cubic-bezier(.2,.8,.2,1), opacity .22s ease;
}
.sprint-card.slide-out-right { transform: translateX(90px) rotate(3deg); opacity: 0; }
.sprint-card.slide-out-left { transform: translateX(-90px) rotate(-3deg); opacity: 0; }

.sc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sc-rank-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.rank-badge {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 800; font-size: 12px; padding: 3px 9px; border-radius: 7px;
}
.score-badge { font-weight: 800; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; }
.score-90 { background: var(--emerald-bg); color: var(--emerald); border: 1px solid color-mix(in srgb, var(--emerald) 35%, transparent); }
.score-80 { background: rgba(56,189,248,0.14); color: var(--accent-2); border: 1px solid rgba(56,189,248,0.35); }
.score-70 { background: var(--amber-bg); color: var(--amber); border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent); }

.sc-company { font-size: 26px; font-weight: 900; letter-spacing: -0.5px; line-height: 1.15; margin: 0; }
.sc-city { font-size: 14px; color: var(--text-2); margin-top: 2px; font-weight: 600; }
.sc-pay-box { text-align: right; }
.sc-pay { font-size: 18px; font-weight: 800; color: var(--emerald); font-variant-numeric: tabular-nums; }
.sc-cv-tag {
  display: inline-block; margin-top: 3px; font-size: 11px; font-weight: 800;
  padding: 2px 8px; border-radius: 6px; background: var(--purple-bg); color: var(--purple);
}

.sc-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 13px; padding: 12px 14px; margin-bottom: 14px; font-size: 13px;
}
.sc-grid-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); font-weight: 800; margin-bottom: 2px; }

.sc-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 15px; border-radius: 11px; font-size: 13px; font-weight: 700;
  text-decoration: none; color: #fff; background: #2563eb;
  transition: transform .14s ease, filter .14s ease;
}
.link-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.link-btn.fast { background: linear-gradient(135deg, #059669, #10b981); }
.link-btn.linkedin { background: #0284c7; }

.sc-actions-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px;
}
.sc-verdict-row {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px;
  padding-top: 12px; border-top: 1px solid var(--border);
}

/* Buttons */
.btn-primary, .btn-emerald, .btn-ghost, .btn-ghost-sm, .btn-amber {
  border: none; border-radius: 12px; font-weight: 800; font-size: 13.5px;
  padding: 12px 16px; cursor: pointer; display: inline-flex; align-items: center;
  justify-content: center; gap: 7px; text-decoration: none;
  transition: transform .13s ease, filter .13s ease, background .13s ease;
}
.btn-primary:active, .btn-emerald:active, .btn-ghost:active, .btn-amber:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 6px 20px var(--accent-glow); }
.btn-emerald { background: linear-gradient(135deg, #059669, #10b981); color: #fff; box-shadow: 0 6px 22px rgba(16,185,129,0.32); }
.btn-amber { background: var(--amber-bg); color: var(--amber); border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent-2); }
.btn-ghost-sm {
  background: transparent; color: var(--accent-2); border: 1px solid var(--border);
  padding: 5px 10px; font-size: 12px; border-radius: 8px;
}
.btn-sm { padding: 8px 13px; font-size: 12.5px; border-radius: 9px; }

.cv-drawer {
  margin-top: 12px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; font-size: 12.5px;
}
.cv-drawer summary { cursor: pointer; font-weight: 800; color: var(--accent-2); list-style: none; }
.cv-drawer summary::-webkit-details-marker { display: none; }
.cv-drawer-body { margin-top: 10px; color: var(--text-2); line-height: 1.5; }
.cv-drawer-body code { font-family: "SF Mono", Menlo, monospace; font-size: 11.5px; color: var(--text); background: var(--surface); padding: 2px 5px; border-radius: 4px; }

/* Up Next */
.up-next-wrap { max-width: 780px; margin: 0 auto; }
.section-mini-title { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.7px; color: var(--muted); margin-bottom: 8px; }
.up-next-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.up-next-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 12px; cursor: pointer; transition: border-color .15s ease, transform .15s ease;
}
.up-next-item:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.up-next-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; font-size: 11.5px; }
.up-next-co { font-weight: 800; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-next-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* EXPLORE 200 */
.explore-controls { margin-bottom: 16px; display: flex; flex-direction: column; gap: 10px; }
.search-row { display: grid; grid-template-columns: 1fr 250px; gap: 10px; }
.search-input, .select-input, .text-input, .textarea-input {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: 11px; padding: 10px 13px; color: var(--text); font-size: 13.5px; font-family: inherit;
}
.search-input:focus, .select-input:focus, .text-input:focus, .textarea-input:focus {
  outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-glow);
}
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-group { display: flex; gap: 5px; flex-wrap: wrap; }
.country-chips { padding-top: 4px; border-top: 1px dashed var(--border); }
.explore-stats-bar { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--muted); }

.explore-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.job-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: 15px;
  padding: 14px 15px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s ease, transform .15s ease;
}
.job-tile:hover { border-color: var(--border-strong); }
.job-tile.st-applied { border-left: 4px solid var(--emerald); }
.job-tile.st-interview { border-left: 4px solid var(--accent-2); box-shadow: 0 0 24px rgba(56,189,248,0.16); }
.job-tile.st-offer { border-left: 4px solid var(--amber); box-shadow: 0 0 28px rgba(245,158,11,0.22); }
.job-tile.st-saved { border-left: 4px solid var(--purple); }

.jt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.jt-title { font-size: 15.5px; font-weight: 800; }
.jt-city { font-size: 12px; color: var(--muted); }
.jt-badges { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.jt-meta { font-size: 12px; color: var(--text-2); line-height: 1.45; }
.jt-links { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-link {
  font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 8px;
  text-decoration: none; color: #fff; background: #2563eb;
}
.mini-link.fast { background: #059669; }
.mini-link.linkedin { background: #0284c7; }
.jt-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap;
  padding-top: 8px; border-top: 1px solid var(--border);
}
.status-select {
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text);
  border-radius: 8px; padding: 5px 9px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.jt-btns { display: flex; gap: 5px; flex-wrap: wrap; }
.mini-btn {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 5px 9px; font-size: 11.5px; font-weight: 700; cursor: pointer;
}
.mini-btn:hover { border-color: var(--accent-2); }

/* SIMULATOR */
.sim-controls { margin-bottom: 16px; }
.sim-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.seg-toggle { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.seg {
  border: none; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700;
  padding: 7px 12px; border-radius: 8px; cursor: pointer;
}
.seg.active { background: var(--accent); color: #fff; }
.slider-wrap { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.slider-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 8px; }
.slider-wrap input[type="range"] { width: 100%; accent-color: var(--emerald); cursor: pointer; }
.slider-marks { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }

.sim-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.country-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.cc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.cc-name { font-size: 17px; font-weight: 800; }
.cc-savings-hero { text-align: right; }
.cc-inr { font-size: 17px; font-weight: 900; color: var(--emerald); font-variant-numeric: tabular-nums; }
.cc-eur { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar-stack { height: 11px; border-radius: 999px; overflow: hidden; display: flex; background: var(--surface-2); }
.bar-rent { background: #f43f5e; }
.bar-living { background: #f59e0b; }
.bar-save { background: #10b981; }
.bar-legend { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-2); flex-wrap: wrap; gap: 6px; font-variant-numeric: tabular-nums; }
.cc-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.cc-tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.cc-tag.ok { background: var(--emerald-bg); color: var(--emerald); border-color: color-mix(in srgb, var(--emerald) 35%, transparent); }

/* CV STUDIO */
.studio-grid { display: grid; grid-template-columns: 0.95fr 1.25fr; gap: 16px; align-items: start; }
.field-label { display: block; font-size: 12px; font-weight: 800; color: var(--text-2); margin: 10px 0 5px 0; }
.studio-btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.studio-preview-top { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.studio-picker-row { display: flex; gap: 8px; flex-wrap: wrap; }
.studio-picker-row .select-input { flex: 1 1 220px; }
.cv-preview-box {
  background: var(--surface-strong); border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 14px; font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 11.2px;
  line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; color: var(--text);
  max-height: 620px; overflow-y: auto; margin: 0;
}

/* PLAYBOOK & CHECKLIST */
.playbook-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px; align-items: start; }
.playbook-side { display: flex; flex-direction: column; gap: 16px; }
.panel-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.check-progress-pill {
  background: var(--emerald-bg); color: var(--emerald); font-weight: 800; font-size: 12px;
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
.check-group-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.7px; color: var(--accent-2); margin: 12px 0 6px 0; }
.check-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 9px 11px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  margin-bottom: 6px; cursor: pointer; font-size: 13px; transition: border-color .15s ease;
}
.check-item:hover { border-color: var(--accent-2); }
.check-item input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--emerald); flex-shrink: 0; }
.check-item.checked span { text-decoration: line-through; color: var(--muted); }

.script-quote {
  margin: 0 0 12px 0; padding: 12px 14px; background: var(--surface-2);
  border-left: 4px solid var(--accent-2); border-radius: 0 10px 10px 0;
  font-size: 13px; color: var(--text-2); line-height: 1.55;
}
.clean-list { margin: 0; padding-left: 18px; font-size: 13px; color: var(--text-2); }
.clean-list li { margin-bottom: 7px; }
.file-label { cursor: pointer; }

/* Mobile Bottom Nav */
.mobile-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  background: color-mix(in srgb, var(--surface-strong) 94%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border-strong);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom)) 6px;
}
.mnav-btn {
  flex: 1; border: none; background: transparent; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 5px 2px; font-size: 10.5px; font-weight: 700; cursor: pointer; border-radius: 10px;
}
.mnav-ico { font-size: 18px; line-height: 1; }
.mnav-btn.active { color: var(--accent-2); background: rgba(56,189,248,0.1); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(78px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none;
  background: #0f172a; color: #f8fafc; border: 1px solid var(--emerald);
  padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  box-shadow: 0 14px 36px rgba(0,0,0,0.45); z-index: 500;
  display: flex; align-items: center; gap: 10px; transition: all .22s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast-undo {
  background: var(--emerald); color: #fff; border: none; border-radius: 999px;
  padding: 3px 10px; font-size: 12px; font-weight: 800; cursor: pointer;
}

/* Print Sheet for Clean Single-Company ATS CV PDF */
.print-sheet { display: none; }
@media print {
  body > *:not(.print-sheet) { display: none !important; }
  .print-sheet {
    display: block !important;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    color: #000; background: #fff; padding: 0; margin: 0;
    white-space: pre-wrap; font-size: 10.5pt; line-height: 1.42;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .metrics-strip { grid-template-columns: repeat(2, 1fr); }
  .explore-grid, .sim-grid, .studio-grid, .playbook-grid { grid-template-columns: 1fr; }
  .search-row { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: flex; }
  .hide-sm { display: none; }
  .sc-grid, .sc-actions-row, .up-next-list { grid-template-columns: 1fr; }
  .sc-verdict-row { grid-template-columns: 1fr 1.35fr; }
  .sc-company { font-size: 21px; }
  .sprint-card { padding: 16px; }
  .hud-inner { padding: 10px 12px 8px 12px; }
  .app-main { padding: 14px 12px 24px 12px; }
}
