:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #172033;
  --muted: #6d7890;
  --border: #dfe5ef;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --danger: #b42318;
  --shadow: 0 14px 34px rgba(25, 39, 71, .08);
  --radius: 18px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
.sidebar { background: #111827; color: #fff; padding: 28px 20px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; gap: 12px; align-items: center; padding: 0 6px 28px; }
.brand-mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: #111827; font-weight: 800; }
.brand strong, .brand span { display: block; }
.brand span { font-size: 12px; color: #aeb7c7; margin-top: 2px; }
.nav { display: grid; gap: 8px; }
.nav-link { border: 0; text-align: left; padding: 12px 14px; border-radius: 12px; background: transparent; color: #c9d1de; }
.nav-link:hover, .nav-link.active { background: #253044; color: #fff; }
.sidebar-footer { margin-top: auto; font-size: 12px; color: #aeb7c7; display: flex; align-items: center; gap: 8px; padding: 12px 6px 0; }
.status-dot { width: 8px; height: 8px; border-radius: 999px; background: #22c55e; }
.main { padding: 34px 40px 60px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: 30px; margin-bottom: 0; }
h2 { font-size: 20px; margin-bottom: 10px; }
.eyebrow { margin-bottom: 6px; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 800; color: var(--primary); }
.view { display: none; }
.view.active { display: block; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card, .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-card { padding: 20px; }
.stat-card span { color: var(--muted); font-size: 13px; display: block; margin-bottom: 8px; }
.stat-card strong { font-size: 30px; }
.content-grid { display: grid; gap: 20px; }
.panel { padding: 24px; }
.hero-panel { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 28px; background: linear-gradient(135deg, #fff, #eef4ff); }
.hero-panel p:not(.eyebrow) { color: var(--muted); max-width: 720px; margin-bottom: 0; }
.hero-actions, .actions-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { border: 1px solid transparent; border-radius: 11px; padding: 10px 14px; font-weight: 700; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-strong); }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--border); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f0c3bd; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; }
.field span { font-weight: 700; font-size: 13px; }
.field small { color: var(--muted); line-height: 1.4; }
.field input, .field textarea { width: 100%; border: 1px solid var(--border); background: var(--surface-soft); color: var(--text); border-radius: 11px; padding: 11px 12px; outline: none; }
.field input:focus, .field textarea:focus { border-color: #9ab6f7; box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
.full { grid-column: 1 / -1; }
.spaced { margin-top: 20px; }
.list { display: grid; gap: 12px; }
.list-item { border: 1px solid var(--border); background: var(--surface-soft); padding: 16px; border-radius: 14px; display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.list-item h3 { margin: 0 0 5px; font-size: 16px; }
.list-item p { margin: 0; color: var(--muted); font-size: 13px; }
.list-actions { display: flex; gap: 8px; }
.empty-state { border: 1px dashed var(--border); border-radius: 14px; padding: 24px; color: var(--muted); background: var(--surface-soft); }
.notice { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #eefbf3; border: 1px solid #bde6ca; color: #24603a; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .nav { grid-template-columns: repeat(5, 1fr); overflow-x: auto; }
  .sidebar-footer { display: none; }
  .main { padding: 24px 18px 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav { display: flex; }
  .nav-link { white-space: nowrap; }
  .topbar, .hero-panel, .list-item { align-items: stretch; flex-direction: column; }
  .stats-grid, .form-grid { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .hero-actions .btn, .actions-row .btn { flex: 1; }
}

/* Sprint 2 */
select { font: inherit; }
.field select { width:100%; border:1px solid var(--border); background:var(--surface-soft); color:var(--text); border-radius:11px; padding:11px 12px; }
.grow { flex:1; min-width:0; }
.row-wrap { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.row-wrap h3 { margin-right:auto; }
.coverage,.status-pill { font-size:11px; font-weight:800; border-radius:999px; padding:5px 8px; white-space:nowrap; }
.coverage.good { background:#e7f7ed; color:#17683a; }.coverage.mid { background:#fff6dd; color:#7a5912; }.coverage.low { background:#fff0ef; color:#9a2a20; }
.status-pill { background:#eef2f8; color:#46536b; }
.summary-line { margin-top:7px!important; max-width:850px; }
.two-cols { grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr); }
.action-panel { display:flex; justify-content:space-between; align-items:center; gap:20px; background:linear-gradient(135deg,#eef5ff,#fff); border-color:#cddcff; }
.action-panel p { margin-bottom:0; }
.mini-list { display:grid; gap:10px; }.mini-action { display:grid; grid-template-columns:1fr auto; gap:3px 12px; align-items:center; padding:12px; border:1px solid var(--border); border-radius:12px; background:var(--surface-soft); }.mini-action span { color:var(--muted); font-size:12px; }.mini-action .btn { grid-column:2; grid-row:1 / 3; }
.btn-small { padding:7px 10px; font-size:12px; }.link-btn { display:inline-flex; text-decoration:none; align-items:center; }
.pipeline { display:grid; grid-template-columns:repeat(6,minmax(190px,1fr)); gap:12px; overflow-x:auto; padding-bottom:8px; }.pipeline-col { background:#f7f9fc; border:1px solid var(--border); border-radius:14px; min-height:360px; }.pipeline-head { display:flex; justify-content:space-between; align-items:center; padding:12px; border-bottom:1px solid var(--border); }.pipeline-head span { background:#fff; border:1px solid var(--border); border-radius:999px; padding:3px 7px; font-size:11px; }.pipeline-cards { display:grid; gap:9px; padding:10px; }.pipeline-empty { color:var(--muted); font-size:12px; padding:10px; }.app-card { background:#fff; border:1px solid var(--border); border-radius:11px; padding:11px; display:grid; gap:6px; }.app-card span,.app-card small { color:var(--muted); }.app-card.due { border-color:#eab5af; box-shadow:inset 3px 0 0 #b42318; }.danger-text { color:var(--danger)!important; font-weight:800; }
.modal { position:fixed; inset:0; background:rgba(16,24,40,.5); z-index:50; display:grid; place-items:center; padding:24px; overflow:auto; }.modal-card { width:min(1000px,100%); max-height:92vh; overflow:auto; position:relative; background:#fff; border-radius:20px; padding:28px; box-shadow:0 24px 80px rgba(10,20,40,.28); }.modal-close { position:absolute; right:16px; top:12px; border:0; background:transparent; font-size:30px; color:var(--muted); }.lead { color:var(--muted); font-size:15px; line-height:1.6; }.analysis-score { display:flex; gap:16px; align-items:center; padding:16px; background:#f5f8ff; border:1px solid #dbe5fb; border-radius:14px; }.analysis-score>strong { font-size:34px; color:var(--primary); }.analysis-score p { margin:3px 0 0; color:var(--muted); font-size:12px; }.analysis-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:18px; }.analysis-grid section { border:1px solid var(--border); border-radius:14px; padding:16px; }.chips { display:flex; flex-wrap:wrap; gap:7px; }.chip { padding:6px 9px; background:#f1f4f8; border-radius:999px; font-size:12px; }.good-chips .chip { background:#e7f7ed; color:#17683a; }.prep-banner { display:grid; gap:4px; padding:14px; border-radius:13px; background:#eef5ff; border:1px solid #d3e1ff; }.prep-banner span { color:var(--muted); font-size:13px; }.wide-textarea,.proof-list textarea { width:100%; border:1px solid var(--border); border-radius:11px; padding:10px; resize:vertical; }.proof-list { display:grid; gap:10px; }.proof-list label { display:grid; gap:6px; }.question-list { padding-left:20px; color:#344054; }.question-list li { margin-bottom:9px; line-height:1.45; }.star-card { border:1px solid var(--border); border-radius:13px; padding:13px; margin-top:10px; }.star-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:9px; }.star-grid input { width:100%; border:1px solid var(--border); border-radius:9px; padding:9px; }
@media (max-width:1100px){.two-cols{grid-template-columns:1fr}.pipeline{grid-template-columns:repeat(6,220px)}}
@media (max-width:700px){.analysis-grid,.star-grid{grid-template-columns:1fr}.modal{padding:10px}.modal-card{padding:22px 16px}.action-panel{align-items:stretch;flex-direction:column}.mini-action{grid-template-columns:1fr}.mini-action .btn{grid-column:auto;grid-row:auto}.list-actions{flex-wrap:wrap}}
