/* Colors come from CSS variables, overridden at runtime from the Firestore
   settings/branding document (Settings → Branding Manager). */
:root {
  --primary: #1e88f7;
  --primary-text: #ffffff;
  --sidebar: #0b1626;
  --sidebar-text: #c6d2e2;
  --sidebar-active: #1e88f7;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --text: #1c2733;
  --text-muted: #66758a;
  --border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 4px 14px rgba(16,24,40,.05);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 15.5px/1.5 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); }
.hidden { display: none !important; }
.muted { color: var(--text-muted); }
.hint { font-size: 13px; color: var(--text-muted); font-weight: 400; }
.error-text { color: #d3402e; font-size: 14px; }

button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { width: 100%; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; font-weight: 600; }
label > * { font-weight: 400; }
.row-label { flex-direction: row; align-items: center; gap: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); padding: 8px 14px; border-radius: 8px; font-weight: 600; white-space: nowrap; }
.btn:hover { border-color: var(--primary); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-danger { background: #d3402e; border-color: #d3402e; color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 13.5px; }
.btn-google { width: 100%; padding: 10px; }

/* ------------------------------ login ------------------------------ */
.login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1000px 480px at 80% -10%, color-mix(in srgb, var(--primary) 16%, transparent), transparent), var(--bg); padding: 24px; }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow);
  padding: 40px 36px; width: 400px; max-width: 100%; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.login-logo { height: 52px; align-self: center; }
.login-card h1 { font-size: 21px; margin: 4px 0; }

/* ------------------------------ layout ----------------------------- */
.app { display: flex; min-height: 100vh; }
/* ===== Navigation sidebar (spec 013) — themed via Branding Manager ===== */
/* Default = green rail; .theme-light overrides. Accent set at runtime (--rail-accent). */
:root {
  --rail-bg: linear-gradient(176deg,#3a8545 0%,#2c6936 72%,#255b2e 100%);
  --rail-text: #c8ddc1; --rail-icon: #bcd5b3; --rail-muted: rgba(199,221,193,.6);
  --rail-hover-bg: rgba(255,255,255,.09); --rail-hover-text: #fff;
  --rail-active-bg: rgba(255,255,255,.16); --rail-active-text: #fff; --rail-active-icon: #fff;
  --rail-accent: #b7dcac; --rail-sub: rgba(199,221,193,.8);
  --rail-wordmark: #fff; --rail-card-bg: rgba(255,255,255,.07); --rail-card-border: rgba(255,255,255,.11);
  --toggle-bg: #2f7339; --toggle-border: rgba(255,255,255,.24); --toggle-glyph: #dcefd6;
  --rail-divider: rgba(255,255,255,.14); --rail-border: transparent;
}
.theme-light {
  --rail-bg: #f4f7f3; --rail-text: #566b5d; --rail-icon: #6f8676; --rail-muted: #93a89a;
  --rail-hover-bg: #e9f0e5; --rail-hover-text: #2c4233;
  --rail-active-bg: #e4f0de; --rail-active-text: #2c6a36; --rail-active-icon: #388541;
  --rail-sub: #6f8676; --rail-wordmark: #234d2a; --rail-card-bg: #fff; --rail-card-border: #e1e9dd;
  --toggle-bg: #fff; --toggle-border: #dbe6d6; --toggle-glyph: #5a8a52;
  --rail-divider: #dbe6d6; --rail-border: #e1e9dd;
}
.sidebar { position: sticky; top: 0; height: 100vh; width: 268px; flex-shrink: 0; background: var(--rail-bg);
  color: var(--rail-text); border-right: 1px solid var(--rail-border); display: flex; flex-direction: column;
  transition: width .26s cubic-bezier(.4,0,.2,1); }
.rail-toggle { position: absolute; top: 24px; right: -13px; z-index: 6; width: 26px; height: 26px; border-radius: 50%;
  background: var(--toggle-bg); border: 1px solid var(--toggle-border); color: var(--toggle-glyph); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; box-shadow: 0 2px 7px rgba(20,45,25,.2); }
/* Spec 014/014.1: logo is the prominent header element; app name small beneath it. */
.side-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px 14px; flex-shrink: 0; }
.side-brand img { width: 184px; max-width: 88%; height: auto; border-radius: 14px; object-fit: contain; }
.wordmark { font-size: 13px; font-weight: 600; letter-spacing: .2px; color: var(--rail-muted); white-space: nowrap; text-align: center; }
.sidebar.collapsed .side-brand img { width: 44px; }
.side-nav { display: flex; flex-direction: column; padding: 4px 14px 12px; flex: 1; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--rail-text) 35%, transparent) transparent; }
.side-nav::-webkit-scrollbar { width: 9px; }
.side-nav::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--rail-text) 30%, transparent); border-radius: 6px; }
.nav-label { font-size: 12px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--rail-muted);
  padding: 0 13px; margin: 20px 0 9px; }
.nav-group:first-child .nav-label { margin-top: 4px; }
.side-nav a, .side-group { position: relative; display: flex; align-items: center; gap: 11px; height: 42px;
  padding: 0 12px 0 13px; margin-bottom: 3px; border-radius: 10px; border: none; background: none; cursor: pointer;
  color: var(--rail-text); text-decoration: none; font-size: 15px; font-weight: 500; width: 100%; text-align: left;
  transition: background .15s, color .15s; }
.side-nav a::before, .side-group::before { content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 0; border-radius: 0 4px 4px 0; background: var(--rail-accent); transition: height .18s; }
.side-nav a:hover, .side-group:hover { background: var(--rail-hover-bg); color: var(--rail-hover-text); }
.side-nav a.active, .side-group.active { background: var(--rail-active-bg); color: var(--rail-active-text); font-weight: 600; }
.side-nav a.active::before, .side-group.active::before { height: 22px; }
.ic { width: 22px; height: 22px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--rail-icon); }
.ic svg { width: 21px; height: 21px; }
.side-nav a.active .ic, .side-group.active .ic { color: var(--rail-active-icon); }
.side-nav a:hover .ic, .side-group:hover .ic { color: var(--rail-hover-text); }
.nav-text { white-space: nowrap; overflow: hidden; }
.chev { margin-left: auto; font-size: 17px; transition: transform .18s; }
.side-group.open .chev { transform: rotate(90deg); }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 20px; background: #DE9946;
  color: #fff; font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.side-sub { display: flex; flex-direction: column; }
.side-sub a { height: auto; padding: 8px 12px 8px 48px; font-size: 14.5px; border-radius: 9px; margin-bottom: 2px; color: var(--rail-sub); }
.side-sub a::before { content: none; }
.side-footer { flex-shrink: 0; }
.profile-card { display: flex; align-items: center; gap: 10px; margin: 10px; padding: 11px 12px; border-radius: 14px;
  background: var(--rail-card-bg); border: 1px solid var(--rail-card-border); }
.pf-avatar { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; background: #55598A; object-fit: cover; }
.pf-meta { flex: 1; min-width: 0; }
.pf-name { font-size: 14.5px; font-weight: 700; color: var(--rail-wordmark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-role { font-size: 13px; margin-top: 1px; color: var(--rail-muted); }
.pf-logout { width: 30px; height: 30px; border-radius: 8px; border: none; background: none; cursor: pointer; color: var(--rail-icon);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pf-logout svg { width: 19px; height: 19px; }
.pf-logout:hover { background: var(--rail-hover-bg); color: var(--rail-hover-text); }
/* Collapsed (icon-only) */
.sidebar.collapsed { width: 80px; }
.sidebar.collapsed .wordmark, .sidebar.collapsed .nav-text, .sidebar.collapsed .chev,
.sidebar.collapsed .nav-badge, .sidebar.collapsed .pf-meta, .sidebar.collapsed .pf-logout { display: none; }
.sidebar.collapsed .side-brand { justify-content: center; padding: 0; }
.sidebar.collapsed .side-nav a, .sidebar.collapsed .side-group { justify-content: center; padding: 0; }
.sidebar.collapsed .nav-label { height: 1px; padding: 0; margin: 16px 16px 12px; background: var(--rail-divider); color: transparent; overflow: hidden; }
.sidebar.collapsed .nav-group:first-child .nav-label { margin: 6px 16px 12px; }
.sidebar.collapsed .side-sub { display: none; }
.sidebar.collapsed .profile-card { justify-content: center; padding: 11px 0; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 14px;
  background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 24px; }
.topbar h1 { font-size: 19px; margin: 0; flex: 1; }
.topbar-right { display: flex; gap: 10px; align-items: center; }
.topbar-right select { width: auto; }
.view { padding: 22px 24px 70px; max-width: 1280px; width: 100%; }

/* ------------------------------ cards ------------------------------ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card h3 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); text-align: center; }
.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: center; }
.statgrid .lbl { font-size: 13.5px; color: var(--text-muted); }
.statgrid .num { font-size: 26px; font-weight: 800; }
/* Overdue Initiatives tile (spec 014) */
.od-tile { text-align: center; cursor: pointer; padding: 14px 0 8px; }
.od-tile .num { font-size: 44px; font-weight: 800; line-height: 1; }
.od-tile .lbl { font-size: 13.5px; color: var(--text-muted); margin-top: 6px; }
/* Overdue initiatives popup (My Workspace) */
.od-modal-body { padding: 8px 20px 20px; max-height: 60vh; overflow-y: auto; }
.od-row { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: none;
  border: none; border-bottom: 1px solid var(--border); padding: 11px 2px; cursor: pointer; }
.od-row:last-child { border-bottom: none; }
.od-row:hover { background: #f7faf9; }
.od-row img { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }
.od-row-name { font-weight: 600; }
.od-row-due { flex-shrink: 0; font-size: 12.5px; font-weight: 700; color: #d8534a; white-space: nowrap; }
.gauge-wrap { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.gauge-num { font-size: 24px; font-weight: 800; margin-top: -38px; }
.gauge-sub { font-size: 13px; color: var(--text-muted); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input, .toolbar select { width: auto; min-width: 140px; }
.tabsbar { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.tabsbar button { border: none; background: none; padding: 9px 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; }
.tabsbar button.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ------------------------------ table ------------------------------ */
.okr-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.okr-table th, .okr-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 15px; vertical-align: middle; }
.okr-table th { background: #fafbfc; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); }
.okr-table tr.obj-row:hover td { background: color-mix(in srgb, var(--primary) 4%, transparent); }
.okr-table tr.kr-row td { background: #fbfcfe; font-size: 14.5px; }
.okr-table .twisty { cursor: pointer; user-select: none; width: 22px; display: inline-block; text-align: center; color: var(--text-muted); }
.tag { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; border-radius: 5px;
  font-size: 12px; font-weight: 800; color: #fff; margin-right: 8px; padding: 0 4px; }
.tag-o { background: #1565c0; } .tag-kr { background: #f0a30a; }
.olink { color: var(--primary); font-weight: 600; cursor: pointer; text-decoration: none; }
.olink:hover { text-decoration: underline; }
.badge { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 5px; color: #fff; white-space: nowrap; }
.gradecell { font-weight: 800; font-variant-numeric: tabular-nums; }
.wgt { display: inline-block; border: 1px solid var(--border); border-radius: 5px; padding: 1px 8px; font-size: 13.5px; background: #fafbfc; }
.lead-cell { display: flex; align-items: center; gap: 7px; }
.lead-cell img { width: 24px; height: 24px; border-radius: 50%; background: var(--border); }
.label-chip { display: inline-block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; font-size: 12.5px; border: 1px solid var(--border); background: #f1f5f9; border-radius: 999px; padding: 1px 8px; margin-right: 4px; }
/* Spec 023 §3: chips wrap instead of overflowing/overlapping their row. */
.label-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; max-width: 100%; }
.label-chips .label-chip { margin-right: 0; }
/* Spec 023 §4: filter bar + active label-filter chip. */
.ws-viewfilter { margin-top: -4px; flex-wrap: wrap; }
.vf-chip.on { background: var(--primary); color: var(--primary-text, #fff); border-color: var(--primary); }
.checkin-inline { display: flex; gap: 6px; align-items: center; }
.checkin-inline input { width: 90px; padding: 4px 8px; }

/* Chart tab (SVG cascade) */
.chart-toolbar { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.chart-canvas { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); max-height: calc(100vh - 220px); }
.ch-svg { display: block; margin-inline: auto; }   /* spec 023 §5: centre the fitted cascade */
.ch-edge { stroke: var(--border); stroke-width: 2; }
.ch-node { cursor: pointer; }
.ch-node > rect:first-child { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; }
.ch-node:hover > rect:first-child { stroke: var(--primary); }
.ch-ws > rect:first-child { fill: var(--primary); stroke: none; }
.ch-ws .ch-title { fill: var(--primary-text); font-weight: 800; font-size: 15px; }
.ch-tag-o { fill: #1565c0; } .ch-tag-kr { fill: #f0a30a; }
.ch-tagtext { fill: #fff; font-weight: 800; font-size: 11px; }
.ch-sum { fill: var(--text); font-weight: 700; font-size: 14.5px; }
.ch-lead { fill: var(--text-muted); font-size: 13px; }
.ch-gradetext { fill: #fff; font-weight: 800; font-size: 12px; }
/* % rendered inside the progress bar (bigger Map tiles) */
.ch-barpct { fill: #fff; font-weight: 800; font-size: 12px; paint-order: stroke; stroke: rgba(16,33,40,.28); stroke-width: 2.4px; stroke-linejoin: round; }
.ch-toggle { cursor: pointer; }
.ch-toggle circle { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; }
.ch-toggle text { fill: var(--text); font-weight: 800; font-size: 13px; }
.ch-count { fill: var(--text-muted) !important; font-weight: 700 !important; font-size: 11px !important; text-anchor: start; }

/* feeds */
.feed { max-height: 220px; overflow: auto; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.feed .item { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; background: #fafbfc; }
.feed .who { font-weight: 700; } .feed .when { color: var(--text-muted); font-size: 13px; margin-left: 6px; }
.comment-form { display: flex; gap: 8px; margin-top: 8px; }

/* ------------------------------ modal ------------------------------ */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10,18,30,.5); z-index: 50;
  display: flex; align-items: flex-start; justify-content: center; padding: 30px 16px; overflow: auto; }
.modal { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); width: 1060px; max-width: 100%; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.modal-head h2 { margin: 0; font-size: 18px; flex: 1; }
.modal-grade { font-size: 22px; font-weight: 800; }
.modal-grid { display: grid; grid-template-columns: 1fr 280px; gap: 18px; padding: 18px 20px 22px; }
.modal-mainCol, .modal-sideCol { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.panel { border: 1px solid var(--border); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.panel-title { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.seg { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; width: fit-content; max-width: 100%; }
.seg button { border: none; background: var(--surface); padding: 7px 12px; cursor: pointer; font-weight: 600; font-size: 14px; border-right: 1px solid var(--border); }
.seg button:last-child { border-right: none; }
.seg button.active { background: var(--primary); color: var(--primary-text); }
/* (old .kr-edit-row grid removed — spec 016 KR cards use .eo-kr; the class is kept only as a JS hook) */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
.tab { border: none; background: none; padding: 8px 12px; font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.empty { text-align: center; color: var(--text-muted); padding: 50px 20px; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--surface); }
.list-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.list-row:last-child { border-bottom: none; }
.list-row .grow { flex: 1; min-width: 0; }
.swatch { width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--border); display: inline-block; vertical-align: middle; }

/* -------------------- Workspace List view (dashboard, spec 004) -------------------- */
.list-view { font-family: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.list-view .mt-value, .list-view .mt-input, .list-view .mt-pct, .list-view .mt-target, .list-view .mt-delta,
.list-view .mt-label, .list-view .mt-trendlabel, .list-view .oc-pct, .list-view .oc-id, .list-view .kr-val,
.list-view .lh-eyebrow, .list-view .lh-updated, .list-view .status-legend, .list-view .status-pill {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

.list-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.lh-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.lh-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lh-updated { font-size: 12px; color: var(--text-muted); letter-spacing: .04em; text-align: right; line-height: 1.5; }
.ro-chip { display: inline-flex; align-items: center; gap: 6px; background: #eef2f0; color: #9aa6a0;
  border: 1px solid var(--border); border-radius: 10px; padding: 9px 16px; font-weight: 600; cursor: not-allowed; }
.edit-banner { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 14.5px; color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border));
  border-radius: 10px; padding: 11px 16px; }
.edit-banner i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }

.metric-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.metric-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 20px 16px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; }
.mt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.mt-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.mt-sub { font-size: 13.5px; color: var(--text-muted); margin-top: 3px; }
.status-pill { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 20px; white-space: nowrap;
  color: #fff; background: var(--pc, var(--text-muted)); }
.mt-valuerow { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; min-height: 46px; }
.mt-value { font-size: 40px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.mt-delta { font-size: 14px; font-weight: 600; }
.mt-delta.up { color: #17794e; } .mt-delta.down { color: #c0463b; }
.mt-edit { display: inline-flex; align-items: center; gap: 4px; font-size: 28px; font-weight: 600; }
.mt-affix { color: var(--text-muted); }
.mt-input { width: 110px; font-size: 26px; font-weight: 600; padding: 2px 8px; border: 1.5px solid var(--primary);
  border-radius: 9px; background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
.mt-targetrow { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 7px; }
.mt-target { font-size: 14px; color: var(--text-muted); }
.mt-pct { font-size: 15px; font-weight: 600; }
.mt-bar { height: 8px; background: var(--border); border-radius: 6px; overflow: hidden; }
.mt-bar-fill { height: 100%; border-radius: 6px; transition: width .2s; }
.mt-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.mt-trendlabel { font-size: 12px; color: var(--text-muted); letter-spacing: .04em; white-space: nowrap; }
.mt-owner { font-size: 13.5px; color: var(--text-muted); margin-top: 4px; }
.mt-spark { display: block; }

.list-section-head { display: flex; justify-content: space-between; align-items: flex-end; margin: 0 0 16px; }
.list-section-head h2 { font-size: 20px; font-weight: 600; margin: 0; letter-spacing: -.015em; }
.status-legend { display: flex; gap: 16px; font-size: 13.5px; color: var(--text-muted); flex-wrap: wrap; }
.status-legend span { display: inline-flex; align-items: center; gap: 6px; }
.status-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* Tile-view filters + scope groups + collapse (spec 022) */
.ws-filterbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.ws-filterbar select { width: auto; min-width: 140px; }
.ws-group { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; }
.ws-group:first-of-type { margin-top: 6px; }
.wsg-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.wsg-label { font-size: 12.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); }
.wsg-count { font-size: 12px; font-weight: 700; color: var(--text-muted); background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 1px 9px; }
.wsg-rule { flex: 1; height: 1px; background: var(--border); }
.oc-chev { border: none; background: none; cursor: pointer; font-size: 16px; color: var(--text-muted); padding: 2px 4px; line-height: 1; transition: transform .15s; }
.oc-chev:hover { color: var(--text); }
.obj-card.collapsed .oc-chev { transform: rotate(-90deg); }
.obj-card.collapsed .kr-grid { display: none; }
.obj-list { display: flex; flex-direction: column; gap: 14px; }
.obj-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px 26px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 6px 20px rgba(16,24,40,.08); transition: box-shadow .15s, border-color .15s; }
.obj-card:hover { border-color: var(--primary); box-shadow: 0 2px 4px rgba(16,24,40,.08), 0 12px 30px rgba(16,24,40,.12); }
.oc-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.oc-id { font-size: 14px; font-weight: 600; color: var(--text-muted); padding-top: 2px; }
.oc-titles { flex: 1; min-width: 0; }
.oc-title { font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.oc-owner { font-size: 13.5px; color: var(--text-muted); margin-top: 5px; }
.oc-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
/* Spec 012: percentage sits inside the (taller) progress bar. */
.oc-bar { position: relative; width: 180px; height: 20px; background: var(--border); border-radius: 10px; overflow: hidden; }
.oc-bar-fill { height: 100%; border-radius: 10px; }
.oc-bar-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.kr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kr-row2 { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 11px 14px; border-radius: 11px;
  background: color-mix(in srgb, var(--primary) 3%, var(--surface)); border: 1px solid var(--border); }
.kr-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.kr-name { flex: 1; min-width: 0; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kr-val { font-size: 14px; color: var(--text-muted); white-space: nowrap; }

/* ---------- Roles Manager matrix + User Manager roles (spec 018) ---------- */
.rm-card { max-width: 880px; }
.rm-scroll { overflow-x: auto; }
.rm-matrix { border-collapse: collapse; width: 100%; }
.rm-matrix th, .rm-matrix td { padding: 10px 12px; text-align: center; border-bottom: 1px solid var(--border); }
.rm-matrix thead th { font-size: 12px; font-weight: 700; color: var(--text-muted); vertical-align: bottom; }
.rm-matrix .rm-corner, .rm-matrix .rm-role { text-align: left; white-space: nowrap; }
.rm-matrix .rm-role { font-weight: 700; }
.rm-matrix tbody tr:hover { background: #f7faf9; }
/* spec 027: section heading rows grouping the feature matrix */
.rm-matrix tr.rm-grouphead:hover { background: none; }
.rm-matrix tr.rm-grouphead th { text-align: left; padding: 14px 12px 6px; font-size: 11.5px; font-weight: 800;
  letter-spacing: .6px; text-transform: uppercase; color: var(--text-muted); border-bottom: 2px solid var(--border); background: #fafbfc; }
.rm-chk { width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary); }
/* spec 025: Audit Log */
.audit-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.audit-toolbar select { width: auto; }
.audit-table { border-collapse: collapse; width: 100%; }
.audit-table th, .audit-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.audit-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); }
.audit-table tbody tr:hover { background: #f7faf9; }
.audit-when { color: var(--text-muted); white-space: nowrap; }
.audit-act { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: #eef2f7; color: #3a4a5a; text-transform: capitalize; }
.audit-tt { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
  color: var(--text-muted); margin-right: 6px; }

/* User Manager — one row per user (spec 019) */
.um-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.um-add { display: flex; gap: 8px; flex-wrap: wrap; }
.um-add input { width: auto; min-width: 150px; }
.um-list { display: flex; flex-direction: column; }
.um-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.um-row:last-of-type { border-bottom: none; }
.um-avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.um-id { flex: 1; min-width: 130px; }
.um-name { font-weight: 600; }
.um-cell { flex-shrink: 0; }
.um-team { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); }
.um-team select { min-width: 130px; }
.um-tog { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; width: 64px; }
.um-tlbl { font-size: 10.5px; font-weight: 600; letter-spacing: .03em; color: var(--text-muted); text-transform: uppercase; white-space: nowrap; }
/* Pending (pre-provisioned) people */
.u-pending { color: #2563eb; }
.pend-chip { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; color: #1d4ed8;
  background: #e6efff; border: 1px solid #c7dafe; border-radius: 999px; padding: 0 7px; vertical-align: middle; }
.um-pendrow .um-avatar { opacity: .7; }
/* Roles dropdown (native <details>) */
.um-roledd { position: relative; }
.um-roledd > summary { list-style: none; cursor: pointer; font-size: 13px; font-weight: 600; padding: 6px 11px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface); white-space: nowrap; }
.um-roledd > summary::-webkit-details-marker { display: none; }
.um-roledd[open] > summary { border-color: var(--primary); }
.um-cv { color: var(--text-muted); font-size: 11px; }
.um-roledd-menu { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; min-width: 180px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.um-roledd-menu label { display: flex; flex-direction: row; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; padding: 5px 8px; border-radius: 7px; cursor: pointer; }
.um-roledd-menu label:hover { background: #f3f6f9; }
.um-roledd-menu input { width: 15px; height: 15px; accent-color: var(--primary); }
.um-roles-ro { white-space: nowrap; }
/* Toggle switch (grey off / green on) */
.switch { position: relative; width: 40px; height: 22px; border-radius: 999px; border: none; background: #c2ccd6; cursor: pointer; padding: 0; transition: background .15s; flex-shrink: 0; }
.switch.on { background: #21a45d; }
.switch:disabled { opacity: .5; cursor: default; }
.switch-knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s; }
.switch.on .switch-knob { left: 20px; }

/* -------------------- Board Scorecard (spec 007) -------------------- */
.bs-view { font-family: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, sans-serif; max-width: 1080px; margin: 0 auto; }
.bs-view .bs-eyebrow, .bs-gate-val, .bs-gate-eyebrow, .bs-delta,
.bs-synced-l, .bs-ms-idx, .bs-num, .bs-tally b, .bs-cbtn, .bs-avatar, .bs-comment-time, .bs-panel-h,
.bs-thr-f span { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; }

.bs-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; margin-bottom: 18px; }
.bs-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #17794e; display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.bs-eb-dot { width: 4px; height: 4px; border-radius: 50%; background: #b7c2bc; }
.bs-title { font-size: 27px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin: 0; }
.bs-sub { font-size: 15px; color: var(--text-muted); line-height: 1.5; max-width: 560px; margin: 7px 0 0; }
.bs-edit-pencil { border: none; background: none; cursor: pointer; color: #b7c2bc; font-size: 17px; padding: 2px 6px; vertical-align: middle; border-radius: 6px; }
.bs-edit-pencil:hover { color: #17794e; background: #f1f8f4; }
.bs-edit-done { margin-top: 9px; }
.bs-title-input { font-size: 27px; font-weight: 600; padding: 6px 13px; border: 1.5px solid var(--border); border-radius: 10px; width: min(560px, 100%); }
.bs-sub-input { font-size: 15px; color: var(--text-muted); line-height: 1.5; padding: 8px 13px; border: 1.5px solid var(--border); border-radius: 10px; width: min(560px, 100%); margin-top: 9px; resize: vertical; }
.bs-synced { font-size: 14px; color: var(--text-muted); text-align: right; }
.bs-synced-l { display: block; font-size: 12px; letter-spacing: .04em; color: #8a978f; margin-bottom: 2px; }
.bs-card { background: var(--surface); border: 1px solid #e6ece8; border-radius: 18px; box-shadow: 0 1px 2px rgba(17,32,27,.03); }
.bs-gate { padding: 28px 30px 24px; margin-bottom: 26px; }
.bs-gate-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; }
.bs-gate-readout { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.bs-gate-eyebrow { font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: #8a978f; font-weight: 500; }
.bs-gate-val { font-size: 56px; font-weight: 500; letter-spacing: -.03em; line-height: .95; margin-top: -4px; }
.bs-delta { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 500; margin-top: -4px; }
.bs-delta-arrow { font-size: 13px; }
.bs-synced-pill { display: inline-flex; align-items: center; gap: 8px; background: #f1f6f3; border: 1px solid #e3ebe6; border-radius: 8px; padding: 6px 11px; font-size: 13.5px; color: #3f5249; font-weight: 500; }
.bs-synced-dot { width: 7px; height: 7px; border-radius: 50%; background: #17794e; box-shadow: 0 0 0 3px rgba(23,121,78,.16); }

/* Tachometer gauge (design_handoff_board_scorecard 2) */
.bs-gate-gaugecol { display: flex; flex-direction: column; align-items: center; }
.bs-gauge { position: relative; width: 330px; max-width: 100%; }
.bs-gauge-svg { width: 100%; height: auto; display: block; overflow: visible; }
.bs-gauge-svg text { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; }
.bs-orb { position: absolute; left: 50%; top: 83.7%; transform: translate(-50%, -50%); width: 54px; height: 54px;
  border-radius: 50%; border: 2px solid; display: flex; align-items: center; justify-content: center; font-size: 28px; line-height: 1; }
.bs-gate-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 300px; margin-top: 4px; }
.bs-gate-stats > div { text-align: center; }
.bs-gs-mid { border-left: 1px solid #eef2f0; border-right: 1px solid #eef2f0; }
.bs-gs-l { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: 11px; letter-spacing: .1em; font-weight: 600; }
.bs-gs-v { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: 15px; font-weight: 600; color: #11201b; margin-top: 3px; }
@media (max-width: 720px) { .bs-gate-grid { grid-template-columns: 1fr; gap: 22px; } }

.bs-threditor { margin-top: 20px; background: #f7faf8; border: 1px solid #e6ece8; border-radius: 13px; padding: 18px 20px; }
.bs-thr-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.bs-thr-btns { display: flex; gap: 8px; }
.bs-thr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bs-thr-f { gap: 6px; } .bs-thr-f span { font-size: 11.5px; letter-spacing: .1em; font-weight: 600; }
.bs-thr-f input { font-size: 19px; font-weight: 500; }
.bs-thr-src { margin-top: 14px; font-size: 13.5px; }

.bs-section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.bs-h2 { font-size: 20px; font-weight: 600; letter-spacing: -.015em; margin: 0; }
.bs-section-sub { font-size: 14px; color: #9aa6a0; margin-top: 5px; }
.bs-num { font-weight: 600; color: var(--text-muted); }
.bs-tally { display: flex; gap: 18px; flex-wrap: wrap; }
.bs-tally span { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text-muted); }
.bs-tally i { width: 9px; height: 9px; border-radius: 50%; }
.bs-tally b { color: #11201b; font-weight: 600; }

.bs-ms-list { overflow: hidden; }
.bs-ms-row { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-top: 1px solid #f0f3f1; }
.bs-ms-list > .bs-ms-row:first-child { border-top: none; }
.bs-ms-idx { font-size: 13px; font-weight: 600; color: #b7c2bc; width: 22px; flex-shrink: 0; }
.bs-ms-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.bs-ms-name-ro { flex: 1; font-size: 16px; color: #11201b; min-width: 0; }
.bs-ms-name { flex: 1; font-size: 16px; padding: 9px 12px; border: 1.5px solid #e3ebe6; border-radius: 9px; background: #fbfdfc; min-width: 0; }
.bs-ms-badge { font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 20px; white-space: nowrap; }
.bs-swatches { display: flex; gap: 9px; }
.bs-swatch { width: 24px; height: 24px; border-radius: 50%; border: none; cursor: pointer; opacity: .32; transition: transform .12s, box-shadow .12s; }
.bs-swatch.active { opacity: 1; transform: scale(1.05); }
.bs-ms-stlabel { font-size: 12.5px; font-weight: 600; width: 62px; text-align: right; flex-shrink: 0; }
.bs-ms-del { width: 30px; height: 30px; border-radius: 8px; border: 1px solid #ecdedb; background: #fbf3f1; color: #c0463b; cursor: pointer; font-size: 16px; flex-shrink: 0; }
.bs-ms-del:hover { background: #f6e3df; color: #a8392f; }
.bs-ms-add { display: block; width: calc(100% - 44px); margin: 14px 22px; padding: 11px 16px; text-align: center; border: 1px dashed #bcd9c8; border-radius: 10px; background: transparent; color: #17794e; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.bs-ms-add:hover { background: #f1f8f4; color: #0f5e3c; border-color: #93c7a9; }
.bs-ms-empty { padding: 22px; text-align: center; color: var(--text-muted); }
.bs-cbtn { display: inline-flex; align-items: center; gap: 5px; border-radius: 8px; padding: 6px 9px; font-size: 13px; font-weight: 600; border: 1px solid #e6ece8; background: #fff; color: #9aa6a0; cursor: pointer; line-height: 1; flex-shrink: 0; }
.bs-cbtn.has { color: #17794e; border-color: #cfe0d6; background: #f1f8f4; }
.bs-cbtn.open { color: #0f5e3c; border-color: #93c7a9; background: #e7f3ec; }

.bs-panel { padding: 4px 26px 22px 64px; background: #f8fbf9; border-top: 1px solid #f0f3f1; }
.bs-panel-h { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: #9aa6a0; font-weight: 600; margin: 16px 0 14px; }
.bs-comments { display: flex; flex-direction: column; gap: 14px; }
.bs-comment { display: flex; gap: 12px; align-items: flex-start; }
.bs-avatar { width: 30px; height: 30px; border-radius: 50%; background: #e7f3ec; color: #17794e; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bs-comment-body { flex: 1; min-width: 0; }
.bs-comment-head { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.bs-comment-author { font-size: 14.5px; font-weight: 600; color: #11201b; }
.bs-comment-time { font-size: 12.5px; color: #9aa6a0; }
.bs-comment-text { font-size: 14.5px; color: #3f5249; line-height: 1.55; margin-top: 4px; }
.bs-comment-del { border: none; background: none; color: #c2ccc7; cursor: pointer; font-size: 17px; }
.bs-comment-del:hover { color: #c0463b; }
.bs-comment-empty { font-style: italic; font-size: 14px; color: #9aa6a0; }
.bs-composer { display: flex; gap: 10px; margin-top: 16px; }
.bs-composer input { flex: 1; font-size: 14.5px; padding: 10px 13px; border: 1.5px solid #e3ebe6; border-radius: 9px; }

/* -------------------- Check-ins (spec 008) -------------------- */
.ci-modal { width: 520px; max-width: 100%; }
.ci-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.ci-h { font-weight: 600; margin-bottom: 8px; }
.ci-context { background: var(--bg); border-left: 4px solid var(--primary); border-radius: 10px; padding: 13px 15px; }
.ci-notarget { background: #fbf0d9; border-left-color: #d99a3a; }
.ci-vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ci-val { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; }
.ci-val-new { border: 2px solid var(--primary); }
.ci-val-l { font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--text-muted); text-transform: uppercase; }
.ci-val-v { font-size: 17px; font-weight: 600; color: var(--text-muted); margin-top: 4px; }
.ci-new { border: none; padding: 4px 0 0; font-size: 19px; font-weight: 700; color: var(--primary); background: none; }
.ci-new:focus { outline: none; }
.ci-conf { display: flex; gap: 9px; flex-wrap: wrap; }
.ci-pill { border: 1.5px solid var(--border); background: var(--surface); padding: 7px 13px; border-radius: 20px; cursor: pointer; font-weight: 600; font-size: 14px; }
.ci-pill.active { color: #fff; border-color: transparent; }
.ci-foot { display: flex; align-items: center; gap: 10px; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 80;
  background: #16323d; color: #fff; padding: 11px 16px; border-radius: 11px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 8px; font-size: 15px; }
.toast-check { color: #5fd0a8; }

.checkin-log { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.cl-entry { display: flex; gap: 14px; align-items: flex-start; }
.cl-avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; background: var(--border); }
.cl-card { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 13px 16px; box-shadow: var(--shadow); }
.cl-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.cl-date { color: var(--text-muted); font-size: 13.5px; white-space: nowrap; }
.cl-obj { font-size: 13.5px; color: var(--text-muted); margin-top: 2px; }
.cl-delta { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.cl-prev { color: var(--text-muted); } .cl-next { color: var(--primary); font-weight: 600; }
.cl-chip { font-size: 13.5px; font-weight: 700; padding: 1px 8px; border-radius: 6px; }
.cl-chip.up { color: #2f9e6f; background: #e6f5ec; } .cl-chip.down { color: #d24b3e; background: #fbe7e3; }
.cl-note { margin-top: 8px; background: var(--bg); border-radius: 9px; padding: 10px 12px; font-size: 14.5px; line-height: 1.5; }

/* KR status bar + recency + owner warning (spec 008 Phase 2/3) */
.kr-prog { min-width: 120px; }
.kr-bar { position: relative; height: 8px; background: var(--border); border-radius: 6px; overflow: hidden; }
.kr-bar-fill { height: 100%; border-radius: 6px; transition: width .2s; }
.kr-bar-meta { margin-top: 4px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.kr-recency { font-size: 12.5px; color: #9aabb1; }
.owner-warn { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: #e7f2ef; border: 1px solid #cfe5df; border-left: 4px solid #2a9d8f; border-radius: 10px; padding: 13px 16px; margin-bottom: 14px; color: #245a52; font-weight: 500; }
/* Cross-team initiative alert (spec 012) */
.cross-team-warn { background: #eef3fb; border-color: #cfddf3; border-left-color: #2f6db0; color: #234a73; }
.cross-team-warn .ct-list { display: flex; gap: 8px; flex-wrap: wrap; }
.count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--primary); color: var(--primary-text); font-size: 12px; font-weight: 700; margin-left: 4px; }

/* Create-OKR wizard (spec 008 Phase 3) */
.wz-modal { width: 580px; max-width: 100%; }
.wz-stepind { display: flex; gap: 8px; padding: 0 20px; color: var(--text-muted); font-size: 14px; }
.wz-stepind .on { font-weight: 700; color: var(--text); }
.wz-body { padding: 16px 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.wz-h { font-weight: 600; }
.wz-types { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wz-type { text-align: left; padding: 16px; border: 1.5px solid var(--border); border-radius: 11px; background: var(--surface); cursor: pointer; font-weight: 600; }
.wz-type.sel { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
.wz-foot { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.req { color: #c0392b; }
.wz-krs { display: flex; flex-direction: column; gap: 10px; }
.wz-kr { background: var(--bg); border: 1px solid var(--border); border-radius: 11px; padding: 12px; }
.wz-kr-top { display: flex; align-items: center; gap: 10px; }
.wz-kr-top .wk-name { flex: 1; }
.idx-chip { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; background: var(--border); font-size: 13px; font-weight: 700; color: var(--text-muted); flex-shrink: 0; }
.wz-kr-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 8px; margin: 10px 0 0 34px; }
.micro { font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #9aabb1; }

/* -------------------------------------------------- initiatives board (009) -- */
.init-head { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.init-h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.4px; }
.init-tabs { display: flex; gap: 26px; border-bottom: 1px solid #dde5e8; margin-bottom: 16px; }
.init-tabs button { background: none; border: none; padding: 0 0 9px; margin-bottom: -1px; font-size: 16px; font-weight: 500; color: #7e9199; cursor: pointer; border-bottom: 2.5px solid transparent; }
.init-tabs button.on { font-weight: 700; color: #16323d; border-bottom-color: var(--primary); }
.init-tabs .count-badge { background: #e3eaed; color: #5b7079; }

.init-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.init-filters .if-search { flex: 1; min-width: 230px; max-width: 340px; }
.init-filters select { width: auto; min-width: 140px; }
.init-pseg { display: inline-flex; gap: 2px; padding: 4px; }
.init-pseg button { border: none; background: none; padding: 5px 12px; border-radius: 7px; font-size: 14px; font-weight: 600; color: #50656d; cursor: pointer; }
.init-pseg button.on { background: var(--primary); color: #fff; }
.init-od-on { background: #fbe7e3 !important; border-color: #f0c7bf !important; color: #c0392b !important; }

.init-board { display: flex; align-items: flex-start; gap: 16px; overflow-x: auto; padding-bottom: 14px; }
.init-col { width: 298px; flex-shrink: 0; background: #e7ecee; border: 1.5px solid transparent; border-radius: 13px; padding: 13px 12px 14px; }
.init-colhead { display: flex; align-items: center; gap: 9px; padding: 2px 4px 12px; }
.init-coldot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.init-colname { font-size: 14.5px; font-weight: 700; color: #2c4a55; letter-spacing: .2px; }
.init-colcards { display: flex; flex-direction: column; gap: 11px; min-height: 60px; border-radius: 10px; }
.init-colcards.over { background: #e3edef; outline: 1.5px dashed var(--primary); outline-offset: -2px; }
.init-empty { border: 1.5px dashed #d3dde0; border-radius: 10px; padding: 18px 10px; text-align: center; font-size: 13.5px; color: #a4b3b8; }
.init-addbtn { width: 100%; margin-top: 11px; border: 1.5px dashed #d0dadd; background: none; border-radius: 9px; padding: 9px; font-size: 13.5px; font-weight: 600; color: #6b818b; cursor: pointer; }

.init-card { background: #fff; border: 1px solid #e4eaed; border-left: 4px solid var(--accent); border-radius: 11px; padding: 13px 14px; box-shadow: 0 1px 2px rgba(20,50,61,.05); cursor: grab; }
.init-card.dragging { opacity: .45; box-shadow: 0 14px 30px rgba(16,33,40,.18); }
.init-card.init-od { background: #fdf3f1; border-color: #f0c7bf; }
.init-card.init-selected { outline: 2px solid var(--primary); outline-offset: 1px; }
.init-card-top { display: flex; align-items: center; gap: 8px; }
.init-sel, .abin-cb { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }
/* Bulk action bars (spec 018) */
.init-bulkbar { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 9px 14px;
  background: color-mix(in srgb, var(--primary) 8%, #fff); border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border)); border-radius: 10px; }
.abin-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.list-row.abin-sel { outline: 2px solid var(--primary); outline-offset: -1px; }
.init-pri { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px; font-size: 12.5px; font-weight: 700; color: var(--pt); background: var(--pb); border: 1px solid var(--pbd); }
.init-pri-dot { width: 7px; height: 7px; border-radius: 50%; }
.init-effort { font-size: 12.5px; font-weight: 700; color: #9aabb1; letter-spacing: .4px; }
.init-icon { background: none; border: none; cursor: pointer; color: #aab8bd; font-size: 16px; width: 24px; padding: 0; }
.init-name { display: block; text-align: left; background: none; border: none; padding: 0; margin-top: 9px; font-size: 15.5px; font-weight: 700; color: #16323d; line-height: 1.34; letter-spacing: -.1px; cursor: pointer; width: 100%; }
.init-kr-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; padding: 4px 9px; background: #eef4f5; border: 1px solid #d8e7ea; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--primary); }
.init-cmeta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.init-owner { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: #50656d; }
.init-owner img { width: 24px; height: 24px; border-radius: 50%; }
.init-due { font-size: 13px; font-weight: 600; color: #6b818b; }
.init-due.od { font-weight: 700; color: #c0392b; }
.init-foot { display: flex; align-items: center; gap: 7px; margin-top: 11px; padding-top: 11px; border-top: 1px solid #eef1f3; }
.init-card.init-od .init-foot { border-top-color: #f3d4cd; }
.init-foot-l { font-size: 12px; font-weight: 700; color: #9aabb1; letter-spacing: .4px; }
.init-statussel { flex: 1; height: 30px; padding: 0 8px; font-size: 13.5px; font-weight: 600; color: #2c4a55; }

.init-binhead { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.init-binrow { display: flex; align-items: center; gap: 16px; margin-bottom: 11px; }
.init-binav { width: 28px; height: 28px; border-radius: 50%; }
.init-binname { font-weight: 700; color: #16323d; text-decoration: line-through; text-decoration-color: #c2cdd1; }

/* create / edit modal */
.init-modal { max-width: 600px; }
.init-form { display: flex; flex-direction: column; gap: 14px; padding: 16px 20px 22px; }
.init-namein { border: 1.5px solid var(--primary); }
.init-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.im-pseg { display: flex; gap: 8px; }
.im-pseg button { flex: 1; height: 40px; border: 1.5px solid #dbe2e5; background: #fff; border-radius: 9px; font-weight: 600; cursor: pointer; }
.im-pseg button.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.init-alignh { font-size: 15.5px; font-weight: 600; margin-bottom: -8px; }
.im-krs { display: flex; flex-direction: column; gap: 9px; }
.im-kr { display: flex; align-items: center; gap: 11px; text-align: left; width: 100%; padding: 11px 13px; border: 1.5px solid #e2e9ec; background: #fff; border-radius: 11px; cursor: pointer; }
.im-kr.on { background: #eef4f5; border-color: var(--primary); }
.im-krbox { width: 22px; height: 22px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid #c8d3d7; border-radius: 6px; color: #fff; font-size: 14px; }
.im-kr.on .im-krbox { background: var(--primary); border-color: var(--primary); }
.im-krname { font-size: 14.5px; font-weight: 600; color: #233f48; }
.im-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; }

/* detail drawer (Phase 2) — right-side panel reusing the .modal-backdrop scrim */
.init-drawer-back { justify-content: flex-end; align-items: stretch; padding: 0; overflow: hidden; }
.init-drawer { width: 480px; max-width: 100%; height: 100%; background: #f4f7f8; overflow-y: auto; padding: 22px 24px; box-shadow: -18px 0 50px rgba(16,33,40,.26); animation: idrIn .24s cubic-bezier(.2,.8,.3,1); }
@keyframes idrIn { from { transform: translateX(100%); } to { transform: none; } }
.idr-top { display: flex; align-items: center; }
.idr-statuspill { display: inline-block; padding: 4px 12px; border-radius: 20px; color: #fff; font-size: 13.5px; font-weight: 700; }
.idr-name { font-size: 21px; font-weight: 700; letter-spacing: -.3px; line-height: 1.3; margin: 14px 0 10px; }
.idr-prirow { display: flex; align-items: center; gap: 12px; }
.idr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #e4eaed; border: 1px solid #e4eaed; border-radius: 12px; overflow: hidden; margin: 16px 0; }
.idr-cell { background: #fff; padding: 13px 15px; }
.idr-cell-l { font-size: 12px; font-weight: 700; color: #9aabb1; letter-spacing: .5px; margin-bottom: 4px; }
.idr-od { color: #c0392b; font-weight: 700; }
.idr-sec { margin-top: 18px; }
.idr-sec-l { font-size: 13px; font-weight: 700; color: #9aabb1; letter-spacing: .4px; margin-bottom: 8px; }
.idr-desc { font-size: 15px; color: #3a565f; line-height: 1.55; }
.idr-krs { display: flex; flex-direction: column; gap: 9px; }
.idr-kr { display: flex; align-items: center; gap: 11px; text-align: left; width: 100%; padding: 12px 14px; background: #fff; border: 1px solid #e4eaed; border-radius: 11px; cursor: pointer; }
.idr-kr-tile { width: 26px; height: 26px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: #eef4f5; color: var(--primary); border-radius: 7px; }
.idr-kr-name { font-size: 14.5px; font-weight: 600; color: #233f48; }
.idr-kr-open { font-size: 14px; font-weight: 600; color: var(--primary); }
.idr-foot { display: flex; gap: 10px; margin-top: 26px; padding-top: 18px; border-top: 1px solid #e0e7ea; }

/* KR peek modal (Phase 2) */
.kr-peek { max-width: 440px; }
.krp-eyebrow { font-size: 12.5px; font-weight: 700; color: var(--primary); letter-spacing: .6px; }
.krp-name { font-size: 19px; font-weight: 700; line-height: 1.34; margin: 2px 0; }
.krp-body { display: flex; flex-direction: column; gap: 14px; padding: 16px 22px 24px; }
.krp-row { display: flex; align-items: center; gap: 12px; }
.krp-track { height: 9px; background: #ece4d6; border-radius: 6px; overflow: hidden; }
.krp-fill { height: 100%; background: #2f9e6f; border-radius: 6px; }
.krp-fill.krp-notarget { background: #cbbfa8; }
.krp-vals { display: flex; justify-content: space-between; align-items: center; }
.krp-pct { font-size: 14px; font-weight: 700; color: #3a565f; }
.krp-open { width: 100%; border: 1.5px solid var(--primary); color: var(--primary); font-weight: 600; background: #fff; }

/* Kanban settings modal (Phase 2) */
.kbs-modal { max-width: 560px; }
.kbs-body { padding: 16px 20px 22px; }
.kbs-cols { display: flex; flex-direction: column; gap: 10px; }
.kbs-col { border: 1px solid #e4eaed; border-radius: 11px; padding: 12px 13px; }
.kbs-col-top { display: flex; align-items: center; gap: 10px; }
.kbs-arrows { display: flex; flex-direction: column; }
.kbs-arrow { background: none; border: none; cursor: pointer; color: #7b8e95; font-size: 10px; line-height: 1; padding: 1px; }
.kbs-arrow:disabled { color: #d3dde0; cursor: not-allowed; }
.kbs-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.kbs-name { flex: 1; font-weight: 600; }
.kbs-row2 { display: flex; align-items: center; gap: 10px; margin: 10px 0 0 30px; }
.kbs-swatches { display: flex; gap: 7px; }
.kbs-sw { width: 22px; height: 22px; border-radius: 50%; cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1px #dbe2e5; padding: 0; }
.kbs-sw.on { border: 2.5px solid #16323d; }
.kbs-add { width: 100%; margin-top: 12px; border: 1.5px dashed #c2d2d6; color: var(--primary); font-weight: 600; background: none; }
.kbs-foot { display: flex; margin-top: 16px; }

/* ---------------------------------------------- workspace/OKR UX (spec 011) -- */
/* People picker + parent checklist */
.up-list { display: flex; flex-direction: column; gap: 2px; max-height: 320px; overflow-y: auto; }
.up-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border: none; background: none; border-radius: 8px; cursor: pointer; }
.up-row:hover { background: var(--bg); }
.up-row img { width: 30px; height: 30px; border-radius: 50%; }
.parent-pick .pp-search { margin-bottom: 8px; }
.parent-pick .pp-list { display: flex; flex-direction: column; gap: 2px; max-height: 200px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; padding: 6px; }
.pp-row { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 400; font-size: 14.5px; padding: 4px 6px; border-radius: 6px; cursor: pointer; }
.pp-row:hover { background: var(--bg); }
.pp-row input { width: auto; }

/* KR row owner chips + action menu (List view) */
.kr-assign { border: 1px dashed var(--border); background: none; color: var(--primary); font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 20px; cursor: pointer; }
.kr-asg { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }
.kr-row2 { cursor: pointer; }
.kr-row2:hover { background: rgba(0,0,0,.03); border-radius: 6px; }
.kr-menu { position: fixed; z-index: 60; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); padding: 5px; display: flex; flex-direction: column; min-width: 150px; }
.kr-menu button { text-align: left; background: none; border: none; padding: 8px 12px; border-radius: 7px; cursor: pointer; font-size: 14.5px; }
.kr-menu button:hover { background: var(--bg); }

/* Admin drag-to-reorder objective cards */
.obj-card.dragging { opacity: .5; }
.obj-card.drag-over { outline: 2px dashed var(--primary); outline-offset: 2px; }

/* Chart card meta count + progress bar */
.ch-meta { font: 600 9.5px ui-sans-serif, sans-serif; fill: var(--text-muted); }
.ch-bartrack { fill: #e2e8f0; }

/* ------------------------------------------------------ KPIs & MBR (spec 015) -- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.kpi-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 6px 18px rgba(16,24,40,.06); display: flex; flex-direction: column; }
.kpi-card-top { display: flex; align-items: flex-start; gap: 10px; }
.kpi-name { font-size: 16px; font-weight: 700; color: var(--text); }
.kpi-mbr { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.kpi-mbr input { width: auto; }
.kpi-visual { margin: 14px 0 4px; text-align: center; }
.kpi-sub { font-size: 13.5px; color: var(--text-muted); margin-top: 6px; text-align: center; }
.kpi-bignum { font-size: 40px; font-weight: 800; line-height: 1; text-align: center; }
.kpi-speedo { width: 100%; max-width: 200px; height: auto; }
.kpi-bar { position: relative; height: 22px; background: var(--border); border-radius: 11px; overflow: hidden; }
.kpi-bar-fill { height: 100%; border-radius: 11px; }
.kpi-bar-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.kpi-card-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; }

.mbr-toolbar { align-items: center; }
/* Executive MBR redesign */
.mbr-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 32px 36px; margin-bottom: 22px; color: #fff;
  background:
    radial-gradient(130% 150% at 100% 0%, rgba(120,220,200,.22), transparent 52%),
    radial-gradient(120% 120% at 0% 100%, rgba(20,90,120,.45), transparent 55%),
    linear-gradient(135deg, #0e2c37 0%, #15506a 56%, #1c7c72 120%);
  box-shadow: 0 18px 44px rgba(11,26,33,.28); }
.mbr-hero-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .16em; opacity: .72; }
.mbr-hero-title { margin: 7px 0 5px; font-size: 31px; font-weight: 800; letter-spacing: -.025em; }
.mbr-hero-sub { font-size: 14.5px; opacity: .82; }
.mbr-hero-rag { display: flex; gap: 13px; margin-top: 22px; }
.mbr-rag-tile { position: relative; flex: 1; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px; padding: 13px 16px 13px 18px; overflow: hidden; backdrop-filter: blur(2px); }
.mbr-rag-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.mbr-rag-tile.mrt-green::before { background: #34d399; } .mbr-rag-tile.mrt-amber::before { background: #fbbf3c; } .mbr-rag-tile.mrt-red::before { background: #f87a6e; }
.mbr-rag-n { font-size: 32px; font-weight: 800; line-height: 1; }
.mrt-green .mbr-rag-n { color: #7df0c4; } .mrt-amber .mbr-rag-n { color: #ffd784; } .mrt-red .mbr-rag-n { color: #ffa79c; }
.mbr-rag-lbl { font-size: 13.5px; font-weight: 600; opacity: .85; margin-top: 3px; }
.mbr-section { margin-bottom: 24px; }
.mbr-section-h { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; margin-bottom: 12px; letter-spacing: -.01em; }
.mbr-sdot { width: 11px; height: 11px; border-radius: 50%; }
.mbr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.mbr-card { background: var(--surface); border: 1px solid var(--border); border-radius: 15px; padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 22px rgba(16,24,40,.06); border-left: 4px solid var(--border); }
.mbr-card.mbr-green { border-left-color: #1f9d70; } .mbr-card.mbr-amber { border-left-color: #d39524; } .mbr-card.mbr-red { border-left-color: #d8554a; }
.mbr-card[data-kpi-open] { cursor: pointer; transition: box-shadow .15s, transform .15s; }
.mbr-card[data-kpi-open]:hover { box-shadow: 0 2px 4px rgba(16,24,40,.08), 0 14px 34px rgba(16,24,40,.13); transform: translateY(-2px); }
/* KPI detail popup (spec 017) — opened from the KPIs list AND the MBR; the hero
   is tinted by RAG so the status reads at a glance during a review. */
.kpi-modal { width: 660px; max-width: 100%; max-height: 90vh; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.kpi-mhero { position: relative; padding: 24px 28px 22px; color: #fff; }
.kpi-mhero-green { background: linear-gradient(135deg, #21a274 0%, #127a54 100%); }
.kpi-mhero-amber { background: linear-gradient(135deg, #e3ad3e 0%, #bd7b14 100%); }
.kpi-mhero-red   { background: linear-gradient(135deg, #e3675a 0%, #b1392e 100%); }
.kpi-mx { position: absolute; top: 14px; right: 16px; width: 30px; height: 30px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff; font-size: 15px; cursor: pointer; transition: background .15s; }
.kpi-mx:hover { background: rgba(255,255,255,.32); }
.kpi-mhero-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-right: 38px; }
.kpi-mbadge { background: rgba(255,255,255,.95); color: #1b2b33; font-size: 12px; font-weight: 800; letter-spacing: .03em; padding: 3px 11px; border-radius: 20px; }
.kpi-mchip { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.kpi-mtitle { margin: 13px 0 4px; font-size: 23px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.kpi-mowner { display: flex; align-items: center; gap: 7px; font-size: 14px; opacity: .92; }
.kpi-mowner img { width: 22px; height: 22px; border-radius: 50%; }
.kpi-mtrio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 12px; }
.kpi-mtrio-l { font-size: 12px; font-weight: 700; letter-spacing: .07em; opacity: .82; }
.kpi-mtrio-v { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.kpi-mbar { height: 9px; background: rgba(255,255,255,.25); border-radius: 9px; overflow: hidden; }
.kpi-mbar > div { height: 100%; background: rgba(255,255,255,.92); border-radius: 9px; }
.kpi-mhint { font-size: 12.5px; opacity: .82; margin-top: 7px; }
.kpi-mbody { padding: 18px 24px 24px; overflow-y: auto; }
.kpi-mactions { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 14px; }
.kpi-msec { margin-bottom: 20px; }
.kpi-msec h4 { margin: 0 0 9px; font-size: 14px; font-weight: 800; letter-spacing: .02em; color: #5a6b75; text-transform: uppercase; }
.kpi-cform { display: flex; gap: 8px; margin-bottom: 12px; }
.kpi-ctext { flex: 1; }
.kpi-clist { display: flex; flex-direction: column; gap: 4px; }
.kpi-cdel { border: none; background: none; cursor: pointer; color: var(--text-muted); font-size: 17px; flex-shrink: 0; }
.kpi-cdel:hover { color: #c63b30; }
.mbr-card-top { display: flex; align-items: flex-start; gap: 10px; }
.mbr-card-name { font-size: 17px; font-weight: 700; }
.mbr-card-meta { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-muted); margin-top: 3px; }
.mbr-card-meta img { width: 20px; height: 20px; border-radius: 50%; }
.mbr-rag { color: #fff; font-size: 12.5px; font-weight: 800; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.mbr-card-vals { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 8px; }
.mbr-cur { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.mbr-trend { margin-left: auto; font-weight: 700; font-size: 15px; }
.mbr-card-bar { position: relative; height: 18px; background: var(--border); border-radius: 9px; overflow: hidden; }
.mbr-card-bar > div { height: 100%; border-radius: 9px; }
.mbr-card-bar > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.mbr-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.mbr-kind { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }

/* Export to PDF (spec 015) — print only the MBR report. */
@media print {
  body.printing-mbr .sidebar, body.printing-mbr .topbar, body.printing-mbr .mbr-toolbar { display: none !important; }
  body.printing-mbr .main, body.printing-mbr #view { display: block; }
  body.printing-mbr .mbr-card, body.printing-mbr .mbr-section { break-inside: avoid; }
  body.printing-mbr .mbr-hero { color: #fff; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  @page { margin: 1.2cm; }
}

/* ============================== KPI Tracker (spec 017) ============================== */
.kpi-headcard { padding: 22px 26px; }
.kpi-headtop { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.kpi-stats { display: flex; gap: 28px; margin-top: 18px; flex-wrap: wrap; }
.kpi-stat { display: flex; align-items: center; gap: 10px; }
.kpi-stat-dot { width: 12px; height: 12px; border-radius: 50%; }
.kpi-stat-n { font-size: 24px; font-weight: 800; line-height: 1; }
.kpi-stat-l { font-size: 13.5px; color: var(--text-muted); }
.kpi-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; margin-top: 16px; }
.kpi-toolbar input#kpi-search { flex: 1; min-width: 200px; }
.kpi-toolbar select { width: auto; }
.kpi-table { margin-top: 16px; padding: 0; overflow: hidden; }
.kpi-thead, .kpi-trow { display: grid; grid-template-columns: 2.1fr 1.1fr 1.8fr 1fr .9fr 1fr 1.3fr; gap: 14px; align-items: center; padding: 14px 24px; }
.kpi-thead { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #90a0ac; border-bottom: 1px solid var(--border); }
.kpi-trow { border-bottom: 1px solid var(--border); }
.kpi-trow:hover { background: var(--bg); }
.kpi-namelink { background: none; border: none; padding: 0; text-align: left; font-size: 16px; font-weight: 700; color: var(--text); cursor: pointer; }
.kpi-namelink:hover { color: var(--primary); }
.kpi-towner { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kpi-towner img { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; }
.kpi-towner span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-tprog > div:first-child { font-size: 15px; font-weight: 700; }
.kpi-tbar { height: 6px; background: var(--border); border-radius: 6px; overflow: hidden; max-width: 160px; margin-top: 5px; }
.kpi-tbar > div { height: 100%; border-radius: 6px; }
.kpi-ttrend { font-weight: 700; font-size: 15px; }
.kpi-tactions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.kpi-menu-btn { padding: 4px 8px; }
.kpi-mbr { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.kpi-mbr input { width: auto; }
.kpi-group { padding: 12px 24px 6px; font-weight: 800; font-size: 14px; color: var(--text-muted); background: var(--bg); }

.kpi-hero { padding: 28px 30px; }
.kpi-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kpi-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 22px 0 14px; }
.kpi-trio-l { font-size: 13px; font-weight: 700; letter-spacing: .07em; color: #90a0ac; }
.kpi-trio-v { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.kpi-herobar { height: 10px; background: var(--border); border-radius: 10px; overflow: hidden; }
.kpi-herobar > div { height: 100%; border-radius: 10px; }
.kpi-chart { display: block; }
.kpi-hrow { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.kpi-hrow img { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; }
.kpi-delta { font-weight: 700; margin: 0 4px; }

.kpi-dircards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.kpi-dircard { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 12px 14px; border: 1.5px solid #e0e6ec; background: #fff; border-radius: 11px; cursor: pointer; }
.kpi-dircard b { font-size: 15px; } .kpi-dircard span { font-size: 13px; color: var(--text-muted); }
.kpi-dircard.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.kpi-del-ic { width: 56px; height: 56px; margin: 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fbecea; font-size: 24px; }

/* ===================== Edit Objective modal redesign (spec 016) ===================== */
.eo-modal { width: 1120px; max-width: 100%; padding: 0; overflow: hidden; }
.eo-head { display: flex; align-items: center; gap: 18px; padding: 20px 26px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg,#fbfcfd,#fff); }
.eo-ring { position: relative; width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--primary) calc(var(--p,0) * 3.6deg), #e3eaed 0); }
.eo-ring::after { content: ""; position: absolute; inset: 6px; background: #fff; border-radius: 50%; }
.eo-ring-pct { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; font-size: 14.5px; font-weight: 800; font-variant-numeric: tabular-nums; color: #1b3a44; }
.eo-titleblock { flex: 1; min-width: 0; }
.eo-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .8px; color: #9aabb1; }
.eo-title { margin: 2px 0 0; font-size: 20px; font-weight: 700; letter-spacing: -.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eo-statuspill { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px; border-radius: 20px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.eo-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.eo-close { width: 36px; height: 36px; border: none; border-radius: 9px; background: #f1f5f6; color: #6b818b; cursor: pointer; font-size: 16px; flex-shrink: 0; }
.eo-close:hover { background: #e6ecee; }

.eo-body { display: grid; grid-template-columns: 1.65fr 1fr; }
.eo-main { padding: 24px 28px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 26px; }
.eo-rail { background: #f7f9fa; padding: 24px 24px; display: flex; flex-direction: column; gap: 17px; }
.eo-field { display: flex; flex-direction: column; gap: 7px; }
.eo-label { font-size: 14px; font-weight: 600; color: #33515b; }
.eo-input, .eo-textarea { width: 100%; border: 1.5px solid #dbe2e5; border-radius: 9px; background: #fff; padding: 0 13px; height: 44px; font-size: 15.5px; color: #1b3a44; }
.eo-textarea { height: auto; min-height: 84px; padding: 11px 13px; line-height: 1.5; resize: vertical; }
.eo-input:focus, .eo-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.eo-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.eo-section { display: flex; flex-direction: column; gap: 8px; }
.eo-h { font-size: 17px; font-weight: 700; color: #1b3a44; letter-spacing: -.2px; }
.eo-h-row { display: flex; align-items: center; justify-content: space-between; }
.eo-count { font-weight: 600; color: #9aabb1; font-size: 15px; }

.eo-seg { display: flex; gap: 6px; background: #eef2f4; border-radius: 12px; padding: 5px; margin-top: 4px; }
.eo-seg button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; border: none; background: none; cursor: pointer; padding: 8px 4px; border-radius: 8px; color: #5b7079; }
.eo-seg button b { font-size: 15px; font-weight: 700; }
.eo-seg button span { font-size: 11.5px; opacity: .72; }
.eo-seg button.active { background: #fff; box-shadow: 0 1px 3px rgba(20,50,61,.12); color: var(--primary); }
.eo-prog { margin-top: 4px; }
.eo-autobanner { display: flex; align-items: center; gap: 13px; padding: 13px 15px; background: #eef6f4; border: 1px solid #d3e7e1; border-left: 3px solid var(--primary); border-radius: 11px; font-size: 14.5px; color: #2f5a55; }
.eo-auto-pct { font-size: 19px; font-weight: 800; color: var(--primary); }
.eo-grade { display: flex; align-items: center; gap: 10px; }
.eo-numgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.eo-statusblock { background: #f7f9fa; border: 1px solid #e7edef; border-radius: 12px; padding: 14px 15px; margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.eo-switch { position: relative; width: 40px; height: 23px; flex-shrink: 0; }
.eo-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.eo-switch i { position: absolute; inset: 0; background: #cdd6da; border-radius: 20px; transition: background .18s; }
.eo-switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; background: #fff; border-radius: 50%; transition: left .18s; }
.eo-switch input:checked + i { background: var(--primary); }
.eo-switch input:checked + i::after { left: 19px; }
.eo-statusrow { display: flex; align-items: center; gap: 10px; }
.eo-statusrow .eo-input { flex: 1; }
.eo-autochip { flex: 1; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 13px; background: #eef2f4; border: 1px dashed #c4d0d4; border-radius: 9px; font-size: 15px; color: #50656d; }

.eo-addkr { height: 34px; padding: 0 13px; background: #eef6f4; border: 1px solid #d3e7e1; border-radius: 9px; font-size: 14.5px; font-weight: 700; color: var(--primary); cursor: pointer; }
.eo-addkr:hover { background: #e2efeb; }
.eo-krs { counter-reset: kr; display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.eo-kr { counter-increment: kr; background: #f7f9fa; border: 1px solid #e7edef; border-radius: 13px; padding: 14px 15px; }
.eo-kr-top { display: flex; align-items: center; gap: 10px; }
.eo-kr-idx { width: 26px; height: 26px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: #e1e8eb; border-radius: 8px; font-size: 14px; font-weight: 800; color: #6b818b; }
.eo-kr-idx::before { content: counter(kr); }
.eo-kr .k-sum { flex: 1; height: 42px; border: 1.5px solid #dbe2e5; border-radius: 9px; padding: 0 12px; font-size: 15.5px; font-weight: 600; color: #1b3a44; background: #fff; }
.eo-kr .k-sum:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.eo-kr-rm { width: 34px; height: 34px; border: none; background: none; border-radius: 8px; color: #9aabb1; cursor: pointer; flex-shrink: 0; }
.eo-kr-rm:hover { background: #fdecea; color: #d1654a; }
.eo-kr-bar { display: flex; align-items: center; gap: 10px; padding-left: 37px; margin: 11px 0; }
.eo-kr-track { flex: 1; height: 8px; background: #e4ebee; border-radius: 20px; overflow: hidden; }
.kr-bar-fill { height: 100%; background: var(--primary); border-radius: 20px; transition: width .25s; }
.kr-bar-pct { font-size: 14px; font-weight: 800; color: var(--primary); min-width: 38px; text-align: right; font-variant-numeric: tabular-nums; }
.eo-kr-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.2fr; gap: 9px; padding-left: 37px; }
.eo-kr-grid .micro input, .eo-kr-grid .micro select { height: 38px; border: 1.5px solid #dbe2e5; border-radius: 8px; padding: 0 9px; font-size: 14.5px; background: #fff; }
.eo-kr-grid .emph input { border-color: #bcdbd5; font-weight: 600; }
.eo-kr-foot { display: flex; align-items: center; gap: 10px; padding: 11px 0 0 37px; margin-top: 11px; border-top: 1px solid #e7edef; }
.eo-kr-wlabel { font-size: 13.5px; font-weight: 600; color: #50656d; }
.eo-kr-av { width: 28px; height: 28px; border-radius: 50%; }
/* Searchable user-picker button (spec 021 b) — looks like a field, opens userPickerModal */
.eo-userbtn { display: inline-flex; align-items: center; gap: 8px; text-align: left; cursor: pointer; color: #1b3a44; }
.eo-userbtn:hover { border-color: var(--primary); }
.k-assignee.eo-userbtn { height: 34px; min-width: 150px; border: 1.5px solid #dbe2e5; border-radius: 9px; background: #fff; padding: 0 10px; font-size: 13.5px; }
.ub-av { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; }
.eo-kr-foot .k-assignee { height: 32px; border: 1.5px solid #dbe2e5; border-radius: 8px; padding: 0 8px; font-size: 14px; background: #fff; max-width: 150px; }

.eo-stepper { display: inline-flex; align-items: center; border: 1.5px solid #dbe2e5; border-radius: 8px; overflow: hidden; background: #fff; }
.eo-stepper button { width: 32px; height: 38px; border: none; background: none; cursor: pointer; font-size: 18px; color: #50656d; }
.eo-stepper button:hover { background: #f1f5f6; }
.eo-stepper input { width: 52px; height: 38px; border: none; border-left: 1px solid #e7edef; border-right: 1px solid #e7edef; text-align: center; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
/* Hide the browser's native number spinners — keep the +/- buttons + manual entry (spec 021) */
.eo-stepper input::-webkit-outer-spin-button,
.eo-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.eo-stepper.sm button { height: 32px; width: 28px; font-size: 16px; }
.eo-stepper.sm input { height: 32px; width: 44px; }
.eo-weight-warn { background: #fbf1df; border: 1px solid #efddb6; color: #8a5a12; border-radius: 9px; padding: 9px 12px; font-size: 13.5px; margin: 0 0 10px; }

.eo-parentchips, .eo-chips, .eo-tagchips { display: flex; flex-wrap: wrap; gap: 8px; }
.eo-pchip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 11px; background: #eef6f4; border: 1px solid #cfe5df; border-radius: 8px; font-size: 14px; font-weight: 600; color: #245a52; }
.eo-pchip b { font-size: 11.5px; font-weight: 700; color: var(--primary); }
.eo-pchip button, .eo-tag button { border: none; background: none; cursor: pointer; color: inherit; font-size: 14px; opacity: .7; }
.eo-chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 5px; border-radius: 20px; border: 1.5px solid #e2e9ec; background: #fff; color: #7a8e96; font-size: 14px; font-weight: 600; cursor: pointer; }
.eo-chip img { width: 24px; height: 24px; border-radius: 50%; }
.eo-chip.on { background: #eef6f4; border-color: var(--primary); color: #245a52; }
.eo-chip-x { opacity: .55; font-size: 13px; }
.eo-chip:hover .eo-chip-x { opacity: 1; }
.eo-suggest { display: flex; flex-direction: column; gap: 2px; max-height: 220px; overflow-y: auto; }
.eo-suggest:not(:empty) { border: 1px solid var(--border); border-radius: 9px; padding: 5px; margin-top: 2px; background: #fff; }
.eo-sg { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; padding: 7px 9px; border: none; background: none; border-radius: 7px; cursor: pointer; }
.eo-sg:hover { background: var(--bg); }
.eo-sg img { width: 26px; height: 26px; border-radius: 50%; }
.eo-tag { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 5px 0 10px; background: #edf2f3; border: 1px solid var(--border); border-radius: 7px; font-size: 13.5px; font-weight: 600; color: #50656d; }

.eo-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; padding-top: 18px; border-top: 1px solid #e7edef; }
.eo-save { height: 48px; border: none; border-radius: 11px; background: var(--primary); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 35%, transparent); }
.eo-cancel { height: 44px; border: 1px solid #dbe2e5; border-radius: 11px; background: #fff; color: #50656d; font-size: 15px; font-weight: 600; cursor: pointer; }
.eo-cancel:hover { background: #f1f5f6; }
.eo-bin { height: 40px; border: none; background: none; color: #c2603f; font-size: 14.5px; font-weight: 600; cursor: pointer; border-radius: 9px; }
.eo-bin:hover { background: #fdecea; }

.eo-activity { padding: 20px 28px 26px; border-top: 1px solid var(--border); }
.eo-tabs { margin-bottom: 14px; }

@media (max-width: 980px) {
  .eo-body { grid-template-columns: 1fr; }
  .eo-main { border-right: none; border-bottom: 1px solid var(--border); }
  .eo-kr-grid { grid-template-columns: 1fr 1fr; }
  /* Force the icon-only rail on small screens (spec 013). */
  .sidebar { width: 80px; }
  .sidebar .wordmark, .sidebar .nav-text, .sidebar .chev, .sidebar .nav-badge,
  .sidebar .pf-meta, .sidebar .pf-logout { display: none; }
  .sidebar .side-brand { justify-content: center; padding: 8px 0; }
  .sidebar .side-brand img { width: 44px; }
  .sidebar .side-nav a, .sidebar .side-group { justify-content: center; padding: 0; }
  .sidebar .nav-label { height: 1px; padding: 0; margin: 12px 16px; background: var(--rail-divider); color: transparent; overflow: hidden; }
  .sidebar .side-sub { display: none !important; }
  .sidebar .profile-card { justify-content: center; padding: 11px 0; }
  .rail-toggle { display: none; }
  .modal-grid { grid-template-columns: 1fr; }
  .metric-band { grid-template-columns: 1fr; }
  .kr-grid { grid-template-columns: 1fr; }
  .oc-top { flex-wrap: wrap; }
  .bs-thr-grid { grid-template-columns: 1fr; }
  .bs-ms-row { flex-wrap: wrap; }
  .bs-panel { padding-left: 24px; }
  .ci-vals { grid-template-columns: 1fr; }
  .wz-types { grid-template-columns: 1fr; }
  .wz-kr-grid { grid-template-columns: 1fr 1fr; margin-left: 0; }
  .init-2col { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- spec 026: help (?) menu, guided tour, glossary ---- */
.help-wrap { position: relative; }
.help-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted); font-weight: 800; font-size: 15px; cursor: pointer; line-height: 1; }
.help-btn:hover { border-color: var(--primary); color: var(--primary); }
.help-menu { position: absolute; right: 0; top: 38px; z-index: 30; min-width: 150px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.help-menu button { text-align: left; border: none; background: none; padding: 8px 12px; border-radius: 7px; cursor: pointer; font: inherit; color: var(--text); }
.help-menu button:hover { background: #f1f5f6; }

.tour-overlay { position: fixed; inset: 0; z-index: 200; }
.tour-mask { position: absolute; inset: 0; pointer-events: auto; }
.tour-card { position: absolute; z-index: 201; width: 320px; max-width: calc(100vw - 24px); background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 40px rgba(16,24,40,.22); padding: 16px 18px; }
.tour-card-center { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); }
.tour-card .tour-x { position: absolute; top: 8px; right: 8px; border: none; background: none; cursor: pointer; color: var(--text-muted); font-size: 15px; }
.tour-title { margin: 0 18px 6px 0; font-size: 17px; font-weight: 700; }
.tour-body { margin: 0 0 14px; font-size: 14px; color: var(--text); line-height: 1.45; }
.tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tour-count { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.tour-btns { display: flex; gap: 6px; }
.tour-skip { color: var(--text-muted); }

.glossary-modal { width: 560px; }
.glossary-modal .eo-body { display: block; padding: 8px 26px 24px; max-height: 70vh; overflow: auto; }
.glossary { margin: 0; }
.glossary dt { font-weight: 700; margin-top: 14px; }
.glossary dd { margin: 2px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.45; }
