/* ═══ Skincheese v7.8 · clean system pass (Oct 23, 2026) ═══
   Rules this layer enforces:
   1. Chrome is centered (header, both advisory bars, footer). Content sections stay left on one grid.
   2. One label voice: sentence case, sans, muted. Mono only for values. Tracked caps only in the wordmark.
   3. One link style: text + chevron. No arrows, no pills.
   4. Nothing repeats on screen: top bar = where you are, bottom bar = the advisory and its inputs,
      footer = the full model card (the bottom bar steps aside when the footer arrives).
   5. iPhone: photo, then your own photo, then the verdict, then the readouts. */

/* ── 1 · centered advisory bars ── */
.vtop .vwrap{justify-content:center;text-align:center}
.vtop-d{flex:0 1 auto}
.vbar .vwrap{justify-items:center;text-align:center}
.vbar-1{justify-content:center;flex-wrap:nowrap;max-width:100%}
.vbar-m{margin-left:6px!important}
.vbar-m::before{content:"·";color:var(--t-hair2);margin-right:4px}
.vbar-2{justify-content:center;max-width:100%}
.vbar{transition:transform .35s cubic-bezier(.2,.8,.2,1),opacity .35s}
.vbar.v78-away{transform:translateY(110%);opacity:0;pointer-events:none}
@media(prefers-reduced-motion:reduce){.vbar{transition:none}}
@media(max-width:700px){.vbar-m::before{display:none}.vbar-1{gap:8px}}

/* ── 2 · one label voice ── */
.al-tag,.al-pt,.al-you span,.st-act,.st-ih,.st-inspect dt,.gx-k,.gx-dos dt,.gx-tbl th,.gx-assess span,.gev-k,.gev-grid span,
[data-hl="readout"] dt,.hl-dl dt,.hl-ct th,.sw-tag,.vfor-c h4,.al-scope button,
html[data-v] #scanner .sc4-pill,html[data-v] #scanner .sc4-r-label,html[data-v] #scanner .sc4-samples-label{
  text-transform:none!important;letter-spacing:-.005em!important;font-family:var(--t-body)!important}
.al-tag{font-weight:600!important;font-size:11.5px!important}
.st-ih{font-size:13px!important;font-weight:600!important;color:var(--t-ink)!important}
.vfor-c h4{font-size:13px!important;font-weight:600!important;color:var(--t-ink)!important}
html[data-v] #scanner .sc4-r-label{font-size:12.5px!important}
/* status line from the engine arrives in capitals: show it in sentence case */
html[data-v] #scanner .sc4-status #statusText{display:inline-block;text-transform:lowercase;font-family:var(--t-body);font-size:13px;letter-spacing:0}
html[data-v] #scanner .sc4-status #statusText::first-letter{text-transform:uppercase}
/* map overlays: the list beside each map already says it */
html[data-v] .almap .gev-hud,html[data-v] .stmap .gev-hud{display:none}
html[data-v] .locator .gev-hud.tl{display:none}

/* ── 3 · one link style ── */
.tl::after,.st-act::after,.gx-link::after,.ent-cards i::after{content:""!important;display:inline-block;width:6px;height:6px;border:solid currentColor;border-width:1.5px 1.5px 0 0;transform:rotate(45deg);margin-left:6px;vertical-align:1px}
.st-act,.gx-link,.tl{font:500 15px/1 var(--t-body)!important;letter-spacing:-.01em!important;text-transform:none!important}

/* ── 4 · statement band: numbers never collide ── */
.vproof{gap:0 20px}
.vproof div+div{padding-left:0}
.vproof b{white-space:nowrap;font-size:clamp(24px,2.6vw,34px)!important}
.vhead .vkick{margin-bottom:0!important}
@media(min-width:900px){.vhead .vkick{grid-column:1/-1;margin:0 0 -18px!important}}

/* ── scanner, desktop: all eight test images fit, no clipped tile ── */
@media(min-width:961px){
  html[data-v] #scanner .sc4-chips{gap:9px;overflow:visible!important;justify-content:space-between}
  html[data-v] #scanner .sc4-chips button{flex:0 0 60px!important;width:60px!important}
  html[data-v] #scanner .sc4-chips img{width:60px;height:60px}
}

/* ── 5 · iPhone order: photo → your own → test images → verdict → readouts ── */
@media(max-width:960px){
  html[data-v] #scanner .terminal-bar{order:1}
  html[data-v] #scanner .sc4-stage{order:2}
  html[data-v] #scanner .vown{order:3}
  html[data-v] #scanner .sc4-samples{order:4}
  html[data-v] #scanner .sc4-foot{order:5}
  html[data-v] #scanner .sc4-results{order:6}
  html[data-v] #scanner .vfor-img{order:7}
  html[data-v] #scanner .vown{padding-block:14px}
  html[data-v] #scanner .vown-t>span{display:none}
}

/* footer: the model card is the last word; give it room above the hidden bar */
.sk-ft{padding-bottom:calc(64px + env(safe-area-inset-bottom,0px))!important}
/* centered lines that clip at the end, never at the start */
.vbar-2,.vtop-d{display:block!important;width:100%;max-width:100%;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vbar-2 span,.vtop-d span{display:inline}
.vtop .vwrap{display:flex}
.vtop-l{flex:none}
/* iPhone: the two capture actions stay on one line each */
@media(max-width:700px){
  .vown-b{font-size:15px!important;gap:8px;padding:0 10px;white-space:nowrap;min-height:52px}
  .vown-b svg{width:20px;height:20px}
}

/* ── red is for alerts only: every link, action and tab is white ── */
.sk-act,.vlink,.tl,.tl span,.st-act,.gx-link,.sk-ft-links a,.ent-cards a em,.ent-cards a i,
.vtabs a,.vrail a,
html[data-v] #scanner .sc4-actions .btn-ghost,html[data-v] #scanner .analyze-btn,html[data-v] #scanner .sc4-r-actions button{
  color:var(--t-ink,#f5f5f7)!important}
.vtabs a:not(.on),.vrail a:not(.on){color:var(--t-dim,#a1a1a6)!important}
.vtabs a.on,.vrail a.on{color:var(--t-ink,#f5f5f7)!important}
.sk-act:hover,.vlink:hover,.tl:hover,.st-act:hover,.gx-link:hover,.sk-ft-links a:hover,.ent-cards a:hover em,
html[data-v] #scanner .sc4-r-actions button:hover,html[data-v] #scanner .analyze-btn:hover{opacity:.7}
.vhead .vkick{color:var(--t-dim,#a1a1a6)!important}
.vh .vred{color:inherit!important}
html{--t-link:var(--t-ink)}

/* ── iPhone: readouts fold (This image, This device), verdict stays up front ── */
@media(max-width:700px){
  .vfor-h[role=button]{position:relative;cursor:pointer;padding:14px 28px 14px 0;margin:0!important;border-top:1px solid var(--t-hair);-webkit-tap-highlight-color:transparent}
  .vfor-h[role=button]::after{content:"";position:absolute;right:4px;top:22px;width:8px;height:8px;border:solid var(--t-dim);border-width:0 1.5px 1.5px 0;transform:rotate(45deg);transition:transform .2s}
  .vfor-h[aria-expanded=true]::after{transform:rotate(-135deg);top:26px}
  .vfor.v78-fold .vfor-g{display:none}
  .vfor-h[aria-expanded=true]{margin-bottom:10px!important}
}
.vcols em{color:var(--t-ink)!important;text-decoration:none!important}.vcols a:hover em{opacity:.7}

/* ── one bar only: the advisory lives at the bottom; the top bar is retired ── */
.vtop{display:none!important}
/* the legend: what we see, what sees us */
.vstate .v78-see{margin:0!important;max-width:none!important;font:600 clamp(34px,4.6vw,64px)/1.02 var(--t-body)!important;letter-spacing:-.035em!important;color:var(--t-ink)!important}
@media(min-width:900px){
  .vstate .vwrap{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)!important;grid-template-rows:auto auto;row-gap:44px!important;align-items:start!important}
  .vstate .vstate-t{grid-column:1;grid-row:1/3}
  .vstate .v78-see{grid-column:2;grid-row:1;align-self:end}
  .vstate .vproof{grid-column:2;grid-row:2;align-self:end}
}
@media(max-width:899px){.vstate .v78-see{margin:6px 0 0}}
