/* Cernos for Outlook — taskpane sculpture.
   Same gallery vocabulary as the app and the Gmail popup/panel:
   carved cool slate-stone slab, directional upper-left key light, top-lit
   vertical fall-off into absorbed bottom edge, italic serif gallery mark,
   recessed cartouches inscribed into the surface for each metadata field.
   The taskpane viewport IS the slab — there is no canvas around it, so
   the body element carries the slab gradients + rim bevels directly. */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Instrument+Serif:ital@1&display=swap');

:root {
  --bg-deep: #262A31;
  --s0: #2D3139;
  --s1: #33373E;
  --s2: #3D4148;
  --b1: #434750;
  --b2: #5A5E68;
  --t1: #d8dae0;
  --t2: #bcbfc8;
  --t3: #a9acb5;
  --accent: #C8CCD3;
  --rim-soft: rgba(255, 255, 255, 0.06);
  --rim-mid: rgba(255, 255, 255, 0.14);
  --rim-strong: rgba(255, 255, 255, 0.30);
  --shadow-deep: rgba(20, 22, 26, 0.65);
  --shadow-mid: rgba(20, 22, 26, 0.50);
  --shadow-soft: rgba(20, 22, 26, 0.35);
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--t1);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  background: var(--bg-deep);
}

/* The body IS the slab. Three stacked gradients give it real material:
     (1) upper-left key-light radial — directional light catching the
         top-left of the surface,
     (2) a faint diagonal cool stone "vein" so the surface has lateral
         material variation rather than a uniform tint,
     (3) the main vertical fall-off — lit top, absorbed bottom — so the
         slab reads as front-lit weighty stone, not flat dark mode.
   The fixed-attachment keeps the gradient anchored to the viewport so
   scrolling content doesn't shift the implied light source. */
body {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 95% 55% at 18% 0%,
      color-mix(in srgb, white 8%, transparent) 0%,
      transparent 60%),
    linear-gradient(110deg,
      color-mix(in srgb, var(--s2) 96%, white) 0%,
      transparent 35%,
      color-mix(in srgb, var(--s1) 96%, var(--bg-deep)) 100%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--s2) 88%, white) 0%,
      var(--s2) 14%,
      var(--s1) 55%,
      color-mix(in srgb, var(--s1) 92%, var(--bg-deep)) 100%);
  background-attachment: fixed;
  /* Inner rim: bright catch on the top edge, deep absorbed shadow on the
     bottom edge. Gives the slab perceived thickness against the host
     Outlook chrome. */
  box-shadow:
    inset 0 1px 0 var(--rim-strong),
    inset 0 -1px 0 var(--shadow-mid);
}

#cernos-pane {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 18px 18px 16px;
  box-sizing: border-box;
  gap: 14px;
}

/* Polished catch-light strip riding the very top of the slab — narrow
   side fades so it reads as inscribed into the upper edge rather than a
   painted line spanning the whole width. Mirrors the .praxis-panel
   ::before bevel in the Gmail injected panel. */
#cernos-pane::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 18%,
    rgba(255, 255, 255, 0.46) 50%,
    rgba(255, 255, 255, 0.18) 82%,
    transparent 100%);
  pointer-events: none;
}

/* Header — gallery cartouche for the Cernos wordmark, with an engraved
   hairline divider beneath it. The divider is a dark cut + bright
   catch-light below, so it reads as a real cut INTO the surface. */
.cernos-pane-header {
  position: relative;
  border-bottom: none;
  padding: 4px 0 12px;
}

.cernos-pane-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--shadow-mid) 8%,
    var(--shadow-deep) 50%,
    var(--shadow-mid) 92%,
    transparent 100%);
  box-shadow: 0 1px 0 var(--rim-soft);
}

/* Italic-serif gallery wordmark, pressed into the stone with a faint
   dark text-shadow. Short marble underline beneath, fading from bright
   to dim — same inscription vocabulary as the .p-mark in the Gmail
   panel and the app's gallery surfaces. */
.cernos-pane-title {
  margin: 0;
  font-family: 'Instrument Serif', "Iowan Old Style", "Apple Garamond",
    "Palatino Linotype", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.005em;
  line-height: 1;
  color: var(--t2);
  text-shadow: 0 1px 0 var(--shadow-deep);
}

.cernos-pane-title::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin-top: 8px;
  background: linear-gradient(90deg,
    rgba(200, 204, 211, 0.46) 0%,
    rgba(200, 204, 211, 0.10) 100%);
}

.cernos-pane-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cernos-pane-muted {
  margin: 0;
  padding: 12px 14px;
  color: var(--t3);
  font-family: 'Instrument Serif', "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-size: 13.5px;
  letter-spacing: 0.005em;
  text-shadow: 0 1px 0 var(--shadow-mid);
}

/* Each field is a recessed cartouche carved INTO the slab. Substrate is
   cooled toward bg-deep so it reads notably darker than the body. Deep
   inset top shadow (3px 6px) gives a real cut feel; faint catch-light
   on the bottom inner edge sells the recess. The 2px cool-stone stripe
   on the left edge mirrors the app's .card-thread-judgment accent
   marker — same gallery vocabulary across surfaces. */
.cernos-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px 12px 10px 14px;
  background:
    linear-gradient(165deg,
      color-mix(in srgb, var(--s0) 78%, var(--bg-deep)) 0%,
      color-mix(in srgb, var(--s0) 92%, var(--bg-deep)) 80%);
  border: 1px solid var(--b1);
  border-top-color: var(--shadow-deep);
  border-bottom-color: var(--b2);
  border-radius: 8px;
  box-shadow:
    inset 0 3px 6px var(--shadow-deep),
    inset 0 1px 0 var(--shadow-mid),
    inset 0 -1px 0 var(--rim-soft),
    0 1px 0 var(--rim-soft);
}

/* Cartouche left-edge accent stripe — fades at top and bottom so it
   reads as inscribed into the recess rather than as a painted strip. */
.cernos-field::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 2px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(200, 204, 211, 0.32) 18%,
    rgba(200, 204, 211, 0.46) 50%,
    rgba(200, 204, 211, 0.32) 82%,
    transparent 100%);
  pointer-events: none;
  border-radius: 0 1px 1px 0;
}

/* Etched label — small, uppercase, tracked, with a faint dark
   text-shadow so it sits engraved into the cartouche substrate. */
.cernos-field-label {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--t3);
  text-shadow: 0 1px 0 var(--shadow-mid);
}

.cernos-field-value {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono",
    monospace;
  font-size: 11.5px;
  color: var(--t1);
  word-break: break-all;
  white-space: normal;
  text-shadow: 0 1px 0 var(--shadow-mid);
}

.cernos-field-value-list {
  font-size: 12.5px;
  color: var(--t1);
  word-break: break-word;
  text-shadow: 0 1px 0 var(--shadow-mid);
}

.cernos-field-value-list span + span::before {
  content: ", ";
  color: var(--t3);
  text-shadow: none;
}

.cernos-field-value-list .cernos-name {
  color: var(--t1);
  font-weight: 500;
}

.cernos-field-value-list .cernos-email {
  color: var(--t2);
}

.cernos-field-empty {
  color: var(--t3);
  font-family: 'Instrument Serif', "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-size: 12.5px;
  letter-spacing: 0.005em;
}

/* Footer — a quiet inscription at the bottom of the slab, separated by
   the same engraved hairline as the header divider but inverted so the
   catch-light sits above the cut. */
.cernos-pane-footer {
  position: relative;
  border-top: none;
  padding: 10px 0 2px;
  margin-top: auto;
  color: var(--t3);
  font-family: 'Instrument Serif', "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-size: 11.5px;
  letter-spacing: 0.01em;
  text-align: right;
  text-shadow: 0 1px 0 var(--shadow-mid);
}

.cernos-pane-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--shadow-mid) 8%,
    var(--shadow-deep) 50%,
    var(--shadow-mid) 92%,
    transparent 100%);
}

.cernos-pane-footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 1px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--rim-soft) 20%,
    var(--rim-mid) 50%,
    var(--rim-soft) 80%,
    transparent 100%);
}

/* ─── Phase 5 state-renderer surfaces ────────────────────────────────
   Selectors added for panel-render.js. Uses the same gallery vocabulary
   as the field cartouches above: italic-serif eyebrows, inscribed dark
   text-shadow, recessed cartouche for the influence lede, marble accent
   for the recommended next step. */

.cernos-state {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cernos-state-mark {
  font-family: 'Instrument Serif', "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-size: 12px;
  color: var(--t3);
  letter-spacing: 0.005em;
  text-shadow: 0 1px 0 var(--shadow-mid);
  line-height: 1;
}

.cernos-state-mark::after {
  content: "";
  display: block;
  width: 22px;
  height: 1px;
  margin-top: 4px;
  background: linear-gradient(90deg,
    rgba(200, 204, 211, 0.42) 0%,
    rgba(200, 204, 211, 0.10) 100%);
}

.cernos-state-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--t3);
  text-shadow: 0 1px 0 var(--shadow-mid);
}

.cernos-state-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.005em;
  text-shadow: 0 1px 0 var(--shadow-deep);
}

.cernos-state-meta {
  font-size: 12px;
  color: var(--t3);
  line-height: 1.45;
  text-shadow: 0 1px 0 var(--shadow-mid);
}

.cernos-state-hint {
  margin: 6px 0 0;
}

.cernos-state-body {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.55;
  margin: 4px 0 0;
}

/* Cartouche-recessed influence summary — the lede above Who/Why/Next.
   Mirrors .cernos-field substrate with a 3px accent left-bar matching
   the Gmail panel's .p-influence cartouche so both surfaces read from
   the same gallery. */
.cernos-influence {
  position: relative;
  padding: 12px 14px 12px 18px;
  margin: 4px 0 2px;
  background: linear-gradient(165deg,
    color-mix(in srgb, var(--s0) 75%, var(--bg-deep)) 0%,
    color-mix(in srgb, var(--s0) 92%, var(--bg-deep)) 80%);
  border: 1px solid var(--b1);
  border-top-color: var(--shadow-deep);
  border-bottom-color: var(--b2);
  border-radius: 10px;
  color: var(--t2);
  font-size: 12.5px;
  line-height: 1.55;
  text-shadow: 0 1px 0 var(--shadow-mid);
  box-shadow:
    inset 0 3px 7px var(--shadow-deep),
    inset 0 1px 0 var(--shadow-mid),
    inset 0 -1px 0 var(--rim-soft),
    0 1px 0 var(--rim-soft);
}

.cernos-influence::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: linear-gradient(180deg,
    transparent 0%,
    color-mix(in srgb, var(--accent) 50%, transparent) 18%,
    color-mix(in srgb, var(--accent) 38%, transparent) 82%,
    transparent 100%);
  border-radius: 0 1px 1px 0;
  pointer-events: none;
}

/* Brief sections — Who / Why / Next */
.cernos-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cernos-section-label {
  font-family: 'Instrument Serif', "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-size: 11px;
  color: var(--t3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 var(--shadow-mid);
}

.cernos-section-body {
  font-size: 13px;
  color: var(--t1);
  line-height: 1.55;
  text-shadow: 0 1px 0 var(--shadow-mid);
}

.cernos-next-move {
  font-weight: 600;
  color: var(--accent);
}

/* Engraved hairline divider matching the header/footer cuts. */
.cernos-divider {
  position: relative;
  height: 1px;
  margin: 4px 0;
  background: var(--shadow-deep);
}

.cernos-divider::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--rim-mid) 22%,
    var(--rim-mid) 78%,
    transparent 100%);
}

/* Intelligence chip strip — at-a-glance situational read on the matched
   inbox panel (Ship 1). Quiet pewter pills against the dark slab; wraps
   gracefully on narrow taskpanes. No methodology / role labels — pure
   counts and dates from the existing intelligence block returned by
   match-handler.js. */
.cernos-chip-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 4px;
}

.cernos-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--t2);
  background: color-mix(in srgb, var(--s0) 70%, var(--bg-deep));
  border: 1px solid var(--b1);
  border-top-color: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(20, 22, 26, 0.30);
}

/* Interactive chips (Open loops / Stakeholders) — click to expand inline
   detail in the same pane. Real click affordance; cursor + subtle hover. */
.cernos-chip-interactive {
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
}
.cernos-chip-interactive:hover {
  color: var(--t1);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--b1));
}
.cernos-chip-active {
  color: var(--t1);
  background: color-mix(in srgb, var(--accent) 22%, var(--s0));
  border-color: color-mix(in srgb, var(--accent) 55%, var(--b1));
}

/* Inline chip-detail box — rendered below the chip strip, inside the pane. */
.cernos-chip-detail:empty { display: none; }
.cernos-chip-detail {
  margin: 2px 0 6px;
}
.cernos-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cernos-detail-list li {
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid var(--b1);
  border-radius: 9px;
  padding: 7px 10px;
}
.cernos-detail-main {
  font-size: 12px;
  line-height: 1.4;
  color: var(--t1);
}
.cernos-detail-sub {
  color: var(--t2);
  font-weight: 500;
}
.cernos-detail-meta {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--t3);
}
.cernos-detail-empty {
  font-size: 11.5px;
  color: var(--t3);
  font-style: italic;
  padding: 4px 0;
}

/* Candidate list for ambiguous_match — stacked secondary buttons, full
   width, vertical gap matching the Gmail equivalent at gmail-inject.js
   ambiguous_match path. */
.cernos-candidate-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-top: 10px;
}

.cernos-candidate {
  width: 100%;
}

/* Button row + buttons — cast objects in the same material family as the
   Gmail .p-btn family, scaled to the Outlook taskpane width. */
.cernos-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Inline generated-email block — rendered in place inside the matched
   taskpane, between the actions row and the bottom of the pane. Not a new
   surface; the pane's generated copy shown in context. */
.cernos-gen:empty { display: none; }
.cernos-gen { margin-top: 10px; }
.cernos-gen-loading {
  font-size: 12px;
  color: var(--t3, #9AA1AC);
  font-style: italic;
  padding: 4px 0;
}
.cernos-gen-error {
  font-size: 12px;
  color: #E0A07A;
  padding: 4px 0;
}
.cernos-gen-body {
  white-space: pre-wrap;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--t1, #E6E9ED);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--b1, #434750);
  border-radius: 10px;
  padding: 10px 12px;
  max-height: 280px;
  overflow-y: auto;
}
.cernos-gen-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.cernos-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
  text-decoration: none;
  white-space: nowrap;
}

.cernos-btn-primary {
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.20) 0%,
      rgba(255, 255, 255, 0.08) 22%,
      transparent 50%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--accent) 88%, white) 0%,
      var(--accent) 38%,
      color-mix(in srgb, var(--accent) 70%, var(--bg-deep)) 100%);
  border-color: color-mix(in srgb, var(--accent) 60%, var(--bg-deep));
  border-top-color: rgba(255, 255, 255, 0.32);
  color: var(--bg-deep);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(38, 42, 49, 0.32),
    0 0 0 1px rgba(216, 218, 224, 0.10),
    0 1px 2px var(--shadow-deep),
    0 4px 10px var(--shadow-mid);
}

.cernos-btn-primary:hover {
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.28) 0%,
      rgba(255, 255, 255, 0.12) 22%,
      transparent 50%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--accent) 75%, white) 0%,
      color-mix(in srgb, var(--accent) 96%, white) 38%,
      var(--accent) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(38, 42, 49, 0.32),
    0 0 0 1px rgba(216, 218, 224, 0.14),
    0 1px 2px var(--shadow-deep),
    0 6px 14px var(--shadow-mid);
}

.cernos-btn-secondary {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--s2) 88%, white) 0%,
    var(--s2) 28%,
    color-mix(in srgb, var(--s2) 86%, var(--bg-deep)) 100%);
  border-color: var(--b2);
  border-top-color: color-mix(in srgb, var(--b2) 60%, white);
  color: var(--t1);
  box-shadow:
    inset 0 1px 0 var(--rim-mid),
    inset 0 -1px 0 rgba(38, 42, 49, 0.30),
    0 1px 2px var(--shadow-mid),
    0 4px 10px var(--shadow-soft);
}

.cernos-btn-secondary:hover {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--s2) 76%, white) 0%,
    color-mix(in srgb, var(--s2) 95%, white) 28%,
    var(--s2) 100%);
  border-color: color-mix(in srgb, var(--b2) 70%, white);
  box-shadow:
    inset 0 1px 0 var(--rim-strong),
    inset 0 -1px 0 rgba(38, 42, 49, 0.30),
    0 1px 2px var(--shadow-mid),
    0 8px 16px var(--shadow-soft);
}

.cernos-btn-quiet {
  background: transparent;
  color: var(--t3);
  border-color: transparent;
  padding: 8px 12px;
}

.cernos-btn-quiet:hover {
  color: var(--t1);
  background: color-mix(in srgb, var(--s2) 55%, transparent);
}

/* Token paste input — recessed cartouche-style field matching the
   .cernos-field substrate so the input reads as carved into the slab. */
.cernos-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  margin-top: 4px;
  background: linear-gradient(165deg,
    color-mix(in srgb, var(--s0) 78%, var(--bg-deep)) 0%,
    color-mix(in srgb, var(--s0) 92%, var(--bg-deep)) 80%);
  border: 1px solid var(--b1);
  border-top-color: var(--shadow-deep);
  border-bottom-color: var(--b2);
  border-radius: 8px;
  color: var(--t1);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  outline: none;
  box-shadow:
    inset 0 3px 6px var(--shadow-deep),
    inset 0 1px 0 var(--shadow-mid),
    inset 0 -1px 0 var(--rim-soft);
}

.cernos-input:focus {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--b1));
  box-shadow:
    inset 0 3px 6px var(--shadow-deep),
    inset 0 1px 0 var(--shadow-mid),
    inset 0 -1px 0 var(--rim-mid),
    0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIGHT THEME — "sunlit gallery" companion to the dark taskpane.
   ═══════════════════════════════════════════════════════════════════════════
   INERT BY DEFAULT in v1. The Cernos for Outlook taskpane is dark by default;
   prefers-color-scheme is intentionally NOT honored as an auto-apply trigger
   because the canonical Cernos dark identity must remain the default — same
   posture as the web app's gated [data-theme="system"] media query in
   app/globals.css.

   This block stays in the stylesheet so a future Office.js host-theme bridge
   (read Office.context.officeTheme on Office.onReady, set
   document.documentElement.setAttribute("data-theme","light") when the host
   is light) can flip the taskpane to the validated palette without re-
   deriving values. No JS in v1 sets the attribute; the rule is dormant.

   Same stone/slate/marble vocabulary as dark mode. Token values derive from
   the same family used in the web app's [data-theme="light"] block at the
   bottom of app/globals.css — kept in lockstep so any future palette
   tightening lands in both files together. WCAG AA spot ratios mirror the
   web-app values (see globals.css header comment).

   --rim-soft/mid/strong flip from white opacities to black opacities at
   matched perceptual weights (4/8/14% vs 6/10/18%).
   --shadow-deep/mid/soft are kept as-is — they're already dark rgba and
   compose correctly against a pale --bg-deep without modification.
   ──────────────────────────────────────────────────────────────────────── */
:root[data-theme="light"] {
  color-scheme: light;

  --bg-deep: #E5E7EC;
  --s0: #E2E5EA;
  --s1: #F5F7FA;
  --s2: #ECEEF2;
  --b1: #8E929B;
  --b2: #6F737C;
  --t1: #1C2028;
  --t2: #3A3E45;
  --t3: #525660;
  --accent: #4B5260;

  --rim-soft: rgba(0, 0, 0, 0.04);
  --rim-mid: rgba(0, 0, 0, 0.08);
  --rim-strong: rgba(0, 0, 0, 0.14);
  /* --shadow-deep/mid/soft preserved — already dark rgba; they remain the
     "absorbed-light" shadow color and compose correctly on pale surfaces. */
}
