/* Levers 4 to 7 (ch-levers-4-7.js). Every class starts with pb-. Mock pieces come from kit.css (pk-), layout from scenes.css (ps-).
 * End states are the default styles; .is-go starts the entry animations, .is-instant (deep link back, reduced motion) skips them. */

/* ---------- shared ---------- */
.pb-w .ps-stack, .pb-data .ps-stack, .pb-term .ps-stack, .pb-web .ps-stack { display: grid; }
.pb-w .ps-stack__i, .pb-data .ps-stack__i, .pb-term .ps-stack__i, .pb-web .ps-stack__i { display: grid; gap: 8px; align-content: start; }
.pb-w .ps-note { color: rgb(255 255 255 / .86); }
.scene .pb-lab { font-size: 15px; line-height: 1.25; }
.pb-lead line { stroke: rgb(255 255 255 / .5); stroke-width: 1; }
/* pieces of a visual that belong to another beat take no room */
.pb-data .ps-vis [data-show]:not(.is-on), .pb-data .ps-vis [data-hide]:not(.is-on),
.pb-term .ps-vis [data-show]:not(.is-on), .pb-term .ps-vis [data-hide]:not(.is-on),
.pb-web .ps-vis [data-show]:not(.is-on), .pb-web .ps-vis [data-hide]:not(.is-on) { display: none !important; }
@keyframes pb-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pb-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pb-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes pb-up { from { transform: scaleY(0); } to { transform: none; } }
@keyframes pb-slide { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.is-instant, .is-instant * { animation: none !important; }

/* ---------- l4-proof: the daily clicks line ---------- */
.pb-cl { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 14px; }
.pb-cl__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pb-cl__title { font-size: clamp(16px, 1.3vw, 19px); font-weight: 500; color: var(--s-fg); }
.pb-cl__plot { position: relative; min-height: 0; }
.pb-cl__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pb-cl__grid line { stroke: #ECEAE6; stroke-width: 1; }
.pb-cl__grid line.is-base { stroke: #CFCBC4; stroke-width: 1.5; }
.pb-cl__line { fill: none; stroke: #111; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.pb-cl__line--b { stroke: var(--cta); }
.pb-cl:not([data-beat="1"]) .pb-cl__line--b, .pb-cl:not([data-beat="1"]) .pb-cl__end { visibility: hidden; }
.pb-cl[data-beat="1"] .pb-cl__mk { opacity: .45; }
.pb-cl__mk { stroke: var(--c-rose-d); stroke-width: 1.6; stroke-dasharray: 4 5; }
.pb-cl__drop { fill: var(--c-rose-d); }
.pb-cl__end { fill: var(--cta); stroke: #fff; stroke-width: 2.5; }
.pb-cl__l { position: absolute; left: 0; top: 0; font-size: clamp(15px, 1.15vw, 18px); font-weight: 500; line-height: 1.25; white-space: nowrap; color: var(--s-fg); font-variant-numeric: tabular-nums; }
.pb-cl__l--rose { color: var(--c-rose-t); }
.pb-cl__l--o { color: #C4561A; }
.pb-cl__flag { position: absolute; left: 0; top: 0; color: var(--c-rose-d); transition: color .7s var(--ease) .3s; }
.pb-cl[data-beat="1"] .pb-cl__flag { color: var(--c-aqua-d); }
.pb-cl.is-go[data-beat="0"] .pb-cl__line:not(.pb-cl__line--b) { animation: pb-draw 1.5s cubic-bezier(.45, .05, .3, 1) both; }
.pb-cl.is-go[data-beat="0"] .pb-cl__l:not(.pb-cl__l--rose) { animation: pb-in .5s var(--ease) .2s both; }
.pb-cl.is-go[data-beat="0"] .pb-cl__mk, .pb-cl.is-go[data-beat="0"] .pb-cl__drop { animation: pb-fade .4s 1s both; }
.pb-cl.is-go[data-beat="0"] .pb-cl__l--rose { animation: pb-in .5s var(--ease) 1.05s both; }
.pb-cl.is-go[data-beat="0"] .pb-cl__flag { animation: pb-pop .45s var(--ease) both; }
.pb-cl.is-go[data-beat="0"] .pb-cl__flag:nth-of-type(1) { animation-delay: 1.3s; }
.pb-cl.is-go[data-beat="0"] .pb-cl__flag:nth-of-type(2) { animation-delay: 1.45s; }
.pb-cl.is-go[data-beat="0"] .pb-cl__flag:nth-of-type(3) { animation-delay: 1.6s; }
.pb-cl.is-go[data-beat="1"] .pb-cl__line--b { animation: pb-draw 1.5s cubic-bezier(.45, .05, .3, 1) .2s both; }
.pb-cl.is-go[data-beat="1"] .pb-cl__end, .pb-cl.is-go[data-beat="1"] .pb-cl__l--o { animation: pb-pop .45s var(--ease) 1.6s both; }

/* ---------- l6-proof: 100 tiles and the timeline ---------- */
.pb-tl { position: absolute; inset: 0; }
.pb-tl__top { position: absolute; left: 0; right: 0; top: 0; height: 100%; container-type: size; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); transition: height .7s var(--ease); }
.pb-tl[data-beat="1"] .pb-tl__top { height: 32%; align-items: flex-start; }
.pb-tl__grid { flex: none; width: min(100cqh, 100cqw - 250px); aspect-ratio: 1; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 7%; gap: min(1.2cqh, 1.2cqw); }
.pb-tl[data-beat="1"] .pb-tl__grid { width: min(100cqh, 100cqw); }
.pb-tl__t { position: relative; border-radius: 3px; background: #F6F5F2; box-shadow: inset 0 0 0 1.5px #C9C4BB; }
.pb-tl__t:not(.is-idx) { background: #F6F5F2 radial-gradient(circle, #C9C4BB 1px, transparent 1.4px) 0 0 / 5px 5px; box-shadow: none; outline: 1.5px dotted #B4AEA4; outline-offset: -1.5px; }
.pb-tl__t.is-idx { background: #FFC9A6; box-shadow: inset 0 0 0 1.5px var(--cta); }
.pb-tl__t.is-idx::before { content: ""; position: absolute; left: 18%; right: 18%; top: 20%; height: 14%; border-radius: 1px; background: var(--cta); }
.pb-tl.is-go[data-beat="0"] .pb-tl__t { animation: pb-pop .4s var(--ease) var(--d) both; }
.pb-tl.is-go[data-beat="0"] .pb-tl__t.is-idx { animation: pb-pop .4s var(--ease) var(--d) both, pb-idx .5s var(--ease) calc(var(--d) + .9s) both; }
@keyframes pb-idx { from { background: #F6F5F2; box-shadow: inset 0 0 0 1.5px #C9C4BB; } to { background: #FFC9A6; box-shadow: inset 0 0 0 1.5px var(--cta); } }
.pb-tl__leg { display: grid; gap: 14px; min-width: 0; }
.pb-tl__li { display: flex; align-items: center; gap: 10px; font-size: clamp(15px, 1.25vw, 19px); font-weight: 500; line-height: 1.3; color: var(--s-fg); font-variant-numeric: tabular-nums; }
.pb-tl__li i { flex: none; width: 16px; height: 16px; border-radius: 3px; }
.pb-tl__li--all i { background: linear-gradient(135deg, #FFC9A6 50%, #F6F5F2 50%); box-shadow: inset 0 0 0 1.5px #B4AEA4; }
.pb-tl__li--idx { color: #C4561A; }
.pb-tl__li--idx i { background: #FFC9A6; box-shadow: inset 0 0 0 1.5px var(--cta); }
.pb-tl__li--no { color: var(--s-muted); }
.pb-tl__li--no i { background: #F6F5F2; outline: 1.5px dotted #B4AEA4; outline-offset: -1.5px; }
.pb-tl.is-go[data-beat="0"] .pb-tl__li { animation: pb-in .5s var(--ease) both; }
.pb-tl.is-go[data-beat="0"] .pb-tl__li--idx { animation-delay: 1.4s; }
.pb-tl.is-go[data-beat="0"] .pb-tl__li--no { animation-delay: 1.7s; }
.pb-tl__tl { position: absolute; left: 0; right: 0; top: 38%; bottom: 0; }
.pb-tl__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pb-tl__line { fill: none; stroke: #111; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; }
.pb-tl__base { stroke: #CFCBC4; stroke-width: 1.5; }
.pb-tl__mk { stroke: var(--c-rose-d); stroke-width: 1.6; stroke-dasharray: 4 5; }
.pb-tl__br { fill: none; stroke: var(--cta); stroke-width: 2; }
.pb-tl__dot { fill: var(--c-rose-d); }
.pb-tl__l { position: absolute; left: 0; top: 0; font-size: clamp(15px, 1.15vw, 18px); font-weight: 500; line-height: 1.25; white-space: nowrap; color: var(--s-fg); }
.pb-tl__l--rose { color: var(--c-rose-t); }
.pb-tl__l--o { color: #C4561A; }
.pb-tl__l--mk { color: var(--c-rose-t); }
.pb-tl__tag { position: absolute; left: 0; top: 0; }
.pb-tl.is-go[data-beat="1"] .pb-tl__line { animation: pb-draw 1.6s cubic-bezier(.45, .05, .3, 1) .5s both; }
.pb-tl.is-go[data-beat="1"] .pb-tl__mk, .pb-tl.is-go[data-beat="1"] .pb-tl__l--mk, .pb-tl.is-go[data-beat="1"] .pb-tl__tag { animation: pb-fade .4s .4s both; }
.pb-tl.is-go[data-beat="1"] .pb-tl__dot, .pb-tl.is-go[data-beat="1"] .pb-tl__l--rose { animation: pb-pop .4s var(--ease) 1.2s both; }
.pb-tl.is-go[data-beat="1"] .pb-tl__br, .pb-tl.is-go[data-beat="1"] .pb-tl__l--o { animation: pb-fade .5s 1.8s both; }
@container (max-width: 520px) {
  .pb-tl__grid { width: min(100cqh, 52cqw); }
  .pb-tl__li { font-size: 15px; white-space: normal; }
}

/* ---------- l7-proof: the shrinking stack ---------- */
.pb-sk { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 8%; }
.pb-sk__pages, .pb-sk__visits { position: relative; container-type: size; min-height: 0; }
.pb-sk__pages { grid-column: 1; grid-row: 1; }
.pb-sk__visits { grid-column: 2; grid-row: 1; display: flex; align-items: flex-end; justify-content: center; gap: 12%; }
.pb-sk__ghost, .pb-sk__kept { position: absolute; left: 12%; right: 12%; bottom: 0; }
.pb-sk__ghost { top: 34px; border: 2px dashed #B4AEA4; border-bottom: 0; border-radius: 4px 4px 0 0; }
.pb-sk__kept { height: calc((100cqh - 34px) / 3); border-radius: 3px 3px 0 0;
  background: repeating-linear-gradient(180deg, #3a3631 0 1.5px, #fff 1.5px 6px); box-shadow: inset 0 0 0 1.5px #111; }
.pb-sk__kept::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgb(255 127 50 / .9) 1.3px, transparent 1.7px) 0 0 / 6px 6px; mix-blend-mode: multiply; opacity: .55; }
.pb-sk__l { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); margin-bottom: 8px; font-size: clamp(15px, 1.3vw, 20px); font-weight: 500; line-height: 1.2; white-space: nowrap; color: var(--s-fg); font-variant-numeric: tabular-nums; }
.pb-sk__l--g { color: var(--s-muted); }
.pb-sk__fall { position: absolute; left: 12%; right: 12%; height: 5px; bottom: calc((100cqh - 34px) / 3 + var(--k) * (100cqh - 34px) / 21); background: #111; border-radius: 1px; opacity: 0; }
.pb-sk__col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; width: 34%; }
.pb-sk__v { font-size: clamp(15px, 1.3vw, 20px); font-weight: 500; line-height: 1.2; white-space: nowrap; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.pb-sk__bar { display: block; width: 100%; border-radius: 3px 3px 0 0; transform-origin: bottom; }
.pb-sk__col--before .pb-sk__bar { height: calc((100cqh - 64px) * 10 / 340); min-height: 4px; background: #B4AEA4; }
.pb-sk__col--before .pb-sk__v { color: var(--s-muted); }
.pb-sk__col--after .pb-sk__bar { height: calc(100cqh - 64px); background: var(--cta) radial-gradient(circle, rgb(255 255 255 / .35) 1.3px, transparent 1.7px) 0 0 / 6px 6px; }
.pb-sk__col--after .pb-sk__v { color: #C4561A; }
.pb-sk__sub { height: 28px; padding-top: 6px; font-size: 15px; color: var(--s-muted); white-space: nowrap; }
.pb-sk__col { border-bottom: 0; }
.pb-data .ps-vis .pb-sk [data-hide]:not(.is-on) { display: block !important; visibility: hidden; }
.pb-sk__visits::after { content: ""; position: absolute; left: 0; right: 0; bottom: 28px; height: 1.5px; background: #CFCBC4; }
.pb-sk__pages::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: #CFCBC4; }
.pb-sk.is-go[data-beat="0"] .pb-sk__kept { animation: pb-shrink 1.4s cubic-bezier(.6, 0, .25, 1) .3s both; }
@keyframes pb-shrink { from { height: calc(100cqh - 34px); } to { height: calc((100cqh - 34px) / 3); } }
.pb-sk.is-go[data-beat="0"] .pb-sk__fall { animation: pb-drop 1.1s cubic-bezier(.5, 0, .7, .4) calc(.35s + var(--k) * 60ms) both; }
@keyframes pb-drop { 0% { opacity: 0; transform: none; } 8% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(var(--x) * 9px), 140px) rotate(calc(var(--r) * 3deg)); } }
.pb-sk.is-go[data-beat="0"] .pb-sk__ghost { animation: pb-fade .6s .2s both; }
.pb-sk.is-go[data-beat="0"] .pb-sk__kept .pb-sk__l { animation: pb-fade .4s 1.6s both; }
.pb-sk.is-go[data-beat="0"] .pb-sk__col--after .pb-sk__bar { animation: pb-up 1.2s cubic-bezier(.3, .7, .2, 1) 1s both; }
.pb-sk.is-go[data-beat="0"] .pb-sk__col--after .pb-sk__v, .pb-sk.is-go[data-beat="0"] .pb-sk__col--after .pb-sk__sub { animation: pb-in .5s var(--ease) 1.9s both; }
.pb-sk.is-go[data-beat="0"] .pb-sk__col--before { animation: pb-in .5s var(--ease) .5s both; }
/* beat 2: a far larger stack towers faintly behind */
.pb-sk__giant { position: absolute; left: 0; width: 46%; top: 0; bottom: 0; z-index: 0; }
.pb-sk__gi { position: absolute; left: 0; right: 0; top: 0; bottom: 0; border-radius: 4px 4px 0 0;
  background: repeating-linear-gradient(180deg, rgb(17 17 17 / .2) 0 2px, transparent 2px 6px), radial-gradient(circle, rgb(255 127 50 / .45) 1.2px, transparent 1.6px) 0 0 / 7px 7px;
  -webkit-mask: linear-gradient(0deg, #000 0 50%, transparent 100%); mask: linear-gradient(0deg, #000 0 50%, transparent 100%); }
.pb-sk__l--giant { left: 0; bottom: auto; top: 0; transform: none; margin: 0; padding: 4px 10px; border-radius: 4px; background: rgb(255 255 255 / .92); box-shadow: inset 0 0 0 1px var(--ll-line); color: var(--s-fg); font-size: clamp(18px, 1.8vw, 28px); z-index: 2; }
.pb-sk[data-beat="1"] .pb-sk__pages, .pb-sk[data-beat="1"] .pb-sk__visits { opacity: .32; transition: opacity .6s; }
.pb-sk.is-go[data-beat="1"] .pb-sk__gi { animation: pb-fade .8s both; }
.pb-sk.is-go[data-beat="1"] .pb-sk__l--giant { animation: pb-in .5s var(--ease) .5s both; }
.pb-sk__gi::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 38%; background: linear-gradient(180deg, var(--s-bg) 35%, transparent); }
.pb-sk.is-go[data-beat="1"] .pb-sk__gi::after { animation: pb-top 2.4s ease-in-out .5s both; }
@keyframes pb-top { from { height: 0; } to { height: 38%; } }

/* ---------- l5-how: Claude Code builds the site ---------- */
.pb-t5 .ps-vis { min-height: 0; }
.pb-t5__stage { height: 100%; display: grid; align-items: start; }
.pb-t5__win { height: min(100%, 600px); grid-template-rows: auto minmax(0, 1fr) auto auto; }
.pb-t5__in { display: flex; align-items: center; gap: 10px; margin: 0 16px 10px; min-height: 40px; padding: 0 14px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18); }
.pb-t5__caret { display: block; width: 9px; height: 18px; background: rgb(255 255 255 / .7); animation: rz-blink 1s steps(1) infinite; }
.pb-t5__say { padding-left: 18px; position: relative; }
.pb-t5__say::before { content: ""; position: absolute; left: 2px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #D97757; }
.pb-t5__win .pk-win__body { gap: 7px; }
.pb-t5__f { opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; padding-left: 18px; }
.pb-t5__f.is-on { opacity: 1; transform: none; }

.pb-t5 .pk-ln { font-size: clamp(15px, 1.2vw, 18px); line-height: 1.5; }
.pb-t5__win .pk-win__body { padding: 20px 24px; }
.pb-t5 .pk-ln--prompt .pk-ln__t { font-weight: 500; }
.pb-t5__prog { height: 4px; margin: 4px 0 6px 18px; border-radius: 2px; background: rgb(255 255 255 / .1); overflow: hidden; }
.pb-t5__prog i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: #D97757; transition: width .25s; }
.pb-t5__win.is-b1 > .pk-win__body > .pk-ln--prompt:not(.pb-t5__p2), .pb-t5__win.is-b1 .pb-t5__f { opacity: .5; }
.pb-t5__win.is-b1 .pb-t5__more, .pb-t5__win.is-b1 .pb-t5__say, .pb-t5__win.is-b1 .pb-t5__astro, .pb-t5__win.is-b1 .pb-t5__prog { display: none; }
.pb-t5__ex { margin-left: auto; }
@media (max-height: 799px) { .pb-t5__x { display: none; } }
.pb-t5__p2 { margin-top: 6px; }
.pb-t5__dep { padding-left: 18px; opacity: .3; transition: opacity .35s; }
.pb-t5__dep.is-tick { opacity: 1; }
.pb-t5__dep .pk-ln__t { color: #fff; font-weight: 500; }
.pb-t5__status { display: flex; align-items: center; gap: 12px; min-height: 34px; padding: 0 18px; background: #211c18; border-top: 1px solid rgb(255 255 255 / .07); }
.pb-t5__st { display: flex; gap: 12px; align-items: center; }
.pb-t5__cost { position: relative; display: block; flex: 1; height: 8px; border-radius: 4px; background: rgb(255 255 255 / .1); overflow: hidden; }
.pb-t5__cost i { position: absolute; inset: 0; background: linear-gradient(90deg, #D97757 0 62%, #F0A898 62% 100%); transform-origin: left; }
.pb-t5__cost b { position: absolute; left: 62%; top: 0; bottom: 0; width: 2px; background: #191512; }
.pb-t5__win.is-b2 .pb-t5__cost i { animation: pb-fill 1.6s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes pb-fill { from { transform: scaleX(0); } to { transform: none; } }

/* ---------- l6-how: Search Console for one sitemap ---------- */
.pb-g6 .ps-vis { min-height: 0; }
.pb-g6__gsc { height: 100%; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgb(0 0 0 / .08), 0 30px 60px -30px rgb(30 40 60 / .35); transition: grid-template-columns .6s var(--ease); }
.pb-g6__gsc .pk-gsc__nav { transition: opacity .4s; overflow: hidden; }
@media (min-width: 960px) and (min-height: 600px) {
  .pb-g6__gsc[data-beat="1"] { grid-template-columns: 0 minmax(0, 1fr); }
  .pb-g6__gsc[data-beat="1"] .pk-gsc__nav { opacity: 0; visibility: hidden; padding-left: 0; padding-right: 0; border: 0; }
}
.pb-g6__gsc .pk-gsc__main { display: flex; flex-direction: column; }
.pb-g6__body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(14px, 2vw, 28px); }
.pb-g6__rep { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 12px; min-height: 0; }
.pb-g6__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pb-g6__filter { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: 16px; background: #E8F0FE; color: #1967D2; font-size: 15px; font-weight: 500; }
.pb-g6__fi svg { width: 15px; height: 15px; }
.pb-g6__tots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px #E3E5E8; }
.pb-g6__tot { display: grid; gap: 2px; padding: 10px 16px; color: #fff; font-size: 15px; font-weight: 500; }
.pb-g6__tot b { font-size: clamp(22px, 2.2vw, 34px); font-weight: 500; line-height: 1.05; font-variant-numeric: tabular-nums; }
.pb-g6__tot--no { background: #80868B; }
.pb-g6__tot--idx { background: #1E8E3E; }
.pb-g6__chart { display: flex; align-items: flex-end; gap: 3px; min-height: 60px; padding-top: 6px; border-bottom: 1px solid #DADCE0; }
.pb-g6__bar { flex: 1; height: 100%; display: flex; flex-direction: column-reverse; transform-origin: bottom; }
.pb-g6__bar b { display: block; height: calc(var(--i) * 100%); background: #1E8E3E; }
.pb-g6__bar s { display: block; height: calc(var(--n) * 100%); background: #BDC1C6; text-decoration: none; }
.pb-g6__gsc.is-go[data-beat="0"] .pb-g6__bar { animation: pb-up .5s var(--ease) var(--d) both; }
.pb-g6__gsc.is-go[data-beat="0"] .pb-g6__tots { animation: pb-fade .5s 1.2s both; }
.pb-g6__dec { display: grid; gap: 12px; align-content: start; width: clamp(200px, 22vw, 300px); }
.pb-g6__card { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 10px; font-size: 16px; line-height: 1.3; }
.pb-g6__card--go { background: #E6F4EA; color: #0D652D; box-shadow: inset 0 0 0 1.5px #81C995; }
.pb-g6__card--go b { font-weight: 600; }
.pb-g6__card--alt { background: #F8F9FA; box-shadow: inset 0 0 0 1px #E3E5E8; opacity: .55; }
.pb-g6__ico { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #1E8E3E; color: #fff; }
.pb-g6__ico--alt { background: #BDC1C6; }
.pb-g6__bars { display: grid; gap: 8px; flex: 1; }
.pb-g6__gsc.is-go[data-beat="1"] .pb-g6__card { animation: pb-slide .55s var(--ease) .35s both; }
.pb-g6__gsc.is-go[data-beat="1"] .pb-g6__card--alt { animation-delay: .6s; }

/* ---------- l7-how: the weekly prune list ---------- */
.pb-g7 .ps-vis { display: grid; align-content: start; min-height: 0; }
.pb-g7__gsc { height: auto; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgb(0 0 0 / .08), 0 30px 60px -30px rgb(30 40 60 / .35); }
.pb-g7__gsc .pk-gsc__prop { justify-content: center; }
.pb-g7__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.pb-g7__bars { display: flex; gap: 12px; align-items: center; }
.pb-g7__tb { container-type: inline-size; display: grid; grid-template-columns: minmax(0, max-content) max-content max-content minmax(0, 1fr); column-gap: clamp(10px, 2.4vw, 40px); }
.pb-g7__tb .pk-tb__r { grid-column: 1 / -1; grid-template-columns: subgrid; column-gap: inherit; min-height: 52px; font-size: clamp(15px, 1.2vw, 18px); }
.pb-g7__tb .pk-tb__r--head .pk-tb__chip { justify-content: flex-end; }
.pb-g7__sec { opacity: .7; }
.pb-g7__tb .pk-tb__r--head { min-height: 38px; font-size: 15px; }
.pb-g7__chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pb-g7__flag { display: inline-grid; place-items: center; width: 30px; height: 26px; border-radius: 13px; background: #FBE9E5; color: #A4372A; }
.pb-g7__ok { display: inline-grid; place-items: center; width: 30px; height: 26px; border-radius: 13px; background: #E6F4EA; color: #137333; }
.pb-g7__act { font-size: 15px; }
.pb-g7__act--a { background: #E8F0FE; color: #1967D2; box-shadow: none; }
.pb-g7__act--b { background: #FEF7E0; color: #8A5300; box-shadow: none; }
.pb-g7__act--dim { opacity: .5; }
.pb-g7__gsc.is-go[data-beat="0"] .pb-g7__flag { animation: pb-pop .4s var(--ease) .5s both; }
.pb-g7__gsc.is-go[data-beat="0"] .pk-tb__r:nth-child(3) .pb-g7__flag { animation-delay: .75s; }
.pb-g7__gsc.is-go[data-beat="0"] .pk-tb__r.is-rose { animation: pb-rose .6s .5s both; }
@keyframes pb-rose { from { background: transparent; } }
.pb-g7__gsc.is-go[data-beat="1"] .pb-g7__act { animation: pb-slide .5s var(--ease) .2s both; }
.pb-g7__gsc.is-go[data-beat="1"] .pb-g7__act--b { animation-delay: .45s; }
.pb-g7__gsc.is-go[data-beat="1"] .pb-g7__act--dim { animation: pb-slide-dim .5s var(--ease) .7s both; }
@keyframes pb-slide-dim { from { opacity: 0; transform: translateX(28px); } to { opacity: .5; transform: none; } }
@container (max-width: 480px) {
  .pb-g7__tb .pk-tb__r { row-gap: 4px; padding-top: 6px; padding-bottom: 6px; }
  .pb-g7__sec { display: none; }
  .pb-g7__tb .pk-tb__r:not(.pk-tb__r--head) .pk-tb__chip { grid-column: 1 / -1; justify-content: flex-start; }
  .pb-g7__tb .pk-tb__r--head > .pk-tb__c { grid-row: 2; }
  .pb-g7__tb .pk-tb__r--head > .pk-tb__chip { grid-row: 1; grid-column: 1 / -1; }
  .pb-g7__tb .pk-tb__chip:empty { display: none; }
  .pb-g7__chips { justify-content: flex-start; }
  .pb-g7__tb .pk-tb__c { white-space: normal; overflow-wrap: anywhere; }
}

/* ---------- compact: landscape below 960 x 600 ---------- */
@media (max-width: 959px), (max-height: 599px) {
  .scene .pb-lab { font-size: 14px; padding: 4px 9px; }
  .pb-full .ps--full .ps-side { max-width: 46%; }
  .scene.pb-right .ps--right { grid-template-columns: minmax(0, 1fr) minmax(0, 46%); }
  .pb-cl__l, .pb-tl__l, .pb-tl__li, .pb-sk__l, .pb-sk__v { font-size: 14px; }
  .pb-sk__sub { font-size: 14px; }
  .pb-sk__v { white-space: normal; text-align: center; max-width: 120%; }
  .pb-sk__col { width: 42%; }
  .pb-sk__visits { gap: 8%; }
  .pb-t5 .pk-ln { font-size: 14px; }
  .pb-t5__win .pk-win__body { gap: 3px; padding-top: 8px; padding-bottom: 8px; }
  .pb-t5__more:nth-of-type(n+6) { display: none; }
  .pb-t5__status { min-height: 26px; }
  .pb-g6__filter { min-height: 26px; font-size: 14px; }
  .pb-g6__tot { padding: 6px 12px; font-size: 14px; }
  .pb-g6__tot b { font-size: 20px; }
  .pb-g6__card { padding: 8px 12px; font-size: 14px; }
  .pb-g6__dec { width: 210px; gap: 8px; }
  .pb-g6__rep { gap: 8px; }
  .pb-g7__tb .pk-tb__r { min-height: 36px; font-size: 14px; }
  .pb-g7__tb .pk-tb__r--head { min-height: 30px; font-size: 14px; }
  .pb-g7__act { font-size: 14px; padding: 0 6px; }
  .pb-g7__head, .pb-g7__sec { display: none; }
  .pb-g7__gsc .pk-gsc__main { padding: 4px 8px; gap: 4px; }
  .pb-g7__tb { column-gap: 8px; }
  .pb-g7__tb .pk-tb__r { padding: 0 4px; }
  .pb-g7__gsc[data-beat="1"] .pb-g7__flag { display: none; }
  /* l6-how: one header row (filter, totals, tag), the chart below, the decision beside it */
  .pb-g6__gsc .pk-gsc__main { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr); gap: 8px 10px; padding: 8px 10px; }
  .pb-g6__body, .pb-g6__rep, .pb-g6__row { display: contents; }
  .pb-g6__filter { grid-row: 1; grid-column: 1; }
  .pb-g6__tots { grid-row: 1; grid-column: 2; display: flex; }
  .pb-g6__tot { display: flex; align-items: baseline; gap: 6px; padding: 3px 10px; }
  .pb-g6__tot b { font-size: 17px; }
  .pb-g6__ex { grid-row: 1; grid-column: 4; justify-self: end; align-self: center; }
  .pb-g6__chart { grid-row: 2; grid-column: 1 / -1; min-height: 30px; }
  .pb-g6__gsc[data-beat="1"] .pb-g6__chart { grid-column: 1 / 3; }
  .pb-g6__dec { grid-row: 2; grid-column: 3 / -1; width: auto; }
  .pb-g6__card--alt { display: none; }
}
/* l5-how on short frames: only the lines the beat names */
@media (max-height: 599px) {
  .pb-t5__in, .pb-t5__say, .pb-t5__more { display: none !important; }
  .pb-t5__win { height: auto; max-height: 100%; }
  .pb-t5__win:not(.is-b2) .pb-t5__status { display: none; }
  .pb-t5__win .pk-win__body { padding: 8px 12px; }
  .pb-t5__win.is-b1 > .pk-win__body > .pk-ln--prompt, .pb-t5__win.is-b2 .pb-t5__csv { display: none !important; }
  .pb-t5__prog { margin: 2px 0 2px 18px; }
}
@media (max-width: 759px) and (orientation: portrait) {
  .pb-t5__win { height: auto; max-height: 100%; }
  .pb-t5__win.is-b1 .pb-t5__more { display: none; }
}
@media (max-height: 439px) {
  .scene.pb-g7 .ps { row-gap: 8px; }
  .scene.pb-g7 .ps-pit { max-width: none; }
  .pb-g7 .ps-src--line { margin-top: 0; }
  .pb-g7 .ps-stack__i { gap: 2px; }
  .pb-g7 .pk-tag { min-height: 18px; }
  .pb-g7__flag, .pb-g7__ok { height: 18px; }
  .pb-g7__gsc .pk-gsc__main { padding: 2px 8px; }
  .pb-g7__tb .pk-tb__r { min-height: 20px; line-height: 1.2; }
  .pb-g7__tb .pk-tb__r--head { min-height: 20px; }
  .pb-g7__flag, .pb-g7__ok { height: 20px; }
  .pb-g7__act { min-height: 20px; }
}

/* ---------- phone: portrait and narrower than 760 ---------- */
@media (max-width: 759px) and (orientation: portrait) {
  .pb-full .ps--full .ps-side { max-width: none; }
  .scene.pb-right .ps--right { grid-template-columns: minmax(0, 1fr); }
  .pb-g6__gsc .pk-gsc__main { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto minmax(0, 1fr) auto; }
  .pb-g6__filter { grid-row: 1; grid-column: 1; justify-self: start; }
  .pb-g6__ex { grid-row: 1; grid-column: 2; }
  .pb-g6__tots { grid-row: 2; grid-column: 1 / -1; }
  .pb-g6__chart, .pb-g6__gsc[data-beat="1"] .pb-g6__chart { grid-row: 3; grid-column: 1 / -1; }
  .pb-g6__dec { grid-row: 4; grid-column: 1 / -1; }
  .pb-sk { column-gap: 6%; }
}

/* lead (integration): short desktop frames such as 1100x620 keep all three table rows inside the window */
@media (min-width: 960px) and (min-height: 600px) and (max-height: 700px) {
  .pb-g7__tb .pk-tb__r { min-height: 38px; font-size: 15px; }
  .pb-g7__tb .pk-tb__r--head { min-height: 30px; }
  .pb-g7__gsc .pk-gsc__main { padding-top: 10px; padding-bottom: 8px; gap: 6px; }
}

/* lead (integration): beat 2 shows the 35,000,000-page stack alone, so no unlabelled bars stay on screen */
.pb-sk[data-beat="1"] .pb-sk__pages, .pb-sk[data-beat="1"] .pb-sk__visits { opacity: 0; }
.pb-sk[data-beat="1"] .pb-sk__giant { left: 27%; }

/* lead (fix round): the dimmed branch is real text */
.pb-g6__alt { flex: 1; font-size: 15px; font-weight: 500; color: #3C4043; line-height: 1.3; }
.pb-g6__card--alt { opacity: .8; }

/* lead (fix round): l4-proof flags are numbered, with their causes listed under the sentence */
.pb-cl__flag { display: inline-flex; align-items: flex-start; gap: 2px; }
.pb-cl__fn { font-size: 14px; font-weight: 600; line-height: 1; margin-top: 1px; }
.pb-cl__legend { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.pb-cl__legend li { display: flex; align-items: center; gap: 8px; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.3; color: var(--s-fg); }
.pb-cl__legend b { font-weight: 600; min-width: .8em; }
.pb-cl__lf { display: inline-grid; color: var(--c-rose-d); transition: color .7s var(--ease); }
.pb-cl__legend[data-beat="1"] .pb-cl__lf { color: var(--c-aqua-d); }
@media (max-width: 959px), (max-height: 619px) { .pb-cl__legend { gap: 2px; } .pb-cl__legend li { font-size: 14px; } .pb-cl__lf svg { width: 14px; height: 17px; } }

/* lead (fix round): l7-how has a Days live column */
.pb-g7__tb { grid-template-columns: minmax(0, max-content) max-content max-content max-content minmax(0, 1fr); }

/* lead (fix round): l5-how shows real file names; beat 3 shows the deploy lines and a labelled usage meter */
.pb-t5__win.is-b2 .pb-t5__f, .pb-t5__win.is-b2 .pb-t5__prog { display: none; }
.pb-t5__usage { display: inline-flex; align-items: center; gap: 10px; }
.pb-t5__ul { font-size: 14px; color: rgb(237 231 225 / .75); white-space: nowrap; }
.pb-cl .pb-cl__flag .pb-cl__fn { font-size: 15.5px; }
@media (max-height: 400px) { .pb-t5__win .pk-win__body { gap: 0; padding-top: 6px; padding-bottom: 6px; } .pb-t5__win .pk-ln { line-height: 1.32; } }
