/* SinyalSiap autoplay demo.
   World inherited from the team's SinyalSiap pitch deck: ink navy, mint trace,
   warm off-white paper, teal for the one decisive action, amber only for "perlu tinjauan".
   The instrument screen is dark because EKG monitors are read that way; the page around it
   stays light for a projector in a lit room. */
:root {
  --ink: #101d2b;
  --ink-2: #16283a;
  --ink-3: #1f3448;
  --mint: #bcefd5;
  --mint-dim: #8fc8ad;
  --teal: #157a66;
  --teal-dark: #0f5d4e;
  --paper: #f6f5f0;
  --paper-2: #ebf0e9;
  --surface: #ffffff;
  --line: #d6dcd9;
  --text: #102334;
  --slate: #556574;
  --muted: #5d6b78;
  --amber: #9a5a13;
  --amber-glow: #e8b56a;
  --amber-wash: #f7ecd9;
  --red: #a3362a;
  --red-wash: #f8e4e0;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-full: 9999px;
  --shadow: 0 1px 2px rgb(16 29 43 / .06), 0 14px 40px rgb(16 29 43 / .10);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, Consolas, monospace;
  --tempo: 1;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 16px/1.5 var(--sans);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-variant-numeric: tabular-nums;
}
::selection { background: var(--teal); color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; }
.skip { position: fixed; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }

/* ---------- top bar ---------- */
.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 16px 32px 12px;
  position: relative;
  z-index: 30;
  background: var(--paper);
}
.brand { display: flex; align-items: center; gap: 14px; }
.wordmark { font-weight: 700; font-size: 26px; letter-spacing: -0.025em; color: var(--ink); }
.wordmark b { color: var(--teal); font-weight: 700; }
.brand-sub { font-size: 14px; color: var(--slate); max-width: 210px; line-height: 1.25; }

.phases { display: flex; justify-content: center; gap: 8px; }
.phase {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--r-sm);
  padding: 8px 14px 9px;
  min-height: 44px;
  min-width: 150px;
  cursor: pointer;
  color: var(--slate);
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .3s, background .3s;
}
.phase:hover { border-color: var(--slate); }
.phase[aria-current="step"] { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.phase-name { font-size: 14px; font-weight: 600; text-align: left; white-space: nowrap; }
.segs { display: flex; gap: 3px; }
.seg { flex: 1; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; position: relative; }
.seg.done { background: var(--slate); }
.seg > b { position: absolute; inset: 0; background: var(--teal); transform-origin: left; transform: scaleX(0); }
.seg.now > b { transform: scaleX(var(--p, 0)); }

.controls { display: flex; gap: 8px; align-items: center; }
.clock { font: 500 17px/1 var(--mono); color: var(--slate); min-width: 108px; text-align: right; padding-right: 4px; }
.btn {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: var(--r-sm);
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .25s, color .25s, transform .12s;
}
.btn:hover { background: var(--paper-2); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn-round { width: 44px; padding: 0; justify-content: center; font-size: 18px; }
.btn-play, .btn-solid { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-play:hover, .btn-solid:hover { background: var(--teal-dark); }
.btn-play[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }

/* ---------- stage ---------- */
.stage {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(270px, 300px) minmax(0, 1fr) minmax(300px, 340px);
  gap: 24px;
  padding: 8px 32px 16px;
  min-height: 0;
}
.stage > * { min-width: 0; }

.story { display: flex; flex-direction: column; min-height: 0; padding-top: 10px; }
.step-count { margin: 0 0 12px; font: 500 15px/1 var(--mono); color: var(--teal); }
.step-count .of { color: var(--muted); }
.story h1 { font-size: clamp(25px, 2.15vw, 33px); line-height: 1.12; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 12px; text-wrap: balance; }
.story-body { margin: 0 0 14px; font-size: 15.5px; color: var(--slate); }
.chips { list-style: none; margin: 0 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font: 500 12px var(--mono); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 9px; }
.decide { margin-top: 18px; border-top: 1px solid var(--line); }
.who-row { display: grid; grid-template-columns: 76px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--slate); }
.who-k { font-weight: 700; color: var(--ink); font-size: 13px; }
.who-k.op { color: var(--teal); }

/* ---------- monitor: the instrument ---------- */
.monitor {
  background: var(--ink);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column;
  min-height: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  color: #dbe7e1;
}
.mon-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 20px 10px; border-bottom: 1px solid #22384c; }
.mon-bar strong { font-size: 15px; font-weight: 600; color: #f2f6f4; }
.mon-bar span { font: 500 12.5px var(--mono); color: var(--mint-dim); }
.mon-body { flex: 1; position: relative; min-height: 0; padding: 10px 14px 6px; display: flex; flex-direction: column; overflow: hidden; }
.mon-foot { padding: 8px 20px 12px; font: 500 12px var(--mono); color: #93a9a0; border-top: 1px solid #22384c; }

.ecg { width: 100%; height: auto; display: block; }
.ecg .grid-minor { stroke: rgb(188 239 213 / .06); stroke-width: 1; }
.ecg .grid-major { stroke: rgb(188 239 213 / .13); stroke-width: 1; }
.ecg .lead-name { fill: #9fb8ad; font: 600 13px var(--mono); }
.ecg .trace { fill: none; stroke: var(--mint); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ecg .trace.dim { stroke: rgb(188 239 213 / .38); }
.ecg .cal { fill: none; stroke: #9fb8ad; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.ecg .band { fill: rgb(232 181 106 / .16); stroke: var(--amber-glow); stroke-width: 1.2; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.ecg .band-label { fill: var(--amber-glow); font: 600 13px var(--sans); }
.ecg .tick { fill: #7f978d; font: 500 11px var(--mono); }
.ecg .ruler { stroke: #7f978d; stroke-width: 1; vector-effect: non-scaling-stroke; }

/* the sweep: traces are drawn left to right like a monitor writing the record */
.sweep { clip-path: inset(0 100% 0 0); animation: sweep calc(var(--sweep, 1800ms) * var(--tempo)) linear forwards; animation-delay: calc(var(--sweep-delay, 0ms) * var(--tempo)); }
@keyframes sweep { to { clip-path: inset(0 0 0 0); } }
.band-in { opacity: 0; animation: fadeIn .6s var(--ease) forwards; animation-delay: calc(var(--band-delay, 0ms) * var(--tempo)); }
@keyframes fadeIn { to { opacity: 1; } }

.mon-state { position: absolute; inset: 10px 14px 6px; display: grid; place-items: center; text-align: center; padding: 24px; }
.mon-state .box { max-width: 420px; }
.mon-state i { font-size: 36px; color: var(--mint-dim); }
.mon-state h3 { margin: 10px 0 6px; font-size: 20px; color: #f2f6f4; letter-spacing: -0.01em; }
.mon-state p { margin: 0; color: #a9bdb4; font-size: 14.5px; }
.mon-state.reject i { color: #f0a493; }
.mon-overlay { position: absolute; left: 20px; right: 20px; margin: 0 auto; bottom: 34px; background: rgb(16 29 43 / .92); border: 1px solid #2b4459; border-radius: var(--r-md); padding: 9px 14px; font-size: 13.5px; color: #e6efea; display: flex; gap: 8px; align-items: center; width: max-content; max-width: calc(100% - 40px); }
.mon-overlay i { color: var(--amber-glow); font-size: 17px; }

/* ---------- operator panel ---------- */
.panel { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.panel-body { flex: 1; overflow-y: auto; padding: 0 18px 18px; display: flex; flex-direction: column; gap: 14px; mask-image: linear-gradient(to bottom, transparent 0, #000 12px); }
.p-sec { display: flex; flex-direction: column; gap: 8px; }
.p-h { position: sticky; top: 0; z-index: 2; background: var(--surface); margin: 0; padding: 16px 0 4px; font-size: 13px; font-weight: 700; color: var(--slate); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.p-sec + .p-sec .p-h { padding-top: 6px; }
.ident { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13.5px; }
.ident dt { color: var(--muted); }
.ident dd { margin: 0; font-weight: 600; color: var(--ink); }
.ident dd.mono { font: 500 13px var(--mono); }

.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.checks li { display: flex; gap: 7px; align-items: center; font-size: 13px; color: var(--slate); }
.checks .ck { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 12px; color: #fff; flex: none; transition: background .3s, border-color .3s; }
.checks li.ok .ck { background: var(--teal); border-color: var(--teal); }
.checks li.bad .ck { background: var(--red); border-color: var(--red); }
.checks li.ok, .checks li.bad { color: var(--ink); }
.checks li.bad { color: var(--red); font-weight: 600; }

.status {
  display: flex; gap: 12px; align-items: flex-start;
  border-radius: var(--r-md);
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  background: var(--paper);
}
.status i { font-size: 24px; flex: none; margin-top: 1px; }
.status b { display: block; font-size: 17px; letter-spacing: -0.01em; }
.status span { display: block; font-size: 13px; color: var(--slate); margin-top: 1px; }
.status.ok { border-color: var(--teal); background: #e6f3ee; } .status.ok i, .status.ok b { color: var(--teal); }
.status.review { border-color: var(--amber); background: var(--amber-wash); } .status.review i, .status.review b { color: var(--amber); }
.status.unsure { border-style: dashed; border-color: var(--slate); } .status.unsure i, .status.unsure b { color: var(--slate); }
.status.unsupported, .status.failed { border-color: var(--red); background: var(--red-wash); } .status.unsupported i, .status.unsupported b, .status.failed i, .status.failed b { color: var(--red); }
.status.pending { border-style: dashed; } .status.pending i { color: var(--muted); }

.note { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.note i { margin-top: 2px; }

.choices { display: grid; gap: 6px; }
.choice { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 12px; font-size: 14px; color: var(--ink); background: var(--surface); transition: background .35s var(--ease), border-color .35s, color .35s; }
.choice i { font-size: 17px; color: var(--slate); }
.choice.pressed { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }
.choice.pressed i { color: #fff; }
.reason { border: 1px solid var(--ink); border-radius: var(--r-sm); padding: 9px 12px; font-size: 14px; min-height: 42px; }
.reason label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.link-card { display: flex; gap: 10px; align-items: center; border-radius: var(--r-md); background: var(--paper-2); padding: 10px 12px; font-size: 13.5px; }
.link-card i { font-size: 20px; color: var(--teal); }
.link-card code { font: 500 12.5px var(--mono); color: var(--ink); }

.report { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; display: grid; gap: 6px; font-size: 13px; }
.report .row { display: flex; justify-content: space-between; gap: 10px; }
.report .row span:first-child { color: var(--muted); }
.report .row span:last-child { font-weight: 600; text-align: right; }
.report .disclaim { border-top: 1px solid var(--line); padding-top: 8px; color: var(--slate); }
.targets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.target { background: var(--paper); border-radius: var(--r-md); padding: 10px 12px; }
.target b { display: block; font: 600 19px/1.1 var(--mono); color: var(--ink); }
.target span { font-size: 12.5px; color: var(--slate); }

.empty { border: 1.5px dashed var(--line); border-radius: var(--r-md); padding: 14px; font-size: 13.5px; color: var(--slate); display: flex; gap: 10px; }
.empty i { font-size: 20px; color: var(--muted); }

.dock { position: sticky; bottom: -18px; z-index: 2; background: var(--surface); padding: 10px 0 18px; margin-top: auto; border-top: 1px solid var(--line); }
.dock .btn { width: 100%; justify-content: center; }
.btn.pressed { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- audit ribbon ---------- */
.ribbon { background: var(--ink); color: #e9efec; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; padding: 11px 32px; }
.ribbon-label { margin: 0; font-size: 15px; font-weight: 600; display: flex; gap: 8px; align-items: center; white-space: nowrap; color: #f2f6f4; }
.ribbon-label i { font-size: 18px; color: var(--mint); }
.audit-list { list-style: none; margin: 0; padding: 2px 0; display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; mask-image: linear-gradient(90deg, transparent, #000 90px); }
.audit-list::-webkit-scrollbar { display: none; }
.audit-list li { flex: none; background: var(--ink-3); border-radius: var(--r-sm); padding: 7px 12px; font-size: 12.5px; line-height: 1.35; max-width: 290px; transition: background 1.4s var(--ease); }
.audit-list li.fresh { background: var(--mint); color: var(--ink); }
.audit-list .ev { font: 600 12px var(--mono); color: var(--mint); }
.audit-list li.fresh .ev, .audit-list li.fresh .actor, .audit-list li.fresh .t { color: var(--ink); }
.audit-list .ev.warn { color: var(--amber-glow); }
.audit-list .ev.err { color: #f0a493; }
.audit-list .t { font: 500 11.5px var(--mono); color: #9fb3aa; margin-left: 6px; }
.audit-list .actor { display: block; color: #c9d6d0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audit-list li.muted { color: #c9d6d0; max-width: none; background: transparent; }

/* ---------- motion ---------- */
.pre { opacity: 0; transform: translateY(8px); }
.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.pulse-once { animation: pulseOnce 1.1s var(--ease) 1; }
@keyframes pulseOnce { 0% { transform: scale(.97); } 40% { transform: scale(1.02); } 100% { transform: none; } }
.story.swap > * { animation: storyIn .7s var(--ease) both; }
.story.swap > *:nth-child(2) { animation-delay: .05s; }
.story.swap > *:nth-child(3) { animation-delay: .1s; }
.story.swap > *:nth-child(n+4) { animation-delay: .15s; }
@keyframes storyIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- scenes ---------- */
.scene { position: fixed; inset: 0; z-index: 20; background: var(--paper); display: grid; place-items: center; padding: 96px 32px 32px; overflow-y: auto; }
.scene[hidden] { display: none; }
.scene.ink { background: var(--ink); color: #f2f6f4; }
.scene-inner { width: min(1240px, 100%); display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 52px; align-items: center; }
.scene h2 { font-size: clamp(32px, min(4.2vw, 7.2vh), 62px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; margin: 0 0 clamp(12px, 2.2vh, 22px); text-wrap: balance; }
.scene h2 span { color: var(--teal); }
.scene p.lead { font-size: clamp(15px, 2.2vh, 18.5px); color: var(--slate); margin: 0 0 clamp(12px, 2.2vh, 22px); max-width: 48ch; }
.pains { list-style: none; margin: 0 0 clamp(14px, 2.6vh, 26px); padding: 0; border-top: 1px solid var(--line); max-width: 52ch; }
.pains li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: clamp(14px, 1.9vh, 15.5px); color: var(--slate); padding: clamp(6px, 1.1vh, 10px) 0; border-bottom: 1px solid var(--line); }
.pains i { font-size: 20px; color: var(--teal); margin-top: 2px; }
.scene-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.scene-photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.scene-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; max-height: calc(100dvh - 220px); }
.scene-photo figcaption { padding: 10px 14px; font-size: 12.5px; color: var(--slate); background: var(--surface); }

.biz { width: min(1240px, 100%); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.biz h2 { font-size: clamp(30px, min(3.6vw, 6.4vh), 54px); line-height: 1.06; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 22px; text-wrap: balance; }
.biz h2 span { color: var(--mint); }
.biz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.biz-cell { background: var(--ink-3); border-radius: var(--r-md); padding: 16px 18px; }
.biz-cell.price { background: var(--mint); color: var(--ink); grid-column: 1 / -1; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.biz-cell.price b { font-size: clamp(34px, 3.4vw, 48px); letter-spacing: -0.03em; line-height: 1; }
.biz-cell.price span { font-size: 15px; max-width: 34ch; }
.biz-cell h3 { margin: 0 0 6px; font-size: 15px; color: var(--mint); }
.biz-cell p { margin: 0; font-size: 14.5px; color: #c9d6d0; }
.biz-cell .calc b { display: block; font: 600 22px var(--mono); color: #f2f6f4; margin: 4px 0; }
.honest { font-size: 13px; color: #9fb3aa; margin: 0 0 18px; }
.biz-visual { margin: 0; border-radius: var(--r-lg); overflow: hidden; }
.biz-visual img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 70% 50%; }
.scene.ink .btn { border-color: #f2f6f4; color: #f2f6f4; }
.scene.ink .btn:hover { background: var(--ink-3); }
.scene.ink .btn-solid { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.scene.ink .btn-solid:hover { background: #d3f6e4; }

/* ---------- desktop / projector: one screen ---------- */
@media (min-width: 1101px) and (min-height: 600px) {
  body { height: 100dvh; overflow: hidden; }
  .stage { overflow: hidden; }
}
@media (max-height: 760px) and (min-width: 1101px) {
  .topbar { padding-top: 12px; padding-bottom: 8px; }
  .story h1 { font-size: clamp(22px, 4.2vh, 30px); }
  .story-body { font-size: 14.5px; margin-bottom: 10px; }
  .who-row { padding: 6px 0; font-size: 12.5px; }
  .decide { margin-top: 10px; }
  .mon-foot { padding-top: 6px; padding-bottom: 8px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .brand-sub { display: none; }
  .phase { min-width: 128px; }
}
@media (max-width: 1100px) {
  .topbar { grid-template-columns: 1fr auto; }
  .phases { grid-column: 1 / -1; grid-row: 2; }
  .phase { flex: 1; min-width: 0; }
  .stage { grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); }
  .story { grid-column: 1 / -1; }
  .decide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }
  .who-row { grid-template-columns: 1fr; gap: 2px; }
  .monitor { min-height: 560px; }
}
@media (max-width: 760px) {
  .topbar { padding: 12px 16px 8px; gap: 10px; }
  .clock { display: none; }
  .btn-play { padding: 0 14px; }
  .btn-play span { display: none; }
  .phase { padding: 7px 10px; }
  .phase-name { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
  .stage { grid-template-columns: 1fr; padding: 8px 16px 16px; gap: 16px; }
  .story, .monitor, .panel { grid-column: 1; }
  .decide { grid-template-columns: 1fr; }
  .monitor { min-height: 520px; }
  .mon-bar { flex-direction: column; gap: 2px; }
  .checks, .targets { grid-template-columns: 1fr; }
  .ribbon { grid-template-columns: 1fr; gap: 8px; padding: 12px 16px; }
  .scene { padding: 16px; place-items: start center; }
  .scene-inner, .biz { grid-template-columns: 1fr; gap: 24px; }
  .biz-grid { grid-template-columns: 1fr; }
  .mon-overlay { white-space: normal; width: calc(100% - 28px); }
}

@media (prefers-reduced-motion: reduce) {
  .pre { transform: none; }
  .in { transition: opacity .4s linear; }
  .sweep { animation: none; clip-path: none; }
  .band-in { animation: none; opacity: 1; }
  .pulse-once, .story.swap > * { animation: none; }
  .audit-list, .panel-body { scroll-behavior: auto; }
}

.mon-state { background: var(--ink); z-index: 2; }
.tag { font: 500 11.5px var(--mono); color: var(--slate); background: var(--paper); border-radius: 6px; padding: 2px 7px; }
.mono { font-family: var(--mono); font-weight: 500; }
.chip-export { font-size: 12px; font-weight: 600; color: #fff; background: var(--teal); border-radius: 6px; padding: 3px 8px; display: inline-flex; gap: 4px; align-items: center; }
.target { padding: 8px 10px; }
.target b { font-size: 16px; }
.target span { font-size: 12px; line-height: 1.3; display: block; }
.report { padding: 10px 12px; gap: 4px; }

/* closing scene fits short laptop screens */
.biz h2 { font-size: clamp(26px, min(3.4vw, 5.4vh), 50px); margin-bottom: clamp(10px, 2vh, 20px); }
.biz-grid { gap: 10px; margin-bottom: clamp(8px, 1.6vh, 16px); }
.biz-cell { padding: clamp(10px, 1.8vh, 16px) 16px; }
.biz-cell.price b { font-size: clamp(28px, 5.4vh, 46px); }
.biz-cell p, .biz-cell.price span { font-size: clamp(13px, 1.9vh, 14.5px); }
.honest { margin-bottom: clamp(10px, 1.8vh, 18px); }
.biz-visual img { max-height: calc(100dvh - 160px); }

/* ---------- revision: live instrument header, session log, calmer story column ---------- */
.mon-bar { align-items: center; justify-content: flex-start; }
.mon-bar strong code { font: 600 15px var(--mono); color: #f2f6f4; letter-spacing: 0; }
.mon-bar #monMeta { margin-left: auto; }
.mon-status:empty { display: none; }

.mini { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 600; border-radius: 6px; padding: 3px 8px; white-space: nowrap; border: 1px solid transparent; }
.mini i { font-size: 14px; }
.mini.ok { background: #e6f3ee; color: var(--teal); }
.mini.review { background: var(--amber-wash); color: var(--amber); }
.mini.redo { background: var(--paper-2); color: var(--slate); }
.mini.unsure { background: transparent; color: var(--slate); border: 1px dashed var(--slate); }
.mini.unsupported, .mini.failed { background: var(--red-wash); color: var(--red); }
.mini.pending { background: var(--paper); color: var(--muted); border: 1px dashed var(--line); }
.mini.on-dark { background: var(--ink-3); animation: fadeIn .5s var(--ease) forwards; }
.mini.on-dark.ok { color: var(--mint); }
.mini.on-dark.review { color: var(--amber-glow); }
.mini.on-dark.unsure, .mini.on-dark.pending { color: #c3d2cb; border-color: #4a6175; }
.mini.on-dark.unsupported, .mini.on-dark.failed { color: #f2aa9c; }

.session { margin-top: auto; padding-top: 6px; }
.sess { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sess li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r-sm); background: var(--paper); }
.sess li code { font: 500 12.5px var(--mono); color: var(--ink); }
.sess li.is-new { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

/* story column: no hole between the step and its decision split */
.chips { margin-bottom: 0; }
.decide { margin-top: 22px; }
@media (max-height: 760px) and (min-width: 1101px) {
  .sess li { padding: 5px 9px; }
  .sess { gap: 4px; }
}
@media (max-width: 760px) {
  .mon-bar { flex-direction: row; flex-wrap: wrap; }
  .mon-bar #monMeta { margin-left: 0; width: 100%; }
}
.ident-line { margin: 0; font-size: 13.5px; color: var(--slate); }
.ident-line code { font: 500 12.5px var(--mono); color: var(--ink); }
.p-h { padding-top: 14px; }
.panel-body { gap: 10px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
