/* Operating review. A modern product surface: dark agenda sidebar in the organisation's colour,
   light canvas, white cards with soft elevation, one bold element per page (the dark hero card).
   Tokens follow the shadcn naming so the system stays small: background, card, border, muted,
   primary, ring. Colour outside the hero is reserved for status and the primary action. */
@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --background: #f5f6f8;
  --card: #ffffff;
  --foreground: #0b1220;
  --text: #1f2937;
  --muted: #667085;
  --subtle: #98a2b3;
  --border: #e6e8ec;
  --border-soft: #eff1f4;
  --primary: #3b5cff;
  --primary-hover: #2f4be0;
  --primary-soft: #eef1ff;
  --ring: rgba(59, 92, 255, .35);
  --green: #15803d; --green-solid: #22c55e; --green-soft: #dcfce7;
  --amber: #b45309; --amber-solid: #f59e0b; --amber-soft: #fef3c7;
  --red: #b91c1c; --red-solid: #ef4444; --red-soft: #fee2e2;
  --band: #0b1220;
  --accent: #6ea0ff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-md: 0 4px 8px -2px rgba(16, 24, 40, .08), 0 12px 24px -6px rgba(16, 24, 40, .10);
  --shadow-lg: 0 24px 64px -12px rgba(16, 24, 40, .28);
  --side: 272px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--background); color: var(--text);
  font: 400 15px/1.5 'Geist', Inter, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; letter-spacing: -.003em;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--ring); border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 90; }
.skip:focus { left: 8px; top: 8px; }

/* ---- shell ----------------------------------------------------------------------------- */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.stage { min-width: 0; display: flex; flex-direction: column; }
.main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 36px 56px; outline: none; }
.main > * { animation: rise .32s var(--ease) both; }
.loading { color: var(--muted); padding: 48px 0; }
.skeleton > *, .skeleton__row i { border-radius: var(--radius); background: linear-gradient(100deg, #e9ecf1 40%, #f4f6f9 50%, #e9ecf1 60%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton__hero { height: 300px; border-radius: 20px; background-color: #dfe3ea; }
.skeleton__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; background: none !important; animation: none !important; }
.skeleton__row i { display: block; height: 150px; }
.skeleton__block { height: 220px; margin-top: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- sidebar: the agenda -------------------------------------------------------------------- */
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 20px 14px 16px; color: rgba(255, 255, 255, .72);
  background: radial-gradient(120% 60% at 0% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), var(--band);
  display: flex; flex-direction: column; gap: 4px;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; text-decoration: none; color: #fff; }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #06101f;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff)); box-shadow: 0 6px 18px -6px var(--accent); }
.brand__name { font-weight: 650; font-size: 15.5px; letter-spacing: -.01em; line-height: 1.2; display: block; }
.brand__product { font-size: 12.5px; color: rgba(255, 255, 255, .6); display: block; }
.side__label { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 10px 6px; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .45); }
.agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.agenda a, .side__links a {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 9px;
  text-decoration: none; font-size: 14px; color: rgba(255, 255, 255, .78); transition: background .15s, color .15s;
}
.agenda a:hover, .side__links a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.agenda a[aria-current="page"], .side__links a[aria-current="page"] { background: rgba(255, 255, 255, .12); color: #fff; font-weight: 550; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.agenda__n { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 11.5px; font-weight: 600; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .7); }
.agenda a[aria-current="page"] .agenda__n { background: var(--accent); color: #06101f; }
.agenda__t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda__m { font-size: 12px; color: rgba(255, 255, 255, .45); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.agenda__m.is-late { color: #fca5a5; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot--on { background: var(--green-solid); }
.dot--watch { background: var(--amber-solid); }
.dot--off { background: var(--red-solid); box-shadow: 0 0 0 3px rgba(239, 68, 68, .25); }
.side__start { margin: 12px 4px 8px; }
.side__links { list-style: none; margin: 6px 0 0; padding: 10px 0 0; border-top: 1px solid rgba(255, 255, 255, .08); display: grid; gap: 2px; }
.side__links a { grid-template-columns: 22px minmax(0, 1fr); }
.side__links svg.i { justify-self: center; opacity: .8; }
.side__who { margin-top: auto; padding: 12px 10px 4px; display: flex; align-items: center; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
.side__who small { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .45); }
.side__who b { display: block; font-size: 13px; font-weight: 550; color: #fff; line-height: 1.25; }

/* ---- top bar --------------------------------------------------------------------------------- */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 12px 36px; background: rgba(245, 246, 248, .82); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); min-width: 0; }
.crumb b { color: var(--foreground); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb svg.i { width: 14px; height: 14px; color: var(--subtle); }
.bar__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ---- primitives -------------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid transparent;
  background: var(--primary); color: #fff; font-weight: 550; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background .15s, transform .12s var(--ease), box-shadow .15s, border-color .15s;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .1), inset 0 1px 0 rgba(255, 255, 255, .14); }
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: scale(.97); }
.btn--ghost { background: var(--card); color: var(--foreground); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { background: #f9fafb; border-color: #d5d9e0; }
.btn--accent { background: var(--accent); color: #06101f; width: 100%; box-shadow: 0 8px 20px -8px var(--accent); }
.btn--accent:hover { background: color-mix(in srgb, var(--accent) 82%, #fff); }
.btn--sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn--icon { width: 32px; height: 32px; padding: 0; border-radius: 9px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.linklike { background: none; border: 0; padding: 0; color: var(--primary); font-weight: 500; text-decoration: none; }
.linklike:hover { text-decoration: underline; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.chip svg.i { width: 13px; height: 13px; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--on { background: var(--green-soft); color: var(--green); }
.badge--watch { background: var(--amber-soft); color: var(--amber); }
.badge--off { background: var(--red-soft); color: var(--red); }
.badge--plain { background: #f2f4f7; color: var(--muted); }
.badge--plain::before, .badge--dark::before { display: none; }
.badge--dark { background: var(--foreground); color: #fff; }

.avatar { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 650; color: #fff; flex: none; letter-spacing: 0; }
.avatar--lg { width: 34px; height: 34px; font-size: 12.5px; }
.avatar--ghost { background: rgba(255, 255, 255, .1); color: #fff; }
.person { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.sys { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px; font-size: 10.5px; font-weight: 700; color: #fff; letter-spacing: .01em; flex: none; }
.sysrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.sysrow .sys + .sys { margin-left: -2px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card--link { display: block; text-decoration: none; color: inherit; transition: transform .18s var(--ease), box-shadow .18s, border-color .18s; cursor: pointer; }
.card--link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #d9dde4; }

.section { margin-top: 36px; }
.section__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.section__head h2 { font-size: 17px; font-weight: 650; color: var(--foreground); letter-spacing: -.015em; }
.section__head .count { font-size: 12.5px; font-weight: 600; color: var(--muted); background: #eceff3; border-radius: 999px; padding: 1px 8px; }
.section__head p { font-size: 13.5px; color: var(--muted); margin-left: auto; }
.section__head p a { color: var(--primary); text-decoration: none; font-weight: 500; }

/* ---- page title ---------------------------------------------------------------------------------- */
.title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-bottom: 22px; }
.title h1 { font-size: 30px; line-height: 1.12; font-weight: 680; letter-spacing: -.032em; color: var(--foreground); }
.title__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.title__sub { flex: 0 0 100%; color: var(--muted); margin-top: -4px; }
.title__sub span { display: block; max-width: 76ch; }

/* ---- hero: the one dark surface ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; border-radius: 20px; color: #fff; padding: 28px 30px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 32px; align-items: center;
  background: radial-gradient(90% 140% at 100% 0%, rgba(59, 92, 255, .55), transparent 55%), radial-gradient(70% 120% at 0% 100%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%), #0b1220;
  box-shadow: 0 24px 48px -24px rgba(11, 18, 32, .55); }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 32px 32px;
  mask-image: radial-gradient(80% 100% at 100% 0%, #000, transparent 70%); -webkit-mask-image: radial-gradient(80% 100% at 100% 0%, #000, transparent 70%); }
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: 34px; line-height: 1.08; font-weight: 680; letter-spacing: -.035em; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.hero__meta .chip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .82); }
.health { display: flex; align-items: center; gap: 22px; }
.health__legend { display: grid; gap: 7px; font-size: 13.5px; color: rgba(255, 255, 255, .78); }
.health__legend span { display: flex; align-items: center; gap: 9px; }
.health__legend b { color: #fff; font-weight: 650; min-width: 12px; }
.ring text { font-family: inherit; fill: #fff; }
.kpis { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kpi { display: block; text-decoration: none; color: #fff; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(6px); transition: background .18s, transform .18s var(--ease); }
a.kpi:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.kpi__k { font-size: 13px; color: rgba(255, 255, 255, .66); display: flex; align-items: center; gap: 7px; }
.kpi__v { font-size: 34px; line-height: 1.1; font-weight: 680; letter-spacing: -.03em; margin-top: 6px; }
.kpi__v small { font-size: 16px; font-weight: 500; color: rgba(255, 255, 255, .55); letter-spacing: 0; }
.kpi__s { font-size: 12.5px; line-height: 1.35; color: rgba(255, 255, 255, .6); margin-top: 4px; min-height: 2.7em; }
.nowrap { white-space: nowrap; }
.kpi--alert .kpi__v { color: #fca5a5; }

/* ---- decisions ------------------------------------------------------------------------------------ */
.decision { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); overflow: hidden; margin-bottom: 14px; }
.decision__case { padding: 22px 24px 24px; }
.decision__thread { padding: 22px 24px 24px; background: #fafbfc; border-left: 1px solid var(--border-soft); }
.decision__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.decision__meta a { text-decoration: none; }
.decision__title { font-size: 19px; line-height: 1.3; font-weight: 650; letter-spacing: -.018em; color: var(--foreground); text-wrap: balance; }
.decision__summary { margin-top: 8px; color: #475467; max-width: 62ch; }
.stake { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 7px 12px; border-radius: 10px; background: #fff7ed; color: #9a3412; font-weight: 600; font-size: 13.5px; border: 1px solid #fed7aa; }
.decision__ask { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border); }
.decision__question { font-weight: 650; color: var(--foreground); margin-bottom: 10px; }
.options { display: grid; gap: 8px; }
.option { position: relative; text-align: left; width: 100%; display: block; padding: 12px 14px 12px 42px; border-radius: 12px; border: 1px solid var(--border); background: #fff; transition: border-color .15s, box-shadow .15s, background .15s; }
.option::before { content: ''; position: absolute; left: 14px; top: 14px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #c4cad4; background: #fff; transition: border-color .15s, box-shadow .15s; }
.option:hover { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px var(--ring); }
.option:hover::before { border-color: var(--primary); box-shadow: inset 0 0 0 3.5px #fff, inset 0 0 0 8px var(--primary); }
.option__label { font-weight: 600; color: var(--foreground); display: block; }
.option__cost { color: var(--muted); font-size: 13.5px; display: block; margin-top: 1px; }
.decided { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: 12px; background: var(--green-soft); border: 1px solid #bbf7d0; }
.decided__tick { width: 28px; height: 28px; border-radius: 50%; background: var(--green-solid); color: #fff; display: grid; place-items: center; }
.decided strong { color: #14532d; font-weight: 650; display: block; }
.decided p { font-size: 13.5px; color: #166534; margin-top: 2px; }
.decided .linklike { margin-top: 6px; font-size: 13px; color: #166534; text-decoration: underline; }

.thread__title { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.thread { list-style: none; margin: 0; padding: 0; position: relative; }
.thread::before { content: ''; position: absolute; left: 10.5px; top: 12px; bottom: 22px; width: 1.5px; background: linear-gradient(var(--border), var(--border)); }
.thread li { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; font-size: 14px; }
.thread li:last-child { padding-bottom: 0; }
.thread .sys { position: relative; z-index: 1; box-shadow: 0 0 0 3px #fafbfc; }
.thread__head { font-size: 12.5px; color: var(--muted); }
.thread__head b { color: var(--foreground); font-weight: 600; }
.thread__ref { font-weight: 600; color: var(--foreground); }
.thread__text { color: #475467; }
.thread__foot { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.flag { color: var(--red); font-weight: 600; background: var(--red-soft); border-radius: 6px; padding: 1px 7px; }

.watching { overflow: hidden; margin-bottom: 10px; }
.watching summary { list-style: none; cursor: pointer; padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; transition: background .15s; }
.watching summary::-webkit-details-marker { display: none; }
.watching summary:hover { background: #fafbfc; }
.watching__title { font-weight: 600; color: var(--foreground); }
.watching__meta { color: var(--muted); font-size: 12.5px; margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.watching__meta svg.i { transition: transform .2s var(--ease); }
.watching[open] .watching__meta svg.i { transform: rotate(90deg); }
.watching[open] summary { border-bottom: 1px solid var(--border-soft); }
.watching__body { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
.watching__body > div { padding: 18px 24px 22px; }
.watching__body > div + div { background: #fafbfc; border-left: 1px solid var(--border-soft); }

/* ---- team cards and measure cards --------------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.team { padding: 18px 18px 16px; }
.team__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.team__name { font-size: 16px; font-weight: 650; color: var(--foreground); letter-spacing: -.015em; }
.team__lead { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.team__label { margin-top: 16px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team__metric { margin-top: 2px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.team__value { font-size: 28px; line-height: 1.15; font-weight: 680; letter-spacing: -.03em; color: var(--foreground); white-space: nowrap; }
.team__target { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.v--watch { color: var(--amber) !important; }
.v--off { color: var(--red) !important; }
.team__foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.team__foot .late { color: var(--red); font-weight: 600; }

.strip { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.strip i { display: block; width: 6px; border-radius: 2px; }
.strip .s-on { height: 6px; background: var(--green-solid); opacity: .55; }
.strip .s-watch { height: 12px; background: var(--amber-solid); }
.strip .s-off { height: 18px; background: var(--red-solid); }
.strip--large { height: 40px; gap: 5px; }
.strip--large i { width: 100%; min-width: 14px; border-radius: 4px; }
.strip--large .s-on { height: 12px; }
.strip--large .s-watch { height: 25px; }
.strip--large .s-off { height: 40px; }

.summary { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; }
.story { padding: 20px 22px; }
.story__k { font-size: 12.5px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.story p { font-size: 16px; line-height: 1.55; color: var(--foreground); }
.story .note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-soft); display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; font-size: 14px; color: #475467; }
.story .note b { color: var(--foreground); font-weight: 600; }
.trend { padding: 20px 22px; display: flex; flex-direction: column; }
.trend .strip { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; margin-top: auto; }
.trend__axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--subtle); margin-top: 8px; }

.measure { padding: 16px 18px 14px; text-align: left; width: 100%; font: inherit; }
.measure__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.measure__name { font-size: 14px; font-weight: 600; color: var(--foreground); line-height: 1.35; }
.measure__row { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; }
.measure__value { font-size: 28px; line-height: 1.1; font-weight: 680; letter-spacing: -.03em; color: var(--foreground); }
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 600; border-radius: 6px; padding: 1px 6px; }
.delta svg.i { width: 12px; height: 12px; stroke-width: 2.4; }
.delta--good { color: var(--green); background: var(--green-soft); }
.delta--bad { color: var(--red); background: var(--red-soft); }
.delta--flat { color: var(--muted); background: #f2f4f7; }
.measure__spark { margin: 10px -4px 0; display: block; width: calc(100% + 8px); height: 44px; }
.measure__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.tag { font-size: 11.5px; font-weight: 600; color: var(--primary); background: var(--primary-soft); border-radius: 6px; padding: 1px 7px; white-space: nowrap; }

/* ---- commitments ----------------------------------------------------------------------------------- */
.mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mini .card { padding: 16px 18px; }
.mini__k { font-size: 13px; color: var(--muted); }
.mini__v { font-size: 30px; line-height: 1.15; font-weight: 680; letter-spacing: -.03em; color: var(--foreground); margin-top: 4px; }
.list { overflow: hidden; }
.promise { display: grid; grid-template-columns: 92px minmax(0, 1fr) 190px 124px 104px; gap: 14px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--border-soft); transition: background .15s; }
.promise:last-child { border-bottom: 0; }
.promise:hover { background: #fafbfc; }
.promise__action { font-weight: 600; color: var(--foreground); }
.promise__action small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.promise__due { white-space: nowrap; font-size: 14px; }
.promise__due small { display: block; color: var(--muted); font-size: 12.5px; }
.promise--late .promise__due, .promise--late .promise__due small { color: var(--red); font-weight: 600; }
.promise--done .promise__action { color: var(--muted); font-weight: 500; text-decoration: line-through; text-decoration-color: #d0d5dd; }
.promise__act { text-align: right; }
.tally { display: block; }
.tally-note { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.empty { color: var(--muted); padding: 16px 18px; font-size: 14px; }

.add { padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) 160px auto; gap: 12px; align-items: end; }
.add label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.add input, .add select { height: 36px; padding: 0 11px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--foreground); font: inherit; font-size: 14px; width: 100%; transition: border-color .15s, box-shadow .15s; }
.add input:focus, .add select:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }

/* ---- brief ----------------------------------------------------------------------------------------- */
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.brief { max-width: 860px; padding: 40px 48px 34px; }
.brief__head { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.brief__head .brand__mark { background: linear-gradient(135deg, var(--band), #26324d); color: #fff; box-shadow: none; }
.brief__org { font-weight: 650; color: var(--foreground); font-size: 16px; }
.brief__kind { color: var(--muted); font-size: 13px; }
.brief__stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.brief__stats div { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 12.5px; color: var(--muted); }
.brief__stats b { display: block; font-size: 24px; line-height: 1.1; font-weight: 680; letter-spacing: -.03em; color: var(--foreground); margin-bottom: 2px; }
.brief h3 { font-size: 13px; font-weight: 650; color: var(--foreground); margin: 28px 0 4px; }
.brief__item { padding: 10px 0; border-bottom: 1px solid var(--border-soft); font-size: 14.5px; color: #475467; }
.brief__item strong { font-weight: 600; color: var(--foreground); display: block; }
.brief__team { display: grid; grid-template-columns: 170px 96px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-soft); align-items: center; font-size: 14.5px; color: #475467; }
.brief__team strong { font-weight: 600; color: var(--foreground); }
.brief__foot { margin-top: 22px; color: var(--subtle); font-size: 12.5px; }
.brief .empty { padding: 10px 0; }

/* ---- sources ---------------------------------------------------------------------------------------- */
.route { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.route li { counter-increment: step; padding: 18px 20px 20px; font-size: 14px; color: #475467; }
.route li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 13px; margin-bottom: 12px; }
.route strong { display: block; font-weight: 650; color: var(--foreground); font-size: 15px; margin-bottom: 3px; }
.system { padding: 16px 18px; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; }
.system .sys { min-width: 38px; height: 38px; border-radius: 11px; font-size: 13px; }
.system__name { font-weight: 650; color: var(--foreground); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.system__where { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.system__foot { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.system__foot b { color: var(--foreground); font-weight: 600; }
.live { display: inline-flex; align-items: center; gap: 6px; }
.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green-solid); box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }

/* ---- pager ------------------------------------------------------------------------------------------ */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); }
.pager__at { color: var(--muted); font-size: 13px; }

/* ---- drawer, modal, toast --------------------------------------------------------------------------- */
.scrim { position: fixed; inset: 0; background: rgba(11, 18, 32, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 40; animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.drawer { position: fixed; top: 10px; right: 10px; bottom: 10px; width: min(640px, calc(100vw - 20px)); background: var(--card); z-index: 41; border-radius: 18px; box-shadow: var(--shadow-lg); overflow-y: auto; padding: 26px 28px 32px; animation: slide .26s var(--ease); }
@keyframes slide { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.drawer__head h2 { font-size: 22px; line-height: 1.2; font-weight: 680; letter-spacing: -.025em; color: var(--foreground); }
.drawer__head .sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.facts div { border: 1px solid var(--border); border-radius: 12px; padding: 11px 13px; font-size: 12.5px; color: var(--muted); }
.facts b { display: block; font-size: 19px; line-height: 1.15; color: var(--foreground); font-weight: 680; letter-spacing: -.02em; margin-bottom: 2px; white-space: nowrap; }
.chartbox { border: 1px solid var(--border); border-radius: 14px; padding: 12px 8px 4px; }
.chart text { font-family: inherit; font-size: 11.5px; fill: var(--muted); }
.drawer h3 { margin: 22px 0 5px; font-size: 13px; font-weight: 650; color: var(--foreground); }
.drawer p { color: #475467; font-size: 14.5px; }

.modal { position: fixed; z-index: 51; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; background: var(--card); border-radius: 20px; padding: 30px 32px 26px; box-shadow: var(--shadow-lg); animation: pop .26s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.modal .brand__mark { margin-bottom: 16px; width: 42px; height: 42px; border-radius: 13px; font-size: 18px; background: linear-gradient(135deg, var(--band), #26324d); color: #fff; box-shadow: none; }
.modal h2 { font-size: 24px; line-height: 1.18; font-weight: 680; letter-spacing: -.03em; color: var(--foreground); }
.modal p { margin-top: 10px; color: #475467; }
.steps3 { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.steps3 li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; font-size: 14px; color: #475467; }
.steps3 .ico { width: 32px; height: 32px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.steps3 strong { display: block; color: var(--foreground); font-weight: 650; }
.modal ul.plain { margin: 14px 0 0; padding-left: 18px; color: #475467; font-size: 14.5px; }
.modal ul.plain li { margin-top: 8px; }
.modal ul.plain strong { color: var(--foreground); font-weight: 650; }
.modal__foot { margin-top: 22px; display: flex; align-items: center; gap: 16px; }
.modal__by { color: var(--muted); font-size: 12.5px; margin-left: auto; text-align: right; }
.modal__by a { color: var(--primary); text-decoration: none; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--foreground); color: #fff; padding: 10px 16px 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 500; z-index: 60; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 9px; animation: toast .28s var(--ease); }
.toast svg.i { color: var(--green-solid); }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
body.is-presenting .toast { bottom: 96px; }

.foot { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 36px 28px; color: var(--subtle); font-size: 12.5px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.foot .linklike { color: var(--muted); font-weight: 500; }

/* ---- meeting mode: the agenda as slides --------------------------------------------------------------- */
body.is-presenting .app { grid-template-columns: minmax(0, 1fr); }
body.is-presenting .side, body.is-presenting .foot, body.is-presenting .bar, body.is-presenting .pager { display: none; }
body.is-presenting .main { max-width: 1280px; padding: 40px 48px 130px; }
.progress { position: absolute; top: 0; left: 20px; right: 20px; height: 3px; border-radius: 0 0 3px 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #6e8bff, #a78bfa); border-radius: 3px; transition: width .4s var(--ease); }
.stepper { position: fixed; z-index: 30; left: 50%; bottom: 22px; transform: translateX(-50%); width: min(760px, calc(100vw - 32px)); display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px;
  padding: 10px 10px 10px 18px; border-radius: 18px; color: #fff; background: rgba(11, 18, 32, .88); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .1); box-shadow: var(--shadow-lg); }
.stepper__where { min-width: 0; }
.stepper__where b { display: block; font-weight: 650; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper__where span { display: block; color: rgba(255, 255, 255, .55); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper__clock { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 650; padding: 0 4px; }
.stepper__clock small { font-size: 12.5px; font-weight: 400; color: rgba(255, 255, 255, .55); }
.stepper__clock.is-over { color: #fca5a5; }
.stepper__nav { display: flex; gap: 6px; }
.stepper .btn--ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; }
.stepper .btn--ghost:hover { background: rgba(255, 255, 255, .16); }
.stepper .btn--next { background: #fff; color: var(--foreground); }
.stepper .btn--next:hover { background: #e8ebf0; }
kbd { font: inherit; font-size: 11px; padding: 1px 5px; border-radius: 5px; background: rgba(11, 18, 32, .08); color: inherit; opacity: .8; }

/* ---- responsive --------------------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise { grid-template-columns: 84px minmax(0, 1fr) 150px 110px 100px; }
}
@media (max-width: 980px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; padding: 14px 16px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
  .brand { padding: 0; flex: 1; }
  .side__label, .side__who, .side__start { display: none; }
  .agenda { order: 3; flex-basis: 100%; display: flex; overflow-x: auto; gap: 4px; padding-bottom: 2px; }
  .agenda li { flex: none; }
  .agenda a { grid-template-columns: 22px auto auto; }
  .side__links { order: 2; border: 0; margin: 0; padding: 0; display: flex; }
  .side__links a { grid-template-columns: auto; }
  .side__links svg.i { display: none; }
  .decision, .watching__body, .summary { grid-template-columns: minmax(0, 1fr); }
  .decision__thread, .watching__body > div + div { border-left: 0; border-top: 1px solid var(--border-soft); }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .add { grid-template-columns: 1fr 1fr; }
  .route { grid-template-columns: 1fr; }
  .mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brief__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .main { padding: 20px 16px 48px; }
  .bar { padding: 10px 16px; }
  .bar .chip { display: none; }
  .foot { padding: 0 16px 24px; }
  .grid, .kpis { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 22px 20px; border-radius: 16px; }
  .hero h1 { font-size: 27px; }
  .title h1 { font-size: 25px; }
  .promise { grid-template-columns: 64px minmax(0, 1fr); }
  .promise > div:nth-child(n+3) { grid-column: 2; text-align: left; }
  .brief { padding: 24px 20px; }
  .brief__team { grid-template-columns: minmax(0, 1fr) auto; }
  .brief__team span:last-child { grid-column: 1 / -1; }
  .facts { grid-template-columns: 1fr 1fr; }
  .stepper { grid-template-columns: minmax(0, 1fr) auto; }
  .stepper__clock { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body { background: #fff; }
  .side, .bar, .pager, .foot, .actions, .stepper, .toast, .title, .progress { display: none !important; }
  .app { display: block; }
  .main { padding: 0; max-width: none; }
  .brief { border: 0; box-shadow: none; padding: 0; max-width: none; }
}
