/* AI search deck, ch-levers-1-3 styles (builder A). Every selector starts with the xa- prefix or is scoped under .scene with it. */

/* ---------- labels over 3D ---------- */
.scene .xa-lab { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 6px; font-size: 15px; font-weight: 500; line-height: 1.25;
  background: rgb(8 9 12 / .66); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); text-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; }
.scene .xa-lab--orange { color: #FFB27E; box-shadow: inset 0 0 0 1px rgb(255 127 50 / .5); }
.scene .xa-lab--aqua { color: #B9F1E9; box-shadow: inset 0 0 0 1px rgb(156 231 221 / .45); }
.scene .xa-lab--lilac { color: #DDD0F5; box-shadow: inset 0 0 0 1px rgb(205 189 235 / .5); }
.scene .xa-lab--rose { color: #F2C9BD; box-shadow: inset 0 0 0 1px rgb(225 181 168 / .5); }
.scene .xa-lab--cap { font-size: 17px; padding: 7px 8px 7px 13px; gap: 10px; }
.scene .xa-lab--big { font-size: clamp(18px, 1.6vw, 24px); font-variant-numeric: tabular-nums; padding: 6px 13px; }
.scene .xa-lab .xa-ex { height: 24px; }
.scene .xa-lab, .scene .xa-lab[data-show], .scene .xa-lab[data-hide] { transition: opacity .5s; }   /* never transition transform: labels move every frame */
.scene:not(.is-active) .xa-lab { transition: none; }

/* compact and phone: only the key labels stay */
@media (max-width: 959px), (max-height: 599px) {
  .scene .xa-lab { font-size: 14px; padding: 4px 9px; }
  .scene .xa-lab--cap { font-size: 15px; }
  .scene .xa-lab--minor { display: none; }
  .scene.xa .as--full .as-side, .scene.xa .as--full .as-t { max-width: 46%; }
  .scene.xa .as--full .as-t { font-size: clamp(21px, 2.9vw, 28px); }
}
@media (max-width: 759px) and (orientation: portrait) {
  .scene.xa .as--full .as-side, .scene.xa .as--full .as-t { max-width: 100%; }
}

/* two-line labels: a page name over its status */
.scene .xa-lab--two { flex-direction: column; align-items: flex-start; gap: 2px; }
.scene .xa-lab__st { font-size: 14px; font-weight: 500; }
.scene .xa-lab__st--aqua { color: #9CE7DD; }
.scene .xa-lab__st--rose { color: #F2C9BD; }
.scene .xa-lab__st[data-show] { transform: none; }

/* the regatta's position tag: "19th" rolls to "8th" */
.scene .xa-lab--ramp { gap: 10px; }
.xa-pos { position: relative; display: inline-grid; overflow: hidden; height: 1.3em; padding: 0 7px; border-radius: 4px; background: rgb(255 127 50 / .22); color: #fff; font-variant-numeric: tabular-nums; }
.xa-pos > span { grid-area: 1 / 1; line-height: 1.3em; transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .4s; }
.xa-pos__b { transform: translateY(110%); opacity: 0; }
.scene.xa-pos-8 .xa-pos__a { transform: translateY(-110%); opacity: 0; }
.scene.xa-pos-8 .xa-pos__b { transform: none; opacity: 1; }
.scene:not(.is-active) .xa-pos > span { transition: none; }

/* ---------- 2D halftone data visuals ---------- */
.scene .xa-chart { position: relative; min-height: 220px; }
.xa-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene .xa-dl { position: absolute; left: 0; top: 0; z-index: 2; white-space: nowrap; font-size: 15px; line-height: 1.3; font-weight: 500; color: var(--s-fg, #111); font-variant-numeric: tabular-nums; pointer-events: none; }
.scene .xa-dl[data-show], .scene .xa-dl[data-hide] { transition: opacity .5s; }
.scene .xa-dl--axis { color: #5c5c5c; }
.scene .xa-dl--cap { color: #5c5c5c; font-size: 15px; }
.scene .xa-dl--wrap { white-space: normal; text-align: center; }
.scene .xa-dl--mid { font-size: clamp(16px, 1.4vw, 21px); }
.scene .xa-dl--num { font-size: clamp(20px, 1.9vw, 30px); letter-spacing: -.02em; }
.scene .xa-dl--big { font-size: clamp(30px, 3.4vw, 56px); line-height: 1; letter-spacing: -.035em; }
.scene .xa-dl--orange { color: #E5631A; }
.scene .xa-dl--total { display: grid; justify-items: end; font-size: 15px; color: #5c5c5c; text-align: right; }
.scene .xa-dl--total b { font-size: clamp(36px, 4vw, 64px); line-height: 1; letter-spacing: -.035em; font-weight: 500; color: #E5631A; }
.scene .xa-dl--total span { white-space: nowrap; }
@media (max-width: 959px), (max-height: 599px) {
  .scene .xa-dl, .scene .xa-dl--cap, .scene .xa-dl--mid { font-size: 14px; }
  .scene .xa-dl--num { font-size: 18px; }
  .scene .xa-dl--big { font-size: 28px; }
  .scene .xa-dl--total b { font-size: 30px; }
  .scene .xa-chart { min-height: 160px; }
}
/* the citation stacks need height: on short landscape frames the text column sits left of the chart */
@media (max-height: 599px) and (orientation: landscape) {
  .scene.xa-wire .as--stage { grid-template-columns: minmax(0, .4fr) minmax(0, .6fr); grid-template-rows: auto minmax(0, 1fr); column-gap: 24px; }
  .scene.xa-wire .as--stage .as-side { grid-column: 1; grid-row: 2; }
  .scene.xa-wire .as--stage .as-vis { grid-column: 2; grid-row: 2; }
}

/* ================================================================ realistic mocks */
.scene .xa-mock { font-family: var(--font-sans); -webkit-font-smoothing: antialiased; color: #1f1f1f; }
.scene.xa:not(.is-active) .xa-mock, .scene.xa:not(.is-active) .xa-mock * { transition: none !important; animation: none !important; }
.xa-bar { display: block; height: 8px; border-radius: 4px; background: #E3E6EA; flex: none; }
.xa-bars { display: grid; gap: 8px; padding: 3px 0; }
.xa-bars i { display: block; height: 8px; border-radius: 4px; background: #E3E6EA; }
.xa-ic { display: inline-grid; place-items: center; flex: none; }
.scene .xa-ex-m { position: absolute; z-index: 6; }

/* ---------- Google Sheets (l1-how) ---------- */
.xa-sh { position: relative; container-type: inline-size; display: flex; flex-direction: column; height: 100%; min-height: 0; background: #fff; border-radius: 12px; overflow: hidden; font-size: 14px;
  box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 30px 60px -34px rgb(0 0 0 / .35), inset 0 0 0 1px #DADCE0; }
.xa-sh__top { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 14px 6px; }
.xa-sh__logo { display: grid; }
.xa-sh__title { flex: 1; min-width: 0; display: grid; gap: 7px; }
.xa-bar--t { height: 10px; background: #D3D7DC; max-width: 220px; }
.xa-sh__menu { display: flex; gap: 12px; padding: 0; } .xa-sh__menu i { width: 34px !important; height: 7px; }
.xa-sh__top .xa-ex-m { position: static; }
.xa-sh__tools { flex: none; display: flex; align-items: center; gap: 8px; margin: 2px 10px 6px; padding: 6px 10px; border-radius: 999px; background: #F0F4F9; }
.xa-sh__tools > i { width: 18px; height: 18px; border-radius: 4px; background: #D9DEE5; flex: none; }
.xa-sh__tools > i.is-sep { width: 1px; background: #C7CDD4; margin: 0 2px; }
.xa-cal { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border-radius: 6px; background: #fff; color: #1A73E8; box-shadow: inset 0 0 0 1px #D2E3FC; }
.xa-cal__flip { position: relative; width: 22px; height: 14px; perspective: 80px; }
.xa-cal__flip i { position: absolute; inset: 0; border-radius: 3px; background: #D2E3FC; transform-origin: 50% 0; transition: transform .7s cubic-bezier(.3,.7,.2,1) .3s, background .4s .3s; }
.xa-cal__flip i:last-child { background: #1A73E8; opacity: .3; }
.scene.xa-ge2 .xa-cal__flip i:first-child { transform: rotateX(-180deg); background: #9DC0F7; }
.scene.xa-ge2 .xa-cal__flip i:last-child { opacity: .8; }
.xa-sh__fx { flex: none; display: flex; align-items: center; gap: 10px; height: 28px; padding: 0 12px; border-top: 1px solid #E1E3E6; border-bottom: 1px solid #E1E3E6; }
.xa-sh__fxi { width: 16px; height: 12px; border-radius: 3px; background: #D3D7DC; }
.xa-sh__fx .xa-bar { width: 40%; height: 7px; }
.xa-sh__grid { flex: 1; min-height: 0; overflow: hidden; display: grid; align-content: start; }
.xa-sh__row { display: grid; grid-template-columns: 34px minmax(0, 2.2fr) repeat(4, minmax(0, 1fr)) minmax(0, 1.55fr); align-items: stretch; position: relative; transition: background .5s, box-shadow .5s; }
.xa-sh__row::before { content: attr(data-r); display: flex; align-items: center; justify-content: center; background: #F8F9FA; color: #5f6368; font-size: 14px; border-right: 1px solid #E1E3E6; border-bottom: 1px solid #E1E3E6; }
.xa-sh__row--letters::before { content: ""; }
.xa-sh__c { display: flex; align-items: center; min-width: 0; height: 36px; padding: 0 8px; border-right: 1px solid #E8EAED; border-bottom: 1px solid #E8EAED; white-space: nowrap; overflow: hidden; }
.xa-sh__c--l { height: 24px; justify-content: center; background: #F8F9FA; border-color: #E1E3E6; }
.xa-sh__c--l::after { content: attr(data-c); color: #5f6368; font-size: 14px; }
.xa-sh__row--h .xa-sh__c { font-weight: 600; background: #F3F6FB; }
.xa-sh__c--a { justify-content: center; }
.xa-bar--h { height: 8px; background: #C9D0D8; }
.xa-bar--q { height: 8px; background: #DDE1E6; transform-origin: 0 50%; transform: scaleX(0); transition: transform .5s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i) * 110ms + 300ms); }
.scene.xa-ge0 .xa-bar--q { transform: none; }
.xa-sh__type { display: inline-block; clip-path: inset(0 100% 0 0); transition: clip-path 1.1s steps(34); }
.scene.xa-ge0 .xa-sh__type { clip-path: inset(0 0 0 0); }
.xa-dots { display: inline-flex; gap: 4px; }
.xa-dots i { width: 9px; height: 9px; border-radius: 50%; background: #C9CED4; opacity: 0; transform: scale(.3); transition: opacity .35s, transform .35s, background .6s; transition-delay: calc(var(--j) * 22ms); }
.xa-dots i.is-o, .xa-dots i.is-f { background: #FF7F32; }
.scene.xa-ge1 .xa-dots i { opacity: 1; transform: none; }
.scene.xa-ge2 .xa-dots i.is-f { background: #C9CED4; transition-delay: .2s; }
.xa-links { display: inline-flex; align-items: center; gap: 6px; width: 100%; color: #8AB4F8; opacity: 0; transition: opacity .4s; transition-delay: calc(var(--j) * 60ms + 500ms); }
.xa-links .xa-bar--l { height: 7px; background: #C6DAFC; }
.scene.xa-ge1 .xa-links { opacity: 1; }
.scene.xa-ge2 .xa-sh__row--fade { background: rgb(225 181 168 / .2); box-shadow: inset 3px 0 0 #D58F7C; animation: xa-rose 1.8s ease-in-out .3s infinite; }
@keyframes xa-rose { 50% { background: rgb(225 181 168 / .42); } }
.xa-sh__tabs { flex: none; display: flex; gap: 6px; padding: 7px 12px; border-top: 1px solid #E1E3E6; background: #F8F9FA; }
.xa-sh__tabs i { width: 64px; height: 18px; border-radius: 4px; background: #E3E6EA; } .xa-sh__tabs i.is-on { background: #D3E3FD; }
@container (max-width: 640px) {
  .xa-sh__row { grid-template-columns: 26px minmax(0, 1.8fr) repeat(4, minmax(0, 1fr)); }
  .xa-sh__c--u { display: none; }
  .xa-sh__c { padding: 0 4px; }
  .xa-sh__row[data-r="2"] .xa-sh__c { height: auto; min-height: 36px; padding-top: 4px; padding-bottom: 4px; }
  .xa-sh__row[data-r="2"] .xa-sh__c--q { white-space: normal; line-height: 1.3; }
  .xa-sh__type { clip-path: none; opacity: 0; transition: opacity .8s; }
  .scene.xa-ge0 .xa-sh__type { clip-path: none; opacity: 1; }
  .xa-sh__menu { display: none; }
}
@media (max-width: 759px) and (orientation: portrait) {
  .xa-sh__row--h .xa-sh__c--a { height: 92px; align-items: flex-end; padding-bottom: 6px; }
  .xa-sh__row--h .xa-sh__c--a { writing-mode: vertical-rl; transform: rotate(180deg); justify-content: flex-end; border-left: 1px solid #E8EAED; border-right: 0; }
  .xa-dots { gap: 2px; } .xa-dots i { width: 7px; height: 7px; }
  .xa-sh__tools > i:nth-child(n+7) { display: none; }
}

/* ---------- list article and Gmail draft (l2-how) ---------- */
.xa-stack2 { position: relative; height: 100%; min-height: 0; }
.xa-listpage { position: absolute; inset: 0 9% 0 0; transition: opacity .6s, filter .6s; }
.scene .xa-br { height: 100%; }
.xa-art { container-type: inline-size; display: grid; gap: 14px; align-content: start; padding: 22px clamp(16px, 4cqw, 30px); color: #1f1f1f; }
.xa-art__t { margin: 0; font-size: clamp(19px, 5cqw, 26px); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.xa-art__by { display: flex; align-items: center; gap: 10px; } .xa-art__by .xa-bar { width: 80px !important; } .xa-art__by .xa-bar + .xa-bar { width: 50px !important; }
.xa-art__av { width: 24px; height: 24px; border-radius: 50%; background: #D5E2E6; }
.xa-art__list { display: grid; gap: 14px; counter-reset: xa-e; }
.xa-art__e { position: relative; display: grid; gap: 6px; padding-left: 38px; }
.xa-art__e::before { counter-increment: xa-e; content: counter(xa-e); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #F1F3F4; color: #5f6368; font-size: 14px; font-weight: 600; }
.xa-art__h { margin: 0; font-size: 17px; line-height: 26px; font-weight: 700; }
.xa-bar--hd { height: 11px; margin: 7px 0; background: #D3D7DC; }
.xa-art__img { height: 54px; width: min(240px, 70%); border-radius: 8px; background: linear-gradient(135deg, #E9EEF2, #DCE4EA); }
.xa-art__gap { min-height: 66px; padding-left: 38px; }
.xa-art__gap::before { background: rgb(255 127 50 / .16); color: #E5631A; }
.xa-art__gapin { display: block; height: 66px; border-radius: 10px; border: 2px dashed #FF7F32; background: rgb(255 127 50 / .05); animation: xa-gap 1.6s ease-in-out infinite; }
@keyframes xa-gap { 50% { background: rgb(255 127 50 / .14); box-shadow: 0 0 22px rgb(255 127 50 / .35); } }
.xa-down { position: absolute; right: -44px; top: 64px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #F6E3DD; color: #A0523F; opacity: 0; transform: translateY(-8px); transition: opacity .5s .3s, transform .5s .3s; }
.scene.xa-ge2 .xa-down { opacity: 1; transform: none; }
.scene.xa-ge2 .xa-listpage .xa-br { opacity: .5; filter: grayscale(.6); transition: opacity .6s, filter .6s; }
.xa-gm { position: absolute; right: 0; bottom: 0; z-index: 4; width: min(80%, 460px); display: flex; flex-direction: column; background: #fff; border-radius: 12px 12px 10px 10px; overflow: hidden; font-size: 15px;
  box-shadow: 0 8px 10px rgb(0 0 0 / .08), 0 24px 60px -10px rgb(0 0 0 / .35); opacity: 0; transform: translateY(40px); transition: opacity .5s, transform .7s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.scene.xa-ge1 .xa-gm { opacity: 1; transform: none; }
.xa-gm__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 40px; padding: 0 14px; background: #F2F6FC; }
.xa-bar--gm { height: 9px; background: #C9D3E0; max-width: 120px; }
.xa-gm__ic { display: flex; gap: 10px; color: #444746; }
.xa-gm__row { display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 0 14px; border-bottom: 1px solid #EDEFF2; color: #5f6368; }
.xa-gm__chip { display: inline-flex; align-items: center; width: 130px; height: 24px; padding: 0 10px; border-radius: 999px; background: #EDF2FA; }
.xa-gm__chip .xa-bar { background: #C9D3E0; height: 7px; }
.xa-gm__subj { color: #1f1f1f; font-weight: 500; }
.xa-gm__body { display: grid; gap: 10px; padding: 12px 14px; }
.xa-gm__entry { display: grid; gap: 8px; padding: 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px #E0E3E7, inset 3px 0 0 #FF7F32; }
.xa-gm__entry b { font-weight: 700; font-size: 16px; }
.xa-gm__shot { position: relative; width: 132px; height: 74px; border-radius: 6px; background: linear-gradient(140deg, #FFF1E7, #FFE0CC); box-shadow: inset 0 0 0 1px #F3D2BC; overflow: hidden; }
.xa-gm__shot i { position: absolute; left: 12px; height: 7px; border-radius: 4px; background: rgb(229 99 26 / .5); }
.xa-gm__shot i:nth-child(1) { top: 14px; width: 60px; } .xa-gm__shot i:nth-child(2) { top: 30px; width: 90px; background: rgb(229 99 26 / .25); } .xa-gm__shot i:nth-child(3) { top: 46px; width: 74px; background: rgb(229 99 26 / .25); }
.xa-gm__foot { display: flex; align-items: center; gap: 12px; padding: 10px 14px 12px; }
.xa-gm__send { display: inline-grid; place-items: center; width: 64px; height: 36px; border-radius: 999px; background: #0B57D0; color: #fff; }
.xa-gm__foot i { width: 18px; height: 18px; border-radius: 4px; background: #E3E6EA; }
.xa-list .xa-ex-m, .xa-vs .xa-ex-m { top: 56px; right: calc(9% + 14px); }
.xa-vs .xa-ex-m { right: 14px; }

/* ---------- comparison page (l3-how) ---------- */
.xa-vswin { position: relative; height: 100%; min-height: 0; }
.xa-band { position: absolute; z-index: 5; left: 0; right: 0; top: 0; height: 6px; border-radius: 12px 12px 0 0; background: #D58F7C; opacity: 0; box-shadow: 0 0 22px rgb(225 140 120 / .8); transition: opacity .5s; }
.scene.xa-ge2 .xa-band { opacity: 1; animation: xa-band 1.6s ease-in-out .4s infinite; }
@keyframes xa-band { 50% { opacity: .55; } }
.xa-vsp { container-type: inline-size; display: grid; gap: 14px; align-content: start; padding: 22px clamp(16px, 4cqw, 30px); color: #1f1f1f; }
.xa-vsp__t { margin: 0; font-size: clamp(20px, 5.4cqw, 28px); line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
.xa-vsp__by { position: relative; display: flex; align-items: center; gap: 10px; min-height: 34px; }
.xa-vsp__by > .xa-bar { width: 70px !important; } .xa-vsp__by > .xa-bar + .xa-bar { width: 46px !important; }
.xa-stamp { margin-left: auto; display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 5px; border: 2px solid #FF7F32; color: #E5631A; background: #FFF6F0; font-size: 14px; font-weight: 700; white-space: nowrap;
  opacity: 0; transform: rotate(-4deg) scale(1.6); transition: opacity .25s .25s, transform .45s cubic-bezier(.3,1.5,.5,1) .25s; }
.scene.xa-ge1 .xa-stamp { opacity: 1; transform: rotate(-4deg); }
.xa-vsp__lede .xa-bar, .xa-vsp__lede i, .xa-vsp__more i { background: #E6E8EB; }
.xa-vs__tab { display: grid; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px #E3E6EA; }
.xa-vs__r { display: grid; grid-template-columns: minmax(84px, .9fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; min-height: 44px; border-top: 1px solid #ECEEF1;
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 160ms + 150ms); }
.xa-vs__r--h { border-top: 0; background: #F7F8FA; transition-delay: 0s; }
.scene.xa-ge0 .xa-vs__r { opacity: 1; transform: none; }
.xa-vs__r > * { padding: 0 12px; min-width: 0; }
.xa-vs__l { font-size: 15px; font-weight: 600; white-space: nowrap; }
.xa-vs__ph { display: flex; align-items: center; gap: 8px; height: 44px; }
.xa-vs__mk { width: 20px; height: 20px; border-radius: 6px; flex: none; }
.xa-vs__mk--q { background: #FF7F32; box-shadow: inset 0 0 0 5px #FFB27E; }
.xa-vs__mk--e { background: #9AA3AD; box-shadow: inset 0 0 0 5px #C5CBD2; }
.xa-vs__c { align-self: stretch; display: flex; align-items: center; transition: background .5s .3s, box-shadow .5s .3s; }
.xa-vs__v { display: flex; align-items: center; gap: 8px; width: 100%; }
.xa-vs__v .xa-bar { height: 8px; background: #DDE1E6; }
.xa-vs__r--best .xa-vs__v .xa-bar { height: 10px; background: #CFD5DC; }
.xa-vs__ok { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none; }
.xa-vs__ok.is-y { background: #DDF3EF; color: #1C6A60; } .xa-vs__ok.is-n { background: #F6E3DD; color: #A0523F; }
.scene.xa-ge1 .xa-vs__win { background: rgb(156 231 221 / .38); box-shadow: inset 0 0 0 2px #66CDBF; }
@container (max-width: 420px) {
  .xa-vs__r { grid-template-columns: minmax(74px, .8fr) minmax(0, 1fr) minmax(0, 1fr); }
  .xa-vs__r > * { padding: 0 8px; }
  .xa-vsp__by { flex-wrap: wrap; }
}
@container (max-width: 640px) { .xa-sh__c--l:last-child { display: none; } }
@media (max-width: 959px), (max-height: 599px) {
  .xa-sh__fx, .xa-sh__tabs, .xa-sh__menu { display: none; }
  .xa-sh__top { padding: 6px 10px 2px; }
  .xa-sh__tools { margin: 2px 8px 4px; padding: 4px 8px; }
  .xa-sh__c { height: 30px; }
  .xa-sh__c--l { height: 20px; }
}
@media (max-width: 759px) and (orientation: portrait) {
  .xa-sh__tools { display: none; }
  .xa-sh__row--letters { display: none; }
}
@media (max-width: 759px) and (orientation: portrait) { .xa-sh__row--h .xa-sh__c--a { height: 80px; } }
.xa-sh__tools .xa-ex-m { position: static; flex: none; margin-left: 4px; }
@media (max-width: 959px), (max-height: 599px) {
  .xa-sh__top, .xa-sh__row--letters { display: none; }
  .xa-sh__tools { margin-top: 8px; }
}
@media (max-width: 759px) and (orientation: portrait) { .xa-sh__tools { display: flex; } .xa-sh__tools > i { display: none; } }
@media (max-width: 759px) and (orientation: portrait) { .xa-sh__row--h .xa-sh__c--a { height: 72px; } }
@media (max-height: 400px) and (orientation: landscape) {
  .scene.xa-sheet .xa-sh__row[data-r="2"] .xa-sh__c { padding-top: 2px; padding-bottom: 2px; }
  .scene.xa-sheet .xa-sh__row[data-r="2"] .xa-sh__c--q { line-height: 1.2; }
}

/* the list and comparison mocks fit their box: trims by the height the mock actually gets */
.xa-stack2, .xa-vswin { container: xam / size; }
.xa-gm { max-height: calc(100% - 52px); }
.scene .xa-ex-b { flex: none; margin-left: 2px; }
@container xam (max-height: 560px) { .xa-art__img, .xa-art__e:nth-child(4) { display: none; } .xa-vsp__more { display: none; } }
@container xam (max-height: 460px) {
  .xa-art, .xa-vsp { gap: 10px; padding: 14px 16px; }
  .xa-art__by, .xa-art__e .xa-bars, .xa-vsp__lede { display: none; }
  .xa-art__list { gap: 10px; }
  .xa-art__gap, .xa-art__gapin { min-height: 40px; height: 40px; }
  .xa-gm { width: min(88%, 420px); font-size: 14px; }
  .xa-gm__bar { height: 30px; }
  .xa-gm__row:not(.xa-gm__subj), .xa-gm__foot, .xa-gm__shot, .xa-gm__body > .xa-bars { display: none; }
  .xa-gm__entry { padding: 10px; gap: 6px; }
  .xa-gm__entry b { font-size: 15px; }
  .xa-vs__r, .xa-vs__ph { min-height: 36px; height: 36px; }
}
@container xam (max-height: 350px) {
  .xa-list .br__bar, .xa-vswin .br__bar { height: 30px; }
  .xa-art__t { font-size: 18px; }
  .xa-art, .xa-vsp { padding: 10px 14px; gap: 8px; }
  .xa-vsp { grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; }
  .xa-vsp > * { grid-column: 1 / -1; }
  .xa-vsp__t { grid-column: 1; grid-row: 1; font-size: 16px; align-self: center; }
  .xa-vsp__by { grid-column: 2; grid-row: 1; min-height: 30px; }
  .xa-vsp__by > .rd-av, .xa-vsp__by > .xa-bar { display: none; }
  .xa-stamp { height: 26px; padding: 0 8px; }
  .xa-vs__r, .xa-vs__ph { min-height: 25px; height: 25px; }
  .xa-vs__l { font-size: 14px; }
  .xa-vs__ok { width: 18px; height: 18px; }
}
@container xam (max-height: 250px) {
  .xa-list .br__bar, .xa-vswin .br__bar { height: 24px; padding: 0 6px 0 10px; }
  .xa-list .br__bar .br__tab, .xa-vswin .br__bar .br__tab, .xa-list .br__url, .xa-vswin .br__url { display: none; }
  .xa-list .br__bar .xa-ex-b, .xa-vswin .br__bar .xa-ex-b { margin-left: auto; height: 20px; }
  .xa-vs__r--h { display: none; }
  .xa-vs__r { min-height: 22px; height: 22px; }
  .xa-art, .xa-vsp { padding: 6px 12px; gap: 6px; }
  .xa-art__list { gap: 6px; }
  .xa-art__e { min-height: 26px; }
  .xa-vsp__t { font-size: 15px; white-space: nowrap; }
  .xa-stamp { height: 24px; padding: 0 6px; }
}
@media (max-height: 380px) and (orientation: landscape) {
  .scene.xa-vs .as--split { grid-template-columns: minmax(0, .32fr) minmax(0, .68fr); column-gap: 18px; }
}
@media (max-width: 759px) and (orientation: portrait) {
  .xa-vsp { grid-template-columns: minmax(0, 1fr); }
  .xa-vsp__t { white-space: normal; }
  .xa-vsp__by { grid-column: 1; grid-row: auto; }
}
/* chrome of Google Sheets without glyphs: grey ticks in the letter row and the row-number gutter */
.xa-sh__row::before { content: ""; background: #F8F9FA linear-gradient(#C9CED4, #C9CED4) center / 9px 6px no-repeat; }
.xa-sh__row--letters::before { background: #F8F9FA; }
.xa-sh__c--l::after { content: ""; width: 9px; height: 6px; border-radius: 2px; background: #C9CED4; }
/* the stamp belongs to beat 2 only */
.scene.xa-ge2 .xa-stamp { opacity: 0; transition: opacity .3s; }
/* behind the email draft the list page keeps its shape; its words turn to grey bars */
.xa-tx { transition: opacity .4s .2s; }
.xa-art__t, .xa-art__h { position: relative; }
.xa-art__t::after, .xa-art__h:has(.xa-tx)::after { content: ""; position: absolute; left: 0; top: 50%; height: .55em; width: var(--tw, 60%); max-width: 100%; transform: translateY(-50%); border-radius: 5px; background: #D3D7DC; opacity: 0; transition: opacity .4s .2s; }
.xa-art__h::after { width: 5.2em; } .xa-art__t::after { width: 12em; }
.scene.xa-ge1 .xa-tx { opacity: 0; }
.scene.xa-ge1 .xa-art__t::after, .scene.xa-ge1 .xa-art__h:has(.xa-tx)::after { opacity: 1; }

/* Google Sheets on landscape frames under 960 x 600: horizontal headers, no row-number gutter, at least four rows */
.xa-sh__row[data-r="2"] .xa-sh__c { height: auto; min-height: 36px; padding-top: 4px; padding-bottom: 4px; }
.xa-sh__row[data-r="2"] .xa-sh__c--q { white-space: normal; line-height: 1.25; }
@media (orientation: landscape) and (max-width: 959px), (orientation: landscape) and (max-height: 599px) {
  .xa-sh__row { grid-template-columns: minmax(0, 1fr) repeat(4, 68px); }
  .xa-sh__row::before { display: none; }
  .xa-sh__row--h .xa-sh__c--a { font-weight: 500; padding: 0 2px; }
  .xa-sh__row--h .xa-sh__c { height: 28px; }
  .xa-sh__c { height: 24px; }
  .xa-sh__row[data-r="2"] .xa-sh__c { min-height: 28px; padding-top: 3px; padding-bottom: 3px; }
  .xa-sh__tools { margin: 6px 8px 4px; padding: 3px 8px; }
}
.scene .xa-ex-side { display: none; justify-self: start; }
@media (orientation: landscape) and (max-height: 380px) {
  .scene.xa-sheet .xa-sh__tools { display: none; }
  .scene.xa-sheet .xa-ex-side { display: inline-flex; }
}
.scene .xa-dl--total.xa-dl--left { justify-items: start; text-align: left; }
.scene .xa-dl--total.xa-dl--line { display: flex; align-items: baseline; gap: 6px; }
.scene .xa-dl--total.xa-dl--line b { font-size: 26px; }

/* audit round: real text in the mocks */
.xa-sh__qc { display: grid; width: 100%; align-items: center; }
.xa-sh__qc > * { grid-area: 1 / 1; }
.xa-sh__fq { opacity: 0; transition: opacity .4s .2s; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.xa-bar--q0 { opacity: 0; }
.scene.xa-b2 .xa-sh__fq { opacity: 1; }
.scene.xa-b2 .xa-bar--qf { opacity: 0; }
.scene.xa-b2 .xa-sh__type { opacity: 0; transition: opacity .3s; }
.scene.xa-b2 .xa-bar--q0 { opacity: 1; transition: opacity .3s .1s; }
.xa-sh__row--fade .xa-sh__fq { font-weight: 500; }
@container (max-width: 640px) { .xa-sh__fq { white-space: normal; line-height: 1.2; } }
.xa-gm__feat { display: grid; align-items: center; font-size: 15px; line-height: 1.35; color: #1f1f1f; }
.xa-gm__feat > * { grid-area: 1 / 1; }
.xa-bar--ft { opacity: 0; height: 8px; }
.scene.xa-ge2 .xa-gm__ft { opacity: 0; transition: opacity .3s; }
.scene.xa-ge2 .xa-bar--ft { opacity: 1; transition: opacity .3s .1s; }
.xa-vs__tx { font-size: 15px; line-height: 1.3; color: #1f1f1f; }
.xa-vs__r--best .xa-vs__tx { font-weight: 600; }
.xa-vs__ph { gap: 0; }
.xa-vs__mk { width: 24px; height: 24px; }
.xa-bar--lbl { height: 8px; background: #DDE1E6; width: 70% !important; }
@container xam (max-height: 350px) { .xa-vs__tx { font-size: 14px; } }
.scene.xa-b2 .xa-sh__type { position: absolute; }
@media (orientation: landscape) and (max-width: 959px), (orientation: landscape) and (max-height: 599px) {
  .xa-sh__row--fade .xa-sh__c { height: auto; min-height: 24px; padding-top: 2px; padding-bottom: 2px; }
  .xa-sh__fq { line-height: 1.15; }
}
@container xam (max-height: 350px) { .xa-vs__r { height: auto; padding: 2px 0; } .xa-vs__tx { line-height: 1.15; } }
.scene .xa-dl--lilac { color: #7A62B8; }
.xa-leader { position: absolute; left: 0; top: 0; z-index: 2; height: 1.5px; transform-origin: 0 50%; pointer-events: none; background: rgb(255 178 126 / .85); transition: opacity .4s; }
.xa-leader--lilac { background: rgb(205 189 235 / .9); }
.scene:not(.is-active) .xa-leader { transition: none; }
.xa-sh__row--fade .xa-sh__c { height: auto; min-height: 36px; }
.xa-sh__row--fade .xa-sh__fq { white-space: normal; line-height: 1.2; padding: 3px 0; }
@media (orientation: landscape) and (max-width: 959px), (orientation: landscape) and (max-height: 599px) { .xa-sh__row--fade .xa-sh__c { min-height: 24px; } }
@media (max-width: 759px) and (orientation: portrait) { .xa-sh__row--fade .xa-sh__c { min-height: 30px; } }
@media (orientation: landscape) and (max-height: 380px) {
  .scene.xa-b2 .xa-sh__row[data-r="2"] .xa-sh__c { min-height: 22px; padding-top: 0; padding-bottom: 0; }
  .xa-sh__row--fade .xa-sh__fq { padding: 1px 0; line-height: 1.1; }
  .xa-sh__row--h .xa-sh__c { height: 26px; }
}
