/* The workspace: panels, controls, the AI investment view, the report.
 * Everything here is a control a user operates or a surface a control changes.
 */

.panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  margin-bottom: var(--gap-section); }
@media (max-width: 1280px) { .panels { grid-template-columns: 1fr; } }

.panel { background: var(--card-bg, var(--panel)); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 16px; display: flex; flex-direction: column; min-height: 188px; }
.panel > h3 { margin: 0 0 12px; font: 600 10px "IBM Plex Sans", sans-serif; letter-spacing: .11em;
  text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.panel > h3 .r { margin-left: auto; font-weight: 500; letter-spacing: 0; text-transform: none;
  font-size: 11px; color: var(--faint); }
.panel.ai { background: linear-gradient(160deg, #0C1F1C 0%, #13312B 100%); border-color: #143c33; color: #DDEDE8; }
.panel.ai > h3 { color: var(--signal); }
.panel.ai .big { color: #fff; }
/* A panel or card inside a section, block or band is an inner panel: --panel-2 with a --line edge, no shadow
 * (type-scale.css). The tint travels as --card-bg, set in the visual base block at the end of app.css and read here and
 * in .card and .kpi, so a card that sets its own background (the dark ones, the amber warning) keeps it. */

.big { font: 600 30px/1.05 "IBM Plex Sans", sans-serif; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mid { font: 600 18px/1.15 "IBM Plex Sans", sans-serif; color: var(--ink); font-variant-numeric: tabular-nums; }
.sub { font-size: 11.5px; color: var(--muted); margin: 5px 0 0; }
.panel.ai .sub { color: #9FB6B0; }

/* ---------------------------------------------------------------- controls */

.ctlbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 14px; margin-bottom: 14px; }
.ctl { display: flex; align-items: center; gap: 7px; }
.ctl label { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; }
.ctl select, .ctl input[type="number"], .ctl input[type="text"] {
  height: 30px; border: 1px solid var(--line); border-radius: 7px; padding: 0 8px; background: #fff;
  font: 400 12.5px "IBM Plex Sans", sans-serif; color: var(--ink-2);
  transition: border-color .18s var(--ease);
}
.ctl select:focus, .ctl input:focus { border-color: var(--jade); }
.ctl input[type="range"] { width: 168px; accent-color: var(--jade); cursor: pointer; }
.ctl .val { font: 600 12.5px "IBM Plex Sans", sans-serif; color: var(--ink);
  font-variant-numeric: tabular-nums; min-width: 54px; }
.ctlbar .hint { font-size: 11.5px; color: var(--muted); margin-left: auto; }

.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: var(--panel-2); padding: 6px 11px; cursor: pointer;
  font: 500 12px "IBM Plex Sans", sans-serif; color: var(--muted-2);
  border-right: 1px solid var(--line); transition: background .18s var(--ease), color .18s var(--ease); }
.seg button:last-child { border-right: 0; }
.seg button:hover { background: var(--jade-soft); color: var(--jade-dark); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--panel-2); font-size: 11.5px; color: var(--ink-2);
  cursor: pointer; transition: border-color .18s var(--ease), background .18s var(--ease); }
.pill:hover { border-color: var(--jade); background: var(--jade-soft); }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill .x { font-size: 13px; line-height: 1; opacity: .6; }

.live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--jade-dark); }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--signal);
  animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.flash { animation: flash .5s var(--ease); }
@keyframes flash { from { background: var(--good-soft); } }

/* ---------------------------------------------------------------- anomaly ribbon */

.ribbon { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 9px 13px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 14px; }
.ribbon .lab { font: 600 9.5px "IBM Plex Sans", sans-serif; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); }
.flag { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 7px;
  border: 1px solid; cursor: pointer; font-size: 11.5px; font-weight: 500;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease); }
.flag:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(12, 31, 28, .1); }
.flag i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.flag.neg { background: var(--bad-soft); border-color: #EEBCBC; color: #7A1C1C; }
.flag.neg i { background: var(--bad); }
.flag.pos { background: var(--good-soft); border-color: #BCDCCF; color: var(--good); }
.flag.pos i { background: var(--good); }
.flag.qual { background: var(--amber-soft); border-color: var(--amber-line); color: var(--amber-ink); }
.flag.qual i { background: var(--amber); }

/* ---------------------------------------------------------------- report */

.rsec { border: 1px solid var(--line); border-radius: 9px; margin-bottom: 10px; background: #fff;
  transition: border-color .2s var(--ease); }
.rsec:hover { border-color: var(--line-strong); }
.rsec > .h { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; }
.rsec > .h .n { width: 22px; flex: none; font: 600 11px "IBM Plex Sans", sans-serif; color: var(--faint);
  font-variant-numeric: tabular-nums; }
.rsec > .h .t { font: 600 18px Newsreader, Georgia, serif; color: var(--ink); line-height: 1.25; }
.rsec > .h .st { margin-left: auto; }
.rsec > .c { padding: 0 14px 14px 36px; }

.report-pane .report-headline { font: 600 20px Newsreader, Georgia, serif; color: var(--ink); }
.report-pane .card > h3,
.report-pane .block > h3 { font-size: 13px; letter-spacing: .08em; color: var(--ink-2); }
.report-pane .phase .t { font-size: 14.5px; font-weight: 600; color: var(--ink); }

.report-pane .memo-suggestions { margin: 10px 0 0; }
.report-pane .memo-suggest-k { font: 600 10.5px "IBM Plex Sans", sans-serif; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.report-pane .memo-suggest-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.report-pane .memo-suggest-btn { appearance: none; border: 1.5px solid var(--line-strong); border-radius: 999px;
  background: var(--panel-2); color: var(--ink-2); font: 500 13px "IBM Plex Sans", sans-serif; line-height: 1.35;
  padding: 8px 14px; cursor: pointer; text-align: left; max-width: 100%; transition: border-color .15s var(--ease),
  background .15s var(--ease), color .15s var(--ease); }
.report-pane .memo-suggest-btn:hover { border-color: var(--jade); background: var(--good-soft); color: var(--ink); }
.report-pane .memo-suggest-btn:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; }
.report-pane .memo-suggest-wait,
.report-pane .memo-suggest-empty { font-size: 12.5px; color: var(--muted); }

.report-pane .memo-research-opt { display: flex; align-items: flex-start; gap: 14px; margin-top: 4px;
  padding: 16px 18px; border: 2px solid var(--line-strong); border-radius: 12px; background: var(--panel-2);
  cursor: pointer; }
.report-pane .memo-research-opt input[type="checkbox"] { width: 22px; height: 22px; margin: 2px 0 0; flex: none;
  accent-color: var(--jade); cursor: pointer; }
.report-pane .memo-research-opt-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.report-pane .memo-research-opt-title { font: 600 16px "IBM Plex Sans", sans-serif; color: var(--ink); line-height: 1.3; }
.report-pane .memo-research-opt-note { font-size: 13.5px; color: var(--muted-2); line-height: 1.45; }

.notice-link { appearance: none; background: none; border: none; padding: 0; margin: 0;
  font: inherit; color: var(--accent-dark); text-decoration: underline; cursor: pointer; }
.notice-link:hover { color: var(--jade); }
.aiband .notice, .aiband .disclaimer-box { color: #C3D8D2; }
.aiband .disclaimer-box-title { color: #DDEDE8; }
.aiband .notice-link { color: #FFE3A3; }
.st { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 9.5px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; }
.st.ready { background: var(--good-soft); color: var(--good); }
.st.partial { background: var(--amber-soft); color: var(--amber-ink); }
.st.refused { background: var(--bad-soft); color: var(--bad); }
.st.skipped { background: var(--line-soft); color: var(--muted); }
.st.draft { background: #E8F1F4; color: var(--ink-3); }

.cls { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: 9px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; vertical-align: 2px; }
.cls.measured { background: var(--good-soft); color: var(--good); }
.cls.model { background: #E8F1F4; color: var(--ink-3); }
.cls.ai { background: #F0E9FA; color: #5B3B8C; }
.cls.sim { background: var(--amber-soft); color: var(--amber-ink); }

.refusal { border: 1px dashed var(--line-strong); border-radius: 8px; padding: 12px 14px;
  background: var(--panel-2); font-size: 12.5px; color: var(--muted-2); }
.refusal b { display: block; color: var(--ink-2); margin-bottom: 4px; font-size: 13px; }

.phase { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 12.5px; }
.phase .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex: none; }
.phase.done .dot { background: var(--jade); }
.phase.run .dot { background: var(--signal); animation: pulse 1.2s ease-in-out infinite; }
.phase .t { color: var(--ink-2); }
.phase.wait .t { color: var(--faint); }

.progress { height: 3px; background: var(--line-soft); border-radius: 2px; overflow: hidden; margin: 10px 0 4px; }
.progress i { display: block; height: 100%; background: var(--jade); transition: width .5s var(--ease); }

/* ---------------------------------------------------------------- ask */

.ask-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-start;
  justify-content: center; padding-top: 12vh; background: rgba(12, 31, 28, .34);
  animation: fade .2s var(--ease) both; }
.ask-box { width: 640px; max-width: 92vw; background: #fff; border-radius: 12px;
  box-shadow: 0 24px 70px rgba(12, 31, 28, .3); overflow: hidden;
  animation: pop .26s var(--ease-over) both; }
@keyframes pop { from { transform: translateY(-10px) scale(.98); opacity: 0; } }
.ask-box input { display: block; width: 100%; height: 48px; margin: 8px 0 2px;
  padding: 0 14px; border: 2px solid var(--jade); border-radius: 8px;
  background: var(--jade-soft); box-shadow: 0 0 0 3px rgba(14, 138, 110, .12);
  font: 500 15px "IBM Plex Sans", sans-serif; color: var(--ink); }
.ask-box input::placeholder { color: #3E5C55; }
.ask-box input:focus { outline: none; background: #fff; border-color: var(--jade-dark);
  box-shadow: 0 0 0 3px rgba(14, 138, 110, .28); }
.ask-box .modes { display: flex; gap: 8px; padding: 10px 18px; border-bottom: 1px solid var(--line-soft); }
.ask-box .body { padding: 14px 18px 18px; max-height: 46vh; overflow-y: auto; }
.ask-sug { display: block; width: 100%; text-align: left; border: 0; background: none; cursor: pointer;
  padding: 9px 10px; border-radius: 7px; font-size: 13px; color: var(--ink-2);
  transition: background .16s var(--ease); }
.ask-sug:hover { background: var(--jade-soft); }

/* ---------------------------------------------------------------- AI investment view, the band */

.aiband {
  background: linear-gradient(118deg, #0A1C19 0%, #113029 52%, #16453A 100%);
  border: 1px solid #17463B; border-radius: 14px; padding: 22px 24px 20px;
  margin-bottom: var(--gap-section); color: #DDEDE8; position: relative; overflow: hidden;
}
.aiband::after {
  content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(53,214,168,.16) 0%, rgba(53,214,168,0) 68%); pointer-events: none;
}
.aiband .cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 22px;
  position: relative; z-index: 1; align-items: stretch; }
@media (max-width: 1180px) { .aiband .cols2 { grid-template-columns: 1fr; } }
.aiband-main { display: flex; flex-direction: column; min-width: 0; }
.aiband-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px 18px;
  flex-wrap: wrap; position: relative; z-index: 1; margin-bottom: 16px;
}
.aiband-hero {
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px; padding: 16px 18px 14px; margin-bottom: 14px; position: relative; z-index: 1;
}
.aiband-hero.good { border-left: 3px solid #35d6a8; background: linear-gradient(90deg, rgba(53,214,168,.1) 0%, rgba(255,255,255,.04) 28%); }
.aiband-hero.warn { border-left: 3px solid #e0a526; background: linear-gradient(90deg, rgba(224,165,38,.12) 0%, rgba(255,255,255,.04) 28%); }
.aiband-hero.bad { border-left: 3px solid #e86a6a; background: linear-gradient(90deg, rgba(232,106,106,.12) 0%, rgba(255,255,255,.04) 28%); }
.aiband-hero.held { border-left: 3px solid rgba(255, 255, 255, .28); }
.aiband-hero .stance { margin-top: 0; }
.aiband-hero .why { margin-top: 10px; margin-bottom: 0; }
.aiband-hero .chips { margin-top: 12px; }
.aiband .glyph {
  width: 42px; height: 42px; flex: none; border-radius: 12px; background: rgba(53, 214, 168, .15);
  border: 1px solid rgba(53, 214, 168, .35); display: flex; align-items: center; justify-content: center;
  color: var(--signal);
}
.aiband h2 {
  display: inline-block; margin: 0;
  font: 600 31px/1 "IBM Plex Sans", sans-serif; letter-spacing: -.02em;
  color: #052019; background: var(--signal);
  border: 2px solid #7CF0CB; border-radius: 11px;
  padding: 9px 16px 11px;
  box-shadow: 0 0 0 4px rgba(53, 214, 168, .12), 0 10px 26px rgba(53, 214, 168, .18);
}
@media (max-width: 1280px) { .aiband h2 { font-size: 26px; padding: 8px 13px 10px; } }
@media (max-width: 760px) { .aiband h2 { font-size: 21px; } }
.aiband .kicker { font: 700 11px "IBM Plex Sans", sans-serif; letter-spacing: .2em;
  text-transform: uppercase; color: #7CF0CB; margin-bottom: 12px; }
.aiband .stance { display: flex; align-items: center; gap: 10px; margin-top: 0; flex-wrap: wrap; }
.aiband-head .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; justify-content: flex-end; }
.aiband .stance .v { font: 600 20px "IBM Plex Sans", sans-serif; color: #fff; }
.aiband .why { font-size: 14px; color: #A9C2BB; line-height: 1.5; max-width: 74ch; margin: 9px 0 0; }
.aiband .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.aiband .chip { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .18); color: #CFE3DC; }
.aiband .chip.obs { background: rgba(53, 214, 168, .14); border-color: rgba(53, 214, 168, .4); color: var(--signal); }
.aiband .chip.sim { background: rgba(224, 165, 38, .14); border-color: rgba(224, 165, 38, .45); color: #F0C96E; }
.aiband .chip.good { background: rgba(53, 214, 168, .18); border-color: rgba(53, 214, 168, .5); color: #8CF3D2; }
.aiband .chip.warn { background: rgba(224, 165, 38, .18); border-color: rgba(224, 165, 38, .55); color: #F7D389; }
.aiband .chip.bad { background: rgba(232, 106, 106, .16); border-color: rgba(232, 106, 106, .5); color: #F5B8B8; }
.aiband .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.aiband .acts .btn { font-size: 14.5px; font-weight: 650; padding: 11px 18px; border-radius: 9px; }
.aiband .acts .btn.ghost { font-size: 14px; padding: 11px 18px; }
.aiband .acts .btn { background: var(--signal); border-color: var(--signal); color: #062018; font-weight: 650; }
.aiband .acts .btn:hover { background: #4be0b6; border-color: #4be0b6; }
.aiband .acts .btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .3); color: #DDEDE8; }
.aiband .acts .btn.ghost:hover { background: rgba(255, 255, 255, .09); }
.aislots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px;
  position: relative; z-index: 1; }
@media (max-width: 1400px) { .aislots { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .aislots { grid-template-columns: 1fr; } }

/* the auto summary on the right of the band */
.glance { background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 11px; padding: 16px 18px; }
.glance .h { font: 700 11px "IBM Plex Sans", sans-serif; letter-spacing: .16em; text-transform: uppercase;
  color: #7CF0CB; margin-bottom: 4px; }
.glance .lede { font-size: 13.5px; line-height: 1.55; color: #C9DED8; margin: 0 0 14px; }
.glance dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; margin: 0; }
.glance dt { font-size: 12.5px; color: #8FADA5; white-space: nowrap; }
.glance dd { margin: 0; font-size: 13.5px; font-weight: 600; color: #EAF6F2; text-align: right;
  font-variant-numeric: tabular-nums; }
.glance .foot { margin-top: 13px; padding-top: 11px; border-top: 1px solid rgba(255, 255, 255, .11);
  font-size: 11.5px; color: #7F9B94; }
.aislot { background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 9px; padding: 12px 14px; }
.aislot .h { font: 700 10.5px "IBM Plex Sans", sans-serif; letter-spacing: .12em; text-transform: uppercase;
  color: var(--signal); margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.aislot .h .n { margin-left: auto; color: #7F9B94; letter-spacing: 0; text-transform: none; font-weight: 500; }
.aislot li { font-size: 13.5px; color: #C3D8D2; margin: 5px 0; line-height: 1.45; }
.aislot ul { margin: 0; padding-left: 16px; }
.aislot .wait { font-size: 13px; color: #7F9B94; font-style: normal; }
.panels.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------------------------------------------------------------- Cortex Anchor */

.cxwrap { display: inline-flex; align-items: center; gap: 8px; }
.cxbtn { border: 1px solid rgba(255,255,255,.3); background: transparent; color: #DDEDE8;
  border-radius: 9px; padding: 11px 16px; font: 500 14px "IBM Plex Sans", sans-serif; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease); }
.cxbtn:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.5); }
.cxbtn.what { padding: 11px 14px; color: #9FD8C6; }
.cxbtn.what:hover { color: #fff; }

.cxhero { background: linear-gradient(140deg, #0A1C19, #14392F); border-radius: 12px; padding: 18px 20px;
  color: #DDEDE8; margin-bottom: 18px; }
.cxhero h3 { margin: 0 0 4px; font: 600 24px "IBM Plex Sans", sans-serif; color: #fff; letter-spacing: -.02em; }
.cxhero .k { font: 700 10.5px "IBM Plex Sans", sans-serif; letter-spacing: .18em; text-transform: uppercase;
  color: #7CF0CB; margin-bottom: 8px; }
.cxhero p { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: #B9D2CB; }

.cxflow { display: flex; align-items: stretch; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.cxstep { flex: 1 1 110px; background: #fff; border: 1.5px solid var(--line); border-radius: 9px;
  padding: 11px 12px; position: relative; }
.cxstep .n { font: 700 9.5px "IBM Plex Sans", sans-serif; letter-spacing: .1em; text-transform: uppercase;
  color: var(--jade); }
.cxstep .t { font-size: 13.5px; font-weight: 600; color: var(--ink); margin: 3px 0 2px; }
.cxstep .d { font-size: 12px; color: var(--muted); line-height: 1.4; }
.cxstep.gate { border-color: var(--jade); background: var(--jade-soft); }
.cxstep.refuse { border-color: #EEBCBC; background: var(--bad-soft); }
.cxstep.refuse .n { color: var(--bad); }

.cxrow { display: flex; align-items: flex-start; gap: 11px; padding: 9px 0;
  border-bottom: 1px solid var(--line-soft); }
.cxrow:last-child { border-bottom: 0; }
.cxrow .g { flex: 0 0 auto; width: 92px; text-align: center;
  font: 700 10px "IBM Plex Sans", sans-serif; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 6px; border-radius: 4px; }
.cxrow .x { flex: 1 1 auto; min-width: 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }

/* ---------------------------------------------------------------- the LLM Cortex popout, wide */

.drawer.wide { width: 980px; max-width: 96vw; }
.drawer.wide .db { padding: 24px 32px 34px; font-size: 15px; }
.drawer.wide .dh { padding: 24px 32px 18px; }
.drawer.wide .dh h2 { font-size: 27px; }
.drawer.wide .dh .sub { font-size: 14px; }
.drawer.wide .dh .eyebrow { font-size: 11px; letter-spacing: .16em; }

.cxhero { padding: 26px 28px; }
.cxhero h3 { font-size: 30px; line-height: 1.15; }
.cxhero p { font-size: 15.5px; line-height: 1.6; max-width: 84ch; }
.cxhero .k { font-size: 11px; letter-spacing: .2em; }

.cxbrain {
  margin: 22px 0 8px; padding: 24px 26px; border-radius: 11px;
  background: linear-gradient(140deg, #0a1c19, #14392f); border: 1.5px solid #2c6354; color: #c2dcd3;
}
.cxbrain .k { display: block; font: 700 11px "IBM Plex Sans", sans-serif; letter-spacing: .2em;
  text-transform: uppercase; color: #35d6a8; margin-bottom: 10px; }
.cxbrain h3 { margin: 0 0 12px; font: 600 26px Newsreader, Georgia, serif; color: #fff; line-height: 1.2; }
.cxbrain p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; max-width: 84ch; }
.cxbrain p:last-child { margin-bottom: 0; }
.cxbrain b { color: #fff; font-weight: 600; }

.cxh { margin: 28px 0 12px; font: 700 12px "IBM Plex Sans", sans-serif; letter-spacing: .14em;
  text-transform: uppercase; color: var(--jade-dark); display: flex; align-items: center; gap: 10px; }
.cxh::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* RAG against Cortex */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 820px) { .vs { grid-template-columns: 1fr; } }
.vscol { border: 1.5px solid var(--line); border-radius: 11px; padding: 16px 18px; background: #fff; }
.vscol.them { background: var(--panel-2); }
.vscol.us { border-color: var(--jade); box-shadow: 0 0 0 3px rgba(14, 138, 110, .1); }
.vscol h4 { margin: 0 0 3px; font: 600 19px Newsreader, Georgia, serif; color: var(--ink); }
.vscol .tag { font: 700 10.5px "IBM Plex Sans", sans-serif; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px; display: block; }
.vscol.us .tag { color: var(--jade-dark); }
.vscol ul { margin: 12px 0 0; padding-left: 18px; }
.vscol li { font-size: 14.5px; line-height: 1.55; margin: 8px 0; color: var(--ink-3); }
.vscol .punch { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: 0; font-weight: 500; }

/* the three layers */
.layers { display: flex; flex-direction: column; gap: 10px; }
.layer { display: flex; align-items: flex-start; gap: 16px; border: 1.5px solid var(--line);
  border-radius: 11px; padding: 15px 18px; background: #fff;
  transition: border-color .2s var(--ease), transform .2s var(--ease); }
.layer:hover { border-color: var(--jade); transform: translateX(3px); }
.layer .lv { flex: 0 0 116px; }
.layer .lv .n { font: 700 10.5px "IBM Plex Sans", sans-serif; letter-spacing: .1em;
  text-transform: uppercase; color: var(--jade); }
.layer .lv .t { font: 600 16px "IBM Plex Sans", sans-serif; color: var(--ink); margin-top: 2px; }
.layer .ld { flex: 1 1 auto; min-width: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-3); }
.layer .ld b { color: var(--ink); font-weight: 600; }
.layer .lm { flex: 0 0 auto; text-align: right; font-variant-numeric: tabular-nums; }
.layer .lm .v { font: 600 22px "IBM Plex Sans", sans-serif; color: var(--ink); }
.layer .lm .l { font-size: 11.5px; color: var(--muted); }

.cxstep .t { font-size: 15px; }
.cxstep .d { font-size: 13px; }
.cxstep .n { font-size: 10.5px; }
.cxrow .x { font-size: 15px; }
.cxrow .g { width: 108px; font-size: 10.5px; padding: 5px 7px; }
.drawer.wide ul.plain li { font-size: 15px; line-height: 1.6; margin: 9px 0; }

/* ---------------------------------------------------------------- legibility, second pass
 * The dark band was set in grey on green. Every line inside it comes up to near-white, and the
 * whole page takes another size step.
 */

.aiband .why { font-size: 16px; line-height: 1.6; color: #E0F0EA; max-width: 78ch; }
.aiband .kicker { font-size: 12px; color: #8CF3D2; }
.aiband .stance .v { font-size: 23px; }
.aiband .chips .chip { font-size: 12.5px; padding: 5px 11px; color: #E3F2EC;
  background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.26); }
.aiband .chips .chip.obs { background: rgba(53,214,168,.2); border-color: rgba(53,214,168,.55); color: #8CF3D2; }
.aiband .chips .chip.sim { background: rgba(224,165,38,.2); border-color: rgba(224,165,38,.6); color: #F7D389; }

.aislot { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); padding: 14px 16px; }
.aislot .h { font-size: 11.5px; letter-spacing: .13em; color: #8CF3D2; }
.aislot .h .n { font-size: 13px; color: #A9C6BE; }
.aislot li { font-size: 15px; line-height: 1.55; color: #EAF6F2; margin: 7px 0; }
.aislot .wait { font-size: 14.5px; line-height: 1.55; color: #ADCAC2; }

.glance { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); padding: 18px 20px; }
.glance .h { font-size: 12px; color: #8CF3D2; letter-spacing: .15em; margin-bottom: 8px; }
.glance .lede { font-size: 15.5px; line-height: 1.6; color: #E4F2ED; margin-bottom: 16px; }
.glance dl { gap: 10px 16px; }
.glance dt { font-size: 14.5px; color: #C2D9D2; }
.glance dd { font-size: 15px; color: #FFFFFF; }
.glance .foot { font-size: 13px; color: #A9C6BE; margin-top: 15px; padding-top: 13px; }

.cxbtn { font-size: 15px; padding: 12px 18px; color: #EAF6F2; border-color: rgba(255,255,255,.4); }
.cxbtn.what { color: #B6E3D5; }
.aiband .acts .btn { font-size: 15px; padding: 12px 20px; }

/* ---------------------------------------------------------------- band density
 * The glance card set the band height with eleven stacked rows. Two columns halve it, and the
 * left column stretches so no dark gap is left under the slots.
 */
.aiband { padding: 20px 22px 18px; }
.aiband .cols2 { grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: 20px;
  align-items: stretch; }
.aiband-main { flex: 1 1 auto; }
.aislots { margin-top: 0; flex: 0 0 auto; align-items: stretch; }
.aiband-head { margin-bottom: 14px; }
.aiband-hero { padding: 18px 20px 16px; margin-bottom: 16px; }
.aislot { display: flex; flex-direction: column; padding: 12px 14px; }
.aislot ul { padding-left: 17px; }
.aislot li { margin: 5px 0; }

.glance { padding: 16px 18px; display: flex; flex-direction: column; }
.glance .lede { margin-bottom: 14px; font-size: 15px; }
.glance dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 20px; }
.glance dl > div { min-width: 0; }
.glance dt { display: block; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase;
  color: #9FBDB5; font-weight: 600; margin-bottom: 1px; }
.glance dd { display: block; text-align: left; font-size: 16px; line-height: 1.2; color: #fff; }
.glance .foot { margin-top: auto; padding-top: 13px; }

/* flags live inside the band, so the left column carries content to its full height */
.aislots { flex: 0 0 auto; }
.ribbon.inband { margin-top: 12px; margin-bottom: 0; flex: 1 1 auto;
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14);
  align-items: flex-start; align-content: flex-start; padding: 12px 14px; }
.ribbon.inband .lab { color: #8CF3D2; font-size: 11.5px; letter-spacing: .13em; padding-top: 5px; }
.ribbon.inband .flag { font-size: 13px; }
.ribbon.inband .hint { color: #A9C6BE !important; font-size: 12.5px; }

/* ---------------------------------------------------------------- the Cortex mark */

.cxmark {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 15px 9px 11px;
  border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(53, 214, 168, .55);
  background: radial-gradient(120% 140% at 12% 50%, rgba(53,214,168,.28) 0%, rgba(53,214,168,.06) 62%);
  color: #BFF3E1; font: 600 14px "IBM Plex Sans", sans-serif;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .2s var(--ease);
}
.cxmark:hover { border-color: var(--signal); transform: translateY(-1px);
  background: radial-gradient(120% 140% at 12% 50%, rgba(53,214,168,.42) 0%, rgba(53,214,168,.1) 62%); }
.cxmark .orb { position: relative; width: 22px; height: 22px; flex: none; }
.cxmark .orb svg { position: absolute; inset: 0; }
.cxmark .orb::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  background: radial-gradient(circle, rgba(53,214,168,.45) 0%, rgba(53,214,168,0) 68%);
  animation: breathe 3.4s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: .45; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.12); } }
.cxmark .q { font-size: 13px; color: #7CF0CB; opacity: .85; }
.cxmark .node { animation: twinkle 2.6s ease-in-out infinite; transform-origin: center; }
.cxmark .node:nth-child(2) { animation-delay: .5s; }
.cxmark .node:nth-child(3) { animation-delay: 1s; }
.cxmark .node:nth-child(4) { animation-delay: 1.5s; }
@keyframes twinkle { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------------------------------------------------------------- the Cortex controls */

.cxexplore {
  display: inline-flex; align-items: center; gap: 13px;
  padding: 15px 24px 15px 18px; border-radius: 14px; cursor: pointer;
  border: 2px solid rgba(53, 214, 168, .6);
  background: radial-gradient(130% 150% at 14% 50%, rgba(53,214,168,.3) 0%, rgba(53,214,168,.07) 60%), #0B241F;
  color: #DFF6EC; font: 650 17px "IBM Plex Sans", sans-serif; letter-spacing: -.005em;
  box-shadow: 0 0 0 4px rgba(53,214,168,.09), 0 10px 28px rgba(53,214,168,.16);
  transition: border-color .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
}
.cxexplore:hover { border-color: var(--signal); transform: translateY(-2px);
  box-shadow: 0 0 0 5px rgba(53,214,168,.14), 0 16px 38px rgba(53,214,168,.24); }
.cxexplore .net { position: relative; width: 34px; height: 34px; flex: none; }
.cxexplore .net::before {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  background: radial-gradient(circle, rgba(53,214,168,.5) 0%, rgba(53,214,168,0) 66%);
  animation: breathe 3.2s ease-in-out infinite;
}
.cxexplore .sub { display: block; font: 500 12px "IBM Plex Sans", sans-serif; color: #93C7B8;
  margin-top: 2px; letter-spacing: 0; }

.titlerow .ai-unavail { margin: 0; max-width: 34rem; color: var(--muted); font-size: 13px; line-height: 1.45; }
.topbar #askbtn[disabled] { opacity: .55; cursor: not-allowed; }

.node { animation: twinkle 2.4s ease-in-out infinite; transform-origin: center; }
.node:nth-of-type(2) { animation-delay: .35s; }
.node:nth-of-type(3) { animation-delay: .7s; }
.node:nth-of-type(4) { animation-delay: 1.05s; }
.node:nth-of-type(5) { animation-delay: 1.4s; }
.edge { animation: pulseline 2.4s ease-in-out infinite; }
.edge:nth-of-type(2) { animation-delay: .35s; }
.edge:nth-of-type(3) { animation-delay: .7s; }
.edge:nth-of-type(4) { animation-delay: 1.05s; }
@keyframes twinkle { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes pulseline { 0%, 100% { opacity: .3; } 50% { opacity: .85; } }
@keyframes breathe { 0%, 100% { opacity: .4; transform: scale(.88); } 50% { opacity: 1; transform: scale(1.14); } }

.cxwhat {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 17px; border-radius: 12px;
  cursor: pointer; border: 1.5px solid rgba(255,255,255,.28); background: rgba(255,255,255,.05);
  color: #C6E4DA; font: 600 15px "IBM Plex Sans", sans-serif;
  transition: border-color .22s var(--ease), background .22s var(--ease), color .22s var(--ease); }
.cxwhat:hover { border-color: rgba(53,214,168,.7); background: rgba(53,214,168,.12); color: #EAF9F3; }
.cxwhat svg { color: #8CF3D2; }

/* ---------------------------------------------------------------- explain, one field at a time */

.xlabel { display: inline-flex; align-items: center; gap: 5px; }
.xmark {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 19px; height: 19px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--muted);
  vertical-align: middle; transition: color .18s var(--ease), border-color .18s var(--ease),
    background .18s var(--ease), transform .16s var(--ease);
}
.xmark:hover { color: var(--jade-dark); border-color: var(--jade); background: var(--jade-soft);
  transform: scale(1.08); }
/* The tile's About control keeps a thin ring so it reads as a control before the pointer reaches it (2026-10-05: with no
 * ring it looked like part of the label and readers did not find it). */
.xmark.quiet { border-color: var(--line); background: transparent; }
.xmark.quiet:hover { border-color: var(--jade); background: var(--jade-soft); }
.xmark.undocumented { color: var(--amber-ink); border-style: dashed; border-color: var(--amber-line); }
thead th .xmark { border-color: rgba(255,255,255,.35); background: transparent; color: #CFE0DB; }
thead th .xmark:hover { border-color: var(--signal); color: var(--signal); background: rgba(255,255,255,.1); }
.aiband .xmark, .panel.ai .xmark { border-color: rgba(255,255,255,.3); background: transparent; color: #A9C6BE; }
.aiband .xmark:hover { border-color: var(--signal); color: var(--signal); background: rgba(53,214,168,.14); }

.xcard {
  position: fixed; z-index: 70; width: 540px; max-width: 92vw;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: 0 18px 48px rgba(12, 31, 28, .22);
  animation: xpop .18s var(--ease-over) both;
}
.xcard.centred { left: 50%; top: 22vh; transform: translateX(-50%); }
/* A pop-up taller than the window scrolls inside itself (2026-10-02: "Report writing method" was 2,676 px tall in a
 * 900 px window with nothing below the first screen reachable); its title bar stays in view. */
.xcard { max-height: calc(100vh - 32px); overflow-y: auto; }
.xcard.centred { top: 12vh; max-height: calc(88vh - 24px); }
.xcard .xhead { position: sticky; top: 0; z-index: 1; background: #fff; }
@keyframes xpop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.xcard .xhead { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line-soft); }
.xcard .xeyebrow { font: 700 9.5px "IBM Plex Sans", sans-serif; letter-spacing: .12em;
  text-transform: uppercase; color: var(--jade-dark); margin-bottom: 3px; }
.xcard h3 { margin: 0; font: 500 17px Newsreader, Georgia, serif; color: var(--ink); }
.xcard .xclose { margin-left: auto; flex: none; width: 24px; height: 24px; border: 0; background: none;
  font-size: 19px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 6px; }
.xcard .xclose:hover { background: var(--line-soft); color: var(--ink); }
.xcard .xbody { padding: 12px 16px 16px; }
.xcard .xdef { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.xcard .xdl { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.xcard .xrow { display: grid; grid-template-columns: 78px 1fr; gap: 10px; align-items: baseline; }
.xcard .xrow dt { font: 700 9.5px "IBM Plex Sans", sans-serif; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted); }
.xcard .xrow dd { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.xcard .xrow dd.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px;
  color: var(--ink-2); word-break: break-word; }
.xcard .xlink { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
  font-size: 13px; font-weight: 600; color: var(--jade-dark); text-decoration: none;
  padding: 8px 12px; border: 1.5px solid #BFDCD3; border-radius: 8px; background: var(--jade-soft);
  transition: border-color .18s var(--ease), background .18s var(--ease); }
.xcard .xlink:hover { border-color: var(--jade); background: #E4F5EF; text-decoration: none; }
.xcard .xarr { font-size: 14px; }
.xcard .xnone { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--amber-ink); }
.xcard .xhint { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }


/* ---------------------------------------------------------------- claims, detail groups, nav */

.claim { border-left: 3px solid var(--jade); padding: 2px 0 2px 13px; margin-bottom: 14px; }
.claim .prose { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.factchips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.factchip { font: 500 11px "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .02em;
  padding: 3px 8px; border-radius: 5px; background: var(--good-soft); color: var(--jade-dark);
  border: 1px solid var(--jade-pale); cursor: default; }
.factchip.conf { background: var(--panel-2); color: var(--muted); border-color: var(--line); font-weight: 500; }
/* A fact tag is a link to its record (Moses, 2026-09-24). */
button.factchip { cursor: pointer; line-height: 1.2; vertical-align: baseline; }
button.factchip:hover, button.factchip:focus-visible { background: var(--jade); color: #fff; border-color: var(--jade); outline: none; }
.verified-facts { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; padding: 12px 16px;
  border: 1.5px solid #A9D8C8; border-left: 5px solid var(--jade); border-radius: 10px; background: #EEF8F4; }
.verified-facts .vf-mark { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--jade);
  color: #fff; font: 700 15px/26px "IBM Plex Sans", sans-serif; text-align: center; }
.verified-facts p { margin: 0; font: 400 15px/1.55 "IBM Plex Sans", sans-serif; color: var(--ink-2); }
.verified-facts b { font-weight: 600; color: inherit; }
.xcard .fact-verified { margin: 0 0 10px; font: 600 13px "IBM Plex Sans", sans-serif; color: var(--jade-dark); }

.detail-group { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.detail-group .dg-head { font: 700 10px "IBM Plex Sans", sans-serif; letter-spacing: .1em;
  text-transform: uppercase; color: var(--jade-dark); margin-bottom: 7px; }

.navrow { display: flex; gap: 10px; margin-top: 14px; }
.navrow .btn { font-size: 14.5px; padding: 10px 18px; }
.entity .navrow { margin-bottom: 2px; }

/* ---------------------------------------------------------------- top bar on one line */

.topbar { gap: 10px; }
.topbar > .btn, .topbar > button { white-space: nowrap; flex: none; }
.topbar .search { flex: 1 1 220px; min-width: 140px; width: auto; }
.topbar .chip { flex: 0 1 auto; min-width: 0; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the pickers are the navigation: they keep their width and the rest gives way */
.topbar .topsel { flex: none; }
.topbar .topsel select[aria-label="Manager"] { width: 190px; }
.topbar .topsel select[aria-label="Fund"] { width: 240px; }
/* the page header carries the population chip, so the bar drops its copy first */
@media (max-width: 1799px) { .topbar #chip-population, .topbar .sep { display: none; } }
@media (max-width: 1499px) {
  .topbar #askbtn kbd { display: none; }
  .topbar .topsel select[aria-label="Manager"] { width: 150px; }
  .topbar .topsel select[aria-label="Fund"] { width: 180px; }
}
.topbar .asof { flex: none; white-space: nowrap; }
.topbar .asof input { width: 132px; }

.notice.vendor-note { display: flex; align-items: center; gap: 16px; }
.notice.vendor-note > div { flex: 1; }
.notice.vendor-note .btn { flex: none; white-space: nowrap; }

/* ---------------------------------------------------------------- search results */

.search-results { right: auto; width: 460px; max-width: 70vw; }
.search-results .k { display: block; margin-bottom: 1px; }
.search-results .n { display: block; white-space: normal; overflow-wrap: anywhere; }
.search-results .s { display: block; }

/* The label keeps its natural width; a long value (a sentence or a long token) wraps beside it
   instead of squeezing the label to one character per line. Short values still sit at the right. */
.kv span { flex: none; padding-right: 10px; }
.kv b { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- manager type-ahead */

.mpick { position: relative; }
.mpick-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 200px; height: 40px;
  padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer;
  font: 600 13px "IBM Plex Sans", sans-serif; color: var(--ink); text-align: left; }
.mpick-btn:hover, .mpick-btn[aria-expanded="true"] { border-color: var(--jade); }
.mpick-btn .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpick-btn .car { color: var(--muted); flex: none; }
.mpick-panel { position: absolute; top: 46px; left: 0; z-index: 60; width: 640px; max-width: 92vw; padding: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 44px rgba(12, 31, 28, .2); }
.mpick-panel[hidden] { display: none; }
.mpick-panel > input[type="search"] { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line-strong);
  border-radius: 8px; font: 500 14px "IBM Plex Sans", sans-serif; }
.mpick-panel > input[type="search"]:focus { outline: none; border-color: var(--jade); }
.mfilters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.mfilters select, .mfilters input { height: 32px; border: 1px solid var(--line); border-radius: 7px; background: #fff;
  font: 500 12.5px "IBM Plex Sans", sans-serif; padding: 0 8px; max-width: 170px; }
.mfilters input { width: 70px; }
.mfilters .vint { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.mseg { display: inline-flex; gap: 2px; padding: 2px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; }
.mseg button { border: 0; background: transparent; padding: 5px 11px; border-radius: 6px; cursor: pointer;
  font: 600 12.5px "IBM Plex Sans", sans-serif; color: var(--muted); }
.mseg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(12, 31, 28, .12); }
.mcount { font-size: 12px; color: var(--muted); margin: 4px 2px 6px; }
.mlist { max-height: 380px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.mrow { display: grid; grid-template-columns: 84px 1fr auto; grid-template-areas: "k n tag" "k s tag"; column-gap: 10px;
  width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line-soft); background: none; padding: 8px 12px; cursor: pointer; }
.mrow:last-child { border-bottom: 0; }
.mrow:hover, .mrow.on { background: var(--jade-soft); }
.mrow .k { grid-area: k; align-self: center; font: 700 10px "IBM Plex Sans", sans-serif; letter-spacing: .09em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 5px; justify-self: start; }
.mrow .k.real { background: var(--good-soft); color: var(--good); }
.mrow .k.sim { background: #FDF3E1; color: var(--amber-ink); }
.mrow .n { grid-area: n; font: 600 14px "IBM Plex Sans", sans-serif; color: var(--ink); overflow-wrap: anywhere; }
.mrow .s { grid-area: s; font-size: 12px; color: var(--muted); }
.mrow .tag { grid-area: tag; align-self: center; font-size: 11px; color: var(--muted); }
.mrow .tag.full { color: var(--jade-dark); font-weight: 600; }
.mhint { font-size: 12.5px; color: var(--muted); padding: 8px 4px 0; }
.mgroup { position: sticky; top: 0; z-index: 1; padding: 7px 12px; background: var(--panel-2); border-bottom: 1px solid var(--line);
  font: 700 10.5px "IBM Plex Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.mpick-panel > .btn { margin-top: 8px; }
@media (max-width: 1499px) { .mpick-btn { width: 150px; } }

/* ---------------------------------------------------------------- Terminal first screen at 1181x900
 * Moses, 2026-09-24 (task 1842 recovery of the 1834 patch): at 1181 CSS px
 * (html zoom 0.875, so ~1033 effective) the 360px rail leaves ~821px for
 * content. The Market dashboard grid (inline minmax(min(100%,430px),1fr) in
 * workspace.js line 1436) then renders one narrow panel per row and its
 * nowrap tables clip with inner horizontal scroll. These rules only reflow
 * that width: the rail collapses so content regains ~300px, the topbar
 * compacts, and page/table containers clip page-level sideways scroll while
 * tables keep their own inner scroll. The overview band keeps its base
 * breakpoints (.aislots 2-col at <=1400, .aiband .cols2 side-by-side above
 * 1180, .panels.two 2-col) so Overview stays side-by-side and short;
 * forcing those to one column made Overview taller and lost the first
 * screen. Base .panels is already 1fr at <=1280, so no panels override is
 * needed here. workspace.js, index.html and the page text are untouched. */
@media (max-width: 1350px) {
  .shell { grid-template-columns: 64px 1fr; }
  .rail .mark .t, .rail .mark small, .railitem span:first-child, .rail-group, .rail-origin { display: none; }
  .railitem { justify-content: center; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .topbar .search { flex: 1 1 160px; min-width: 120px; width: auto; }
  .topbar .topsel select[aria-label="Manager"] { width: 130px; }
  .topbar .topsel select[aria-label="Fund"] { width: 150px; }
}
html, body { overflow-x: clip; }
.main, .content { min-width: 0; max-width: 100%; overflow-x: clip; }
.table-wrap { max-width: 100%; }
.table-wrap table { max-width: 100%; }

/* A context blurb under a section: what its figures mean (app/js/blurbs.js, src/engine/blurbs.py). */
.blurb { margin: 8px 0 12px; font: 500 14.5px/1.55 "IBM Plex Sans", sans-serif; color: var(--ink-2); }
.blurb .xmark { vertical-align: -2px; margin-left: 2px; }

/* formatting pass, 2026-09-24 */
:root {
  --text-body: 15px;
  --text-answer: 15.5px;
  --text-small: 13px;
  --text-label: 13px;
  --lh-body: 1.5;
  --gutter: 14px;
  --pad-card: 15px 16px;
  /* --muted, --muted-2 and --faint are declared once, in :root of app.css */
}
html, body {
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--ink-2);
}
.prose, .summary li, ul.plain li, .step p, .desc dd, .reading dd, .blurb {
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--ink-2);
}
.panel > h3, .card h3, .ctl label, .desc dt, .reading dt, .detail-grid dt,
.kpi .l, .entity .stat .l, .ai-slot .zone, .ai-plan .p .n, .glance .h, .aislot .h,
.aiband .kicker, .ribbon .lab, .drawer .dh .eyebrow, .detail-group .dg-head,
.report-pane .memo-suggest-k, .xcard .xeyebrow, .xcard .xrow dt, .mrow .k {
  font-size: var(--text-label);
  line-height: var(--lh-body);
  color: var(--ink-3);
}
.panel > h3 .r, .sub, .card .sub, .panel .sub, .kpi .r, .ctl .val, .ctlbar .hint,
.table-tools .cap, .shows, .crumb, .empty, .withheld, .footer-note, .kv,
.entity .meta, details.section .snip, .asof, .srcrow .k, .srcrow .c,
.phase, .mcount, .mrow .s, .mhint, .how {
  font-size: var(--text-small);
  line-height: var(--lh-body);
  color: var(--muted-2);
}
.ctl select, .ctl input[type="number"], .ctl input[type="text"], .seg button {
  font-size: var(--text-small);
}
.rail .mark small, .rail-group, .railcount, .rail .suite-note {
  font-size: var(--text-label);
  color: #C5D8D2;
}
.railitem { font-size: var(--text-small); color: #D5E6E1; }
.topbar .chip, .search input {
  font-size: var(--text-small);
  color: var(--ink-2);
}
table, .table-wrap table {
  font-size: var(--text-small);
  font-variant-numeric: tabular-nums;
}
thead th {
  font-size: var(--text-label);
  line-height: 1.3;
  padding: 10px 13px;
  white-space: normal;
}
thead th:not(.r), tbody td:not(.r) { text-align: left; }
thead th.r, tbody td.r, tbody td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.num { font-variant-numeric: tabular-nums; }
tbody td { font-size: var(--text-small); padding: 10px 13px; line-height: var(--lh-body); }
.detail-grid div { font-size: var(--text-small); }
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: auto;
}
.table-wrap table { width: 100%; max-width: 100%; }
.panels, .kpis, .cols, .plat-cards {
  gap: var(--gutter);
  align-items: stretch;
}
.panels > .panel, .kpis > .kpi, .card {
  height: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}
.panel, .card, .kpi { padding: var(--pad-card); box-sizing: border-box; }
.panel, .card { min-width: 0; }
.rec, .rec.page {
  font-size: var(--text-answer);
  line-height: var(--lh-body);
  color: var(--ink-2);
}
.cortex-suggestion, .cortex-suggestion-line, .cortex-suggestion .simple-chat-answer,
.cortex-suggestion summary, .cortex-rests-on {
  font-size: var(--text-answer);
  line-height: var(--lh-body);
  color: var(--ink-2);
}
.cortex-suggestion-head { font-size: var(--text-label); color: var(--muted); font-weight: 600; }
.pill.cortex-ask { font-size: var(--text-label); }
.panel.ai .sub, .aiband, .glance dt, .glance dd {
  color: #D7EBE4;
}

/* One-day look, via CSS only: oneday.css is held by another agent, so these win with !important. */
.vcard .vl, .bidbar .bl, .evstep .en, .inbox-filter, .qstate, .deal-pick-rank {
  font-size: var(--text-label) !important;
  color: var(--ink-3) !important;
}
.vcard .vq, .vcard dl, .bidbar .bn, .evstep .ex, .deal-pick .h .sub, .deal-pick-lead,
.deal-pick-score, .deal-pick-row ul, .deal-brief-head .sub, .deal-brief-wait, .stored,
.pf-table, .pf-table th, #pf-measures th, #pf-buylist th, #fit-measures th, .pf-lead, .pf-head label {
  font-size: var(--text-small) !important;
  line-height: var(--lh-body) !important;
}
.vcard, .values4 { gap: var(--gutter); align-items: stretch; }
.vcard { min-width: 0; height: 100%; overflow-wrap: break-word; padding: var(--pad-card); }

thead th .thl, thead th .thtail, thead th .ar {
  font-size: var(--text-label);
  line-height: 1.3;
}
.kpi .l, .kpi .r, .entity .stat .l, .entity .facts, .scope, .glance dt, .glance .h,
.ov .k, .pill:not(.source):not(.kind), .jchip, .chip, .btn, .btn.sm,
.rail .mark .dot, .search-results .k, .search-results .s, .tab {
  font-size: var(--text-label);
  line-height: var(--lh-body);
}
.chip, .badge, .origin, .st, .cls, kbd, .qstate, .jchip {
  /* named badges: origin chips, status pills, keyboard hints may stay compact; floor is still 13px */
  font-size: var(--text-label);
}

/* ---------------------------------------------------------------- Task 1935: terminal Overview first screen.
 * The desk (app/oneday) shares .aiband/.aislot/.glance, so these ov- classes
 * restyle ONLY the terminal Overview band. Calm institutional dark box: the
 * peer-standing visual sits beside the seven rule checks on the first screen
 * at 1181x900, and every line reads at or above the 12.5px floor. */
/* Task 2185: the manager card was pinned between 300px and 360px, so above the stack breakpoint its
 * labels wrapped and its values ran long. It now takes a 380px minimum and a 480px cap above 1180px,
 * and stacks at the same 1180px rule as before. The values keep their own weight: only the label above
 * each value takes the heading step. */
.ov-band .ov-cols2 { grid-template-columns: minmax(0, 1fr) minmax(380px, 480px); }
@media (min-width: 1181px) {
  .ov-band .ov-cols2 { grid-template-columns: minmax(0, 1fr) minmax(380px, min(40%, 480px)); }
}
@media (max-width: 1180px) { .ov-band .ov-cols2 { grid-template-columns: 1fr; } }
/* The card's values read as values, not as headings. */
.ov-band .glance dd { font-weight: 400; line-height: 1.5; white-space: normal; }
.ov-band .glance dd .big, .ov-band .glance dd b { font-weight: 600; }
/* ---------------------------------------------------------------- Task 1947: calm institutional analysis panel.
 * Moses asked for lower saturation: the Overview band moves from dark green to a
 * light, calm card (paper background, ink text). The desk (app/oneday) shares
 * .aiband/.aislot/.glance, so these ov- rules restyle ONLY the terminal
 * Overview band and its glance card; .aiband/.glance above are untouched. */
.ov-band { background: var(--panel-2); border: 1px solid var(--line); color: var(--ink-2, #0E2621); overflow: hidden; }
.ov-band::after { background: radial-gradient(circle, rgba(14,138,110,.10) 0%, rgba(14,138,110,0) 68%); }
.ov-band-main { display: flex; flex-direction: column; min-width: 0; }
.ov-band-hero { background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px 14px; margin-bottom: 14px; position: relative; z-index: 1; }
.ov-kicker { font: 700 12.5px "IBM Plex Sans", sans-serif; letter-spacing: .2em;
  text-transform: uppercase; color: #0B6B54; margin-bottom: 10px; }
.ov-ruleline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ov-rulecount { font: 600 20px "IBM Plex Sans", sans-serif; color: #0B3D33; }
.ov-why { font-size: 14px; color: #3A504B; line-height: 1.5; max-width: 74ch; margin: 9px 0 0; }
.ov-peer { margin: 12px 0 4px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--panel-2); }
.ov-peer-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ov-peer-fund { font-size: 14.5px; font-weight: 650; color: #0B3D33; font-variant-numeric: tabular-nums; }
.ov-peer-n { font-size: 12.5px; color: #4A5F5A; }
.ov-peerbar { position: relative; height: 26px; margin: 10px 0 6px; border-radius: 6px;
  background: #E3ECE9; }
.ov-peerline { position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: #9DB5AE; }
.ov-peermark { position: absolute; top: 4px; width: 3px; height: 18px; border-radius: 2px; background: #5E7A73; }
.ov-peermark.fund { width: 5px; background: #0E8A6E; box-shadow: 0 0 0 3px rgba(14, 138, 110, .18); }
.ov-peer-scale { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: #4A5F5A; font-variant-numeric: tabular-nums; }
.ov-checks { margin: 8px 0 0; padding-left: 0; list-style: none; }
.ov-checks li { display: flex; gap: 8px; align-items: baseline; padding: 4px 0;
  border-top: 1px solid #DDE6E3; font-size: 13.5px; line-height: 1.4; }
.ov-checks li:first-child { border-top: 0; }
.ov-checks li.pass .ov-check-rule::before { content: "✓ "; color: #0E8A6E; }
.ov-checks li.fail .ov-check-rule::before { content: "✕ "; color: #B23B3B; }
.ov-check-rule { color: #0B3D33; font-weight: 600; white-space: normal; }
.ov-check-fig { color: #33463F; font-variant-numeric: tabular-nums; }
/* Task 1947: the glance card's cash-flow labels each take their own line above
 * their value, so the two long labels can never run into each other. */
.ov-band .glance { background: var(--panel); border: 1px solid var(--line); }
.ov-band .glance .h { color: #0B6B54; }
.ov-band .glance .lede { color: #33463F; }
.ov-band .glance dt { color: #4A5F5A; }
.ov-band .glance dd { color: #0B3D33; }
.ov-band .glance .foot { border-top-color: #DDE6E3; color: #4A5F5A; }
.ov-band .glance dl > div.stack { grid-column: 1 / -1; display: block; }
.ov-band .glance dl > div.stack dt { white-space: normal; margin-bottom: 1px; }
.ov-band .glance dl > div.stack dd { text-align: left; }
/* Task 2185: the reasons get their own section under the outcome, so the deciding fact and the
 * items behind it read apart from the checks that produced them. The three cards keep equal columns
 * and grow with their content; nothing is cut at a fixed height. */
.ov-reasons { margin: 16px 0 0; position: relative; z-index: 1; }
.ov-reasons-h {
  margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
/* Task 2185: green and blue are the two fills, and each card states its outcome in words as well as
 * in colour, so a colour-blind or printed reader still sees which items stopped the decision and
 * which are unresolved. Measured contrast in tmp/cortex-ui/contrast.py: every heading, body line and
 * count clears 4.5:1 on its own fill, and each left rule clears 3:1 as a non-text boundary. */
.ov-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px;
  position: relative; z-index: 1; }
@media (max-width: 1400px) { .ov-slots { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .ov-slots { grid-template-columns: 1fr; } }
.ov-band .ov-slots .aislot { background: var(--panel); border: 1px solid var(--line); }
.ov-band .ov-slots .ov-slot-good { background: #E7F4EF; border-left: 3px solid #0E8A6E; }
.ov-band .ov-slots .ov-slot-warn { background: #EEF3FB; border-left: 3px solid #2F5C9E; }
.ov-band .ov-slots .ov-slot-bad  { background: #F7FAFC; border-left: 3px solid #526B79; }
.ov-band .ov-slots .ov-slot-good .h { color: #0B6B54; }
.ov-band .ov-slots .ov-slot-warn .h { color: #26456F; }
.ov-band .ov-slots .ov-slot-bad  .h { color: #334B5E; }
.ov-band .ov-slots .aislot .h .n { color: #4A5F5A; }
.ov-band .ov-slots .aislot li { color: #14332C; }
.ov-band .ov-slots .aislot .wait { color: #4A5F5A; }
/* The outcome word sits between the card's name and its count, so the meaning reads in one line. */
.ov-slot-word { font-weight: 400; color: #4A5F5A; margin-left: 6px; text-transform: none;
  letter-spacing: 0; font-size: 12.5px; }
/* Task 2185: the one report action at the upper right of the Analysis summary box. */
.ov-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin-bottom: 10px; }
.ov-hero-top .ov-kicker { margin-bottom: 0; }
.ov-report-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ov-report-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ov-report-go { background: #0B3D33; border-color: #0B3D33; color: #fff; display: inline-flex;
  align-items: center; gap: 7px; padding: 9px 14px; font-size: 13.5px; white-space: nowrap; }
.ov-report-go:hover { background: #0A6B55; border-color: #0A6B55; }
.ov-report-go svg { flex: none; width:22px; height:22px; filter:drop-shadow(0 0 4px rgba(53,214,168,.2)); }
.ov-report-scope { font-size: 12.5px; color: #4A5F5A; text-align: right; }
@media (max-width: 900px) {
  .ov-report-cta { align-items: flex-start; }
  .ov-report-scope { text-align: left; }
}
.ov-band .cxwhat { background: var(--panel-2); border-color: var(--jade); color: #0B3D33; }
.ov-band .cxwhat svg { color: var(--jade); }
.ov-band .chips .chip { background: var(--panel-2); border-color: var(--line-strong); color: #33463F; }
.ov-band .chips .chip.obs { background: #E7F4EF; border-color: #0E8A6E; color: #0B6B54; }
.ov-band .chips .chip.sim { background: #EEF3FB; border-color: #A7BDDA; color: #26456F; }
/* Task 1947: the top bar fits 1181px (rail 184px leaves 997px): the pickers keep
 * their compact widths, the search flexes down to 140px, About sits before the
 * spacer with the right controls, and nothing wraps to a second line.
 * Measured 2026-09-26: controls total 972px + 54px gaps = 1026px, so Export
 * overflowed by ~29px. The manager picker (170px) and fund select (190px) each
 * give 20px; navigation-compact.css loads after this sheet, so the html body
 * prefix out-specifies it. */
.topbar { flex-wrap: nowrap; }
.topbar .topsel { flex: none; }
.topbar .topsel .f { flex: none; }
html body .topbar .topsel .mpick-btn { width: 150px; flex: none; }
html body .topbar .topsel select { width: 170px; max-width: 170px; flex: none; }
.topbar .search { flex: 1 1 220px; min-width: 140px; width: auto; }
.topbar > .btn, .topbar > button { white-space: nowrap; flex: none; }
.topbar .asof { flex: none; white-space: nowrap; }

/* ---- phone (600 px and under): cards 12 px apart, 16 px inside gutters, controls 44 px, tiles two to a row, text 13 px and up.
 * The top bar and the side menu belong to mobile.css and navigation-compact.css. */
@media (max-width: 600px) {
  .panels { gap: 12px; margin-bottom: 12px; }
  .panel { min-height: 0; padding: 14px 16px; }
  .panel > h3, .panel > h3 .r, .sub, .ctl label, .ctlbar .hint, .pill, .live { font-size: 13px; }
  .ctlbar { gap: 8px 12px; padding: 12px 16px; margin-bottom: 12px; }
  .ctl { flex-wrap: wrap; flex: 1 1 100%; }
  .ctl select, .ctl input[type="number"], .ctl input[type="text"] { height: 44px; font-size: 16px; }
  .ctl input[type="range"] { width: 100%; min-height: 44px; }
  .ctlbar .hint { margin-left: 0; flex: 1 1 100%; }
  .seg button { min-height: 44px; padding: 6px 14px; font-size: 13px; }
  .pill { min-height: 44px; padding: 4px 14px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi .v { font-size: 22px; overflow-wrap: anywhere; }
  .kpi .l, .kpi .r { font-size: 13px; overflow-wrap: anywhere; }
  html body details.section .body { padding-left: 16px; padding-right: 16px; }
  .ov-band-hero { padding: 14px 16px 12px; }
  .ov-checks li { font-size: 14px; }
  .ov-peer { padding: 12px 16px; }
  .ov-peer-n, .ov-peer-scale, .ov-slot-word, .ov-report-scope { font-size: 13px; }
  .ov-report-go { min-height: 44px; white-space: normal; }
  .ov-slots { gap: 12px; margin-top: 12px; }
  .block { margin-top: 12px; }
}
