/* Command Centre: the on-call phone app section (Home (05) and /platform (04), id="phone").
   A realistic generic phone drawn in CSS (no device-brand chrome). Screens are HTML drawn from the app's spec
   (dark "console" theme, lime accent), on sample data. Motion uses transforms and opacity only.
   Steps (data-step): h System Health, p paged, a acknowledge, l on-call list, s snooze, i incident. */

/* ---------- section layout ---------- */
.cph .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cph { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.cph-stage { position: relative; display: flex; justify-content: center; padding: 12px 0 28px; perspective: 1600px; }
.cph-tilt { position: relative; z-index: 1; transform: rotateY(-9deg) rotateX(3deg) rotateZ(.6deg); transform-style: preserve-3d; transition: transform 1.2s var(--ease, ease); }
.cph:hover .cph-tilt { transform: rotateY(-4deg) rotateX(1.5deg); }
.cph-tilt.is-follow { transition: none; will-change: transform; }
.cph-glare { background-size: 220% 220%; background-position: 50% 50%; }

/* ---------- the phone ---------- */
.cph-phone { --b: #0b0b0c; --c: #141415; --r: #1d1d1f; --t: #f2f2f2; --m: #8e8e93; --s: #c6ff3d; --crit: #ff6b6f; --warn: #e8b04a; --ok: #3fb27f;
  position: relative; width: min(296px, 76vw); aspect-ratio: 9 / 18.4; border-radius: 52px; padding: 8px;
  background: linear-gradient(140deg, #5b5f66 0%, #2a2c30 12%, #17181b 30%, #0e0f11 55%, #26282c 82%, #4a4e55 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 0 0 2.5px #0a0b0c, inset 0 0 0 3.5px rgba(255, 255, 255, .06),
    0 1px 2px rgba(5, 6, 9, .3), 0 12px 24px -8px rgba(5, 6, 9, .35), 0 40px 70px -24px rgba(5, 6, 9, .5), 0 80px 120px -50px rgba(5, 6, 9, .45); }
.cph-phone > i { position: absolute; width: 4px; border-radius: 3px; background: linear-gradient(90deg, #1b1c1f, #5a5e65 60%, #2b2d31); }
.cph-btn-l { left: -3px; top: 20%; height: 7%; transform: scaleX(-1); }
.cph-btn-r1 { right: -3px; top: 23%; height: 12%; }
.cph-btn-r2 { right: -3px; top: 38%; height: 7%; }
.cph-scr { position: relative; height: 100%; border-radius: 44px; overflow: hidden; background: var(--b); color: var(--t); isolation: isolate;
  font: 400 11.5px/1.4 "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; box-shadow: 0 0 0 1px #000; }
.cph-cam { position: absolute; z-index: 9; top: 12px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3a4a66 0, #0d1118 45%, #050608 70%); box-shadow: 0 0 0 2px #050608, 0 0 0 3px #1c1d20; }
.cph-glare { position: absolute; inset: 0; z-index: 10; pointer-events: none; border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .03) 22%, transparent 38%, transparent 80%, rgba(255, 255, 255, .03)); }
.cph-gest { position: absolute; z-index: 9; bottom: 7px; left: 50%; width: 34%; height: 4px; margin-left: -17%; border-radius: 3px; background: rgba(255, 255, 255, .72); }

/* status bar */
.cph-sb { position: absolute; z-index: 8; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 2px 24px 0 26px;
  font: 600 11.5px/1 "Inter", system-ui, sans-serif; color: #fff; }
.cph-sbi { display: flex; align-items: center; gap: 5px; }
.cph-sbi svg { width: 14px; height: 10px; fill: #fff; }
.cph-sbi em { font-style: normal; font-weight: 500; font-size: 10.5px; }
.cph-bat { position: relative; width: 22px; height: 11px; border-radius: 3.5px; border: 1.2px solid rgba(255, 255, 255, .55); }
.cph-bat::after { content: ""; position: absolute; right: -3.5px; top: 3px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(255, 255, 255, .55); }
.cph-bat b { position: absolute; inset: 1.5px; right: 4px; border-radius: 1.5px; background: #fff; }

/* screens: native-style push. JS marks the current screen and the ones it came through. */
.cph-views { position: absolute; inset: 0; }
.cph-v { position: absolute; inset: 0; padding-top: 36px; background: var(--b); transform: translate3d(100%, 0, 0); transition: transform .55s cubic-bezier(.32, .72, 0, 1); will-change: transform; }
.cph-v::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .55s; pointer-events: none; }
.cph-v.is-prev { transform: translate3d(-26%, 0, 0); }
.cph-v.is-prev::after { opacity: 1; }
.cph-v.is-cur { transform: none; }
.cph-v.is-cur::after { opacity: 0; }

/* app chrome */
.cph-bar { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px 8px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.cph-bar em { font-style: normal; color: var(--s); font-size: 22px; line-height: 1; margin: -2px 2px 0 -4px; }
.cph-bar small { display: block; color: var(--m); font-size: 9.5px; letter-spacing: .02em; }
.cph-bar b { font-weight: 650; font-size: 15px; letter-spacing: -.01em; }
.cph-smp { margin-left: auto; font: 500 8.5px/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--m); padding: 4px 7px; border-radius: 99px; box-shadow: 0 0 0 1px rgba(142, 142, 147, .4) inset; }
.cph-body { padding: 12px 14px 0; }
.cph-mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.cph-chip { display: inline-flex; align-items: center; gap: 5px; font: 500 9px/1 "IBM Plex Mono", ui-monospace, monospace; font-style: normal; padding: 4px 7px; border-radius: 6px; white-space: nowrap; }
.cph-chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.cph-crit { background: rgba(255, 107, 111, .14); color: var(--crit); }
.cph-warn { background: rgba(232, 176, 74, .14); color: var(--warn); }
.cph-ok { background: rgba(63, 178, 127, .14); color: var(--ok); }
.cph-okb { background: rgba(198, 255, 61, .12); color: var(--s); }
.cph-h { margin: 9px 0 3px; font: 650 15.5px/1.25 "Inter Tight", "Inter", system-ui, sans-serif; letter-spacing: -.015em; }
.cph-src { color: var(--m); font-size: 10.5px; }
.cph-lbl { font: 500 9px/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--m); }
.cph-sec { margin: 12px 0 2px; font-weight: 600; font-size: 12px; }
.cph-note { color: var(--m); font-size: 10px; }
.cph-facts { margin: 11px 0 0; display: grid; grid-template-columns: auto 1fr; border-radius: 12px; background: var(--c); overflow: hidden; }
.cph-facts dt, .cph-facts dd { margin: 0; padding: 6.5px 10px; border-top: 1px solid rgba(255, 255, 255, .05); font-size: 10.5px; }
.cph-facts dt { color: var(--m); }
.cph-facts dd { text-align: right; overflow-wrap: anywhere; font-family: "IBM Plex Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.cph-facts dt:first-of-type, .cph-facts dd:first-of-type { border-top: 0; }
.cph-facts .cph-snzd { display: none; }
.cph-phone.is-snoozed .cph-facts .cph-snzd { display: block; }
.cph-phone.is-snoozed .cph-facts dd.cph-snzd { color: var(--s); }
.cph-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.cph-btn { position: relative; overflow: hidden; display: grid; place-items: center; height: 36px; border-radius: 12px; font-weight: 600; font-size: 11.5px; background: var(--r); color: var(--t); box-shadow: 0 0 0 1px rgba(255, 255, 255, .09) inset; transition: transform .15s; }
.cph-pri { background: var(--s); color: #0b0b0c; box-shadow: none; }
.cph-ghost { background: transparent; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset; }
.cph-wide { margin-top: 10px; }
.cph-btn.is-press { transform: scale(.96); }
.cph-btn.is-press::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: rgba(255, 255, 255, .5); animation: cph-rip .6s ease-out forwards; }
@keyframes cph-rip { from { transform: scale(0); opacity: .9; } to { transform: scale(16); opacity: 0; } }
.cph-done { display: none; align-items: center; gap: 7px; margin-top: 9px; padding: 10px; border-radius: 12px; background: rgba(198, 255, 61, .1); color: var(--s); font-weight: 600; font-size: 11.5px; }
.cph-tick { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cph-tick path { stroke-dasharray: 16; stroke-dashoffset: 16; }
.cph-rota { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--c); color: var(--m); font-size: 10.5px; }
.cph-rota.is-press { animation: cph-flash 1s ease-out; }
@keyframes cph-flash { from { background: rgba(198, 255, 61, .18); color: var(--t); } to { background: var(--c); color: var(--m); } }
.cph-phone.is-acked .cph-acts[data-act="ack"] { display: none; }
.cph-phone.is-acked .cph-done { display: flex; }
.cph-phone.is-acked .cph-tick path { animation: cph-draw .45s .1s ease-out forwards; }
.cph-phone.is-acked .cph-rota { color: var(--t); }
@keyframes cph-draw { to { stroke-dashoffset: 0; } }

/* dialogs and the snooze sheet */
.cph-dlg { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 0 20px; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .25s; }
.cph-dlg > div { width: 100%; padding: 15px; border-radius: 18px; background: #232326; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); transform: scale(.92); transition: transform .3s cubic-bezier(.2, .9, .3, 1.2); }
.cph-dlg b { display: block; font-size: 13px; }
.cph-dlg p { margin: 5px 0 12px; color: var(--m); font-size: 10.5px; }
.cph-dlg .cph-acts { margin: 0; }
.cph-phone.is-dlg-ack [data-dlg="ack"], .cph-phone.is-dlg-snz [data-dlg="snz"] { opacity: 1; }
.cph-phone.is-dlg-ack [data-dlg="ack"] > div, .cph-phone.is-dlg-snz [data-dlg="snz"] > div { transform: none; }
.cph-sheet { position: absolute; inset: 0; z-index: 4; display: flex; align-items: flex-end; background: rgba(0, 0, 0, 0); transition: background .3s; pointer-events: none; }
.cph-sheet > div { width: 100%; padding: 8px 14px 22px; border-radius: 22px 22px 0 0; background: #1c1c1e; box-shadow: 0 -12px 30px rgba(0, 0, 0, .45); transform: translate3d(0, 105%, 0); transition: transform .45s cubic-bezier(.32, .72, 0, 1); }
.cph-grab { display: block; width: 34px; height: 4px; margin: 0 auto 10px; border-radius: 3px; background: rgba(255, 255, 255, .25); }
.cph-opts { margin: 8px 0 0; padding: 0; list-style: none; border-radius: 12px; background: var(--r); overflow: hidden; }
.cph-opts li { position: relative; padding: 9px 12px; font-size: 11.5px; border-top: 1px solid rgba(255, 255, 255, .06); transition: background .2s; }
.cph-opts li:first-child { border-top: 0; }
.cph-opts li.is-sel { background: rgba(198, 255, 61, .12); color: var(--s); font-weight: 600; }
.cph-opts li.is-sel::after { content: "✓"; position: absolute; right: 12px; }
.cph-reason { margin-top: 9px; }
.cph-reason > span { color: var(--m); font-size: 10px; }
.cph-reason p { margin: 4px 0 0; min-height: 30px; display: flex; align-items: center; padding: 0 10px; border-radius: 10px; background: var(--r); box-shadow: 0 0 0 1px rgba(198, 255, 61, .35) inset; font-size: 11.5px; }
.cph-reason p i { width: 1.5px; height: 14px; margin-left: 1px; background: var(--s); animation: cph-caret 1s steps(1) infinite; }
@keyframes cph-caret { 50% { opacity: 0; } }
.cph-phone.is-sheet .cph-sheet { background: rgba(0, 0, 0, .45); }
.cph-phone.is-sheet .cph-sheet > div { transform: none; }

/* System Health */
.cph-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 7px; }
.cph-kpis div { min-width: 0; padding: 9px 10px; border-radius: 12px; background: var(--c); }
.cph-kpis span { display: block; color: var(--m); font-size: 9.5px; }
.cph-kpis b { display: block; margin-top: 4px; font: 650 18px/1 "Inter Tight", "Inter", system-ui, sans-serif; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cph-card { margin-top: 9px; padding: 10px; border-radius: 14px; background: var(--c); }
.cph-ch b { display: block; font-size: 11.5px; }
.cph-ch span { color: var(--m); font-size: 9.5px; }
.cph-tbl { margin-top: 6px; font-size: 10px; }
.cph-th, .cph-tr { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .7fr); align-items: center; gap: 4px; padding: 6px 4px; }
.cph-th { color: var(--m); font-size: 9px; }
.cph-th span:last-child, .cph-tr span:last-child { text-align: right; font-family: "IBM Plex Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.cph-tr { position: relative; border-top: 1px solid rgba(255, 255, 255, .05); }
.cph-tr span:first-child { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.cph-tr .cph-chip { font-size: 8.5px; padding: 3px 5px; }
.cph-red::before { content: ""; position: absolute; inset: 0 -4px; border-radius: 7px; background: rgba(255, 107, 111, .13); opacity: 0; transition: opacity .4s; }
.cph-red .cph-crit, .cph-red span:last-child b + b { display: none; }
.cph-phone.is-red .cph-red::before { opacity: 1; animation: cph-pulse 1.4s ease-in-out infinite; }
@keyframes cph-pulse { 50% { opacity: .45; } }
.cph-phone.is-red .cph-red .cph-ok, .cph-phone.is-red .cph-red span:last-child b:first-child { display: none; }
.cph-phone.is-red .cph-red .cph-crit { display: inline-flex; }
.cph-phone.is-red .cph-red span:last-child b + b { display: inline; color: var(--crit); }
.cph-banner { position: absolute; z-index: 7; left: 8px; right: 8px; top: 40px; padding: 10px 12px; border-radius: 18px; background: rgba(48, 49, 54, .88);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 16px 34px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .06);
  transform: translate3d(0, -150%, 0); transition: transform .6s cubic-bezier(.2, .9, .25, 1.15); }
.cph-phone.is-banner .cph-banner { transform: none; }
.cph-push-h { display: flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .62); font-size: 9.5px; letter-spacing: .02em; }
.cph-push-h img { width: 18px; height: 18px; border-radius: 5px; }
.cph-push-h span:last-child { margin-left: auto; }
.cph-push-t { margin-top: 6px; font-weight: 600; font-size: 12px; line-height: 1.3; }
.cph-push-d { color: rgba(255, 255, 255, .72); font-size: 11px; }

.cph-irow { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 7px 2px; border-top: 1px solid rgba(255, 255, 255, .05); font-size: 10px; }
.cph-irow span { color: var(--m); font-size: 9.5px; }
.cph-irow b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cph-irow .cph-chip { font-size: 8.5px; padding: 3px 5px; }
.cph-inew { display: none; }
.cph-phone.is-red .cph-inew { display: grid; animation: cph-in .45s var(--ease, ease); }
@keyframes cph-in { from { opacity: 0; transform: translate3d(0, -6px, 0); } }

/* On-call list */
.cph-pull { height: 0; display: grid; place-items: center; overflow: visible; }
.cph-pull i { width: 18px; height: 18px; margin-top: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .15); border-top-color: var(--s); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s; }
.cph-rows { margin: 0; padding: 10px 12px 0; list-style: none; display: grid; gap: 7px; transition: transform .45s cubic-bezier(.32, .72, 0, 1); }
.cph-phone.is-pull .cph-rows, .cph-phone.is-pull .cph-fresh { transform: translate3d(0, 46px, 0); }
.cph-phone.is-pull .cph-pull i { opacity: 1; transform: none; animation: cph-spin .7s linear infinite; }
@keyframes cph-spin { to { transform: rotate(360deg); } }
.cph-row { position: relative; display: grid; gap: 4px; padding: 11px 12px; border-radius: 14px; background: var(--c); transition: background .2s; }
.cph-row b { font-weight: 600; font-size: 12px; line-height: 1.3; }
.cph-row > span { color: var(--m); font-size: 10px; }
.cph-row .cph-chip { justify-self: start; }
.cph-row em { position: absolute; top: 11px; right: 12px; font-style: normal; }
.cph-row.is-press { background: #1f2022; }
.cph-fresh { margin: 10px 0 0; text-align: center; color: var(--m); font-size: 9.5px; transition: transform .45s cubic-bezier(.32, .72, 0, 1); }

/* Incident */
.cph-list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.cph-list li { display: flex; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 11px; background: var(--c); font-size: 10.5px; }
.cph-list .cph-chip { flex: none; }
.cph-list p { margin: 0; }
.cph-list small { display: block; margin-top: 2px; color: var(--m); font-size: 9.5px; }
.cph-phone.is-tl .cph-tl li.l-new2 { transition-delay: .5s; }
.cph-tl { margin: 5px 0 0 3px; padding: 0; list-style: none; border-left: 1px solid rgba(255, 255, 255, .14); }
.cph-tl li { position: relative; padding: 0 0 6px 12px; font-size: 10.5px; color: rgba(242, 242, 242, .85); }
.cph-tl li::before { content: ""; position: absolute; left: -3.5px; top: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--m); }
.cph-tl li.l-new::before { background: var(--s); box-shadow: 0 0 0 3px rgba(198, 255, 61, .2); }
.cph-tl li span { color: var(--m); font-family: "IBM Plex Mono", ui-monospace, monospace; margin-right: 6px; }
.cph-tl li.l-new { opacity: 0; transform: translate3d(0, 6px, 0); transition: opacity .45s, transform .45s var(--ease, ease); }
.cph-phone.is-tl .cph-tl li.l-new { opacity: 1; transform: none; }

/* ---------- the "ops" story (/platform) ---------- */
/* SLO board */
.cph-slo { margin-top: 6px; display: grid; gap: 5px; }
.cph-slo > div { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; padding: 8px 9px; border-radius: 10px; background: var(--r); }
.cph-slo p { margin: 0; min-width: 0; }
.cph-slo p b { display: block; font-weight: 600; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cph-slo p span { color: var(--m); font-size: 9px; }
.cph-slo em { font: 600 13px/1 "Inter Tight", "Inter", system-ui, sans-serif; font-style: normal; font-variant-numeric: tabular-nums; }
.cph-slo > div > i { grid-column: 1 / -1; display: flex; gap: 5px; font-style: normal; }
.cph-slo .cph-chip { font-size: 8.5px; padding: 3px 5px; }
.cph-burn::before { content: ""; position: absolute; inset: 0; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255, 107, 111, .5); opacity: 0; transition: opacity .4s; }
.cph-phone.is-burn .cph-burn::before { opacity: 1; animation: cph-pulse 1.4s ease-in-out infinite; }
.cph-phone.is-burn .cph-burn em { color: var(--crit); }
/* DR posture */
.cph-dr .cph-th, .cph-dr .cph-tr { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .95fr); }
.cph-dr .cph-tr span:not(:first-child) { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 9px; }
.cph-dr .cph-tr span:first-child { font-family: inherit; }
.cph-dr .cph-th span:last-child, .cph-dr .cph-tr span:last-child { text-align: right; }
.cph-dr .cph-chip { font-size: 8px; padding: 2px 4px; }
.cph-stale::before { content: ""; position: absolute; inset: 0 -4px; border-radius: 7px; background: rgba(232, 176, 74, .12); opacity: 0; transition: opacity .4s; }
.cph-phone.is-stale .cph-stale::before { opacity: 1; animation: cph-pulse 1.4s ease-in-out infinite; }
.cph-bars { margin-top: 6px; display: grid; gap: 7px; }
.cph-bars p { margin: 0; display: grid; grid-template-columns: 58px 1fr 34px; gap: 8px; align-items: center; font-size: 10px; }
.cph-bars span { color: var(--m); }
.cph-bars i { height: 6px; border-radius: 3px; background: var(--r); position: relative; overflow: hidden; }
.cph-bars i::after { content: ""; position: absolute; inset: 0; background: var(--s); transform: scaleX(var(--v)); transform-origin: 0 50%; }
.cph-bars b { text-align: right; font: 500 10px/1 "IBM Plex Mono", ui-monospace, monospace; }
/* Data Sources */
.cph-src1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 2px; border-top: 1px solid rgba(255, 255, 255, .05); }
.cph-src1:first-of-type { border-top: 0; }
.cph-src1 p { margin: 0; }
.cph-src1 b { display: block; font-size: 11.5px; }
.cph-src1 span { color: var(--m); font-size: 9.5px; }
.cph-card .cph-acts { margin: 2px 0 6px; }
.cph-btn em { font-style: normal; grid-area: 1 / 1; transition: opacity .2s; }
.cph-btn .cph-a1, .cph-btn .cph-a2 { opacity: 0; }
.cph-phone.is-test1 [data-t="test"] .cph-a0, .cph-phone.is-test2 [data-t="test"] .cph-a0, .cph-phone.is-sync1 [data-t="sync"] .cph-a0, .cph-phone.is-sync2 [data-t="sync"] .cph-a0 { opacity: 0; }
.cph-phone.is-test1 [data-t="test"] .cph-a1, .cph-phone.is-sync1 [data-t="sync"] .cph-a1, .cph-phone.is-test2 [data-t="test"] .cph-a2, .cph-phone.is-sync2 [data-t="sync"] .cph-a2 { opacity: 1; }
.cph-phone.is-test2 [data-t="test"] { color: var(--ok); }
.cph-runs .cph-th, .cph-runs .cph-tr { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, .8fr); }
.cph-newrun { display: none; }
.cph-phone.is-run .cph-newrun { display: grid; animation: cph-in .45s var(--ease, ease); }
/* Decision History */
.cph-ch2 { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.cph-dec { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; margin-top: 7px; padding: 9px 10px; border-radius: 11px; background: var(--r); }
.cph-dec p { margin: 0; }
.cph-dec p b { display: block; font: 600 10.5px/1.2 "IBM Plex Mono", ui-monospace, monospace; }
.cph-dec p span { font-size: 10.5px; color: var(--t); }
.cph-dec > .cph-chip { align-self: start; }
.cph-dec small { grid-column: 1 / -1; color: var(--m); font-size: 9.5px; }
.cph-hint { grid-column: 1 / -1; color: var(--m); font-size: 9px; font-style: normal; }
.cph-prov { grid-column: 1 / -1; display: none; margin-top: 4px; padding: 8px 9px; border-radius: 9px; background: #121214; box-shadow: inset 0 0 0 1px rgba(198, 255, 61, .2); }
.cph-prov b { font: 500 8.5px/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .06em; color: var(--s); }
.cph-prov p { margin: 5px 0 0; font-size: 10px; line-height: 1.35; }
.cph-prov p.m { color: var(--m); }
.cph-phone.is-prov [data-t="dec"] .cph-prov { display: block; animation: cph-in .4s var(--ease, ease); }
.cph-phone.is-prov [data-t="dec"] .cph-hint { display: none; }
/* As-of explorer */
.cph-field { margin-top: 8px; }
.cph-field > span { color: var(--m); font-size: 9.5px; }
.cph-field p { margin: 4px 0 0; display: flex; align-items: center; height: 32px; padding: 0 10px; border-radius: 10px; background: var(--r); font: 500 12px/1 "IBM Plex Mono", ui-monospace, monospace; }
.cph-field p i { width: 1.5px; height: 14px; margin-left: 1px; background: var(--s); opacity: 0; }
.cph-phone.is-edit .cph-field p { box-shadow: 0 0 0 1px rgba(198, 255, 61, .5) inset; }
.cph-phone.is-edit .cph-field p i { opacity: 1; animation: cph-caret 1s steps(1) infinite; }
.cph-kv .cph-th, .cph-kv .cph-tr { grid-template-columns: minmax(0, .7fr) minmax(0, 1.6fr) minmax(0, .8fr); }
.cph-kv .cph-tr span:first-child { color: var(--m); }
.cph-kv .cph-tr span:nth-child(2) { font-family: inherit; }
.cph-phone.is-then .cph-kv .cph-tr { animation: cph-in .4s var(--ease, ease); }
.cph-phone.is-then .cph-kv .cph-tr span:last-child { color: var(--s); }
.cph-showing { margin: 8px 0 0; color: var(--m); font-size: 9.5px; text-align: center; }
/* My Reports */
.cph-rep { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 2px; border-top: 1px solid rgba(255, 255, 255, .05); }
.cph-rep p { margin: 0; min-width: 0; }
.cph-rep b { display: block; font-size: 11px; }
.cph-rep span { color: var(--m); font-size: 9.5px; }
.cph-rep .cph-btn { height: 28px; padding: 0 10px; font-size: 10px; border-radius: 9px; }
.cph-pdf { position: absolute; inset: 36px 0 0; z-index: 4; padding: 14px 12px; background: #2a2b2e; transform: translate3d(0, 102%, 0); transition: transform .5s cubic-bezier(.32, .72, 0, 1); }
.cph-pdf > div { height: 100%; padding: 16px 14px; border-radius: 4px; background: #fbfbf9; color: #111; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.cph-pdf-h { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid #3f6b00; }
.cph-pdf-h b { display: block; font: 700 14px/1.2 "Inter Tight", "Inter", sans-serif; }
.cph-pdf-h span { color: #6b6b70; font-size: 9.5px; }
.cph-pdf-k { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cph-pdf-k p { margin: 0; padding: 7px; border-radius: 6px; background: #efefea; }
.cph-pdf-k span { display: block; color: #6b6b70; font-size: 8.5px; }
.cph-pdf-k b { font: 700 13px/1.2 "Inter Tight", "Inter", sans-serif; }
.cph-pdf-c { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin: 14px 0; padding: 0 4px; border-bottom: 1px solid #ddd; }
.cph-pdf-c i { flex: 1; height: 100%; background: #3f6b00; border-radius: 2px 2px 0 0; transform: scaleY(var(--h)); transform-origin: 50% 100%; opacity: .85; }
.cph-pdf-l { margin: 0; display: grid; gap: 6px; }
.cph-pdf-l i { display: block; height: 6px; border-radius: 3px; background: #e2e2dc; }
.cph-phone.is-pdf .cph-pdf { transform: none; }
.cph-pdf-s { margin: 14px 0 6px; font: 700 10px/1 "Inter", sans-serif; letter-spacing: .04em; text-transform: uppercase; color: #3f6b00; }
.cph-pdf-r { display: grid; grid-template-columns: 52px 1fr auto; gap: 6px; padding: 6px 0; border-top: 1px solid #e6e6e0; font-size: 9.5px; }
.cph-pdf-r span { font-family: "IBM Plex Mono", ui-monospace, monospace; color: #6b6b70; }
.cph-pdf-r em { font-style: normal; color: #6b6b70; }
.cph-pdf-r + .cph-pdf-l { margin-top: 10px; }

/* /platform: phone on the right, one large chapter at a time, segmented progress bar */
.cph-ops { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.cph-chaps { display: grid; }
.cph-chap { grid-area: 1 / 1; opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .45s, transform .55s var(--ease, ease); pointer-events: none; }
.cph-chap.is-on { opacity: 1; transform: none; pointer-events: auto; }
.cph-chap-n { margin: 0; font: 400 13px/1 "IBM Plex Mono", ui-monospace, monospace; color: #3f6b00; letter-spacing: .04em; }
.cph-chap h3 { margin: 14px 0 12px; font: 500 clamp(30px, 3.6vw, 48px)/1.04 "Inter Tight", "Inter", system-ui, sans-serif; letter-spacing: -.03em; color: #050609; }
.cph-chap p:last-child { margin: 0; max-width: 34ch; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; color: #5d605c; }
.cph-segs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 28px; }
.cph-segs .cph-seg { display: block; padding: 10px 0 0; border-radius: 0; background: none !important; box-shadow: none !important; }
.cph-seg .cph-prog { position: static; display: block; height: 3px; border-radius: 2px; background: rgba(5, 6, 9, .12); overflow: hidden; }
.cph-seg[aria-pressed="true"] .cph-prog i { transform: scaleX(1); }
.cph-seg.is-run .cph-prog i { transform: scaleX(1); }
.cph-seg[aria-pressed="true"]:not(.is-run) .cph-prog i { transition: none; }
.cph-seg-t { display: block; margin-top: 8px; font: 400 11px/1.3 "IBM Plex Mono", ui-monospace, monospace; color: #8b8e89; text-align: left; }
.cph-seg[aria-pressed="true"] .cph-seg-t { color: #050609; }
.cph-seg:focus-visible { outline: 2px solid #050609; outline-offset: 4px; }
.cph-ops .cph-tag { margin-left: 0; }
.cph-segs .cph-seg { overflow: visible; width: 100%; }
.cph-ops .cph-tilt { transform: rotateY(9deg) rotateX(3deg) rotateZ(-.6deg); }
.cph-ops:hover .cph-tilt { transform: rotateY(4deg) rotateX(1.5deg); }

/* Home: the measured numbers sit under the steps (compact) */
.cph-side .cpr { margin-top: 20px; padding-top: 18px; }
.cph-side .cpr-eb { margin-bottom: 10px; }
.cph-side .cpr-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cph-side .cpr-strip li { padding: 12px 12px 14px; border-radius: 14px; }
.cph-side .cpr-n { font-size: 22px; gap: 5px; }
.cph-side .cpr-m { margin-top: 6px; padding-right: 48px; font-size: 12.5px; }
.cph-side .cpr-strip .cpr-c { right: 10px; bottom: 12px; font-size: 11px; }
.cph-side .cpr-src { font-size: 11.5px; }

/* the finger: a soft touch mark where a tap lands */
.cph-touch { position: absolute; z-index: 11; left: 0; top: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .55), rgba(255, 255, 255, .18) 60%, transparent 70%); opacity: 0; transform: scale(.4); }
.cph-touch.is-on { animation: cph-tap .55s ease-out; }
@keyframes cph-tap { 0% { opacity: 0; transform: scale(1.3); } 30% { opacity: 1; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.15); } }

/* ---------- the step list beside the phone ---------- */
.cph-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.cph-step { all: unset; box-sizing: border-box; position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 1px 12px; width: 100%; padding: 13px 16px; border-radius: 16px; cursor: pointer; transition: background .3s; overflow: hidden; }
.cph-step:focus-visible { outline: 2px solid #050609; outline-offset: 2px; }
.cph-step .n { grid-row: span 2; font: 400 12px/1.6 "IBM Plex Mono", ui-monospace, monospace; color: #6b6e6a; }
.cph-step .t { font: 500 17px/1.3 "Inter Tight", "Inter", system-ui, sans-serif; letter-spacing: -.01em; color: #050609; }
.cph-step .d { color: #5d605c; font-size: 14.5px; line-height: 1.45; display: none; }
.cph-step[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 0 rgba(5, 6, 9, .08), 0 10px 28px -14px rgba(5, 6, 9, .25); }
.cph-step[aria-pressed="true"] .n { color: #3f6b00; }
.cph-step[aria-pressed="true"] .d { display: block; }
.cph-prog { position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; }
.cph-prog i { display: block; height: 100%; width: 100%; background: #3f6b00; transform: scaleX(0); transform-origin: 0 50%; }
.cph-step.is-run .cph-prog i { transition: transform var(--hold, 3s) linear; transform: scaleX(1); }
.cph-tag { margin: 16px 0 0 16px; display: flex; align-items: center; gap: 8px; font: 400 12px/1.4 "IBM Plex Mono", ui-monospace, monospace; color: #5d605c; }
.cph-tag i { width: 7px; height: 7px; border-radius: 50%; background: #3f6b00; }

/* Home (05): its own section shell (Home has no site.css) */
.cph-home { align-self: stretch; width: 100%; box-sizing: border-box; background: #f3f2ec; color: #050609; }
.cph-home-in { max-width: 1200px; margin: 0 auto; padding: clamp(64px, 8vw, 112px) 24px; }
.cph-home-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px 40px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.cph-home-eb { grid-column: 1 / -1; margin: 0; font: 400 12px/1 "Martian Mono Variable", "Martian Mono", ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; color: #62676d; }
.cph-home-eb b { font-weight: 400; color: #050609; }
.cph-home h2 { margin: 0; font: 500 clamp(36px, 5vw, 68px)/1 "Familjen Grotesk Variable", "Familjen Grotesk", sans-serif; letter-spacing: -.035em; }
.cph-home h2 .quiet { color: #8b8e89; }
.cph-home-p { margin: 0; max-width: 40ch; font: 400 clamp(17px, 1.5vw, 20px)/1.5 "Inter", system-ui, sans-serif; color: #2c3036; }

/* Measured before / after: compact strip (Home) and full table (/platform), under the phone */
.cpr { margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid rgba(5, 6, 9, .12); color: #050609; }
.cpr .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cpr-h { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 40px; align-items: end; margin-bottom: 22px; }
.cpr-eb { grid-column: 1 / -1; margin: 0; font: 400 12px/1 "Martian Mono Variable", "Martian Mono", "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; color: #62676d; }
.cpr-t { margin: 0; font: 500 clamp(24px, 2.6vw, 34px)/1.1 "Familjen Grotesk Variable", "Familjen Grotesk", "Inter Tight", sans-serif; letter-spacing: -.025em; }
.cpr-t span { color: #8b8e89; }
.cpr-l { margin: 0; color: #5d605c; font: 400 15px/1.5 "Inter", system-ui, sans-serif; }
.cpr-strip { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cpr-strip li { position: relative; padding: 16px 16px 18px; border-radius: 18px; background: #fff; box-shadow: 0 1px 0 rgba(5, 6, 9, .06); }
.cpr-n { margin: 0; display: flex; align-items: baseline; gap: 8px; font: 500 clamp(26px, 2.6vw, 34px)/1 "Inter Tight", "Inter", system-ui, sans-serif; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cpr-n > span:first-child { color: #9a9d98; text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: rgba(154, 157, 152, .7); }
.cpr-same > span:first-child { text-decoration: none; }
.cpr-n i { font-style: normal; font-size: .55em; color: #9a9d98; }
.cpr-m { margin: 10px 0 0; padding-right: 54px; color: #2c3036; font: 400 14px/1.4 "Inter", system-ui, sans-serif; }
.cpr-c { display: inline-block; padding: 4px 8px; border-radius: 99px; background: #eef7d6; color: #3f6b00; font: 500 12px/1 "IBM Plex Mono", ui-monospace, monospace; white-space: nowrap; }
.cpr-strip .cpr-c { position: absolute; right: 14px; bottom: 16px; }
.cpr-tw { overflow-x: auto; border-radius: 18px; background: #fff; }
.cpr-table { width: 100%; min-width: 560px; border-collapse: collapse; font: 400 15px/1.4 "Inter", system-ui, sans-serif; }
.cpr-table th, .cpr-table td { padding: 14px 18px; text-align: left; border-top: 1px solid rgba(5, 6, 9, .08); }
.cpr-table thead th { border-top: 0; color: #62676d; font: 400 11px/1.2 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .05em; text-transform: uppercase; }
.cpr-table tbody th { font-weight: 500; }
.cpr-table tbody th small { display: block; margin-top: 2px; color: #62676d; font-weight: 400; font-size: 13px; }
.cpr-table td { font: 500 20px/1 "Inter Tight", "Inter", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.cpr-table td:nth-child(2) { color: #9a9d98; }
.cpr-src { margin: 14px 0 0; color: #5d605c; font: 400 13px/1.5 "Inter", system-ui, sans-serif; }

@media (max-width: 860px) {
  .cph { grid-template-columns: 1fr; gap: 20px; }
  .cph-ops .cph-stage { order: -1; }
  .cph-segs { gap: 4px; margin-top: 16px; }
  .cph-tilt, .cph:hover .cph-tilt, .cph-ops .cph-tilt, .cph-ops:hover .cph-tilt { transform: none; }
  .cph-step { padding: 11px 14px; }
  .cph-step .t { font-size: 16px; }
  .cph-step .d { font-size: 14px; }
  .cph-tag { margin-left: 14px; }
  .cph-home-head { grid-template-columns: 1fr; }
  .cph-home-in { padding: 56px 16px; }
  .cpr-h { grid-template-columns: 1fr; }
  .cpr-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) { .cph-side .cpr-n { flex-wrap: nowrap; font-size: 20px; } .cph-side .cpr-same { font-size: 16px; gap: 3px; } .cpr-n { flex-wrap: wrap; font-size: 24px; gap: 4px 6px; } .cpr-strip li { padding: 14px 12px 44px; } .cpr-m { padding-right: 0; } .cpr-strip .cpr-c { left: 12px; right: auto; bottom: 14px; } }
@media (prefers-reduced-motion: reduce) {
  .cph-chap, .cph-tilt, .cph-v, .cph-v::after, .cph-banner, .cph-dlg, .cph-dlg > div, .cph-sheet, .cph-sheet > div, .cph-rows, .cph-fresh, .cph-pull i, .cph-btn, .cph-red::before, .cph-tl li.l-new, .cph-step, .cph-prog i { transition: none !important; }
  .cph-btn.is-press::after, .cph-phone.is-red .cph-inew, .cph-rota.is-press, .cph-touch.is-on, .cph-phone.is-red .cph-red::before, .cph-reason p i, .cph-phone.is-acked .cph-tick path { animation: none !important; }
  .cph-tick path { stroke-dashoffset: 0; }
}
