/* EXB shell — Swiss GRC corporate design (CD manual, Oct 2023).
   House font Montserrat (bundled woff2, offline). Primary navy #1A2E4C,
   accent pink #BD2F54 (the CD's signature underline dash), gray #666666;
   secondary teal #00788C / blue #3062A5 / mint #00BFAD. Single light theme. */

@font-face { font-family: Montserrat; font-weight: 300; font-style: normal; font-display: swap; src: url('/assets/fonts/montserrat-300.woff2') format('woff2'); }
@font-face { font-family: Montserrat; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fonts/montserrat-400.woff2') format('woff2'); }
@font-face { font-family: Montserrat; font-weight: 500; font-style: normal; font-display: swap; src: url('/assets/fonts/montserrat-500.woff2') format('woff2'); }
@font-face { font-family: Montserrat; font-weight: 600; font-style: normal; font-display: swap; src: url('/assets/fonts/montserrat-600.woff2') format('woff2'); }
@font-face { font-family: Montserrat; font-weight: 700; font-style: normal; font-display: swap; src: url('/assets/fonts/montserrat-700.woff2') format('woff2'); }

:root {
  --navy: #1A2E4C;
  --ink: #1A2E4C;
  --ink-2: #46536B;
  --gray: #666666;
  --muted: #8A93A5;
  --pink: #BD2F54;
  --pink-soft: #F8E9ED;
  --teal: #00788C;
  --teal-soft: #E3F0F3;
  --blue: #3062A5;
  --mint: #00BFAD;
  --canvas: #F3F5F8;
  --panel: #F8F9FB;
  --raised: #FFFFFF;
  --hairline: #E0E4EA;
  --row-hover: #EBEEF3;
  --r-tile: 4px; --r-control: 6px; --r-panel: 8px; --r-pill: 999px;
  --elev-raised: 0 1px 3px rgb(26 46 76 / .07);
  --elev-overlay: 0 16px 40px rgb(26 46 76 / .30);
  --sans: Montserrat, "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--sans); font-size: 13.5px; line-height: 1.55; color: var(--ink); background: var(--canvas); }

/* The CD's signature: a short pink dash under headings. */
.dash { display: block; width: 38px; height: 3px; background: var(--pink); border-radius: 2px; margin-top: 10px; }

/* ---- layout ---- */
.app { display: flex; min-height: 100vh; }
.rail {
  width: 252px; flex-shrink: 0; background: var(--raised); color: var(--ink);
  border-right: 1px solid var(--hairline);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
  background-image: linear-gradient(rgb(255 255 255 / .96), rgb(255 255 255 / .96)), url('/assets/brand/symbol.svg');
  background-repeat: no-repeat; background-position: 0 0, -170px calc(100% + 170px); background-size: auto, 420px;
}
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content { padding: 40px 48px 72px; max-width: 1240px; width: 100%; margin: 0 auto; flex: 1; }
.content.full { max-width: none; padding: 0; display: flex; }

/* ---- rail ---- */
.brand { padding: 26px 24px 18px; }
.brand-row { display: flex; align-items: center; gap: 12px; }
.mark { font-size: 26px; font-weight: 300; letter-spacing: .04em; color: var(--ink); line-height: 1; }
.mark b { font-weight: 700; color: var(--pink); }
.brand-sep { width: 1px; height: 22px; background: var(--hairline); flex-shrink: 0; }
.brand-logo { height: 15px; width: auto; display: block; }
.plane {
  margin: 0 24px 4px; padding: 8px 0 14px; border-bottom: 1px solid var(--hairline);
  color: var(--muted); font-size: 9.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
nav.groups { flex: 1; overflow-y: auto; padding: 10px 0 14px; }
.nav-group { margin-top: 18px; }
.nav-group h4 {
  margin: 0 0 6px; padding: 0 24px; font-size: 9.5px; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: .16em;
}
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 24px;
  color: var(--ink-2); text-decoration: none; font-size: 13px; font-weight: 400;
  border-left: 3px solid transparent;
}
.nav-item:hover { background: var(--row-hover); color: var(--ink); }
.nav-item.active { background: var(--pink-soft); color: var(--pink); border-left-color: var(--pink); font-weight: 600; }
.nav-item svg { width: 15px; height: 15px; flex-shrink: 0; opacity: .85; }
.identity { border-top: 1px solid var(--hairline); padding: 16px 24px; display: flex; gap: 11px; align-items: center; }
.avatar {
  width: 34px; height: 34px; border-radius: 9999px; background: var(--pink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.identity .who { min-width: 0; flex: 1; }
.identity .who .n { font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.identity .who .r { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.identity button { border: none; background: none; color: var(--muted); cursor: pointer; font-size: 11px; font-family: inherit; padding: 4px 0; }
.identity button:hover { color: var(--pink); }

/* ---- typography ---- */
h1.page { font-size: 26px; font-weight: 300; margin: 0; color: var(--navy); }
h1.page b, h1.page strong { font-weight: 700; }
h1.page + .dash { margin-bottom: 14px; }
.page-sub { color: var(--gray); font-size: 12.5px; font-weight: 300; margin: 10px 0 30px; }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gray); margin-bottom: 10px; }

/* ---- primitives ---- */
.panel { background: var(--raised); border: 1px solid var(--hairline); border-radius: var(--r-panel); box-shadow: var(--elev-raised); padding: 20px 24px; }
.panel h2 { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); margin: 0 0 16px; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.col-4 { grid-column: span 4; } .col-6 { grid-column: span 6; } .col-8 { grid-column: span 8; } .col-12 { grid-column: span 12; }
@media (max-width: 980px) { .col-4, .col-6, .col-8 { grid-column: span 12; } }

.btn {
  border: 1px solid var(--hairline); background: var(--raised); color: var(--ink);
  border-radius: var(--r-control); padding: 7px 15px; font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer;
}
.btn:hover { border-color: var(--pink); color: var(--pink); }
.btn.primary { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn.primary:hover { background: #A32846; border-color: #A32846; }
.btn.danger { color: var(--pink); }
.btn.danger:hover { border-color: var(--pink); }
.btn:disabled { opacity: .5; cursor: default; }

input, select {
  font: inherit; font-size: 13px; border: 1px solid var(--hairline); border-radius: var(--r-control);
  padding: 8px 11px; color: var(--ink); background: var(--raised); width: 100%;
}
input:focus { outline: 2px solid var(--pink-soft); border-color: var(--pink); }
label.field { display: block; font-size: 11.5px; color: var(--ink-2); font-weight: 600; margin-bottom: 13px; }
label.field input, label.field select { margin-top: 5px; font-weight: 400; }

table.list { width: 100%; border-collapse: collapse; font-size: 13px; }
table.list th {
  text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-2); padding: 9px 10px; border-bottom: 2px solid var(--hairline); font-weight: 600;
}
table.list td { padding: 10px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
table.list tr:hover td { background: var(--panel); }
.mono { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: 12px; }

.pill { display: inline-block; padding: 2px 9px; border-radius: var(--r-pill); font-size: 10.5px; font-weight: 600; }
.pill.role { background: var(--pink-soft); color: var(--pink); margin: 1px 3px 1px 0; }
.pill.ok { background: var(--teal-soft); color: var(--teal); }
.pill.off { background: var(--pink-soft); color: var(--pink); }
.pill.warn { background: #FBF3E4; color: #9A6B00; }

.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 18px; }
.checks label { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.checks input { width: auto; margin-top: 2px; accent-color: var(--pink); }
.checks .desc { color: var(--muted); font-size: 11px; display: block; }

.muted { color: var(--muted); }
.spacer { flex: 1; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mt { margin-top: 18px; }

/* ---- executive briefing (Home) ---- */
.masthead { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.masthead h1 { font-size: 32px; font-weight: 300; margin: 0; color: var(--navy); }
.masthead h1 strong { font-weight: 700; }
.masthead .date { color: var(--gray); font-size: 12px; font-weight: 300; letter-spacing: .02em; }

.kpi-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--raised); border: 1px solid var(--hairline); border-radius: var(--r-panel); box-shadow: var(--elev-raised); overflow: hidden; }
@media (max-width: 980px) { .kpi-strip { grid-template-columns: repeat(2, 1fr); } }
.kpi { padding: 22px 26px 20px; border-left: 1px solid var(--hairline); }
.kpi:first-child { border-left: 0; }
.kpi .k { font-size: 10px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--gray); }
.kpi .v { font-size: 30px; font-weight: 600; color: var(--navy); margin-top: 8px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.kpi .d { font-size: 11.5px; margin-top: 6px; color: var(--ink-2); }
.kpi .d .delta { font-weight: 700; }
.delta.up { color: var(--teal); } .delta.down { color: var(--pink); }
.kpi.clickable { cursor: pointer; }
.kpi.clickable:hover { background: var(--panel); }

.brief-note { font-size: 11.5px; color: var(--muted); margin-top: 10px; font-weight: 300; }

.attention { font-size: 13px; font-weight: 300; color: var(--ink-2); margin: 2px 0 20px; }
.attention b { font-weight: 700; }
.attention a { color: var(--pink); font-weight: 500; text-decoration: none; }
.attention a:hover { text-decoration: underline; }

.mod-list { border-top: 1px solid var(--hairline); }
.mod-row { display: flex; align-items: center; gap: 16px; padding: 17px 4px; border-bottom: 1px solid var(--hairline); text-decoration: none; color: var(--ink); }
a.mod-row:hover { background: var(--row-hover); }
.mod-row .t { font-size: 15px; font-weight: 600; color: var(--navy); width: 220px; flex-shrink: 0; }
.mod-row .d { color: var(--ink-2); font-size: 12.5px; font-weight: 300; flex: 1; }
.mod-row .tag { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mod-row .tag.live { color: var(--teal); }
.mod-row .arrow { color: var(--pink); font-size: 16px; }
.mod-row .t.planned { color: var(--muted); font-weight: 500; }

/* ---- boardroom ---- */
.empty { color: var(--muted); font-size: 13px; font-weight: 300; padding: 18px 0 6px; }
.btn.sm { padding: 4px 10px; font-size: 11.5px; }

.bd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.bd-card {
  background: var(--raised); border: 1px solid var(--hairline); border-radius: var(--r-panel);
  box-shadow: var(--elev-raised); padding: 18px 20px 14px; cursor: pointer;
  border-top: 3px solid var(--pink);
}
.bd-card:hover { border-color: var(--pink); }
.bd-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bd-title { font-size: 15.5px; font-weight: 600; color: var(--navy); line-height: 1.4; }
.bd-context {
  font-size: 12.5px; font-weight: 300; color: var(--ink-2); margin-top: 8px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bd-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 11px; color: var(--muted); }
.bd-meta b { color: var(--ink-2); font-weight: 600; }

.bd-memory { border-top: 1px solid var(--hairline); }
.bd-mem { display: flex; align-items: baseline; gap: 16px; padding: 12px 4px; border-bottom: 1px solid var(--hairline); cursor: pointer; }
.bd-mem:hover { background: var(--row-hover); }
.bd-mem-date { font-size: 11px; color: var(--muted); width: 92px; flex-shrink: 0; }
.bd-mem-title { font-weight: 600; color: var(--navy); font-size: 13.5px; flex-shrink: 0; max-width: 34%; }
.bd-mem-outcome { flex: 1; font-size: 12.5px; font-weight: 300; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.act-group { margin-bottom: 6px; }
.act-group-h { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); padding: 12px 4px 6px; }
.act-group-h.late { color: var(--pink); }
.act-group-h.muted { color: var(--muted); }
.act-row { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--hairline); font-size: 13px; }
.act-row.closed { opacity: .55; }
.act-dot { width: 8px; height: 8px; border-radius: 99px; flex-shrink: 0; }
.act-dot.open { background: var(--teal); }
.act-dot.late { background: var(--pink); }
.act-dot.done { background: var(--muted); }
.act-title { flex: 1; min-width: 0; }
.act-owner { width: 130px; flex-shrink: 0; color: var(--ink-2); font-size: 12.5px; }
.act-due { width: 110px; flex-shrink: 0; font-size: 11.5px; color: var(--muted); }
.act-due.late { color: var(--pink); font-weight: 600; }
.chip {
  display: inline-block; background: var(--pink-soft); color: var(--pink); border-radius: var(--r-pill);
  font-size: 10.5px; font-weight: 600; padding: 1px 9px; margin-left: 6px; cursor: pointer;
  max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle;
}

/* decision drawer */
.side-bg { position: fixed; inset: 0; background: rgb(26 46 76 / .4); z-index: 90; }
.side {
  position: fixed; inset-block: 0; right: 0; width: min(560px, 94vw); background: var(--raised);
  box-shadow: var(--elev-overlay); z-index: 95; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .22s ease;
}
.side.open { transform: none; }
.side header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 24px 14px; border-bottom: 1px solid var(--hairline); }
.side header h3 { margin: 8px 0 0; font-size: 18px; font-weight: 600; color: var(--navy); line-height: 1.35; }
.side-body { overflow-y: auto; padding: 18px 24px 28px; flex: 1; }
.dr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-bottom: 16px; }
.dr-k { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.dr-v { font-size: 13px; color: var(--ink); }
.dr-sec { margin-top: 16px; }
.dr-sec .dr-v, .dr-sec > div:not(.dr-k) { font-size: 12.5px; font-weight: 300; color: var(--ink-2); line-height: 1.6; }
.dr-act { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 4px 0; color: var(--ink); }
.outcome-plate { background: var(--teal-soft); border-radius: var(--r-tile); padding: 12px 14px; font-size: 13px; color: var(--ink); margin-bottom: 4px; }
.timeline { border-left: 2px solid var(--hairline); margin-left: 4px; padding-left: 14px; margin-top: 6px; }
.tl-row { display: flex; gap: 10px; padding: 5px 0; position: relative; }
.tl-dot { position: absolute; left: -19.5px; top: 11px; width: 7px; height: 7px; border-radius: 99px; background: var(--pink); }
.tl-what { font-size: 12.5px; color: var(--ink); }
.tl-meta { font-size: 10.5px; color: var(--muted); }

/* ---- finance iframe ---- */
iframe.module-frame { border: 0; flex: 1; width: 100%; min-height: 100vh; background: #fff; }

/* ---- modal ---- */
.overlay { position: fixed; inset: 0; background: rgb(26 46 76 / .5); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 24px; }
.modal { background: var(--raised); border-radius: var(--r-panel); box-shadow: var(--elev-overlay); width: 100%; max-width: 460px; padding: 24px 26px; }
.modal h3 { margin: 0 0 4px; font-size: 18px; font-weight: 300; color: var(--navy); }
.modal h3 + form, .modal h3 + p { margin-top: 14px; }

/* ---- toast ---- */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: #2A2F36; color: #fff; padding: 9px 18px; border-radius: var(--r-control);
  font-size: 12.5px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 200;
}
.toast.show { opacity: 1; }

/* ---- login ---- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--canvas);
  background-image: linear-gradient(rgb(243 245 248 / .93), rgb(243 245 248 / .93)), url('/assets/brand/symbol.svg');
  background-repeat: no-repeat; background-position: 0 0, -220px calc(100% + 220px); background-size: auto, 640px;
}
.login-card { border: 1px solid var(--hairline); }
.login-card { width: 400px; background: var(--raised); border-radius: var(--r-panel); box-shadow: var(--elev-overlay); padding: 34px 38px 28px; }
.login-card .note { font-size: 12px; font-weight: 300; color: var(--gray); margin: 4px 0 4px; }
.login-card .dash { margin-bottom: 22px; }
.login-card .err { color: var(--pink); font-size: 12px; margin-top: 10px; min-height: 18px; }
.confidential {
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--hairline);
  font-size: 9.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center;
}
