/* ==== Evidence table (tb-): Ferguson's version, struck out claim by claim. Loaded after kit.css. ====
   Left, the sheet of Ferguson's version: six lines, struck through in red pencil as they fall. Right, the desk: the claim
   open now in his words, two blanks for the proofs that strike it, the tray of proofs (cards «Stabilito» first), Holmes
   and «Verifica». Seals answer a verification: gold where the pair holds, bronze «?» for a proof that bears on the
   claim, red for one that does not. At the end the desk shows Holmes's version, in the order things happened. */
#app.immersive{--tb-ink:#2c1a0c;--tb-paper:#ecdcb8;--tb-wax:#8e1f17;--tb-pencil:#b3241b;--tb-seal:#b8862f;--tb-glow:#f3c56a;--tb-green:#24452f}

#app.immersive .tb-board{flex:1;min-width:0;min-height:0;display:grid;grid-template-columns:clamp(210px,22cqw,280px) minmax(0,1fr);gap:14px;font-family:var(--kit-text);color:var(--kit-ivory)}

/* Ferguson's version: a sheet of letter paper, his six claims as lines; Holmes's version closes it. */
#app.immersive .tb-version{position:relative;min-height:0;display:flex;flex-direction:column;gap:4px;padding:14px 12px 12px 16px;border-style:solid;border-width:22px;border-image:url('../assets/ui/kit/ui-v2-foglio-ferguson.webp') 60 fill / 22px / 0 stretch round;background:var(--tb-paper) padding-box;color:var(--tb-ink);transform:rotate(-.6deg);filter:drop-shadow(0 8px 14px #000b)}
#app.immersive .tb-version-head{margin:0 0 2px;font:italic 600 calc(16px * var(--kit-scale)) / 1.2 var(--kit-display);color:#6b3f14;border-bottom:1px solid #82501b55;padding-bottom:4px}
#app.immersive .tb-version ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px;min-height:0;overflow:auto;scrollbar-width:none}
#app.immersive .tb-claim-line{position:relative;display:flex;align-items:flex-start;gap:8px;width:100%;min-height:44px;padding:5px 6px;border:0;border-radius:3px;background:none;color:var(--tb-ink);font:calc(15px * var(--kit-scale)) / 1.25 var(--kit-text);text-align:left;text-decoration:none;transition:background .15s}
#app.immersive .tb-claim-line:hover:not(:disabled){background:#82501b14;border:0;color:var(--tb-ink)}
#app.immersive .tb-claim-line[aria-pressed="true"]{background:#f3c56a44;box-shadow:inset 3px 0 0 #b06a12}
#app.immersive .tb-claim-line:focus-visible{outline:2px solid #6b4510;outline-offset:1px}
#app.immersive .tb-num{flex:none;display:grid;place-items:center;width:1.55em;height:1.55em;margin-top:1px;border-radius:50%;border:1.5px solid #82501b;color:#6b3f14;font:700 .85em/1 var(--kit-text)}
#app.immersive .tb-num svg{width:1em;height:1em}
#app.immersive .tb-line{display:flex;flex-direction:column;min-width:0}
#app.immersive .tb-line-text{font-family:var(--kit-display);font-weight:600}
#app.immersive .tb-line-fact{font:italic calc(13px * var(--kit-scale)) / 1.25 var(--kit-text);color:var(--tb-green)}
/* A struck claim: a red pencil line through it, the established reading under it in green ink. */
#app.immersive .tb-claim-line.struck .tb-line-text{color:#6e5a48;background:url('../assets/ui/kit/ui-v2-tratto-rosso.webp') left 55%/100% .9em no-repeat;background-clip:padding-box}
#app.immersive .tb-claim-line.struck .tb-num{border-color:var(--tb-pencil);color:var(--tb-pencil)}
#app.immersive .tb-claim-line.locked{color:#8c7a64}
#app.immersive .tb-claim-line.locked .tb-num{border-style:dashed;color:#8c7a64;border-color:#a08868}
#app.immersive .tb-holmes-line{margin-top:auto;border-top:1px dashed #82501b66;border-radius:0;padding-top:8px}
#app.immersive .tb-holmes-line .tb-num{border-color:var(--tb-green);color:var(--tb-green)}

/* The desk: the kit's framed panel on marble. */
#app.immersive .tb-desk{--frame-w:44px;position:relative;isolation:isolate;min-width:0;min-height:0;display:flex;flex-direction:column;gap:10px;padding:calc(var(--frame-w) * .72) calc(var(--frame-w) * .8);overflow:hidden}
#app.immersive .tb-desk::before{content:'';position:absolute;inset:calc(var(--frame-w) * .55);z-index:-1;border-radius:calc(var(--frame-w) * .21);background:linear-gradient(#00100cd8,#00100cd8),url('../assets/ui/kit/ui-v2-trama-marmo.webp') center/256px repeat,var(--kit-green);box-shadow:0 14px 40px #000c}
#app.immersive .tb-desk::after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;border-style:solid;border-width:var(--frame-w);border-image:url('../assets/ui/kit/ui-v2-cornice-media.webp') 112 / var(--frame-w) / 0 stretch}

/* The paper: Ferguson's claim in his words, then the two blanks for the proofs. */
#app.immersive .tb-paper{flex:none;position:relative;padding:12px 20px 10px;background:url('../assets/ui/kit/ui-v2-carta.webp') center/100% 100% no-repeat,var(--tb-paper);color:var(--tb-ink);box-shadow:0 5px 16px #000b;transform:rotate(-.3deg)}
#app.immersive .tb-claim{position:relative;display:flex;align-items:center;gap:12px;margin:0 0 6px}
#app.immersive .tb-face{flex:none;width:46px;height:46px;border-radius:50%;object-fit:cover;object-position:50% 18%;border:2px solid var(--kit-gold-mid);box-shadow:0 2px 6px #000a}
#app.immersive .tb-face-ferguson{border-color:#82501b}
#app.immersive .tb-claim p{position:relative;margin:0;font:italic 600 calc(clamp(19px,1.6cqw,25px) * var(--kit-scale)) / 1.3 var(--kit-display);color:var(--tb-ink)}
#app.immersive .tb-strike{position:absolute;left:-3%;right:-7%;top:50%;height:.95em;transform:translateY(-50%) rotate(-1.2deg);background:url('../assets/ui/kit/ui-v2-tratto-rosso.webp') center/100% 100% no-repeat;pointer-events:none}
#app.immersive .tb-claim.struck p{color:#6e5a48}
#app.immersive .tb-claim.struck{padding-right:78px}
/* «Smentito», a red office stamp across the corner of the paper. */
#app.immersive .tb-stamp{position:absolute;right:4px;top:-6px;width:86px;height:86px;background:url('../assets/ui/kit/ui-v2-sigillo-smentito.webp') center/contain no-repeat;transform:rotate(-12deg);opacity:.9;mix-blend-mode:multiply;pointer-events:none}
#app.immersive .tb-stamp.stamping{animation:tb-stamp .55s cubic-bezier(.3,1.6,.5,1) var(--enter-at,0ms) both}
@keyframes tb-stamp{from{transform:rotate(-12deg) scale(2.4);opacity:0}to{transform:rotate(-12deg) scale(1);opacity:.9}}
#app.immersive .tb-claim.struck .tb-strike{animation:tb-strike .5s ease-out both}
@keyframes tb-strike{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}

#app.immersive .tb-row{margin:0;padding:6px 0 2px;border-top:1px dotted #82501b66;font:600 calc(clamp(16px,1.3cqw,20px) * var(--kit-scale))/1.6 var(--kit-display)}
#app.immersive .tb-row .tb-slot{vertical-align:middle}
#app.immersive .tb-slot{position:relative;flex:1 1 12em;display:inline-flex;align-items:center;min-height:2em;max-width:100%;margin:0;padding:3px .7em;border:0;border-bottom:2px dashed #82501b;border-radius:3px 3px 0 0;background:#82501b14;color:#82501b;font:italic 500 calc(clamp(16px,1.3cqw,20px) * var(--kit-scale)) / 1.25 var(--kit-display);text-align:left;text-decoration:none;cursor:pointer;transition:background .15s,box-shadow .15s}
#app.immersive .tb-slot.filled{border-bottom-style:solid;background:#fff6dfcc;color:var(--tb-ink);font-style:normal;font-weight:600;box-shadow:0 1px 3px #0004}
#app.immersive .tb-slot.fact{color:var(--tb-green);background:#e4efd9e6}
#app.immersive .tb-slot.active{background:#f3c56a55;border-bottom-color:#b06a12;box-shadow:0 0 0 2px #e9a73a,0 0 14px #f3c56a;animation:tb-lit 1.6s ease-in-out infinite}
@keyframes tb-lit{50%{box-shadow:0 0 0 2px #e9a73a,0 0 4px #f3c56a}}
#app.immersive span.tb-slot{cursor:default}
#app.immersive .tb-slot:hover:not(:disabled):not(.active){background:#f3c56a33;border-color:#82501b}
#app.immersive .tb-slot:focus-visible{outline:2px solid #6b4510;outline-offset:2px}
/* A seal on a blank: gilt for a pair that holds, bronze «?» for a proof that bears on the claim, wax red for one that does not. */
#app.immersive .tb-mark{position:absolute;right:-.5em;top:-.6em;display:grid;place-items:center;width:1.35em;height:1.35em;border-radius:50%;font:700 .72em/1 var(--kit-text);font-style:normal;color:#fff6df;box-shadow:0 1px 3px #0008,inset 0 0 0 2px #0002}
#app.immersive .mark-ok>.tb-mark{background:radial-gradient(circle at 35% 30%,#e8c470,#9c6b1e)}
#app.immersive .mark-no>.tb-mark{background:radial-gradient(circle at 35% 30%,#c0453a,#6d140e)}
#app.immersive .mark-half>.tb-mark{background:radial-gradient(circle at 35% 30%,#a88a63,#5a4126)}
#app.immersive .tb-slot.mark-no{background:#c0453a22;border-bottom-color:#8e1f17}
#app.immersive .tb-slot.mark-ok{border-bottom-color:#9c6b1e}
#app.immersive .tb-peek{display:flex;gap:8px;align-items:flex-start;margin:6px 0 0;padding-top:6px;border-top:1px solid #82501b44;font:calc(14px * var(--kit-scale)) / 1.45 var(--kit-text);color:#4a3220}
#app.immersive .tb-peek+.tb-peek{border-top:0;margin-top:0;padding-top:2px}
#app.immersive .tb-peek svg{flex:none;width:18px;height:18px;margin-top:2px;color:#82501b}
#app.immersive .tb-peek b{color:var(--tb-ink)}
#app.immersive .tb-peek.fact svg,#app.immersive .tb-peek.fact b{color:var(--tb-green)}

/* The card «Stabilito»: ivory with a green band and a green wax seal; it lands on the desk when a claim falls. */
#app.immersive .tb-fact-card{flex:none;position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:10px;align-items:baseline;margin:0 6px;padding:8px 16px 8px 4px;border-style:solid;border-width:9px 26px 10px 70px;border-image:url('../assets/ui/kit/ui-v2-cartellino-stabilito.webp') 17 40 19 120 fill / 9px 26px 10px 70px / 0 stretch;color:var(--tb-ink);font:calc(15px * var(--kit-scale)) / 1.4 var(--kit-text);filter:drop-shadow(0 4px 8px #000a)}
#app.immersive .tb-fact-kind{grid-row:span 2;font:700 calc(11px * var(--kit-scale)) / 1 var(--kit-text);letter-spacing:.12em;text-transform:uppercase;color:var(--tb-green)}
#app.immersive .tb-fact-card b{font:600 calc(19px * var(--kit-scale)) / 1.2 var(--kit-display);color:var(--tb-green)}
#app.immersive .tb-fact-card>span:last-child{grid-column:2}
#app.immersive .tb-fact-card.arriving{animation:tb-land .7s cubic-bezier(.2,1.2,.4,1) calc(var(--enter-at,0ms) + 450ms) both}
@keyframes tb-land{from{transform:translateY(-26px) rotate(-3deg) scale(1.06);opacity:0}to{transform:none;opacity:1}}

/* The tray: the proofs, grouped; the cards «Stabilito» first, in green. */
#app.immersive .tb-tray{flex:1 1 auto;min-height:88px;display:flex;flex-direction:column;gap:6px}
#app.immersive .tb-tray-label{flex:none;margin:0;font:italic calc(14px * var(--kit-scale)) / 1.3 var(--kit-text);color:var(--kit-gold-mid)}
#app.immersive .tb-tray-cards{min-height:0;overflow:auto;display:flex;flex-wrap:wrap;align-content:flex-start;gap:8px 6px;padding:4px 2px 6px;scrollbar-width:thin;scrollbar-color:var(--kit-bronze) transparent}
#app.immersive .tb-tray-group{flex:0 0 100%;font:italic calc(13px * var(--kit-scale)) / 1.3 var(--kit-text);color:#c9b78c}
#app.immersive .tb-card{position:relative;display:inline-flex;align-items:center;gap:6px;min-height:44px;max-width:100%;padding:4px 8px;border:0;border-style:solid;border-width:0 18px;border-image:url('../assets/ui/kit/ui-v2-cartellino-prova.webp') 0 64 fill / 0 18px / 0 stretch;border-radius:0;background:none;color:var(--tb-ink);font:calc(15px * var(--kit-scale)) / 1.25 var(--kit-text);text-align:left;text-decoration:none;transition:transform .12s,filter .12s,opacity .2s}
#app.immersive .tb-card svg{flex:none;width:16px;height:16px;color:#7a5a32}
#app.immersive .tb-card-fact{border-width:4px 18px 5px 34px;border-image:url('../assets/ui/kit/ui-v2-cartellino-stabilito.webp') 17 40 19 120 fill / 4px 18px 5px 34px / 0 stretch;color:var(--tb-green);font-weight:600}
#app.immersive .tb-card-fact svg{color:var(--tb-green)}
#app.immersive .tb-card.faded{opacity:.45;filter:grayscale(.7)}
#app.immersive .tb-card:hover:not(:disabled){filter:brightness(1.06) drop-shadow(0 0 5px #e9bc6c99);border-color:transparent;background:none;color:var(--tb-ink)}
#app.immersive .tb-card-fact:hover:not(:disabled){color:var(--tb-green)}
#app.immersive .tb-card[aria-pressed="true"]{filter:brightness(.82) saturate(.6);transform:translateY(1px)}
#app.immersive .tb-card[aria-pressed="true"]::after{content:'';position:absolute;left:-10px;top:-14px;width:20px;height:34px;background:url('../assets/ui/kit/ui-v2-fermaglio.webp') center/contain no-repeat;pointer-events:none}
#app.immersive .tb-card:active{transform:scale(.97)}
#app.immersive .tb-card:focus-visible{outline:2px solid var(--kit-ivory);outline-offset:2px}

#app.immersive .tb-board button[data-proof]{cursor:grab;user-select:none;-webkit-user-select:none}
#app.immersive .tb-card[data-proof]{touch-action:pan-x}
#app.immersive .tb-slot[data-proof]{touch-action:none}
#app.immersive .tb-board.tb-dragging{cursor:grabbing;user-select:none}
#app.immersive .tb-board .tb-grabbed{opacity:.38}
#app.immersive .tb-dragging button.tb-slot{outline:1px dashed #926638;outline-offset:2px;animation:none}
#app.immersive .tb-dragging button.tb-drop-target{outline:2px solid #8b5a1f;background:#ffe2a2;box-shadow:0 0 10px #b76e3270}
.tb-drag-proof{position:fixed;z-index:1000;left:0;top:0;pointer-events:none;padding:6px 12px;max-width:85vw;border:1px solid #8f682e;border-radius:3px;background:#fff1cd;color:#352311;box-shadow:0 4px 14px #0008;font:600 16px/1.25 Georgia,serif;white-space:nowrap}
.tb-drag-proof.fact{background:#e4efd9;color:#24452f}
.tb-drag-proof.remove{background:#f0d2c4;border-color:#a64637}

/* Holmes answers, beside the seal of «Verifica». */
#app.immersive .tb-foot{flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding-top:8px;border-top:1px solid #c5a56c55}
#app.immersive .tb-holmes{display:flex;align-items:center;gap:10px;min-width:0;min-height:48px}
#app.immersive .tb-holmes p{margin:0;max-height:5.6em;overflow:auto;font:calc(15px * var(--kit-scale)) / 1.4 var(--kit-text);color:#ece5ca;scrollbar-width:none}
#app.immersive .tb-holmes small{display:block;margin-top:2px;font-size:.85em;color:#bfb08a}
#app.immersive .tb-holmes.idle p{font-style:italic;color:#d9cba6}
#app.immersive .tb-holmes:is(.nudge,.standin) p{font-style:italic;color:#f1dca6}
#app.immersive .tb-holmes.standin .tb-face{border-color:#5f9a6a}
#app.immersive .tb-holmes:is(.wrong,.insufficient) .tb-face{border-color:#c0453a}
#app.immersive .tb-holmes.supported .tb-face{border-color:#e8c470;box-shadow:0 0 10px #e9bc6c99}
#app.immersive .tb-holmes.supported p{color:#fff3d6}
#app.immersive .tb-actions{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
#app.immersive .tb-actions small{font-size:13px;color:#e8b8a6}
#app.immersive .tb-verify,#app.immersive .tb-go{position:relative;display:inline-flex;align-items:center;min-height:50px;padding:0 1.4em 0 2.4em;border:0;border-style:solid;border-width:0 26px;border-image:url('../assets/ui/kit/ui-v2-pulsante-verde.webp') 0 96 fill / 0 26px / 0 stretch;background:none;color:var(--kit-ivory);font:600 calc(clamp(15px,1.15cqw,19px) * var(--kit-scale)) / 1.1 var(--kit-display);text-shadow:0 1px 2px #000;text-decoration:none}
#app.immersive .tb-go{padding-left:1.2em}
#app.immersive .tb-verify::before{content:'';position:absolute;left:-30px;top:50%;width:58px;height:58px;transform:translateY(-50%);background:url('../assets/ui/kit/ui-v2-sigillo-verifica.webp') center/contain no-repeat;filter:drop-shadow(0 2px 3px #000a)}
#app.immersive .tb-verify:not(.ready){filter:saturate(.5) brightness(.75)}
#app.immersive :is(.tb-verify,.tb-go):hover:not(:disabled){filter:brightness(1.15) drop-shadow(0 0 6px #e9bc6c88);border-color:transparent;background:none}
#app.immersive :is(.tb-verify,.tb-go).ready{animation:tb-ready 2.4s ease-in-out infinite}
@keyframes tb-ready{50%{filter:brightness(1.18) drop-shadow(0 0 8px #f3c56a)}}

/* A claim struck: Holmes's reading takes the middle of the desk, larger, before the way on. */
#app.immersive .tb-reveal{flex:1 1 auto;min-height:0;display:flex;align-items:center;padding:4px 6px;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--kit-bronze) transparent}
#app.immersive .tb-reveal .tb-holmes{align-items:flex-start;gap:14px}
#app.immersive .tb-reveal .tb-face{width:60px;height:60px}
#app.immersive .tb-reveal .tb-holmes p{max-height:none;font:calc(clamp(16px,1.3cqw,20px) * var(--kit-scale)) / 1.5 var(--kit-text);color:#fff3d6}
#app.immersive .tb-filed{margin:0;font:italic calc(13px * var(--kit-scale)) / 1.35 var(--kit-text);color:#c9b78c}

/* Holmes’s account on a single, scrollable sheet. */
#app.immersive .tb-holmes-version{flex:1 1 auto;min-height:0;overflow:auto;padding:clamp(12px,2cqw,28px);background:url('../assets/ui/kit/ui-v2-carta.webp') center/100% 100% no-repeat,var(--tb-paper);color:var(--tb-ink);box-shadow:0 3px 8px #0009;font:calc(15px * var(--kit-scale))/1.55 var(--kit-text);scrollbar-width:thin;scrollbar-color:#926638 transparent}
#app.immersive .tb-holmes-version:focus-visible{outline:2px solid var(--tb-glow);outline-offset:1px}
#app.immersive .tb-holmes-version h2{margin:0 0 .45em;font:600 calc(27px * var(--kit-scale))/1.1 var(--kit-display)}
#app.immersive .tb-holmes-version p{max-width:68ch;margin:0 0 .72em}
#app.immersive .tb-holmes-version p:last-child{margin-bottom:0}

/* The board after the note, or once the case is over. */
#app.immersive .board-panel .primary{margin-top:6px}

/* Low laptop screens (the board gets about 370 px): smaller claim, only the note last touched. */
@media (max-height:760px) and (min-height:561px){
  #app.immersive .tb-desk{gap:6px;--frame-w:36px}
  #app.immersive .tb-paper{padding:8px 18px}
  #app.immersive .tb-claim p{font-size:calc(18px * var(--kit-scale))}
  #app.immersive .tb-peek:not(.current){display:none}
  #app.immersive .tb-claim-line{min-height:38px;padding:3px 6px;font-size:calc(14px * var(--kit-scale))}
  #app.immersive .tb-line-fact{display:none}
  #app.immersive .tb-reveal .tb-face{width:48px;height:48px}
}

/* Landscape phone (750×340 and 667×325 with Safari's bars): the sheet becomes a column of numbered seals beside the
   desk; the desk holds the claim, the two blanks, one note, two rows of proofs that scroll sideways, Holmes and «Verifica». */
@media (max-height:560px) and (min-aspect-ratio:1/1){
  #app.immersive .tb-board{grid-template-columns:auto minmax(0,1fr);gap:6px}
  #app.immersive .tb-version{padding:4px 2px;border-width:10px;transform:none;gap:2px}
  #app.immersive .tb-version-head,#app.immersive .tb-line{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  #app.immersive .tb-version ol{gap:1px}
  #app.immersive .tb-claim-line{justify-content:center;width:44px;min-height:38px;padding:0}
  #app.immersive .tb-claim-line[aria-pressed="true"]{box-shadow:inset 0 0 0 2px #b06a12}
  #app.immersive .tb-num{width:28px;height:28px;margin:0;font-size:14px}
  #app.immersive .tb-claim-line.struck .tb-num{background:url('../assets/ui/kit/ui-v2-tratto-rosso.webp') center/120% 40% no-repeat}
  #app.immersive .tb-holmes-line{padding-top:3px}
  #app.immersive .tb-desk{--frame-w:26px;gap:5px;padding:15px 18px 11px;overflow:hidden}
  #app.immersive .tb-paper{padding:5px 12px 4px;transform:none}
  #app.immersive .tb-claim{gap:8px;margin-bottom:3px}
  #app.immersive .tb-claim .tb-face{width:30px;height:30px}
  #app.immersive .tb-claim p{font-size:calc(14.5px * var(--kit-scale));line-height:1.25}
  #app.immersive .tb-stamp{width:54px;height:54px;top:-8px;right:0}
  #app.immersive .tb-claim.struck{padding-right:52px}
  #app.immersive .tb-row{font-size:calc(15px * var(--kit-scale));padding:3px 0 1px}
  #app.immersive .tb-slot{flex:1 1 0;min-width:0;min-height:34px;padding:1px .5em;font-size:calc(14px * var(--kit-scale))}
  #app.immersive .tb-slot .tb-slot-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #app.immersive .tb-peek{margin-top:2px;padding-top:2px;font-size:12.5px;line-height:1.3}
  #app.immersive .tb-peek:not(.current){display:none}
  #app.immersive .tb-peek svg{display:none}
  #app.immersive .tb-peek span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
  #app.immersive .tb-fact-card{padding:1px 4px;border-width:6px 14px 7px 40px;font-size:calc(12.5px * var(--kit-scale));line-height:1.3}
  #app.immersive .tb-fact-card b{font-size:14px}
  #app.immersive .tb-fact-kind{font-size:11px}
  #app.immersive .tb-tray{flex:1 1 auto;min-height:46px;gap:2px}
  #app.immersive .tb-tray-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  #app.immersive .tb-tray-cards{--tray-rows:2;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 34px),#0000);mask-image:linear-gradient(90deg,#000 calc(100% - 34px),#0000);display:grid;grid-template-rows:repeat(var(--tray-rows),auto);grid-auto-flow:column;grid-auto-columns:max-content;align-items:center;gap:6px;overflow-x:auto;overflow-y:hidden;padding:10px 38px 2px 2px;scroll-snap-type:x proximity}
  #app.immersive .tb-tray-group{grid-row:span var(--tray-rows);width:2px;height:70%;align-self:center;margin:0 4px;overflow:hidden;color:transparent;font-size:0;background:linear-gradient(transparent,var(--kit-gold-mid),transparent)}
  #app.immersive .tb-tray-group:first-child{display:none}
  #app.immersive .tb-card{min-height:38px;font-size:calc(13px * var(--kit-scale));white-space:nowrap;scroll-snap-align:start}
  #app.immersive .tb-card::before,#app.immersive .tb-slot::before{content:'';position:absolute;inset:-4px -2px}
  #app.immersive .tb-foot{gap:8px;padding-top:3px}
  #app.immersive .tb-face{width:32px;height:32px}
  #app.immersive .tb-holmes{min-height:38px;gap:8px}
  #app.immersive .tb-holmes p{font-size:calc(12.5px * var(--kit-scale));line-height:1.3;max-height:3.95em}
  #app.immersive .tb-verify,#app.immersive .tb-go{min-height:44px;font-size:15px;padding:0 .9em 0 1.9em;border-width:0 18px}
  #app.immersive .tb-go{padding-left:.9em}
  #app.immersive .tb-verify::before{left:-20px;width:44px;height:44px}
  #app.immersive .tb-actions small{font-size:12px}
  #app.immersive .tb-reveal .tb-face{width:38px;height:38px}
  #app.immersive .tb-reveal .tb-holmes p{font-size:calc(14px * var(--kit-scale));line-height:1.4}
  #app.immersive .tb-filed{font-size:12px}
  #app.immersive .tb-holmes-version{padding:8px 12px;font-size:calc(13px * var(--kit-scale));line-height:1.45}
  #app.immersive .tb-holmes-version h2{font-size:calc(21px * var(--kit-scale))}
  #app.immersive.large-text .tb-reveal .tb-holmes p{font-size:15px;line-height:1.35}
}

/* Three rows of cards on a 750×340 phone, while no note of a proof takes the height; two on a shorter screen or with large text. */
@media (max-height:560px) and (min-height:331px) and (min-aspect-ratio:1/1){#app.immersive:not(.large-text) .tb-desk:not(:has(.tb-peek)) .tb-tray-cards{--tray-rows:3}}

@media (prefers-reduced-motion:reduce){
  #app.immersive :is(.tb-slot.active,.tb-verify.ready,.tb-go.ready){animation:none}
  #app.immersive :is(.tb-stamp.stamping,.tb-fact-card.arriving,.tb-claim.struck .tb-strike){animation:none}
  #app.immersive :is(.tb-claim-line,.tb-card){transition:none}
}
/* Large text on a phone: the two rows of cards keep their whole height. */
@media (max-height:560px) and (min-aspect-ratio:1/1){#app.immersive.large-text .tb-card{min-height:35px}#app.immersive.large-text .tb-tray-cards{row-gap:4px}}
