/* Site walkthrough (walkthrough_page.py, js/walk/walk.js): a full-screen 3D plant room. Night-shift palette, the
   site's own type, the visitor's finish as the accent. Every class is wk- prefixed so nothing clashes with site.css. */
body.bare { margin: 0; height: 100%; overflow: hidden; background: #0b0d10; color: #eef1f4; }
body.bare main { display: block; }
.wk { --bg: #0b0d10; --panel: rgba(16, 20, 25, .9); --panel-solid: #12161b; --line: rgba(255, 255, 255, .11);
  --fg: #eef1f4; --muted: #9aa4ae; --acc: var(--fin, #ADA076); --info: #6fd3d6; --safe: #46d18f; --danger: #ff5a52;
  --rebar: #F07A2A; --cable: #F2C230; --pipe: #5AA7F0; --backwall: #9aa7b4;
  --wk-sans: "Archivo", "Helvetica Neue", Arial, sans-serif; --wk-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --gl: max(14px, env(safe-area-inset-left, 0px)); --gr: max(14px, env(safe-area-inset-right, 0px));
  font: 400 14px/1.45 var(--wk-sans); color: var(--fg); -webkit-font-smoothing: antialiased; }
.wk-stage { position: fixed; inset: 0; touch-action: none; user-select: none; -webkit-user-select: none; background: var(--bg); }
.wk-stage canvas { display: block; width: 100%; height: 100%; outline: none; }
.wk button { font: inherit; color: inherit; }
.wk :focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* top bar */
.wk-top { position: fixed; z-index: 5; top: calc(env(safe-area-inset-top, 0px) + 10px); left: var(--gl); right: var(--gr);
  display: flex; align-items: center; gap: 8px; pointer-events: none; }
.wk-top > * { pointer-events: auto; }
.wk-chip { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.wk-brand { display: flex; align-items: center; gap: 10px; padding: 7px 12px; text-decoration: none; color: var(--fg); white-space: nowrap; }
.wk-brand b { font: 800 15px/1 var(--wk-sans); font-stretch: 112%; letter-spacing: -.01em; }
.wk-brand span { font: 500 11px/1 var(--wk-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wk-seg { display: flex; gap: 3px; padding: 3px; min-width: 0; }
.wk-seg button, .wk-seg a { border: 0; background: transparent; padding: 6px 11px; border-radius: 6px; cursor: pointer; font: 600 12.5px/1.1 var(--wk-sans);
  color: var(--muted); white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 30px; }
.wk-seg button:hover, .wk-seg a:hover { color: var(--fg); }
.wk-seg button[aria-pressed="true"] { background: color-mix(in srgb, var(--acc) 22%, transparent); color: var(--fg); }
.wk-spacer { flex: 1; }
.wk-buy { display: flex; align-items: center; gap: 8px; padding: 3px; }
.wk-buy .btn { min-height: 34px; padding: .45rem .8rem; font-size: 13px; }
.wk-fins { display: flex; gap: 4px; padding: 5px 7px; }
.wk-fins .fin { padding: 0; min-height: 26px; min-width: 26px; border: 1px solid transparent; background: transparent; border-radius: 50%; justify-content: center; }
.wk-fins .fin span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wk-fins .fin i { width: 18px; height: 18px; }
.wk-fins .fin[aria-pressed="true"] { border-color: var(--fg); box-shadow: none; background: transparent; }

/* step card */
.wk-card { position: fixed; z-index: 5; left: var(--gl); bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  width: min(400px, calc(100% - 28px)); padding: 16px 16px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line);
  border-top: 2px solid var(--acc); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 50px rgba(0,0,0,.45); display: grid; gap: 9px; }
.wk-progress { display: flex; gap: 5px; }
.wk-progress i { flex: 1; height: 3px; border-radius: 2px; background: var(--line); }
.wk-progress i.on { background: var(--acc); }
.wk-eyebrow { font: 600 10.5px/1.2 var(--wk-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--acc); }
.wk-card h1 { margin: 0; font: 800 21px/1.15 var(--wk-sans); font-stretch: 108%; letter-spacing: -.01em; text-wrap: balance; }
.wk-card p { margin: 0; color: #c9d1d8; line-height: 1.5; }
.wk-cost { font: 400 12px/1.45 var(--wk-mono); color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }
.wk-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.wk-card li { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; color: #c9d1d8; }
.wk-card li .wk-sw { width: 10px; height: 10px; border-radius: 50%; display: block; }
.wk-card li .v { font: 500 12px/1 var(--wk-mono); color: var(--fg); }
.wk-card li.miss { opacity: .5; }
.wk-meter { display: grid; gap: 4px; }
.wk-meter .row { display: flex; justify-content: space-between; font: 500 11px/1 var(--wk-mono); color: var(--muted); letter-spacing: .04em; }
.wk-meter .bar { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.wk-meter .bar b { display: block; height: 100%; width: 0; background: var(--acc); transition: width .3s; }
.wk-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.wk-btn { border: 1px solid var(--line); background: rgba(255,255,255,.05); padding: 9px 13px; border-radius: 8px; cursor: pointer; font: 700 13px/1.1 var(--wk-sans); min-height: 38px; }
.wk-btn:hover { background: rgba(255,255,255,.1); }
.wk-btn.primary { background: var(--acc); border-color: transparent; color: #14181c; }
.wk-btn.primary:hover { filter: brightness(1.08); }
.wk-btn[disabled] { opacity: .4; cursor: not-allowed; filter: none; }
.wk-verdict { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--wk-mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 5px; width: fit-content; }
.wk-verdict.bad { background: rgba(255,90,82,.15); color: #ff9a94; }
.wk-verdict.good { background: rgba(70,209,143,.15); color: var(--safe); }

/* scan picture panel */
.wk-hud { position: fixed; z-index: 5; right: var(--gr); top: calc(env(safe-area-inset-top, 0px) + 62px); width: 360px; max-width: calc(100% - 28px);
  padding: 11px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0,0,0,.45); display: grid; gap: 9px; }
.wk-hud-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wk-hud-head h2 { margin: 0; font: 700 14px/1.2 var(--wk-sans); }
.wk-ill { font: 600 9.5px/1 var(--wk-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg); border: 1px solid rgba(255,255,255,.55); padding: 4px 6px; border-radius: 3px; white-space: nowrap; }
.wk-pill { font: 600 10px/1 var(--wk-mono); letter-spacing: .08em; padding: 4px 7px; border-radius: 999px; text-transform: uppercase; background: rgba(255,255,255,.06); color: var(--muted); white-space: nowrap; }
.wk-pill.live { background: rgba(70,209,143,.14); color: var(--safe); }
.wk-pill.warn { background: color-mix(in srgb, var(--acc) 20%, transparent); color: var(--fg); }
.wk-slice { position: relative; border-radius: 6px; overflow: hidden; background: #05080b; aspect-ratio: 2 / 1; cursor: crosshair; touch-action: none; }
.wk-slice canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.wk-legend { display: flex; flex-wrap: wrap; gap: 5px 12px; font-size: 12px; color: var(--muted); }
.wk-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wk-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.wk-read { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 5px; margin: 0; }
.wk-read div { background: rgba(255,255,255,.04); border-radius: 6px; padding: 6px 8px; min-width: 0; }
.wk-read dt { font: 600 9.5px/1.2 var(--wk-mono); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.wk-read dd { margin: 2px 0 0; font: 500 13px/1.2 var(--wk-mono); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #c9d1d8; cursor: pointer; user-select: none; }
.wk-toggle input { accent-color: var(--acc); width: 16px; height: 16px; }
.wk-toggle.off { opacity: .45; cursor: not-allowed; }
.wk-note { margin: 0; font: 400 11px/1.4 var(--wk-mono); color: var(--muted); }

.wk-toast { position: fixed; z-index: 6; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 64px); transform: translate(-50%, -8px); padding: 9px 14px; border-radius: 8px;
  background: var(--panel-solid); border: 1px solid var(--line); font-size: 13px; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; max-width: calc(100% - 28px); text-align: center; }
.wk-toast.show { opacity: 1; transform: translate(-50%, 0); }
.wk-toast.bad { border-color: rgba(255,90,82,.5); }
.wk-hint { position: fixed; z-index: 4; right: calc(var(--gr) + 150px); bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); font: 500 11px/1.3 var(--wk-mono);
  letter-spacing: .06em; color: var(--muted); text-transform: uppercase; background: rgba(11,13,16,.6); padding: 6px 10px; border-radius: 6px; pointer-events: none; white-space: nowrap; }
.wk-foot { position: fixed; z-index: 4; right: var(--gr); bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); font-size: 11px; color: var(--muted); max-width: 320px; text-align: right; }
.wk-foot summary { cursor: pointer; list-style: none; font: 600 11px/1 var(--wk-mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 0; }
.wk-foot summary::-webkit-details-marker { display: none; }
.wk-foot div { margin: 6px 0 0; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; text-align: left; line-height: 1.45; }
.wk-foot p { margin: 0 0 6px; }
.wk-foot a { color: var(--fg); }

.wk-loader { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; background: var(--bg); transition: opacity .6s; }
.wk-loader.done { opacity: 0; pointer-events: none; }
.wk-loader > div { display: grid; gap: 10px; justify-items: center; font: 500 12px/1.3 var(--wk-mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.wk-lbar { width: 220px; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.wk-lbar b { display: block; height: 100%; width: 0; background: var(--acc); transition: width .2s; }
.wk-err { color: #ffb1ab; text-transform: none; letter-spacing: 0; max-width: 460px; text-align: center; line-height: 1.5; font: 400 14px/1.5 var(--wk-sans); }
.wk-fallback { position: fixed; inset: 0; z-index: 11; overflow: auto; background: var(--bg); padding: 80px 20px 40px; }
.wk-fallback article { max-width: 640px; margin: 0 auto; }
.wk-fallback h1 { font: 800 28px/1.15 var(--wk-sans); margin: 0 0 12px; }
.wk-fallback p, .wk-fallback li { color: #c9d1d8; line-height: 1.55; }
.wk-fallback a { color: var(--fg); }

@media (max-width: 1180px) { .wk-hint { display: none; } }
@media (max-width: 1020px) { .wk-brand span, .wk-views, .wk-fins { display: none; } }
@media (max-width: 760px) {
  .wk-foot, .wk-sound { display: none; }
  .wk-buy .partner-note { display: none; }
  .wk-hud { left: var(--gl); right: var(--gr); width: auto; top: calc(env(safe-area-inset-top, 0px) + 56px); padding: 7px; gap: 6px; }
  .wk-hud .wk-legend, .wk-hud .wk-toggle-row, .wk-hud .wk-note { display: none; }
  .wk-read dd { font-size: 11px; }
  .wk-slice { aspect-ratio: 3.4 / 1; }
  .wk-card { left: var(--gl); right: var(--gr); width: auto; padding: 12px; gap: 7px; }
  .wk-card h1 { font-size: 17px; }
  .wk-card p { font-size: 13px; }
  .wk-btn { padding: 8px 11px; font-size: 12.5px; }
}
.wk-buy .btn { white-space: nowrap; }
@media (max-width: 560px) { .wk-specs { display: none; } .wk-brand { padding: 7px 10px; } .wk-hud { top: calc(env(safe-area-inset-top, 0px) + 58px); } }
/* phones: leave the scene the middle of the screen. Compact picture, one readout row, short card (tap the text for all of it) */
@media (max-width: 760px) {
  .wk-hud { padding: 6px; gap: 5px; border-radius: 12px; }
  .wk-hud-head h2 { font-size: 12.5px; }
  .wk-slice { aspect-ratio: 4.6 / 1; }
  .wk-read { gap: 4px; }
  .wk-read div { padding: 3px 7px; }
  .wk-read div:nth-child(n+3) { display: none; }
  .wk-read { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .wk-read dt { font-size: 8.5px; } .wk-read dd { font-size: 11px; margin-top: 0; }
  .wk-card { padding: 10px 12px; gap: 6px; border-radius: 12px; }
  .wk-card .wk-eyebrow { display: none; }
  .wk-card h1 { font-size: 16px; }
  .wk-card p { font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
  .wk-card.wk-open p { display: block; -webkit-line-clamp: unset; overflow: visible; }
  .wk-card ul { gap: 3px; } .wk-card li { font-size: 12.5px; }
  .wk-actions { flex-wrap: nowrap; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .wk-actions::-webkit-scrollbar { display: none; }
  .wk-btn { padding: 7px 10px; font-size: 12px; white-space: nowrap; flex: none; }
}
@media (max-width: 420px) { .wk-brand b { font-size: 13px; } .wk-buy .btn { padding: .4rem .65rem; } .wk-buy .btn span { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .wk-toast, .wk-loader, .wk-meter .bar b { transition: none; } }
@media (max-width: 760px) { .wk-long { display: none; } }
