/* ==========================================================================
   Claims Adjuster Copilot: the product theme for Case Study 03.
   One portfolio design system, multiple product expressions: the portfolio page keeps the site's
   tokens, and everything inside a recreated product frame (.cl) uses this identity: regulated,
   focused and controlled. A navy-charcoal workspace, clear evidence panels, confidence shown as a
   number, a word and a meter, high-contrast status semantics that always carry a word, and audit
   timelines where the actor (AI, adjuster, system) is named in words and set apart by shape.
   Accent: Sky only (the site palette); no glow effects. Frames stay dark in both site themes,
   like a real screenshot, and adapt to their own width (container queries).
   Synthetic claim data only. Shared by claims-adjuster-copilot*.html and
   social-src/claims-thumbnail.html.
   ========================================================================== */

.cl {
  --cl-bg: #0b1220;
  --cl-surface: #111b2e;
  --cl-surface-2: #17233a;
  --cl-shell: #08101d;
  --cl-line: #233150;
  --cl-line-strong: #3a4e74;
  --cl-ink: #e7eaf0;          /* 15:1 on the surface */
  --cl-ink-2: #b2bccd;        /* 9:1 on the surface */
  --cl-ink-3: #8d99ae;        /* 5.9:1 on the surface: hints and meta */
  --cl-accent: #7dd3fc;       /* Sky 300: links, focus, selection (10:1) */
  --cl-accent-fill: #38bdf8;  /* Sky 400: primary buttons, with dark ink */
  --cl-accent-ink: #082f49;
  --cl-accent-soft: rgba(56, 189, 248, 0.14);
  --cl-ok: #86efac;
  --cl-ok-soft: rgba(34, 197, 94, 0.15);
  --cl-warn: #fcd34d;
  --cl-warn-soft: rgba(245, 158, 11, 0.16);
  --cl-bad: #fca5a5;
  --cl-bad-soft: rgba(239, 68, 68, 0.17);
  --cl-font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --cl-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  container-type: inline-size;
  font-family: var(--cl-font);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--cl-ink);
  background: var(--cl-bg);
  -webkit-font-smoothing: antialiased;
}
.cl *,
.cl *::before,
.cl *::after {
  box-sizing: border-box;
}
.cl p,
.cl ul,
.cl ol {
  margin: 0;
}

/* App frame */
.cl-app {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2a3a5c;
  box-shadow: 0 1px 2px rgba(8, 16, 29, 0.2), 0 22px 44px -24px rgba(8, 16, 29, 0.65);
}

/* Shell: a dark sidebar and the working area */
.cl-shell {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 100%;
}
.cl-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 8px;
  background: var(--cl-shell);
  border-right: 1px solid var(--cl-line);
  color: var(--cl-ink-2);
}
.cl-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 6px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--cl-ink);
}
.cl-brand svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--cl-accent);
}
.cl-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11.5px;
}
.cl-nav i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.55;
  flex: none;
}
.cl-nav.is-on {
  background: var(--cl-surface-2);
  color: var(--cl-ink);
  font-weight: 600;
}
.cl-nav.is-on i {
  background: var(--cl-accent);
  opacity: 1;
}
.cl-nav em {
  margin-left: auto;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--cl-mono);
  color: var(--cl-ink-2);
}

/* Sidebar stage indicator: AI prepares → you decide → system executes → audit */
.cl-stages {
  margin-top: auto;
  padding: 10px 8px 0;
  border-top: 1px solid var(--cl-line);
  display: grid;
  gap: 5px;
  list-style: none;
}
.cl-stages__t {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cl-ink-3);
  margin-bottom: 2px;
}
.cl-stages li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--cl-ink-3);
}
.cl-stages li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  flex: none;
}
.cl-stages li.is-done {
  color: var(--cl-ink-2);
}
.cl-stages li.is-done::before {
  background: currentColor;
}
.cl-stages li.is-on {
  color: var(--cl-ink);
  font-weight: 700;
}
.cl-stages li.is-on::before {
  width: 9px;
  height: 9px;
  border: 0;
  background: var(--cl-accent);
  box-shadow: 0 0 0 2px var(--cl-shell), 0 0 0 3.5px var(--cl-accent);
}

.cl-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.cl-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--cl-line);
}
.cl-crumb {
  font-size: 11px;
  color: var(--cl-ink-3);
}
.cl-crumb b {
  color: var(--cl-ink);
  font-weight: 600;
}
.cl-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--cl-ink-2);
  white-space: nowrap;
}
.cl-user b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cl-surface-2);
  border: 1px solid var(--cl-line-strong);
  color: var(--cl-accent);
  font-size: 9.5px;
  font-weight: 700;
}
.cl-body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 12px;
  align-content: start;
}

/* Type */
.cl-h {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cl-h .cl-id {
  margin-right: 6px;
}
.cl-h small {
  font-size: 12px;
  font-weight: 500;
  color: var(--cl-ink-2);
}
.cl-h2 {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cl-ink-3);
}
.cl-h3 {
  font-size: 12.5px;
  font-weight: 700;
}
.cl-sub {
  color: var(--cl-ink-2);
}
.cl-meta {
  font-size: 11px;
  color: var(--cl-ink-3);
}
.cl-id,
.cl-num {
  font-family: var(--cl-mono);
  font-variant-numeric: tabular-nums;
}
.cl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}
.cl-head > div {
  display: grid;
  gap: 2px;
}

/* Cards and panels */
.cl-card {
  background: var(--cl-surface);
  border: 1px solid var(--cl-line);
  border-radius: 9px;
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.cl-card--key { /* the recommendation awaiting a human decision */
  border-color: var(--cl-line-strong);
  box-shadow: inset 0 3px 0 var(--cl-accent);
}
.cl-split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.cl-rows {
  display: grid;
  gap: 8px;
}
.cl-row {
  display: grid;
  gap: 1px;
}
.cl-row span {
  font-size: 10.5px;
  color: var(--cl-ink-3);
}

/* The recommendation: amount, then the three signals */
.cl-amount {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
}
.cl-amount b {
  font-family: var(--cl-mono);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cl-amount span {
  color: var(--cl-ink-2);
}
.cl-amount s {
  font-family: var(--cl-mono);
  color: var(--cl-ink-3);
}
.cl-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.cl-tile {
  display: grid;
  gap: 5px;
  align-content: start;
  padding: 9px 10px;
  border: 1px solid var(--cl-line);
  border-radius: 8px;
  background: var(--cl-bg);
}
.cl-tile small {
  font-size: 10.5px;
  color: var(--cl-ink-2);
  line-height: 1.35;
}

/* Confidence: a number, a word and a meter with the floor marked (never color alone) */
.cl-conf {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.cl-conf b {
  font-family: var(--cl-mono);
  font-weight: 700;
  min-width: 2.6em;
}
.cl-meter {
  position: relative;
  flex: 1;
  min-width: 40px;
  max-width: 120px;
  height: 6px;
  border-radius: 999px;
  background: #22304b;
}
.cl-meter i {
  display: block;
  height: 100%;
  width: var(--v, 50%);
  border-radius: inherit;
  background: var(--cl-accent);
}
.cl-meter.is-low i {
  background: repeating-linear-gradient(135deg, var(--cl-bad) 0 3px, #f87171 3px 6px);
}
.cl-meter::after { /* the floor tick, at 70% */
  content: "";
  position: absolute;
  left: var(--floor, 70%);
  top: -3px;
  bottom: -3px;
  width: 2px;
  border-radius: 1px;
  background: var(--cl-ink);
}

/* Status chips: always a word, never color alone */
.cl-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  background: #1c2840;
  color: var(--cl-ink-2);
}
.cl-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.cl-chip.is-ok {
  background: var(--cl-ok-soft);
  color: var(--cl-ok);
}
.cl-chip.is-warn {
  background: var(--cl-warn-soft);
  color: var(--cl-warn);
}
.cl-chip.is-bad {
  background: var(--cl-bad-soft);
  color: var(--cl-bad);
}
.cl-chip.is-bad::before { /* a square marks the highest-risk state, in addition to its word */
  border-radius: 1px;
}
.cl-chip.is-info {
  background: var(--cl-accent-soft);
  color: var(--cl-accent);
}
.cl-chip.is-plain::before {
  display: none;
}

/* Actors: who did it, in words, with a shape per actor */
.cl-actor {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 1px 7px 1px 5px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border: 1px solid;
}
.cl-actor svg {
  width: 10px;
  height: 10px;
  flex: none;
}
.cl-actor--ai {
  color: var(--cl-ink-2);
  border-style: dashed;
  border-color: var(--cl-line-strong);
}
.cl-actor--human {
  color: var(--cl-accent);
  border-color: rgba(125, 211, 252, 0.55);
  background: var(--cl-accent-soft);
}
.cl-actor--system {
  color: var(--cl-ink-2);
  border-color: var(--cl-line);
  background: #1c2840;
}

/* Dense table (grid rows; columns set with --cl-cols) */
.cl-table {
  background: var(--cl-surface);
  border: 1px solid var(--cl-line);
  border-radius: 9px;
  overflow: hidden;
}
.cl-tr {
  display: grid;
  grid-template-columns: var(--cl-cols, repeat(4, minmax(0, 1fr)));
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border-top: 1px solid var(--cl-line);
}
.cl-tr:first-child {
  border-top: 0;
}
.cl-tr--head {
  background: #0e1728;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cl-ink-3);
}
.cl-tr.is-sel {
  background: var(--cl-surface-2);
  box-shadow: inset 3px 0 0 var(--cl-accent);
}
.cl-tr.is-flag {
  background: rgba(245, 158, 11, 0.09);
  box-shadow: inset 3px 0 0 var(--cl-warn);
}
.cl-tr.is-out > span:not(:first-child) {
  color: var(--cl-ink-3);
  text-decoration: line-through;
}
.cl-claim {
  display: grid;
  min-width: 0;
}
.cl-claim small {
  font-size: 10.5px;
  color: var(--cl-ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cl-r {
  text-align: right;
  justify-self: end;
}
.cl-box { /* static checkbox */
  display: inline-grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  border: 1.5px solid var(--cl-line-strong);
}
.cl-box.is-on {
  background: var(--cl-accent);
  border-color: var(--cl-accent);
}
.cl-box.is-on::after {
  content: "";
  width: 6px;
  height: 3px;
  margin-top: -2px;
  border-left: 1.6px solid var(--cl-accent-ink);
  border-bottom: 1.6px solid var(--cl-accent-ink);
  transform: rotate(-45deg);
}

/* Segmented filter */
.cl-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
}
.cl-seg span {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--cl-line);
  font-size: 11px;
  color: var(--cl-ink-2);
}
.cl-seg span b {
  font-family: var(--cl-mono);
  font-weight: 500;
  margin-left: 4px;
  color: var(--cl-ink-3);
}
.cl-seg .is-on {
  border-color: var(--cl-line-strong);
  background: var(--cl-surface-2);
  color: var(--cl-ink);
  font-weight: 600;
}

/* Rationale steps, each with its source references */
.cl-steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
  counter-reset: cl-step;
}
.cl-steps > li {
  counter-increment: cl-step;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 2px 9px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid var(--cl-line);
  border-radius: 8px;
  background: var(--cl-surface);
}
.cl-steps > li::before {
  content: counter(cl-step);
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--cl-line-strong);
  font-family: var(--cl-mono);
  font-size: 10px;
  color: var(--cl-ink-2);
}
.cl-steps p {
  grid-column: 2 / -1;
  color: var(--cl-ink-2);
}
.cl-steps .cl-refs {
  grid-column: 2 / -1;
}
.cl-steps--tight > li {
  padding: 7px 0;
  border: 0;
  border-top: 1px solid var(--cl-line);
  border-radius: 0;
  background: none;
}
.cl-steps--tight > li:first-child {
  border-top: 0;
}
.cl-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.cl-refs > span:first-child:not(.cl-ref) {
  font-size: 10.5px;
  color: var(--cl-ink-3);
  margin-right: 2px;
}
.cl-ref {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border: 1px solid var(--cl-line-strong);
  border-radius: 4px;
  font-family: var(--cl-mono);
  font-size: 10px;
  color: var(--cl-ink-2);
  white-space: nowrap;
}
.cl-ref::before { /* a small document mark */
  content: "";
  width: 7px;
  height: 9px;
  border: 1.2px solid currentColor;
  border-radius: 1px;
}

/* Decision factors */
.cl-factors {
  display: grid;
  gap: 8px;
}
.cl-factor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
}
.cl-factor span {
  color: var(--cl-ink-2);
}
.cl-factor b {
  font-family: var(--cl-mono);
  font-weight: 600;
}
.cl-factor .cl-meter {
  grid-column: 1 / -1;
  max-width: none;
}
.cl-factor .cl-meter::after {
  display: none;
}

/* Buttons and links (static: the frames are pictures) */
.cl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.cl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--cl-accent-fill);
  color: var(--cl-accent-ink);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.cl-btn b {
  font-family: var(--cl-mono);
}
.cl-btn--ghost {
  background: transparent;
  color: var(--cl-ink);
  border: 1px solid var(--cl-line-strong);
  font-weight: 600;
}
.cl-btn--quiet {
  background: transparent;
  color: var(--cl-ink-2);
  font-weight: 600;
}
.cl-link {
  color: var(--cl-accent);
  font-weight: 600;
  font-size: 11px;
}

/* The approval gate: what executes, and when */
.cl-gate {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid var(--cl-line);
  background: var(--cl-bg);
  color: var(--cl-ink-2);
  font-size: 11px;
}
.cl-gate svg {
  width: 13px;
  height: 13px;
  flex: none;
  color: var(--cl-accent);
}
.cl-gate b {
  color: var(--cl-ink);
  font-weight: 600;
}
.cl-note {
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--cl-accent-soft);
  color: var(--cl-ink);
  font-size: 11px;
}
.cl-note.is-warn {
  background: var(--cl-warn-soft);
}

/* Forms (edit and escalate) */
.cl-field {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--cl-ink-2);
}
.cl-input {
  display: block;
  padding: 6px 9px;
  border: 1px solid var(--cl-line-strong);
  border-radius: 6px;
  background: var(--cl-bg);
  color: var(--cl-ink);
  font-weight: 400;
  font-size: 11.5px;
  min-height: 28px;
}
.cl-input.is-area {
  min-height: 46px;
}
.cl-input.is-select {
  position: relative;
  padding-right: 24px;
}
.cl-input.is-select::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid var(--cl-ink-2);
  border-bottom: 1.5px solid var(--cl-ink-2);
  transform: rotate(45deg);
}
.cl-big {
  display: grid;
  gap: 2px;
  padding: 9px 11px;
  border: 1.5px solid var(--cl-accent);
  border-radius: 8px;
  background: var(--cl-bg);
}
.cl-big span {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cl-ink-3);
}
.cl-big b {
  font-family: var(--cl-mono);
  font-size: 22px;
  font-weight: 700;
}
.cl-sum {
  display: grid;
  gap: 3px;
  padding: 8px 10px 9px;
  border-top: 1px solid var(--cl-line);
}
.cl-sum div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--cl-ink-2);
}
.cl-sum div:last-child {
  color: var(--cl-ink);
  font-weight: 700;
}
.cl-sum b {
  font-family: var(--cl-mono);
  font-weight: inherit;
}
.cl-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.cl-option {
  position: relative;
  display: grid;
  gap: 3px;
  align-content: start;
  padding: 9px 10px 9px 30px;
  border: 1px solid var(--cl-line);
  border-radius: 8px;
}
.cl-option::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 11px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--cl-line-strong);
}
.cl-option.is-on {
  border: 1.5px solid var(--cl-accent);
  background: var(--cl-surface-2);
}
.cl-option.is-on::before {
  border: 4px solid var(--cl-accent);
}
.cl-option b {
  font-size: 12px;
}
.cl-option small {
  font-size: 10.5px;
  color: var(--cl-ink-2);
  line-height: 1.35;
}
.cl-why {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 4px;
}
.cl-why li {
  position: relative;
  padding-left: 14px;
  color: var(--cl-ink);
}
.cl-why li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--cl-warn);
}

/* Context package: what travels with an escalation */
.cl-pack {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 6px;
}
.cl-pack li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 1px 8px;
  padding: 8px 10px;
  border: 1px solid var(--cl-line);
  border-radius: 7px;
  background: var(--cl-bg);
}
.cl-pack li::before {
  content: "";
  grid-row: span 2;
  width: 12px;
  height: 12px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid var(--cl-ok);
  background: linear-gradient(var(--cl-ok), var(--cl-ok)) center / 4px 4px no-repeat;
}
.cl-pack b {
  font-weight: 600;
}
.cl-pack small {
  font-size: 10.5px;
  color: var(--cl-ink-2);
}

/* Audit trail: a timeline that names the actor of every entry */
.cl-audit {
  list-style: none;
  padding: 0;
  display: grid;
}
.cl-audit li {
  position: relative;
  display: grid;
  grid-template-columns: 58px 74px minmax(0, 1fr);
  gap: 2px 8px;
  align-items: start;
  padding: 7px 0;
  border-top: 1px solid var(--cl-line);
}
.cl-audit li:first-child {
  border-top: 0;
}
.cl-audit time {
  font-family: var(--cl-mono);
  font-size: 10.5px;
  color: var(--cl-ink-3);
  padding-top: 1px;
}
.cl-audit p b {
  font-weight: 600;
}
.cl-audit small {
  display: block;
  margin-top: 1px;
  font-size: 10.5px;
  color: var(--cl-ink-2);
}
.cl-audit li.is-key p b {
  color: var(--cl-accent);
}
.cl-dl {
  display: grid;
  gap: 6px;
}
.cl-dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--cl-line);
}
.cl-dl div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.cl-dl dt {
  color: var(--cl-ink-3);
}
.cl-dl dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}
.cl-dl dd.cl-num {
  font-weight: 700;
}
.cl-lock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--cl-ink-2);
}
.cl-lock svg {
  width: 11px;
  height: 11px;
}

/* Medium frames (a case-study column): the sidebar becomes a rail and side panels stack */
@container (max-width: 820px) {
  .cl-shell {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .cl-side {
    align-items: center;
    padding: 12px 6px;
    gap: 4px;
  }
  .cl-brand {
    font-size: 0;
    padding: 2px 0 12px;
  }
  .cl-nav {
    font-size: 0;
    gap: 0;
    padding: 8px;
  }
  .cl-nav i {
    width: 9px;
    height: 9px;
  }
  .cl-nav em,
  .cl-stages {
    display: none;
  }
  .cl-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .cl-aside { /* secondary context panels give way to the decision itself */
    display: none;
  }
}
@container (max-width: 600px) {
  .cl-tiles {
    grid-template-columns: minmax(0, 1fr);
  }
  .cl-options {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Narrow frames (phones): no rail, one column, tables become labeled stacked rows */
@container (max-width: 440px) {
  .cl-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .cl-side {
    display: none;
  }
  .cl-user span {
    display: none;
  }
  .cl-top {
    padding: 9px 12px;
  }
  .cl-body {
    padding: 12px;
  }
  .cl-tr--head {
    display: none;
  }
  .cl-tr {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 4px;
  }
  .cl-tr > [data-label] {
    grid-column: 1 / -1;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    text-align: left;
    justify-self: stretch;
  }
  .cl-tr > [data-label]::before {
    content: attr(data-label);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cl-ink-3);
    min-width: 78px;
  }
  .cl-tr > .cl-hide-sm {
    display: none;
  }
  .cl-table--lines .cl-tr { /* estimate lines stay one compact row: checkbox, line, amount */
    grid-template-columns: 16px minmax(0, 1fr) auto;
    column-gap: 8px;
  }
  .cl-steps > li {
    grid-template-columns: 22px minmax(0, 1fr);
  }
  .cl-steps > li > .cl-chip {
    grid-column: 2;
  }
  .cl-audit li {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .cl-audit time {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }
  .cl-audit li > .cl-actor {
    grid-row: 1;
    grid-column: 1;
  }
  .cl-audit li > p {
    grid-column: 1 / -1;
  }
}
