@font-face { font-family: Anton; src: url(media/anton-v27-latin.woff2) format('woff2'); }
@font-face { font-family: Saira; src: url(media/saira-v23-latin-var.woff2) format('woff2'); font-weight: 100 900; }

/* ---------------------------------------------------------------- themes */
:root, [data-theme="dark"] {
  --bg: #0a0a0b; --panel: #121214; --panel2: #18181b; --raise: #1f1f23; --line: #26262b; --line2: #303036;
  --ink: #f4f4f5; --sub: #8e8e96; --faint: #5c5c64;
  --accent: #FFD600; --accent-ink: #000; --action: #6262FF; --ok: #3ddc97; --warn: #ff8a3d;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 40px rgba(0,0,0,.45);
  --glass: rgba(18,18,20,.72);
  --track: #141417; --clip: #232328;
}
[data-theme="light"] {
  --bg: #f4f3f0; --panel: #ffffff; --panel2: #faf9f7; --raise: #ffffff; --line: #e8e6e1; --line2: #dedbd5;
  --ink: #18181b; --sub: #6f6f76; --faint: #a3a3aa;
  --accent: #5b4bff; --accent-ink: #fff; --action: #5b4bff; --ok: #12a86b; --warn: #e2731b;
  --shadow: 0 1px 2px rgba(20,20,30,.04), 0 10px 30px rgba(20,20,40,.07);
  --glass: rgba(255,255,255,.78);
  --track: #f1f0ec; --clip: #e9e7e2;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 13px/1.4 "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow: hidden; transition: background .3s, color .3s; }
button { font: inherit; color: inherit; }
.sub { color: var(--sub); }
.mono { font-family: "Cascadia Mono", "JetBrains Mono", Consolas, monospace; font-size: 11px; }

/* ---------------------------------------------------------------- top bar */
.top { position: fixed; inset: 0 0 auto 0; height: 56px; display: flex; align-items: center; gap: 14px; padding: 0 14px;
  border-bottom: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(14px); z-index: 20; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; letter-spacing: -.01em; }
.brand .mk { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; }
.proj { display: flex; flex-direction: column; line-height: 1.15; }
.proj b { font-size: 13px; } .proj span { font-size: 11px; color: var(--sub); }
.miles { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.mile { display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; color: var(--sub); border: 1px solid transparent; cursor: pointer; background: none; }
.mile i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--faint); }
.mile.done { color: var(--ink); } .mile.done i { background: var(--ok); border-color: var(--ok); }
.mile.now { color: var(--ink); border-color: var(--line2); background: var(--panel); } .mile.now i { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.mile + .mile::before { content: ''; width: 14px; height: 1px; background: var(--line2); margin-right: 6px; }
.grow { flex: 1; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 5px 10px; border-radius: 7px; font-size: 12px; color: var(--sub); cursor: pointer; display: flex; gap: 6px; align-items: center; }
.seg button.on { background: var(--raise); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
[data-theme="dark"] .seg button.on { background: #2a2a30; }
.btn { border: 1px solid var(--line2); background: var(--panel); padding: 6px 12px; border-radius: 9px; cursor: pointer; font-size: 12px; display: inline-flex; gap: 6px; align-items: center; }
.btn:hover { border-color: var(--faint); }
.btn.pri { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600; }
.btn.sm { padding: 4px 9px; font-size: 11.5px; }

/* ---------------------------------------------------------------- the editor grid */
.app { position: fixed; inset: 56px 0 0 0; display: grid; grid-template-columns: 232px minmax(360px, 1fr) 290px 330px; grid-template-rows: 1fr 252px;
  grid-template-areas: "bin stage insp dir" "tl tl tl dir"; gap: 10px; padding: 10px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-height: 0; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.ph { display: flex; align-items: center; gap: 8px; padding: 10px 12px 8px; }
.ph b { font-size: 12.5px; }
.bin { grid-area: bin; } .stage { grid-area: stage; background: none; border: 0; box-shadow: none; } .insp { grid-area: insp; } .dir { grid-area: dir; } .tl { grid-area: tl; }

/* bin */
.tabs { display: flex; gap: 2px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: none; padding: 7px 8px; font-size: 12px; color: var(--sub); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--ink); border-color: var(--accent); }
.bgrid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: max-content; align-content: start; gap: 8px; padding: 10px; overflow: auto; flex: 1; min-height: 0; }
.bitem { cursor: grab; border-radius: 9px; overflow: hidden; background: var(--panel2); border: 1px solid var(--line); position: relative; }
.bitem img { width: 100%; aspect-ratio: 9 / 13; object-fit: cover; display: block; }
.bitem .bn { position: absolute; left: 6px; bottom: 5px; font-size: 10.5px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.bitem .bd { position: absolute; right: 6px; top: 5px; font-size: 10px; color: #fff; background: rgba(0,0,0,.55); padding: 1px 5px; border-radius: 5px; }
.bitem.used::after { content: '●'; position: absolute; left: 6px; top: 3px; color: var(--accent); font-size: 10px; }
.deckrow { display: flex; align-items: center; gap: 8px; padding: 6px 10px; }
.swatch { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line2); cursor: pointer; }

/* stage */
.stagein { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; min-height: 0; }
.viewer { position: relative; height: 100%; max-height: 100%; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.viewer video { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .5s; }
.viewer .light { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; transition: opacity .4s; }
.viewer .vtag { position: absolute; top: 10px; left: 10px; font-size: 11px; padding: 3px 8px; border-radius: 7px; background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(6px); }
.viewer .sun { position: absolute; width: 30px; height: 30px; margin: -15px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 4px rgba(255,95,162,.35), 0 0 30px rgba(255,255,255,.6); }
.viewer .safe { position: absolute; left: 6%; right: 18%; top: 14%; bottom: 35%; border: 1px dashed rgba(255,255,255,.35); border-radius: 6px; pointer-events: none; }
.transport { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 0 0; }
.transport .tc { font-variant-numeric: tabular-nums; color: var(--sub); font-size: 12px; min-width: 96px; text-align: center; }
.round { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); background: var(--panel); cursor: pointer; display: grid; place-items: center; }

/* inspector */
.ibody { padding: 4px 12px 12px; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.field { display: grid; grid-template-columns: 84px 1fr 42px; align-items: center; gap: 8px; font-size: 12px; }
.field input[type=range] { width: 100%; accent-color: var(--accent); }
.field .v { text-align: right; color: var(--sub); font-variant-numeric: tabular-nums; font-size: 11px; }
.card { border: 1px solid var(--line); border-radius: 11px; padding: 10px; background: var(--panel2); display: flex; flex-direction: column; gap: 8px; }
.looks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.look { border: 1.5px solid var(--line); border-radius: 9px; overflow: hidden; cursor: pointer; background: var(--panel); }
.look img { width: 100%; height: 54px; object-fit: cover; display: block; }
.look span { display: block; font-size: 11px; padding: 4px 6px; }
.look.on { border-color: var(--accent); }
.drop { border: 1.5px dashed var(--line2); border-radius: 10px; padding: 12px; text-align: center; color: var(--sub); font-size: 12px; }
.drop.hot { border-color: var(--accent); color: var(--ink); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.kv { display: flex; justify-content: space-between; font-size: 12px; } .kv span:first-child { color: var(--sub); }
.pillrow { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-size: 11px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line2); color: var(--sub); }

/* director */
.dthread { flex: 1; overflow: auto; padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 12px; }
.msg { display: flex; flex-direction: column; gap: 6px; max-width: 100%; }
.msg.me { align-self: flex-end; max-width: 86%; }
.msg.me .b { background: var(--accent); color: var(--accent-ink); border-radius: 14px 14px 4px 14px; padding: 8px 11px; }
.msg.ai .b { padding: 2px 0; }
.msg .who { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--sub); }
.msg .who i { width: 18px; height: 18px; border-radius: 6px; background: var(--accent); display: inline-block; }
.acts { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.acts summary { list-style: none; cursor: pointer; padding: 7px 10px; font-size: 12px; display: flex; gap: 8px; align-items: center; background: var(--panel2); }
.acts summary::-webkit-details-marker { display: none; }
.acts .a { display: flex; gap: 8px; padding: 5px 10px; font-size: 11.5px; border-top: 1px solid var(--line); align-items: center; }
.acts .a i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.composer { border-top: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line2); background: var(--panel2); border-radius: 999px; padding: 5px 10px; font-size: 11.5px; cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.inbox { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line2); border-radius: 12px; padding: 6px 6px 6px 12px; background: var(--panel2); }
.inbox input { flex: 1; border: 0; background: none; outline: none; color: var(--ink); font: inherit; }
.mic { width: 30px; height: 30px; border-radius: 9px; border: 0; background: var(--raise); cursor: pointer; }
.send { width: 30px; height: 30px; border-radius: 9px; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; font-weight: 700; }

/* timeline */
.tlbody { flex: 1; position: relative; padding: 0 12px 10px; overflow: hidden; }
.ruler { position: relative; height: 20px; margin-left: 64px; border-bottom: 1px solid var(--line); }
.ruler span { position: absolute; top: 3px; font-size: 10px; color: var(--faint); transform: translateX(-50%); }
.track { position: relative; height: 30px; margin-top: 5px; display: flex; }
.track .lbl { width: 56px; flex: none; font-size: 10.5px; color: var(--sub); display: flex; align-items: center; gap: 4px; margin-right: 8px; }
.track .lane { position: relative; flex: 1; background: var(--track); border-radius: 8px; }
.track.v .lane { height: 50px; } .track.v { height: 50px; }
.clip { position: absolute; top: 2px; bottom: 2px; border-radius: 7px; overflow: hidden; background: var(--clip) center / auto 100% repeat-x; border: 1.5px solid rgba(255,255,255,.08); cursor: pointer; transition: left .35s, width .35s; }
.clip .cn { position: absolute; left: 5px; top: 3px; font-size: 10px; color: #fff; text-shadow: 0 1px 2px #000; }
.clip.sel { border-color: var(--accent); }
.clip .edge { position: absolute; right: 0; top: 0; bottom: 0; width: 6px; }
.clip.drop-in { animation: dropin .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes dropin { from { transform: translateY(-14px) scale(.9); opacity: 0; } }
.fxp { position: absolute; top: 5px; height: 24px; padding: 0 7px; border-radius: 6px; font-size: 10px; display: flex; align-items: center; white-space: nowrap; color: #fff; background: #7b5cff; transform: translateX(-50%); }
.fxp.flash { background: #b07cff; } .fxp.zoom { background: #4da3ff; } .fxp.swap { background: #ff8a3d; } .fxp.text { background: #12a86b; }
.fxp.new { animation: dropin .4s cubic-bezier(.2,1.4,.4,1); }
.wave { position: absolute; inset: 3px 0; background: url(media/wave.png) center / 100% 100% no-repeat; opacity: .45; }
[data-theme="light"] .wave { filter: invert(1); opacity: .35; }
.beat { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line2); }
.beat.down { background: var(--faint); }
.hit { position: absolute; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; transform: translateX(-50%); }
.hit.kick { background: #3ddc97; } .hit.snare { background: #ff5fa2; bottom: 11px; }
.word { position: absolute; top: 6px; font-size: 10.5px; padding: 2px 6px; border-radius: 5px; background: var(--raise); border: 1px solid var(--line2); transform: translateX(-50%); white-space: nowrap; }
.playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); pointer-events: none; z-index: 3; }
.playhead::before { content: ''; position: absolute; top: -2px; left: -5px; border: 6px solid transparent; border-top-color: var(--accent); }

/* steps layout: a step bar; the inspector shows the step */
.stepbar { display: none; }
.layout-steps .stepbar { display: flex; position: fixed; top: 56px; left: 0; right: 0; height: 44px; align-items: center; justify-content: center; gap: 6px; z-index: 15; border-bottom: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px); }
.layout-steps .app { inset: 100px 0 0 0; }
.layout-steps .miles { display: none; }
.stepbar button { border: 1px solid var(--line2); background: var(--panel); border-radius: 999px; padding: 5px 14px; display: flex; gap: 8px; align-items: center; cursor: pointer; font-size: 12px; }
.stepbar button b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--panel2); border: 1px solid var(--line2); }
.stepbar button.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; } .stepbar button.on b { background: rgba(0,0,0,.12); border-color: transparent; }

/* ---------------------------------------------------------------- statics */
.canvasw { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; }
.ad { position: relative; overflow: hidden; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.35); background: #000; transition: aspect-ratio .5s, height .5s; }
.ad .aph { position: absolute; inset: 0; background: center / cover no-repeat; transition: background-image .4s; }
.ad .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.82) 100%); }
.ad .hl { position: absolute; left: 7%; right: 7%; bottom: 23%; font-family: Anton, Impact, sans-serif; color: #fff; text-transform: uppercase; line-height: .95; letter-spacing: .005em; }
.ad .hl em { color: #FFD600; font-style: italic; }
.ad .subl { position: absolute; left: 7%; right: 7%; bottom: 16%; color: rgba(255,255,255,.85); font-family: Saira, sans-serif; }
.ad .cta { position: absolute; left: 7%; bottom: 6.5%; background: #6262FF; color: #fff; font-family: Saira, sans-serif; font-weight: 700; text-transform: uppercase; border-radius: 999px; padding: .55em 1.3em; display: flex; gap: .5em; align-items: center; }
.ad .cta i { width: .5em; height: .5em; border-radius: 50%; background: #00FF7F; }
.ad .logo { position: absolute; top: 5%; left: 7%; height: 7%; }
.ad .aph.sel, .ad .hl.sel, .ad .cta.sel { outline: 2px solid var(--accent); outline-offset: 3px; }
.vars { display: flex; gap: 10px; padding: 10px 12px; overflow-x: auto; align-items: flex-start; height: 100%; }
.vcard { flex: none; width: 104px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.vcard .ad { width: 104px; box-shadow: none; border: 1px solid var(--line); }
.vcard span { font-size: 10.5px; color: var(--sub); }
.vcard.new { animation: dropin .45s cubic-bezier(.2,1.4,.4,1); }

/* ---------------------------------------------------------------- start screen */
.start { position: fixed; inset: 56px 0 0 0; display: flex; align-items: center; justify-content: center; z-index: 10; background: var(--bg); transition: opacity .5s, transform .5s; }
.start.gone { opacity: 0; transform: scale(1.02); pointer-events: none; }
.startin { width: min(760px, 92vw); display: flex; flex-direction: column; gap: 18px; align-items: center; }
.start h1 { font-size: 40px; letter-spacing: -.03em; margin: 0; font-weight: 700; }
.start a { color: var(--sub); }
.start .lede { color: var(--sub); margin-top: -8px; font-size: 14px; text-align: center; }
.sdrop { width: 100%; border: 1.5px dashed var(--line2); border-radius: 18px; padding: 14px; background: var(--panel); display: flex; gap: 8px; overflow: hidden; min-height: 132px; align-items: center; box-shadow: var(--shadow); }
.sdrop img { height: 104px; aspect-ratio: 9 / 13; object-fit: cover; border-radius: 10px; flex: none; }
.sbox { width: 100%; border: 1px solid var(--line2); border-radius: 16px; background: var(--panel); padding: 12px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.sbox textarea { border: 0; outline: none; resize: none; background: none; color: var(--ink); font: 15px/1.45 inherit; font-family: inherit; min-height: 48px; }
.sbox .row { display: flex; align-items: center; gap: 8px; }

/* ---------------------------------------------------------------- the robot */
#robot { position: fixed; inset: 0; pointer-events: none; z-index: 100; }
.rtrails { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rtrails path { fill: none; stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 4px currentColor); }
.rcur { position: absolute; left: 0; top: 0; will-change: transform; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)) drop-shadow(0 0 10px color-mix(in srgb, var(--c) 60%, transparent)); }
.rcur svg { display: block; transition: transform .12s; transform-origin: 3px 2px; }
.rcur svg path { fill: var(--c); stroke: #000; stroke-width: 1.2; stroke-linejoin: round; }
.rcur.press svg { transform: scale(.82); }
.rtag { position: absolute; left: 18px; top: 18px; white-space: nowrap; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 7px; background: var(--c); color: #000; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.rghost { position: absolute; left: 0; top: 0; opacity: .85; pointer-events: none; transform-origin: 0 0; filter: drop-shadow(0 10px 20px rgba(0,0,0,.45)); }
.rghost > * { width: 100%; }
.rripple { position: absolute; width: 10px; height: 10px; margin: -5px; border-radius: 50%; border: 2px solid var(--c); animation: rrip .65s ease-out forwards; }
@keyframes rrip { to { transform: scale(5); opacity: 0; } }
.rspark { position: absolute; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: var(--c); animation: rsp .55s ease-out forwards; }
@keyframes rsp { to { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
.rhud { position: absolute; left: 50%; top: 66px; transform: translate(-50%, -8px); opacity: 0; transition: opacity .3s, transform .3s; background: var(--glass); backdrop-filter: blur(16px);
  border: 1px solid var(--line2); border-radius: 14px; padding: 7px 12px 8px; min-width: 380px; max-width: min(720px, 70vw); box-shadow: var(--shadow); }
.layout-steps .rhud { top: 110px; }
.rhud.on { opacity: 1; transform: translate(-50%, 0); }
.rh1 { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.rh1 .rcount { color: var(--sub); font-variant-numeric: tabular-nums; } .rh1 .resc { margin-left: auto; font-size: 11px; color: var(--faint); }
.rdot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1s infinite; } .rdot.ok { background: var(--ok); animation: none; }
@keyframes pulse { 50% { opacity: .3; } }
.rsteps { display: flex; flex-wrap: wrap; gap: 3px 10px; margin-top: 5px; font-size: 10.5px; color: var(--faint); }
.rs { display: inline-flex; gap: 5px; align-items: center; } .rs i { width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--c); }
.rs.done { color: var(--sub); } .rs.done i { background: var(--c); } .rs.now { color: var(--ink); }
.rbar { height: 2px; background: var(--line); border-radius: 2px; margin-top: 7px; overflow: hidden; } .rbar span { display: block; height: 100%; background: var(--accent); transition: width .4s; }
.scanning { position: relative; } .scanning::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--accent) 45%, transparent) 50%, transparent 80%); background-size: 250% 100%; animation: shimmer .9s linear infinite; z-index: 4; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.rfocus { box-shadow: 0 0 0 2px var(--accent), 0 0 30px color-mix(in srgb, var(--accent) 30%, transparent) !important; transition: box-shadow .3s; }
body.robot-on .app { cursor: progress; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px; font-size: 12px; z-index: 120; }

/* statics: the canvas gets the room (the variants row is shorter) */
.mode-statics .app { grid-template-rows: 1fr 196px; }
.mode-statics .vcard { width: 92px; } .mode-statics .vcard .ad { width: 92px !important; }
.vcard span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- views: the phone, and the desktop scaled onto it */
.tgl { display: contents; }
.btn.sw, .mtabs { display: none; }
#root.scaled { position: fixed; left: 0; top: 0; width: 1280px; transform-origin: 0 0; }
#root.scaled .top, #root.scaled .app, #root.scaled .start, #root.scaled .stepbar { position: absolute; }
.view-mobile .top { height: 52px; gap: 8px; padding: 0 10px; }
.view-mobile .brand { font-size: 0; gap: 0; } .view-mobile .brand .mk { font-size: 13px; }
.view-mobile .miles { display: none; }
.view-mobile .btn.sw { display: inline-flex; }
.view-mobile .tgl { display: none; position: fixed; top: 52px; left: 0; right: 0; padding: 8px 10px; gap: 8px; overflow-x: auto; background: var(--glass); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); z-index: 21; }
.view-mobile.mswitch .tgl { display: flex; }
.view-mobile .tgl > * { flex: none; }
.view-mobile .app { inset: 52px 0 54px 0; grid-template-columns: 1fr; grid-template-rows: minmax(150px, 1fr) 128px auto; grid-template-areas: "stage" "tl" "sheet"; gap: 6px; padding: 6px; }
.view-mobile.mode-statics .app { grid-template-rows: minmax(150px, 1fr) 128px auto; }
.view-mobile .bin, .view-mobile .insp, .view-mobile .dir { grid-area: sheet; height: 42vh; display: none; }
.view-mobile[data-mtab="bin"] .bin, .view-mobile[data-mtab="insp"] .insp, .view-mobile[data-mtab="dir"] .dir { display: flex; }
.view-mobile .mtabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: 54px; z-index: 20; border-top: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(14px); padding: 6px; gap: 6px; }
.mtabs button { flex: 1; border: 0; border-radius: 10px; background: none; color: var(--sub); font-size: 12.5px; }
.mtabs button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.view-mobile .transport { padding-top: 4px; gap: 6px; } .view-mobile .transport .tc { min-width: 70px; font-size: 11px; } .view-mobile .transport .btn { display: none; }
.view-mobile .round { width: 30px; height: 30px; }
.view-mobile .tl .ph { padding: 6px 10px 2px; } .view-mobile .tl .ph .sub:last-child { display: none; }
.view-mobile .tlbody { padding: 0 8px 6px; }
.view-mobile .ruler { margin-left: 36px; height: 14px; } .view-mobile .ruler span { font-size: 9px; top: 0; }
.view-mobile .track { height: 18px; margin-top: 3px; } .view-mobile .track.v, .view-mobile .track.v .lane { height: 32px; }
.view-mobile .track .lbl { width: 30px; margin-right: 6px; font-size: 0; } .view-mobile .track .lbl::first-letter { font-size: 11px; }
.view-mobile .fxp { height: 15px; top: 1.5px; font-size: 8.5px; padding: 0 4px; } .view-mobile .word { font-size: 8.5px; top: 1px; padding: 0 3px; }
.view-mobile .clip .cn { font-size: 8.5px; }
.view-mobile .bgrid { grid-template-columns: repeat(3, 1fr); }
.view-mobile .layout-steps .stepbar, .view-mobile.layout-steps .stepbar { top: 52px; height: 40px; overflow-x: auto; justify-content: flex-start; padding: 0 8px; }
.view-mobile.layout-steps .app { inset: 92px 0 54px 0; }
.view-mobile.layout-steps .stepbar button { flex: none; padding: 4px 10px; font-size: 11.5px; }
.view-mobile .rhud { top: 58px; min-width: 0; width: 94vw; padding: 6px 10px; } .view-mobile .rsteps { display: none; } .view-mobile .rh1 { font-size: 11.5px; } .view-mobile .resc { display: none; }
.view-mobile .rtag { font-size: 10px; padding: 2px 6px; }
.view-mobile .start { inset: 52px 0 0 0; align-items: flex-start; overflow-y: auto; padding: 18px 0 30px; }
.view-mobile .start h1 { font-size: 28px; } .view-mobile .start .lede { font-size: 13px; }
.view-mobile .sdrop { min-height: 96px; overflow-x: auto; } .view-mobile .sdrop img { height: 76px; }
.view-mobile .sbox .row { flex-wrap: wrap; }
.view-mobile .vars { padding: 6px 8px; } .view-mobile.mode-statics .vcard { width: 70px; } .view-mobile.mode-statics .vcard .ad { width: 70px !important; }
.view-mobile .canvasw { height: calc(100% - 34px); }
body.turn-hint::after { content: '↻ Turn your phone sideways to see the desktop bigger'; position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 12px; color: var(--sub); white-space: nowrap; }
