/* Level Headed HQ — design system
   Brand: navy #0E2744 · ivory #F7EFE6 · copper #B8734E (#9C5631 for buttons/links) · sage #C7D0BC
   Headings: Roboto Slab. Text: Inter. */
:root {
  --navy: #0e2744; --navy-2: #163558; --navy-3: #22466f;
  --ivory: #f7efe6; --ivory-2: #efe4d6;
  --copper: #b8734e; --copper-d: #9c5631; --copper-l: #f3e3d8;
  --sage: #c7d0bc; --sage-d: #5f7151; --sage-l: #e9eee3;
  --ink: #1b2433; --muted: #5f6b7a; --line: #e2d8cb; --white: #fff;
  --red: #a63d32; --red-l: #f6e1de; --amber: #9a6a12; --amber-l: #f8ecd1;
  --radius: 10px; --shadow: 0 1px 2px rgba(14, 39, 68, .06), 0 4px 16px rgba(14, 39, 68, .06);
  --slab: 'Roboto Slab', Georgia, serif; --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-w: 268px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.5 var(--sans); color: var(--ink); background: var(--ivory); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--slab); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 30px; font-weight: 800; letter-spacing: .01em; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
h4 { font-size: 15px; font-weight: 700; }
a { color: var(--copper-d); }
p { margin: 0 0 .75em; }
.muted { color: var(--muted); } .small { font-size: 13px; } .pad { padding: 10px 14px; margin: 0; }
.pre { white-space: pre-wrap; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }

/* boot + auth */
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); }
body.auth { background: var(--navy); }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.auth-brand { text-align: center; padding: 40px; }
.auth-brand img { max-width: 360px; width: 100%; }
.tagline { color: var(--ivory); font-family: var(--slab); font-size: 20px; letter-spacing: .06em; margin-top: 18px; }
.auth-card { background: var(--ivory); border-radius: 14px; padding: 36px; margin: 24px; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.auth-card h1 { margin-bottom: 2px; }
.form-msg { color: var(--red); min-height: 1.2em; }
@media (max-width: 800px) { .auth-wrap { grid-template-columns: 1fr; } .auth-brand img { max-width: 240px; } .auth-card { margin: 0 auto 40px; } }

/* shell */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--nav-w); background: var(--navy); color: var(--ivory); display: flex; flex-direction: column; overflow-y: auto; z-index: 30; transition: width .2s; }
.brand { display: block; padding: 18px 18px 4px; }
.brand-logo { width: 100%; max-width: 220px; display: block; }
.brand-mono { display: none; width: 40px; }
.brand-sub { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); padding: 0 20px 14px; border-bottom: 1px solid var(--navy-3); }
.nav { list-style: none; margin: 8px 0; padding: 0; flex: 1; }
.nav a { display: flex; gap: 10px; align-items: baseline; padding: 8px 20px; color: #dfe6ef; text-decoration: none; font-size: 13.5px; font-weight: 500; border-left: 3px solid transparent; }
.nav a:hover { background: var(--navy-2); color: #fff; }
.nav a.active { background: var(--navy-2); color: #fff; border-left-color: var(--copper); }
.nav .num { font-family: var(--slab); font-size: 11px; color: var(--copper); width: 18px; flex: none; }
.present-link { margin: 6px 16px; padding: 10px 12px; border-radius: 8px; background: var(--copper-d); color: #fff; text-decoration: none; font-weight: 600; font-size: 13.5px; }
.collapse { background: none; border: 0; color: var(--sage); padding: 10px 20px; text-align: left; cursor: pointer; font-size: 18px; }
body.nav-collapsed { --nav-w: 72px; }
body.nav-collapsed .lbl, body.nav-collapsed .brand-logo, body.nav-collapsed .brand-sub { display: none; }
body.nav-collapsed .brand-mono { display: block; }
body.nav-collapsed .nav a { justify-content: center; padding: 10px 0; }
body.nav-collapsed .collapse { transform: scaleX(-1); text-align: center; }
.page { margin-left: var(--nav-w); min-height: 100vh; transition: margin .2s; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; gap: 14px; align-items: center; padding: 10px 28px; background: rgba(247, 239, 230, .95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.topbar .search { flex: 1; max-width: 560px; min-width: 0; }
.topbar .search input { width: 100%; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; }
.me { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.me-text { display: flex; flex-direction: column; line-height: 1.15; }
.me-text small { color: var(--muted); font-size: 12px; }
.menu { display: none; }
.bell { position: relative; }
.bell-count:not(:empty) { position: absolute; top: -2px; right: -4px; background: var(--copper-d); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 6px; font-weight: 700; }
.main { padding: 26px 28px 60px; max-width: 1480px; outline: none; }
.loading { color: var(--muted); padding: 40px 0; }
.preview-banner { background: var(--amber-l); color: var(--amber); font-weight: 600; font-size: 13px; padding: 8px 28px; border-bottom: 1px solid #ecd9a8; }
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; width: 268px; }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.4); }
  .page { margin-left: 0; }
  .menu { display: inline-flex; }
  .topbar { padding: 10px 14px; gap: 8px; }
  .me-text, .me .btn { display: none; }
  .main { padding: 18px 14px 60px; }
  .collapse { display: none; }
}

/* page header */
.page-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.page-head .eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-d); font-weight: 700; margin-bottom: 4px; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); margin: 4px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--copper-d); background: var(--copper-d); color: #fff; font: 600 14px var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: #874a29; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.ghost { background: transparent; color: var(--copper-d); }
.btn.ghost:hover { background: var(--copper-l); }
.btn.navy { background: var(--navy); border-color: var(--navy); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn.block { width: 100%; justify-content: center; }
.btn.danger { background: var(--red); border-color: var(--red); }
.icon-btn { background: none; border: 0; font-size: 20px; cursor: pointer; padding: 4px 8px; color: var(--navy); border-radius: 6px; }
.icon-btn:hover { background: var(--ivory-2); }
.linkish { background: none; border: 0; color: var(--copper-d); cursor: pointer; padding: 6px 0; font: inherit; text-decoration: underline; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick .btn { background: #fff; color: var(--navy); border-color: var(--line); }
.quick .btn:hover { border-color: var(--copper); background: var(--copper-l); }

/* cards + grids */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.g2.wide-left { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .g2, .g2.wide-left, .g3, .g4, .g5 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } }
.stack > * + * { margin-top: 16px; }

/* hero */
.hero { background: var(--navy); color: var(--ivory); border-radius: 14px; padding: 26px 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; margin-bottom: 18px; background-image: linear-gradient(120deg, rgba(184,115,78,.18), transparent 50%); }
.hero h1 { color: #fff; margin: 0; letter-spacing: .04em; }
.hero .motto { font-family: var(--slab); color: var(--copper); font-size: 18px; letter-spacing: .05em; margin: 4px 0 8px; }
.hero .greet { color: #d7dfe9; margin: 0; }
.readiness-dial { text-align: center; min-width: 150px; }
.readiness-dial .pct { font-family: var(--slab); font-size: 44px; font-weight: 800; color: #fff; line-height: 1; }
.readiness-dial small { color: var(--sage); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }

/* stats */
.stat { display: block; text-decoration: none; color: inherit; }
.stat .n { font-family: var(--slab); font-size: 30px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat .l { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.stat.warn .n { color: var(--red); }
.stat:hover { border-color: var(--copper); }

/* badges */
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: var(--ivory-2); color: var(--navy); white-space: nowrap; vertical-align: middle; }
.badge.demo { background: var(--amber-l); color: var(--amber); border: 1px dashed #d9b75e; }
.badge.proposed, .badge.draft { background: var(--copper-l); color: var(--copper-d); }
.badge.confirmed { background: var(--sage-l); color: var(--sage-d); }
.badge.st-completed, .badge.st-done, .badge.st-approved, .badge.st-moved_to_roadmap, .badge.st-added_to_roadmap { background: var(--sage-l); color: var(--sage-d); }
.badge.st-in_progress, .badge.st-under_discussion, .badge.st-researching, .badge.st-under_review { background: #e3ebf5; color: var(--navy-3); }
.badge.st-blocked, .badge.st-rejected, .badge.st-declined, .badge.st-needs_revision { background: var(--red-l); color: var(--red); }
.badge.st-needs_decision, .badge.st-awaiting, .badge.st-waiting, .badge.st-research_required { background: var(--amber-l); color: var(--amber); }
.badge.st-cancelled, .badge.st-not_applicable, .badge.st-deferred { background: #eceff3; color: var(--muted); }
.badge.p-critical { background: var(--red); color: #fff; } .badge.p-high { background: var(--copper-l); color: var(--copper-d); }
.badge.overdue { background: var(--red); color: #fff; }

/* avatar + progress */
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--copper); color: #fff; font: 700 13px var(--slab); flex: none; }
.avatar.sm { width: 26px; height: 26px; font-size: 11px; } .avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.progress { height: 8px; background: var(--ivory-2); border-radius: 999px; overflow: hidden; min-width: 60px; }
.progress-bar { height: 100%; background: var(--copper); border-radius: 999px; transition: width .3s; }
.hero .progress { background: var(--navy-3); }

/* lists + tables */
.list { list-style: none; padding: 0; margin: 0; }
.row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ivory-2); }
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 600; color: var(--ink); }
.row a.title { text-decoration: none; }
.row a.title:hover { color: var(--copper-d); text-decoration: underline; }
.row .meta { font-size: 12.5px; color: var(--muted); }
.clickable { cursor: pointer; }
.clickable:hover { background: #fffaf4; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid var(--ivory-2); vertical-align: top; }
.table tr.clickable:hover td { background: #fffaf4; }
.table-wrap { overflow-x: auto; }
.empty { text-align: center; color: var(--muted); padding: 28px 10px; }
.feed .row { align-items: flex-start; }
.timeline { position: relative; padding-left: 18px; border-left: 2px solid var(--line); }
.timeline .tl { position: relative; padding: 4px 0 14px; }
.timeline .tl::before { content: ''; position: absolute; left: -25px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--copper); border: 2px solid #fff; }
.timeline .tl .when { font-size: 12px; font-weight: 700; color: var(--copper-d); text-transform: uppercase; letter-spacing: .05em; }

/* checklist */
.check-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--ivory-2); }
.check-row .grow { flex: 1; min-width: 0; }
.check-row select { max-width: 42vw; }
.check-row select { font-size: 13px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.check-row .done-mark { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line); display: grid; place-items: center; color: #fff; flex: none; font-size: 13px; }
.check-row.done .done-mark { background: var(--sage-d); border-color: var(--sage-d); }
.check-row.done .title { color: var(--muted); }

/* tabs + filters */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 16px; }
.tab { background: none; border: 0; padding: 9px 14px; font: 600 14px var(--sans); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab.active { color: var(--navy); border-bottom-color: var(--copper); }
.tab:hover { color: var(--navy); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.filters select, .filters input { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; background: #fff; }

/* kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kcol { background: var(--ivory-2); border-radius: var(--radius); padding: 10px; min-height: 120px; }
.kcol h4 { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; display: flex; justify-content: space-between; margin: 2px 4px 10px; }
.kcol.over { outline: 2px dashed var(--copper); }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; cursor: grab; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.kcard .title { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.kcard .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.cal .dow { background: var(--navy); color: #fff; font-size: 12px; text-transform: uppercase; padding: 6px 8px; letter-spacing: .06em; }
.cal .day { min-height: 96px; border-top: 1px solid var(--ivory-2); border-left: 1px solid var(--ivory-2); padding: 4px 6px; font-size: 12px; }
.cal .day.other { background: #fbf8f4; color: #b3a99c; }
.cal .day.today { background: var(--copper-l); }
.cal .day .d { font-weight: 700; }
.cal .ev { display: block; background: var(--navy); color: #fff; border-radius: 4px; padding: 1px 5px; margin-top: 3px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal .ev.task { background: var(--copper-d); } .cal .ev.overdue { background: var(--red); }
@media (max-width: 700px) { .cal .day { min-height: 60px; } .cal .ev { font-size: 10px; } }

/* gantt-ish roadmap timeline */
.gantt { overflow-x: auto; }
.gantt-row { display: grid; grid-template-columns: 260px 1fr; align-items: center; border-bottom: 1px solid var(--ivory-2); min-height: 34px; }
.gantt-track { position: relative; height: 22px; }
.gantt-bar { position: absolute; top: 3px; height: 16px; border-radius: 4px; background: var(--copper); }
.gantt-bar.completed { background: var(--sage-d); }
.gantt-scale { display: grid; grid-template-columns: 260px 1fr; font-size: 11px; color: var(--muted); }
.gantt-months { position: relative; height: 20px; }
.gantt-months span { position: absolute; top: 0; border-left: 1px solid var(--line); padding-left: 4px; }
.gantt-today { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--red); }

/* forms + modal */
.modal-wrap { position: fixed; inset: 0; background: rgba(14, 39, 68, .55); display: grid; place-items: start center; padding: 5vh 12px; z-index: 100; overflow-y: auto; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 620px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.modal.wide { max-width: 920px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 20px; }
.modal-body { padding: 18px 22px 22px; }
.form { display: flex; flex-wrap: wrap; gap: 0 14px; }
.form > * { flex: 1 1 100%; }
.field { margin-bottom: 12px; }
.field.half { flex: 1 1 calc(50% - 14px); min-width: 200px; }
.field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 4px; color: var(--navy); }
.field input:not([type=checkbox]), .field select, .field textarea, .comment-form textarea, .inline-input { width: 100%; padding: 9px 11px; border: 1px solid #d6cab9; border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
.field textarea { resize: vertical; }
.help { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.req { color: var(--red); }
.form-note { background: var(--ivory); padding: 10px 12px; border-radius: 8px; font-size: 13.5px; color: var(--navy); }
.form-h { margin: 8px 0 6px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.check { display: inline-flex; gap: 6px; align-items: center; font-weight: 500 !important; font-size: 14px !important; }
.detail dl { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; margin: 0 0 14px; }
.detail dt { font-weight: 600; color: var(--muted); font-size: 13px; }
.detail dd { margin: 0; white-space: pre-wrap; }
@media (max-width: 600px) { .detail dl { grid-template-columns: 1fr; } }

/* comments */
.comments { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.comment { display: flex; gap: 10px; padding: 8px 0; }
.comment .meta { font-size: 12.5px; color: var(--muted); }
.comment .body { white-space: pre-wrap; }
.comment-form { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; }

/* toast + notifications */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px); opacity: 0; background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 10px; z-index: 200; transition: .25s; max-width: 90vw; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--red); }
.notif-panel { position: fixed; top: 58px; right: 16px; width: 380px; max-width: calc(100vw - 24px); max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.2); z-index: 90; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.notif { display: block; padding: 10px 14px; border-bottom: 1px solid var(--ivory-2); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.notif small { display: block; color: var(--muted); font-weight: 400; }
.notif.read { font-weight: 400; color: var(--muted); }
.notif.overdue { color: var(--red); }
.notif:hover { background: var(--ivory); }

/* meeting workspace */
.meeting-head { background: var(--navy); color: var(--ivory); border-radius: 14px; padding: 22px 26px; margin-bottom: 16px; }
.meeting-head h1 { color: #fff; font-size: 26px; letter-spacing: .04em; }
.meeting-head .facts { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: #d7dfe9; }
.meeting-head .facts strong { color: var(--copper); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .1em; display: block; }
.meeting-head a { color: #fff; }
.meeting-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .meeting-grid { grid-template-columns: 1fr; } }
.agenda-item { display: flex; gap: 12px; padding: 10px 8px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.agenda-item .no { font-family: var(--slab); font-weight: 800; color: var(--copper); font-size: 20px; width: 28px; flex: none; }
.agenda-item.current { background: var(--copper-l); border-color: var(--copper); }
.agenda-item:hover { background: var(--ivory); }
.note { border-left: 3px solid var(--sage); padding: 8px 10px; margin: 8px 0; background: #fbfaf7; border-radius: 0 8px 8px 0; }
.note.parking_lot { border-left-color: var(--amber); } .note.question { border-left-color: var(--navy-3); }
.note .meta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.note .body { white-space: pre-wrap; margin: 2px 0 4px; }
.note .tools { display: flex; flex-wrap: wrap; gap: 4px; }
.note .tools button { font-size: 12px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--navy); }
.note .tools button:hover { border-color: var(--copper); }
.note-entry { display: flex; flex-direction: column; gap: 8px; }
.note-entry textarea { min-height: 70px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3a9b5c; margin-right: 6px; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* presentation */
body.presenting { background: var(--navy); overflow: hidden; }
.present { position: fixed; inset: 0; display: grid; grid-template-rows: auto 1fr auto; color: var(--ivory); background: var(--navy); background-image: radial-gradient(circle at 85% 15%, rgba(184,115,78,.22), transparent 45%); }
.present-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 28px; }
.present-top img { height: 54px; }
.present-top .ctrl { display: flex; gap: 8px; }
.present-top .ctrl .btn { background: transparent; border-color: var(--navy-3); color: var(--ivory); }
.present-top .ctrl .btn:hover { background: var(--navy-2); }
.present-stage { display: grid; grid-template-columns: 1fr; overflow: auto; padding: 0 8vw; align-content: center; }
.present.with-notes .present-stage { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 32px; padding: 0 4vw; }
.slide .kicker { font-family: var(--slab); color: var(--copper); letter-spacing: .14em; text-transform: uppercase; font-size: clamp(14px, 1.4vw, 20px); margin-bottom: 14px; }
.slide h1 { color: #fff; font-size: clamp(32px, 4.4vw, 68px); line-height: 1.08; margin-bottom: 28px; }
.slide .sbody { font-size: clamp(18px, 1.9vw, 30px); line-height: 1.5; white-space: pre-wrap; color: #e6ebf2; max-width: 1100px; }
.slide .draft-tag { display: inline-block; border: 1px solid var(--copper); color: var(--copper); font-size: 12px; letter-spacing: .14em; padding: 2px 10px; border-radius: 999px; margin-top: 28px; }
.presenter-notes { background: rgba(255,255,255,.06); border: 1px solid var(--navy-3); border-radius: 12px; padding: 18px; font-size: 16px; color: #d7dfe9; white-space: pre-wrap; align-self: center; }
.presenter-notes h4 { color: var(--copper); font-family: var(--sans); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.present-bottom { display: flex; align-items: center; gap: 14px; padding: 14px 28px; }
.present-bottom .dots { display: flex; gap: 6px; flex: 1; justify-content: center; flex-wrap: wrap; }
.present-bottom .dot { width: 34px; height: 6px; border-radius: 3px; background: var(--navy-3); border: 0; cursor: pointer; padding: 0; }
.present-bottom .dot.on { background: var(--copper); }
.present-bottom .btn { background: transparent; border-color: var(--navy-3); color: var(--ivory); }
.capture-bar { display: flex; flex-wrap: wrap; gap: 6px; }
.capture-bar .btn { background: var(--copper-d); border-color: var(--copper-d); font-size: 13px; padding: 6px 12px; }
@media (max-width: 800px) { .present.with-notes .present-stage { grid-template-columns: 1fr; } .present-top img { height: 38px; } .present-bottom .dots { display: none; } }

/* team */
.member-card { display: flex; flex-direction: column; gap: 8px; }
.member-card .who { display: flex; gap: 12px; align-items: center; }
.member-card .role { color: var(--copper-d); font-weight: 600; font-size: 13.5px; }
.member-card .focus { font-size: 13px; color: var(--muted); }

/* documents */
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.folder { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; text-align: left; font: inherit; }
.folder.active, .folder:hover { border-color: var(--copper); background: var(--copper-l); }
.folder strong { display: block; color: var(--navy); font-size: 14px; }
.folder small { color: var(--muted); }
.doc-preview { width: 100%; height: 60vh; border: 1px solid var(--line); border-radius: 8px; background: var(--ivory); }
.doc-preview-img { max-width: 100%; max-height: 60vh; display: block; margin: 0 auto; border-radius: 8px; }

/* scoring */
.score-grid { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.score-grid select { padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; }
.planned { border: 2px dashed var(--line); background: #fffdf9; }
.planned-tag { display: inline-block; background: var(--navy); color: #fff; font-size: 11px; letter-spacing: .1em; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.callout { background: var(--copper-l); border-left: 4px solid var(--copper); padding: 12px 14px; border-radius: 0 8px 8px 0; margin-bottom: 16px; font-size: 14px; }
.plan-content { white-space: pre-wrap; background: var(--ivory); border-radius: 8px; padding: 12px 14px; min-height: 60px; }

/* print (meeting summary + business plan → "Save as PDF") */
@media print {
  .sidebar, .topbar, .preview-banner, .no-print, .actions, .tabs, .toast, .comment-form, .note .tools { display: none !important; }
  .page { margin: 0; }
  body { background: #fff; font-size: 12pt; }
  .card { box-shadow: none; border: 0; padding: 0; }
  .main { padding: 0; }
  .print-head { display: block !important; }
  .meeting-head, .hero { background: #fff !important; color: var(--navy) !important; border: 2px solid var(--navy); }
  .meeting-head h1 { color: var(--navy) !important; }
  .meeting-head .facts { color: var(--ink) !important; }
  .page-break { page-break-before: always; }
}
.print-head { display: none; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr !important; } }
.member-card { position: relative; }
.card-tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 2px; opacity: .55; transition: opacity .15s; }
.member-card:hover .card-tools, .card-tools:focus-within { opacity: 1; }
.card-tools .icon-btn { font-size: 15px; padding: 3px 7px; }
.icon-btn:disabled { opacity: .3; cursor: default; }
.add-card { border: 2px dashed var(--line); background: transparent; box-shadow: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 160px; font: 600 15px var(--sans); color: var(--copper-d); cursor: pointer; }
.add-card span { font-size: 32px; line-height: 1; }
.add-card:hover { border-color: var(--copper); background: var(--copper-l); }
@media (hover: none) { .card-tools { opacity: 1; } }
.member-card .who { padding-right: 64px; }
.badge.basis-actual { background: var(--sage-l); color: var(--sage-d); }
.badge.basis-forecast { background: #e3ebf5; color: var(--navy-3); }
.badge.basis-assumption { background: var(--amber-l); color: var(--amber); }
.basis-mix { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.fin-fig .l { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.fin-fig .n { font-family: var(--slab); font-size: 28px; font-weight: 800; color: var(--navy); margin: 4px 0; line-height: 1.15; }
.fin-fig.warn .n { color: var(--red); }
.overdue-text { color: var(--red); font-weight: 700; }

/* Primary logo (transparent, navy lettering) sits on a light plate wherever the background is navy */
.brand { background: var(--ivory); margin: 14px 14px 8px; border-radius: 10px; padding: 12px 14px; }
.brand-logo { max-width: 100%; margin: 0 auto; }
.brand-sub { padding-top: 4px; }
body.nav-collapsed .brand { margin: 12px 10px 8px; padding: 6px; }
body.nav-collapsed .brand-mono { width: 100%; }
.auth-brand img { background: var(--ivory); padding: 26px 30px; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.present-top img { background: var(--ivory); padding: 8px 14px; border-radius: 10px; height: 92px; }
@media (max-width: 800px) { .present-top img { height: 44px; } }
