:root {
  --bg: #f4f6fb;
  --ink: #111827;
  --muted: #64748b;
  --line: #dbe3ef;
  --card: #ffffff;
  --brand: #10192f;
  --brand-2: #284cce;
  --accent: #20b486;
  --warn: #d97706;
  --bad: #b42318;
  --soft: #eaf0ff;
  --shadow: 0 20px 50px rgba(15, 23, 42, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.hidden { display: none; }
.hero { background: radial-gradient(circle at top right, #334cbb 0, #10192f 42%, #08111f 100%); color: white; padding: 22px 32px 52px; }
.topbar { max-width: 1240px; margin: 0 auto 44px; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-icon { width: 42px; height: 42px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(135deg, #ffffff, #a9ddff); color: #10192f; font-weight: 900; box-shadow: inset 0 -8px 20px rgba(0,0,0,.12); }
.brand strong { display: block; font-size: 18px; letter-spacing: .2px; }
.brand small { display: block; color: rgba(255,255,255,.68); font-size: 12px; margin-top: 2px; }
.nav-actions, .hero-actions, .action-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn { border: 0; border-radius: 999px; padding: 10px 15px; cursor: pointer; font-weight: 750; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: #06291d; box-shadow: 0 12px 28px rgba(32,180,134,.28); }
.btn.secondary { background: var(--brand); color: #fff; }
.btn.ghost { background: rgba(255,255,255,.10); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.panel .btn.ghost { background: var(--soft); color: var(--brand); border: 1px solid #cbd7ff; }
.hero-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.3fr) 420px; gap: 28px; align-items: stretch; }
.eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .16em; font-weight: 850; font-size: 11px; color: #6d85ff; }
.hero .eyebrow { color: #a9ddff; }
h1 { font-size: clamp(38px, 6vw, 68px); line-height: .94; letter-spacing: -2px; margin: 0 0 18px; max-width: 900px; }
.lead { font-size: 18px; line-height: 1.62; color: rgba(255,255,255,.78); max-width: 820px; margin: 0 0 26px; }
.score-card { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.20); border-radius: 26px; padding: 24px; box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.score-topline { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.score-topline span { color: rgba(255,255,255,.70); font-weight: 700; }
.score-topline strong { font-size: 54px; letter-spacing: -2px; }
.meter { height: 12px; border-radius: 99px; background: rgba(255,255,255,.18); overflow: hidden; margin: 16px 0; }
.meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffb86b, #20b486); transition: width .35s ease; }
#scoreNarrative { color: rgba(255,255,255,.72); margin: 0 0 18px; line-height: 1.5; }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.mini-kpis div { background: rgba(255,255,255,.11); border-radius: 16px; padding: 12px; }
.mini-kpis dt { color: rgba(255,255,255,.65); font-size: 12px; }
.mini-kpis dd { margin: 4px 0 0; font-size: 24px; font-weight: 850; }
.app-shell { max-width: 1320px; margin: -26px auto 48px; padding: 0 24px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.side-nav { position: sticky; top: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 22px; padding: 14px; }
.side-nav a { display: block; text-decoration: none; padding: 10px 12px; color: var(--muted); border-radius: 12px; font-weight: 720; }
.side-nav a:hover { background: var(--soft); color: var(--brand); }
.workspace { display: grid; gap: 18px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 24px; box-shadow: 0 14px 35px rgba(15, 23, 42, .06); }
.panel-title { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 18px; }
.panel-title h2 { margin: 0; font-size: 25px; letter-spacing: -.5px; }
h3 { margin: 0 0 10px; font-size: 16px; }
.tag, .pill { display: inline-flex; border-radius: 999px; padding: 7px 11px; background: var(--soft); color: var(--brand-2); font-weight: 800; font-size: 12px; white-space: nowrap; }
.pill.good { color: #067647; background: #dcfaec; }
.pill.warn { color: #92400e; background: #fff1d6; }
.pill.bad { color: #b42318; background: #ffe4e2; }
.hint { color: var(--muted); margin-top: -6px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label, fieldset legend { font-weight: 780; color: #334155; }
input, textarea, select { width: 100%; margin-top: 7px; border: 1px solid #cbd5e1; border-radius: 14px; padding: 11px 12px; background: #fff; color: var(--ink); outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(40,76,206,.12); }
textarea { min-height: 96px; resize: vertical; }
.full { display: block; margin-top: 14px; }
.frameworks { border: 1px solid var(--line); border-radius: 18px; margin-top: 16px; padding: 14px; display: flex; flex-wrap: wrap; gap: 12px; }
.frameworks label { font-weight: 700; color: var(--ink); background: #f8fafc; border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px; }
.frameworks input { width: auto; margin: 0 6px 0 0; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: 20px; padding: 18px; background: linear-gradient(180deg, #fff, #f8fbff); }
.kpi span { color: var(--muted); font-weight: 720; }
.kpi strong { display: block; font-size: 34px; margin: 8px 0 2px; letter-spacing: -1px; }
.kpi small { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.executive-list { margin: 0; padding-left: 20px; color: #334155; line-height: 1.55; }
.executive-list li { margin-bottom: 8px; }
.list { display: grid; gap: 12px; }
.item-card { position: relative; border: 1px solid var(--line); border-radius: 22px; padding: 18px; background: #fbfdff; }
.item-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.item-fields .wide { grid-column: 1 / -1; }
.remove { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #fecaca; background: #fff5f5; color: var(--bad); cursor: pointer; font-weight: 900; }
.report { color: #1f2937; }
.report-cover { border: 1px solid var(--line); border-radius: 24px; padding: 28px; background: linear-gradient(135deg, #10192f, #243b86); color: white; margin-bottom: 18px; }
.report-cover h2 { font-size: 34px; margin: 8px 0; letter-spacing: -1px; }
.report-cover p { color: rgba(255,255,255,.75); max-width: 820px; line-height: 1.55; }
.report-section { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 22px; }
.report-section h3 { font-size: 20px; letter-spacing: -.2px; color: var(--brand); }
.report-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.report-metric { border: 1px solid var(--line); border-radius: 18px; padding: 15px; background: #f8fafc; }
.report-metric span { color: var(--muted); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.report-metric strong { display: block; font-size: 28px; margin-top: 5px; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
th, td { border: 1px solid var(--line); padding: 9px 10px; text-align: left; vertical-align: top; }
th { background: #f1f5f9; color: #334155; }
.badge { display: inline-flex; border-radius: 999px; padding: 4px 8px; font-weight: 800; font-size: 12px; background: #e2e8f0; color: #334155; }
.badge.high, .badge.critical, .badge.no, .badge.overdue { background: #ffe4e2; color: #b42318; }
.badge.medium, .badge.partial, .badge.in-progress { background: #fff1d6; color: #92400e; }
.badge.low, .badge.yes, .badge.complete, .badge.done { background: #dcfaec; color: #067647; }
.site-footer { max-width: 1320px; margin: 20px auto 60px; padding: 0 24px; color: var(--muted); }
@media (max-width: 960px) {
  .topbar, .hero-grid, .app-shell, .two-col, .kpi-grid, .report-grid { grid-template-columns: 1fr; }
  .topbar { display: grid; }
  .hero-grid { display: grid; }
  .app-shell { display: block; }
  .side-nav { position: static; margin-bottom: 18px; }
  .form-grid, .item-fields { grid-template-columns: 1fr; }
}
@media print {
  body { background: white; color: black; }
  .no-print, .side-nav, .hero, .site-footer, .panel-title.no-print, .remove, .action-tools { display: none !important; }
  .app-shell { display: block; margin: 0; padding: 0; max-width: none; }
  .workspace { display: block; }
  .panel { display: none; box-shadow: none; border: 0; padding: 0; }
  #executive-pack { display: block; }
  .report-cover { background: #10192f !important; color: white !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  table, tr, td, th { page-break-inside: avoid; }
  .report-section { page-break-inside: avoid; }
  @page { margin: 14mm; }
}
