/* Levers 1 to 4 (ch-levers-1-4.js). Every class starts with la-. Mock pieces come from kit.css (kt-). */

/* ---------- 3D worlds: labels and side text ---------- */
.scene .la-lab { font-size: 15px; line-height: 1.25; color: #fff; transition: opacity .4s; }
.scene .la-lab.is-off { opacity: 0; }
.scene .la-lab--warm { color: #FFD2A6; }
.scene .la-lab--rose { color: #F6C3B4; }
.scene .la-lab--grey { color: #C9CED8; }
.scene .la-lab--amber { color: #FFC07F; }
.scene .la-lab--aqua { color: #B5F0E8; }
.la-w .am-note { color: rgb(255 255 255 / .86); }
.la-w .am-note.la-quiet { color: rgb(255 255 255 / .62); font-size: clamp(15px, 1.12vw, 18px); }
.scene:not(.is-active) .la-lab { transition: none; }

/* compact landscape: a narrower right-hand column keeps the 3D subject wide */
@media (max-width: 959px), (max-height: 599px) {
  .la-w .am--right { grid-template-columns: minmax(0, 1fr) minmax(0, 17em); }
  .scene .la-lab { font-size: 14px; }
  .la-w .am-note.la-quiet { font-size: 14px; }
}
@media (max-width: 759px) and (orientation: portrait) {
  .la-w .am--right { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- data visuals (l1-proof, l4-proof): stage layout; compact frames put the text beside the chart ---------- */
@media (max-width: 959px), (max-height: 599px) {
  .scene .la-dv .am--stage, .scene.la-dv .am--stage { grid-template-columns: minmax(0, .36fr) minmax(0, .64fr); grid-template-rows: auto minmax(0, 1fr); column-gap: 24px; }
  .la-dv .am--stage .am-side { grid-column: 1; grid-row: 2; }
  .la-dv .am--stage .am-vis { grid-column: 2; grid-row: 2; }
}
@media (max-width: 759px) and (orientation: portrait) {
  .scene.la-dv .am--stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); }
  .la-dv .am--stage .am-side { grid-column: 1; grid-row: 2; }
  .la-dv .am--stage .am-vis { grid-column: 1; grid-row: 3; }
}
@keyframes la-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes la-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes la-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- l1-proof: the broken release ---------- */
.la-p1__wrap { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) 0fr; row-gap: 0; transition: grid-template-rows .7s var(--ease), row-gap .7s var(--ease); }
.la-p1--b2 .la-p1__wrap { grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr); row-gap: clamp(10px, 2.4vh, 26px); }
.la-p1__chart { position: relative; min-height: 0; padding-top: 30px; }
.la-p1__plot { position: relative; height: 100%; }
.la-p1__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.la-p1__day { fill: #F6F5F2; }
.la-p1__gap { fill: #FBE9E5; }
.la-p1__grid { stroke: #ECEAE5; stroke-width: 1; vector-effect: non-scaling-stroke; }
.la-p1__ghost { stroke: #D88F80; stroke-width: 1.5; stroke-dasharray: 6 7; vector-effect: non-scaling-stroke; }
.la-p1__base { stroke: #CFCBC2; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.la-p1__tick { stroke: #CFCBC2; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.la-p1__line { fill: none; stroke: #111; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.la-p1__rel { stroke: #FF7F32; stroke-width: 2; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.la-p1__lab { position: absolute; white-space: nowrap; font-size: clamp(15px, 1.15vw, 18px); font-weight: 500; line-height: 1.25; }
.la-p1__lab--rel { color: #C4561A; padding: 2px 8px; background: #fff; border-radius: 4px; box-shadow: inset 0 0 0 1.5px rgb(255 127 50 / .5); }
.la-p1__lab--gap { color: #9A3B2E; }
.la-p1__ill { position: absolute; }
.la-p1__ill .am-tag { height: 26px; }
.la-p1--draw .is-in .la-p1__line { animation: la-draw 1.5s cubic-bezier(.45, .05, .3, 1) .2s both; }
.la-p1--draw .is-in .la-p1__gap, .la-p1--draw .is-in .la-p1__ghost { animation: la-fade .6s 1.2s both; }
.la-p1--draw .is-in .la-p1__lab--gap.is-on { animation: la-fade .6s 1.4s both; }
.la-p1__low { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(18px, 3vw, 56px); align-items: stretch; overflow: hidden; opacity: 0; transition: opacity .5s .3s; }
.la-p1--b2 .la-p1__low { opacity: 1; }
.la-p1__strip { display: grid; grid-template-rows: auto minmax(0, 1fr); row-gap: 6px; min-height: 0; }
.la-p1__sl { font-size: clamp(15px, 1.15vw, 18px); font-weight: 500; color: #9A3B2E; white-space: nowrap; }
.la-p1__dots { position: relative; min-height: 0; }
.la-p1__cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.la-p1__fig { display: grid; align-content: center; justify-items: start; gap: 4px; min-width: 0; }
.la-p1__rule { display: block; width: 56px; height: 3px; border-radius: 2px; background: #C2463A; margin-bottom: 8px; }
.la-p1__fig b { font-size: clamp(36px, 5vw, 84px); line-height: .95; font-weight: 500; letter-spacing: -.035em; color: #B5483A; font-variant-numeric: tabular-nums; }
.la-p1__fig span { font-size: clamp(16px, 1.4vw, 22px); font-weight: 500; color: var(--s-fg); }
@media (max-width: 959px), (max-height: 599px) {
  .la-p1__lab, .la-p1__sl { font-size: 14px; }
  .la-p1__chart { padding-top: 30px; }
  .la-p1--b2 .la-p1__wrap { grid-template-rows: minmax(0, 1fr) minmax(0, 1.1fr); }
  .la-p1__fig b { font-size: clamp(30px, 4.4vw, 44px); }
  .la-p1__fig span { font-size: 15px; }
}
@media (max-width: 759px) and (orientation: portrait) {
  .la-p1__low { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); row-gap: 6px; }
  .la-p1__fig { grid-row: 1; grid-template-columns: auto auto; align-items: baseline; justify-content: start; column-gap: 8px; }
  .la-p1__rule { display: none; }
  .la-p1__fig b { font-size: 30px; }
}

/* ---------- mocks: shared stage ---------- */
.la-mk .am-vis { min-height: 0; }
.la-mk__stage { position: absolute; inset: 0; display: grid; align-content: start; justify-items: stretch; }
.la-mk__stage > * { width: 100%; max-width: 680px; max-height: 100%; }
@keyframes la-grow { from { clip-path: inset(0 100% 0 0); } }
@keyframes la-pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

/* ---------- l1-how: the morning tracking check (Slack) ---------- */
.la-mk .kt-sl__head { display: none; }
.la-mk .kt-sl__feed { padding-top: calc(16px * var(--kt, 1)); }
@media (max-height: 760px) { .la-h1__f.is-ok { display: none; } }
.la-h1__msg { align-items: start; }
.la-h1__card { padding: 0; background: transparent; box-shadow: none; perspective: 1400px; margin-top: 6px; }
.la-h1__flip { display: grid; transform-style: preserve-3d; transition: transform .75s var(--ease); }
.la-h1--b2 .la-h1__flip { transform: rotateY(180deg); }
.la-h1__face { grid-area: 1 / 1; display: grid; align-content: start; gap: calc(12px * var(--kt, 1)); padding: calc(14px * var(--kt, 1)) calc(16px * var(--kt, 1)); border-radius: 10px; background: #FBFAF8; box-shadow: inset 3px 0 0 #2B5D8C, inset 0 0 0 1px #ECEAE4; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.la-h1__face--b { transform: rotateY(180deg); box-shadow: inset 3px 0 0 #C2463A, inset 0 0 0 1px #ECEAE4; visibility: hidden; }
.la-h1--b2 .la-h1__face--a { visibility: hidden; transition: visibility 0s .3s; }
.la-h1--b2 .la-h1__face--b { visibility: inherit; transition: visibility 0s .3s; }
.la-h1__hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.la-h1__hd b { font-size: calc(18px * var(--kt, 1)); font-weight: 700; }
.la-h1__rows { position: relative; display: grid; gap: calc(12px * var(--kt, 1)); padding-right: 22px; }
.la-h1__r { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 10px; row-gap: 6px; }
.la-h1__n { grid-column: 1; min-width: 0; font-weight: 500; }
.la-h1__v { grid-column: 2; font-weight: 700; font-variant-numeric: tabular-nums; }
.la-h1__d { grid-column: 3; }
.la-h1__d--none { width: 0; }
.la-hb { grid-column: 1 / -1; grid-row: 2; position: relative; display: block; height: calc(18px * var(--kt, 1)); border-radius: 3px; --dot: #111; }
.la-hb i { position: absolute; inset: 0; width: calc(var(--v) * 100%); background: radial-gradient(circle, var(--dot) 1.7px, transparent 2.1px) 0 0 / 5px 5px; }
.la-hb--lilac { --dot: #9E86D6; }
.la-hb--blue { --dot: #3F7FE8; }
.la-h1__br { position: absolute; right: 0; width: 12px; border: 2px solid #C2463A; border-left: 0; border-radius: 0 5px 5px 0; }
.la-h1__list { display: grid; gap: calc(8px * var(--kt, 1)); }
.la-h1__f { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; gap: 10px; min-height: calc(36px * var(--kt, 1)); padding: 0 10px; border-radius: 8px; }
.la-h1__f.is-flag { background: var(--kt-rose-l); color: #7A2A20; font-weight: 500; }
.la-h1__fi { color: #C2463A; }
.la-h1__oi { color: var(--kt-green); }
.la-h1__f.is-ok { opacity: .8; }
.la-anim .is-in .la-h1__face--a .la-hb i { animation: la-grow 1.1s var(--ease) both; }
.la-anim .is-in .la-h1__r:nth-child(2) .la-hb i { animation-delay: .15s; }
.la-anim .is-in .la-h1__r:nth-child(3) .la-hb i { animation-delay: .3s; }
.la-anim .is-in .la-h1__face--a .la-h1__d { animation: la-pop .4s var(--ease-pop) 1.2s both; }
.la-anim .is-in .la-h1__face--a .la-h1__br { animation: la-fade .4s 1.5s both; }
.la-anim .is-in .la-h1__msg { animation: la-rise .5s var(--ease) both; }
.la-anim.la-h1--b2 .is-in .la-h1__msg { animation: none; }
.la-anim.la-h1--b2 .is-in .la-h1__face--b .la-h1__f { animation: la-rise .45s var(--ease) both; }
.la-anim.la-h1--b2 .is-in .la-h1__face--b .la-h1__f:nth-child(1) { animation-delay: .55s; }
.la-anim.la-h1--b2 .is-in .la-h1__face--b .la-h1__f:nth-child(2) { animation-delay: .7s; }
.la-anim.la-h1--b2 .is-in .la-h1__face--b .la-h1__f:nth-child(3) { animation-delay: .85s; }
.la-anim.la-h1--b2 .is-in .la-h1__face--b .la-h1__f:nth-child(4) { animation-delay: 1s; }
.la-anim.la-h1--b2 .is-in .la-h1__face--b .la-h1__f:nth-child(5) { animation-delay: 1.15s; }
@media (prefers-reduced-motion: reduce) { .la-h1__flip { transition: none; } }
@media (max-width: 959px), (max-height: 599px) {
  .la-mk .kt-sl__head { display: none; }
  .la-mk .kt-sl__feed { padding-top: 10px; }
  .la-h1__f.is-ok { display: none; }
  .la-h1__face { padding: 10px 12px; gap: 8px; }
  .la-h1__hd b { font-size: 16px; }
}
@media (max-width: 959px) and (min-aspect-ratio: 1/1), (max-height: 599px) and (min-aspect-ratio: 1/1) {
  .la-h1__rows { gap: 8px; }
  .la-h1__r { grid-template-columns: 10.9em minmax(30px, 1fr) 2.3em 4.1em; column-gap: 8px; }
  .la-h1__r .la-hb { grid-column: 2; grid-row: 1; }
  .la-h1__n { grid-column: 1; grid-row: 1; }
  .la-h1__v { grid-column: 3; grid-row: 1; }
  .la-h1__d { grid-column: 4; grid-row: 1; }
  .la-h1__hd .kt-ex { height: 22px; }
}
@media (max-width: 759px) and (orientation: portrait) {
  .la-h1__rows { gap: 8px; }
  .la-mk .kt-sl__msg { grid-template-columns: minmax(0, 1fr); }
  .la-mk .kt-sl__av { display: none; }
}
@media (max-height: 439px) {
  .la-mk .kt-sl__bar, .la-mk .kt-doc__bar .kt-dots { display: none; }
  .la-mk .kt-sl__feed { padding: 6px 8px; }
  .la-h1 .kt-sl__mh, .la-h1 .kt-sl__av { display: none; }
  .la-h1 .kt-sl__msg { grid-template-columns: minmax(0, 1fr); }
  .la-h1__card { margin-top: 0; }
  .la-h1__face { padding: 8px 10px; gap: 6px; }
  .la-h1__rows, .la-h1__list { gap: 4px; }
  .la-h1__f { min-height: 26px; }
  .la-h1__n { white-space: nowrap; }
}

/* ---------- 3D worlds: quotes and the Example tag in the side text ---------- */
.la-w .am-note.la-quote { color: #fff; font-weight: 500; }
.la-ex { display: flex; }
.la-w .la-ex .am-tag { background: rgb(255 255 255 / .08); color: rgb(255 255 255 / .85); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22); }
.la-srcrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.la-w .la-srcrow .am-tag { background: rgb(255 255 255 / .08); color: rgb(255 255 255 / .85); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22); }
@media (max-width: 959px), (max-height: 599px) {
  .la-w2 .am--full .am-side { max-width: 22em; gap: 6px; }
}

/* ---------- document mocks (l2-how, l4-how) ---------- */
.la-doc .kt-doc__bar { padding-right: 10px; }
.la-doc__ex { margin-left: auto; }
.la-doc__ex2 { display: none; }
.la-doc .kt-doc__body { padding-top: calc(18px * var(--kt, 1)); padding-bottom: calc(18px * var(--kt, 1)); }
.la-doc .kt-doc__ln { font-size: calc(18px * var(--kt, 1)); min-height: calc(40px * var(--kt, 1)); padding-right: 8px; }
.la-doc .kt-doc__tx { white-space: normal; }
.la-h2__col { display: grid; gap: 14px; align-content: start; }
.la-run { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: #FAF9F5; box-shadow: 0 0 0 1px #E6E2D8, 0 10px 24px -18px rgb(60 40 20 / .4); font-family: var(--font-sans); opacity: 0; transform: translateY(-10px); transition: opacity .45s var(--ease), transform .45s var(--ease); justify-self: start; }
.la-run__logo { width: 22px; height: 22px; }
.la-run .kt-cl__tool { font-size: 15px; color: var(--kt-ink); }
.la-h2--b2 .la-run { opacity: 1; transform: none; }
.la-h2:not(.la-h2--b2) .la-run { visibility: hidden; }
@media (min-height: 440px) {
  .la-h2__col { gap: 0; }
  .la-run { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; overflow: hidden; transition: opacity .45s var(--ease), transform .45s var(--ease), max-height .45s var(--ease), padding .45s var(--ease), margin .45s var(--ease); }
  .la-h2--b2 .la-run { max-height: 64px; padding-top: 8px; padding-bottom: 8px; margin-bottom: 14px; overflow: visible; }
}
.la-h2 .kt-doc__ln.is-hot { background: #FFE9D8; box-shadow: inset 3px 0 0 #FF7F32; }

/* ---------- l3-how: Claude's tool permissions, the approval card and the connector list ---------- */
.la-h3__win { max-width: 640px; }
.la-h3__win .kt-cl__view { justify-content: flex-start; }
.la-h3__panel { gap: 2px; }
.la-h3__pn { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-weight: 500; }
.la-h3__ic { width: 28px; height: 28px; border-radius: 7px; background: #F1EEE6; color: #6b6a66; }
.la-h3__need { transition: background .4s, color .4s, box-shadow .4s; }
.la-h3__need.kt-pill--orange { box-shadow: 0 0 0 3px rgb(255 127 50 / .14); }
.la-h3__chat { display: grid; gap: calc(14px * var(--kt, 1)); }
.la-h3__u { justify-self: end; }
.la-h3__bars { display: grid; gap: 9px; width: 100%; padding: 6px 0 2px; }
.la-h3 .kt-ap { width: 100%; box-shadow: inset 0 0 0 1.5px #F2B48C, 0 12px 28px -16px rgb(255 127 50 / .45); }
.la-h3__logo { width: 28px; height: 28px; border-radius: 7px; object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px #ECE8DF; padding: 3px; }
.la-h3__logo--mail { display: inline-grid; place-items: center; color: #C5221F; padding: 0; }
.la-h3__off { margin-left: 2px; }
.la-h3__cr.is-off .la-h3__pn > span:not(.la-h3__logo) { color: #8d8b85; }
.la-h3__exrow { display: flex; justify-content: flex-end; }

/* ---------- l4-how: the rules file, then the morning proposal in Slack ---------- */
.la-h4__stage { grid-template-areas: "w"; }
.la-h4__stage > * { grid-area: w; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.la-h4__sl { opacity: 0; transform: translateY(16px); visibility: hidden; }
.la-h4--b2 .la-h4__sl { opacity: 1; transform: none; visibility: inherit; }
.la-h4--b2 .la-h4__doc { opacity: 0; transform: translateY(-12px) scale(.97); visibility: hidden; transition: opacity .4s, transform .4s, visibility 0s .4s; }
.la-h4__prop { gap: 12px; padding: 12px 14px; }
.la-h4__pt { margin: 0; font-weight: 500; font-size: calc(17px * var(--kt, 1)); line-height: 1.4; }
.la-h4__acts { align-items: center; justify-content: space-between; }
@media (max-width: 959px), (max-height: 599px) {
  .la-doc .kt-doc__ln { font-size: 15px; min-height: 30px; }
  .la-doc .kt-doc__body { padding: 8px 10px; }
  .la-h2__col { gap: 8px; }
  .la-run { padding: 5px 10px; }
  .la-h3__ic, .la-h3__logo { width: 24px; height: 24px; }
  .la-h4__pt { font-size: 15px; }
  .la-h4__prop { padding: 10px; gap: 8px; }
}
@media (max-height: 439px) {
  .la-doc .kt-doc__bar { height: 26px; }
  .la-doc .kt-doc__ln { min-height: 26px; }
  .la-h3 .kt-cl__bar { display: none; }
  .la-h3 .kt-cl__prow { min-height: 34px; }
  .la-h3 .kt-cl__ph { padding: 4px 10px 2px; }
  .la-h3__u { display: none; }
  .la-h3 .kt-cl__view { padding: 6px 10px; gap: 4px; }
  .la-h3 .kt-cl__panel { padding: 3px 6px; }
  .la-h3 .la-h3__cr { min-height: 30px; }
  .la-h3 .kt-cl__tog { transform: scale(.9); }
}
/* line numbers are the editor's gutter, not words */
.la-doc .kt-doc__no { opacity: .18; }
@media (min-width: 1200px) and (min-height: 760px) {
  .la-mk__stage { --kt: 1.16; }
  .la-mk__stage > * { max-width: 720px; }
  .la-mk__stage .kt-sl, .la-mk__stage .kt-cl, .la-mk__stage .kt-doc, .la-mk__stage .kt-ap { font-size: calc(16px * var(--kt)); }
  .la-mk__stage .kt-cl__ph { font-size: 19px; }
  .la-mk__stage .kt-pill { font-size: 15px; }
  .la-mk__stage .kt-btn { font-size: 16px; }
}
@media (max-height: 439px) {
  .la-h2__col { position: relative; }
  .la-h2 .la-run { position: absolute; right: 8px; top: 1px; z-index: 2; padding: 0; background: none; box-shadow: none; }
  .la-h2 .la-run .kt-cl__tool { padding: 2px 8px; }
  .la-h2 .la-run__logo { display: none; }
  .la-h2 .kt-doc__ln:nth-child(5) { display: none; }
  .la-h2 .kt-doc__body { position: relative; }
  .la-h2--b2 .la-doc__ex { display: none; }
  .la-h2--b2 .la-doc__ex2 { display: inline-flex; position: absolute; right: 10px; bottom: 6px; }
  .la-doc .kt-doc__ln { min-height: 22px; }
  .la-doc .kt-doc__body { padding-top: 4px; }
}

/* ---------- l4-proof: three rulebooks on one chart ---------- */
.la-srcrow--paper .am-tag { box-shadow: inset 0 0 0 1px var(--s-line); }
.la-p4__wrap { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) clamp(150px, 19%, 250px); column-gap: clamp(18px, 3vw, 56px); }
.la-p4__main { position: relative; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) 0fr; row-gap: 0; transition: grid-template-rows .7s var(--ease), row-gap .7s var(--ease); }
.la-p4--b2 .la-p4__main { grid-template-rows: minmax(0, 1.2fr) minmax(0, 1fr); row-gap: clamp(12px, 2.6vh, 30px); }
.la-p4__plot { position: relative; min-height: 0; margin: 30px 0 24px; }
.la-p4__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: opacity .5s; }
.la-p4--b2 .la-p4__svg, .la-p4--b2 .la-p4__dot, .la-p4--b2 .la-p4__pause { opacity: .4; }
.la-p4__tick { stroke: #CFCBC2; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.la-p4__base { stroke: #CFCBC2; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.la-p4__rule { stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.la-p4__rule--t { stroke: #8E8A82; stroke-width: 1.5; stroke-dasharray: 4 6; }
.la-p4__rule--b { stroke: #9E86D6; }
.la-p4__rule--i { stroke: #C2463A; }
.la-p4__cost { fill: none; stroke: #111; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.la-p4__dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #111; box-shadow: 0 0 0 3px #fff; }
.la-p4__pause { position: absolute; display: grid; grid-auto-flow: column; gap: 4px; place-content: center; width: 30px; height: 30px; border-radius: 50%; background: #C2463A; box-shadow: 0 0 0 4px #fff, 0 0 0 7px rgb(194 70 58 / .25); }
.la-p4__pause i { width: 4px; height: 12px; border-radius: 1px; background: #fff; }
.la-p4__labs { position: absolute; inset: 0; pointer-events: none; }
.la-p4__lab { position: absolute; white-space: nowrap; font-size: clamp(15px, 1.15vw, 18px); font-weight: 500; line-height: 1.25; }
.la-p4__lab--t { color: #6E6A62; }
.la-p4__lab--b { color: #6E58B0; }
.la-p4__lab--i { color: #A93A2F; }
.la-p4__lab--z { position: static; white-space: normal; color: #A93A2F; max-width: 15em; }
.la-p4__gauge { display: grid; align-content: center; justify-items: start; gap: 10px; min-width: 0; padding-bottom: 24px; transition: opacity .5s; }
.la-p4--b2 .la-p4__gauge { opacity: .35; }
.la-p4__gsvg { width: 100%; max-width: 200px; height: auto; overflow: visible; }
.la-p4__arc { fill: none; stroke: #E6E3DC; stroke-width: 14; }
.la-p4__arc--2 { stroke: #D7D2C8; }
.la-p4__arc--3 { stroke: #EDB8AD; }
.la-p4__needle { stroke: #111; stroke-width: 4; stroke-linecap: round; transform-origin: 100px 104px; transform: rotate(30deg); }
.la-p4__hub { fill: #111; }
.la-p4__track { position: relative; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); row-gap: 6px; overflow: hidden; opacity: 0; transition: opacity .4s .25s; }
.la-p4--b2 .la-p4__track { opacity: 1; }
.la-p4__tl { font-size: clamp(15px, 1.15vw, 18px); font-weight: 500; color: var(--s-fg); }
.la-p4__bars { position: relative; min-height: 0; border-bottom: 1.5px solid #CFCBC2; }
.la-p4__col { position: absolute; bottom: 0; width: 4.6%; height: calc(var(--v) * 74%); transform: translateX(-50%); }
.la-p4__col i { position: absolute; inset: 0; background: radial-gradient(circle, #FF7F32 1.8px, transparent 2.2px) 0 0 / 6px 6px; }
.la-p4__col.is-paused i { background-image: radial-gradient(circle, #B9B4AC 1.8px, transparent 2.2px); }
.la-p4__up { position: absolute; transform: translateX(-50%); font-size: clamp(15px, 1.1vw, 17px); font-weight: 700; color: #C4561A; white-space: nowrap; font-variant-numeric: tabular-nums; }
.la-anim:not(.la-p4--b2) .is-in .la-p4__rule { animation: la-draw .8s cubic-bezier(.45, .05, .3, 1) both; }
.la-anim:not(.la-p4--b2) .is-in .la-p4__rule--b { animation-delay: .15s; }
.la-anim:not(.la-p4--b2) .is-in .la-p4__rule--i { animation-delay: .3s; }
.la-anim:not(.la-p4--b2) .is-in .la-p4__lab:not(.la-p4__lab--w) { animation: la-fade .5s .5s both; }
.la-anim:not(.la-p4--b2) .is-in .la-p4__cost { animation: la-draw 1.3s cubic-bezier(.4, 0, .4, 1) .8s both; }
.la-anim:not(.la-p4--b2) .is-in .la-p4__dot { animation: la-pop .3s var(--ease-pop) both; animation-delay: calc(.8s + var(--i) * .118s); }
.la-anim:not(.la-p4--b2) .is-in .la-p4__pause { animation: la-pop .45s var(--ease-pop) 2.1s both; }
.la-anim:not(.la-p4--b2) .is-in .la-p4__needle { animation: la-needle 1s var(--ease) .4s both; }
@keyframes la-needle { from { transform: rotate(-90deg); } }
.la-anim.la-p4--b2 .is-in .la-p4__col i { animation: la-up .5s var(--ease) both; animation-delay: calc(.3s + var(--i) * .09s); }
@keyframes la-up { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.la-anim.la-p4--b2 .is-in .la-p4__up { animation: la-pop .4s var(--ease-pop) both; animation-delay: calc(.75s + var(--k) * .27s); }
@media (max-width: 959px), (max-height: 599px) {
  .la-p4__lab, .la-p4__tl, .la-p4__up { font-size: 14px; }
  .la-p4__wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; row-gap: 4px; }
  .la-p4__gauge { grid-template-columns: 54px minmax(0, 1fr); align-items: center; column-gap: 10px; padding-bottom: 0; }
  .la-p4__gsvg { width: 54px; }
  .la-p4__plot { margin: 24px 0 16px; }
  .la-p4__pause { width: 24px; height: 24px; }
  .la-p4__pause i { height: 10px; width: 3px; }
  .la-p4__lab--z { max-width: none; }
  .la-p4__gauge { gap: 4px; }
}
@media (max-width: 759px) and (orientation: portrait) {
  .la-p4__wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; row-gap: 6px; }
  .la-p4__gauge { grid-template-columns: 64px minmax(0, 1fr); align-items: center; column-gap: 10px; padding-bottom: 0; }
  .la-p4__gsvg { width: 64px; }
}
.la-p4__lab--b, .la-p4__lab--i { padding: 0 5px; margin-left: -5px; border-radius: 3px; background: rgb(255 255 255 / .92); }
.la-p4__lab--t { padding: 0 2px; background: rgb(255 255 255 / .92); }
@media (max-width: 959px), (max-height: 599px) {
  .la-p4__dot { width: 7px; height: 7px; box-shadow: 0 0 0 2px #fff; }
}

/* ---------- audit fixes (28 Nov) ---------- */
.la-p1__chart { padding-bottom: 26px; }
.la-p1__lab--ax { color: var(--s-muted); font-size: 15px; padding-top: 4px; }
.la-p1__lab--exp { color: #B5483A; font-size: 15px; }
@media (max-width: 959px), (max-height: 599px) { .la-p1__lab--ax, .la-p1__lab--exp { font-size: 14px; } .la-p1__chart { padding-bottom: 22px; } }
.la-lead { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.la-lead line { stroke: rgb(255 255 255 / .55); stroke-width: 1.2; transition: opacity .3s; }
/* l2-how and l4-how: a fuller editor that fills the frame, with a file tree; the Claude run strip shows in both beats */
.la-h2__col { height: 100%; grid-template-rows: auto minmax(0, 1fr); }
.la-h2:not(.la-h2--b2) .la-run { visibility: inherit; }
.la-h2 .la-run { opacity: 1; transform: none; }
.la-doc--ed { height: 100%; min-height: 0; }
.la-ed { display: grid; grid-template-columns: minmax(110px, .3fr) minmax(0, 1fr); min-height: 0; }
.la-tree { display: grid; align-content: start; gap: 4px; padding: calc(16px * var(--kt, 1)) 10px; background: #FAF9F6; border-right: 1px solid #ECEAE4; }
.la-tree__r { display: flex; align-items: center; gap: 8px; min-height: calc(30px * var(--kt, 1)); padding: 0 8px; border-radius: 6px; color: #9a978f; }
.la-tree__r.is-on { background: #FFF1E6; box-shadow: inset 2px 0 0 #FF7F32; color: #B4501A; }
.la-tree__r--dir { color: #6c6a64; }
@media (min-height: 440px) {
  .la-h2 .la-run { max-height: 64px; padding-top: 8px; padding-bottom: 8px; margin-bottom: 14px; overflow: visible; }
}
@media (max-width: 959px), (max-height: 599px) {
  .la-ed { grid-template-columns: minmax(0, 1fr); }
  .la-tree { display: none; }
  .la-doc--ed .kt-doc__ln:nth-child(n+6) { display: none; }
}
@media (max-width: 759px) and (orientation: portrait) { .la-doc--ed { height: auto; } .la-h2__col { height: auto; } }
.la-h4__stage { height: 100%; align-content: stretch; }
.la-h4__doc { align-self: stretch; }
.la-h4__sl { align-self: start; }
.la-h4__why { margin: 0; color: var(--kt-mut); }
.la-h4__acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.la-h4__link { color: #1264A3; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 759px) and (orientation: portrait) { .la-h4__stage { height: auto; } }
.la-h3__u { max-width: 92%; }
.la-h3__u .kt-cl__ub { font-weight: 500; }
@media (max-height: 439px) { .la-h3__u { display: block; } .la-h3__u .kt-cl__ub { padding: 5px 10px; } .la-h3__chat { gap: 6px; } }
/* l4-why: the marble colours, explained */
.la-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.la-legend span { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: rgb(255 255 255 / .9); }
.la-legend i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset -2px -2px 3px rgb(0 0 0 / .35), 0 0 8px var(--c); background: var(--c); }
@media (max-width: 959px), (max-height: 599px) { .la-legend span { font-size: 14px; } }
/* l4-proof: the winner line (beat 2) and both rule labels above their lines */
.la-p4__win { fill: none; stroke: #1F8A78; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.la-p4--b2 .la-p4__win { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s cubic-bezier(.4, 0, .4, 1) .2s, opacity .2s; }
.la-p4__lab--w { color: #1F6E64; font-weight: 700; padding: 0 4px; background: rgb(255 255 255 / .92); border-radius: 3px; }
.la-p4--b2 .la-p4__svg { opacity: 1; }
.la-p4--b2 .la-p4__cost, .la-p4--b2 .la-p4__rule, .la-p4--b2 .la-p4__tick, .la-p4--b2 .la-p4__dot, .la-p4--b2 .la-p4__pause { opacity: .35; }
@media (max-width: 959px), (max-height: 599px) {
  .la-p4__lab--b, .la-p4__lab--i { line-height: 1.1; padding: 0 3px; }
}
@media (max-height: 439px) {
  .la-p4__plot { margin: 20px 0 10px; }
  .la-p4__gsvg { width: 40px; }
  .la-p4__gauge { grid-template-columns: 40px minmax(0, 1fr); }
}
.la-h1 .kt-sl__mh { display: none; }
@media (max-height: 439px) {
  .la-h2 .la-doc__ex { display: none; }
  .la-h2 .la-doc__ex2 { display: inline-flex; position: absolute; right: 10px; bottom: 6px; }
}
.la-h2__stage { height: 100%; align-content: stretch; }
.la-h2__stage > .la-h2__col { max-height: 100%; }
@media (max-width: 759px) and (orientation: portrait) { .la-h2__stage { height: auto; align-content: start; } }
@media (max-width: 959px), (max-height: 599px) {
  .la-p4__lab--i { white-space: normal; max-width: 46%; }
  .la-p4__plot { margin-top: 34px; }
}
.la-h2__col > .kt-doc, .la-h2__col .la-ed { min-height: 0; overflow: hidden; }
@media (max-height: 720px) { .la-doc--ed .kt-doc__ln:nth-child(n+6) { display: none; } }
/* l4-how: the editor is sized to its three rules (no placeholder rows) */
.la-h4__stage { height: auto; align-content: start; }
.la-h4__doc.la-doc--ed { height: auto; align-self: start; }
