:root {
  --bg: #0a0c0f; --fg: #f4f6f8; --dim: rgba(244,246,248,.64); --acc: #5ccbff; --acc-ink: #00203a; --ok: #6cf0b0; --warn: #ffcf5c;
  --glass: rgba(12,15,19,.55); --glass-b: rgba(255,255,255,.15); --panel: rgba(18,21,26,.97);
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --ui: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif; --serif: 'Instrument Serif', Georgia, serif;
  --lp-font: var(--ui); --lp-fg: var(--fg); --lp-bg: var(--glass); --lp-border: var(--glass-b); --lp-radius: 18px;
  --lp-h: 34px; --lp-size: 13px; --lp-weight: 600; --lp-track: .04em; --lp-accent: var(--acc); --lp-menu-bg: rgba(18,21,26,.98); --lp-menu-fg: var(--fg);
  --lp-menu-radius: 18px; --lp-item-radius: 11px; --lp-hover: rgba(92,203,255,.13); --lp-on-bg: var(--acc); --lp-on-fg: var(--acc-ink); --lp-on-weight: 600;
  --lp-item-size: 15px; --lp-item-weight: 500; --lp-head-size: 11px; --lp-head-weight: 600;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); overflow: hidden; overscroll-behavior: none; }
body { font-family: var(--ui); font-size: 16px; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg.i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

/* stage */
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; background: #050607; }
#vid { position: fixed; width: 2px; height: 2px; opacity: 0; pointer-events: none; left: -10px; top: -10px; }
#ov { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; pointer-events: none; overflow: visible; }
#ov-dim { fill: rgba(4,6,10,.38); opacity: 0; transition: opacity .25s; }
#ov.on #ov-dim { opacity: 1; }
#ov-q { fill: rgba(92,203,255,.10); stroke: var(--acc); stroke-width: 2.5; stroke-linejoin: round; opacity: 0; transition: opacity .2s, stroke .2s, fill .2s; filter: drop-shadow(0 0 6px rgba(92,203,255,.55)); }
#ov.on #ov-q { opacity: 1; }
#ov.lock #ov-q { stroke: var(--ok); fill: rgba(108,240,176,.12); filter: drop-shadow(0 0 8px rgba(108,240,176,.65)); }
#ov-c path { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; opacity: 0; transition: opacity .2s; }
#ov.on #ov-c path { opacity: .95; }
#ov-spine { stroke: rgba(255,255,255,.75); stroke-width: 2; stroke-dasharray: 6 6; opacity: 0; }
#ov.book #ov-spine { opacity: 1; }
.shade { position: fixed; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(4,6,9,.55), transparent 96px), linear-gradient(to top, rgba(4,6,9,.82) 0, rgba(4,6,9,.5) 170px, transparent 290px); }
.sweep { position: fixed; left: 0; right: 0; top: 0; height: 120px; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, transparent, rgba(92,203,255,.0) 30%, rgba(92,203,255,.35) 92%, rgba(255,255,255,.9) 100%); }
.sweep.go { animation: sweep .62s cubic-bezier(.4,0,.2,1); }
@keyframes sweep { 0% { opacity: .9; transform: translateY(-120px); } 100% { opacity: 0; transform: translateY(100dvh); } }
.flash { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity .32s; z-index: 30; }
.flash.on { opacity: .85; transition: none; }

/* top bar */
.top { position: fixed; z-index: 6; top: calc(var(--sat) + 10px); left: 12px; right: 12px; height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 8px; pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 13px 0 9px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-b); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.brand .mk { width: 20px; height: 20px; position: relative; border: 2px solid var(--fg); border-radius: 4px; }
.brand .mk i { position: absolute; left: -3px; right: -3px; height: 2px; top: 7px; background: var(--acc); box-shadow: 0 0 8px var(--acc); animation: mk 2.4s ease-in-out infinite; }
@keyframes mk { 50% { top: 2px; } }
.brand .bt { font: 600 16.5px/1 var(--ui); letter-spacing: .02em; }
.top .byfj-g { position: relative; }
.top .byfj-g > .byfj { position: absolute; top: 100%; left: 0; margin-top: 3px; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.topr { display: flex; gap: 8px; align-items: center; }

/* right rail */
.rail { position: fixed; z-index: 5; right: 6px; bottom: calc(var(--sab) + 228px); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.rb { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 58px; }
.rb .ic { width: 42px; height: 42px; border-radius: 50%; background: var(--glass); border: 1px solid var(--glass-b); display: grid; place-items: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .12s, background .15s, border-color .15s; }
.rb:active .ic { transform: scale(.88); }
.rb .lb { font: 500 11.5px/1.1 var(--ui); letter-spacing: 0; text-shadow: 0 1px 4px #000; max-width: 70px; overflow: hidden; text-align: center; overflow-wrap: anywhere; hyphens: auto; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.rb.on .ic { background: rgba(92,203,255,.22); border-color: rgba(92,203,255,.85); box-shadow: 0 0 14px rgba(92,203,255,.3); color: var(--acc); }
.rb.on .lb { color: var(--acc); }
.rb:disabled { opacity: .35; }
.rail.c1 { gap: 6px; } .rail.c1 .rb .ic { width: 38px; height: 38px; } .rail.c1 svg.i { width: 20px; height: 20px; } .rail.c1 .rb .lb { font-size: 11px; }
.rail.c2 { gap: 6px; } .rail.c2 .rb .ic { width: 36px; height: 36px; } .rail.c2 .rb .lb { font-size: 11px; }

/* bottom */
.bottom { position: fixed; z-index: 4; left: 0; right: 0; bottom: 0; padding: 0 0 calc(var(--sab) + 12px); display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none; }
.bottom > * { pointer-events: auto; }
.hint { font: 500 14.5px/1.2 var(--ui); padding: 8px 14px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-b); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); max-width: calc(100vw - 40px); text-align: center; transition: background .2s, color .2s; pointer-events: none !important; }
.hint.ok { background: rgba(108,240,176,.18); border-color: rgba(108,240,176,.6); }
.hint.warn { background: rgba(255,207,92,.16); border-color: rgba(255,207,92,.55); }
.modes { display: flex; gap: 2px; padding: 3px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-b); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); max-width: calc(100vw - 16px); overflow-x: auto; scrollbar-width: none; }
.modes::-webkit-scrollbar { display: none; }
.modes button { font: 600 13px/1 var(--ui); letter-spacing: .03em; padding: 9px 13px; border-radius: 17px; color: var(--dim); white-space: nowrap; transition: background .15s, color .15s; }
.modes button.on { background: var(--fg); color: #0b0d10; }
.row { position: relative; width: 100%; max-width: 520px; height: 84px; display: flex; align-items: center; justify-content: center; }
.shutter { width: 78px; height: 78px; border-radius: 50%; border: 4px solid #fff; position: relative; box-shadow: 0 6px 22px rgba(0,0,0,.5); transition: transform .12s; }
.shutter::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #fff; transition: transform .15s, background .2s; }
.shutter:active::after { transform: scale(.9); }
.shutter svg { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); transform: rotate(-90deg); pointer-events: none; }
.shutter .prog { fill: none; stroke: var(--ok); stroke-width: 5; stroke-dasharray: 289; stroke-dashoffset: 289; stroke-linecap: round; transition: stroke-dashoffset .12s linear; }
body.auto .shutter::after { background: radial-gradient(circle, #fff 55%, #dff3ff 100%); }
.stack { position: absolute; left: 22px; width: 52px; height: 52px; border-radius: 9px; background: #111 center/cover; border: 2px solid rgba(255,255,255,.88); box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.stack.empty { border-style: dashed; opacity: .5; background-image: none !important; }
.stack i { position: absolute; inset: -2px; border-radius: 9px; }
.stack::after { content: attr(data-n); position: absolute; right: -9px; top: -9px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--acc); color: var(--acc-ink); font: 700 12px/22px var(--ui); text-align: center; }
.stack.empty::after { display: none; }
.stack.bump { animation: bump .45s cubic-bezier(.2,.9,.3,1.4); }
@keyframes bump { 40% { transform: scale(1.16); } }
.done { position: absolute; right: 18px; height: 44px; padding: 0 8px 0 15px; border-radius: 22px; display: flex; align-items: center; gap: 8px; font: 600 15px/1 var(--ui); background: var(--fg); color: #0b0d10; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.done b { min-width: 28px; height: 28px; border-radius: 14px; background: #0b0d10; color: var(--fg); display: grid; place-items: center; font-size: 13px; padding: 0 6px; }
.done:disabled { opacity: .35; }
/* captions: the row grows 14px below; shutter and stack keep their old centres */
.row { box-sizing: content-box; padding-bottom: 14px; align-items: flex-start; }
.row > .ctl.sh { margin-top: 3px; } .row > .ctl.sh .ctl-lb { max-width: 110px; }
.row > .ctl.sd { position: absolute; left: 10px; top: 16px; width: 76px; } .row > .ctl.sd > .stack { position: relative; left: auto; }
.row > .done { top: 20px; }
.sbar > .ctl { --ctl-lb-w: 72px; } .sbar .ctl-lb { color: var(--dim); }
.idstep { position: fixed; z-index: 5; left: 50%; top: calc(var(--sat) + 62px); transform: translateX(-50%); font: 600 13px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border-radius: 14px; background: var(--acc); color: var(--acc-ink); display: none; white-space: nowrap; }
body.mode-id .idstep { display: block; }
.fly { position: fixed; z-index: 31; pointer-events: none; border-radius: 4px; transform-origin: 0 0; transition: transform .55s cubic-bezier(.5,0,.2,1), opacity .55s; box-shadow: 0 10px 40px rgba(0,0,0,.6); }

.toast { position: fixed; z-index: 60; top: 40%; left: 50%; transform: translate(-50%, -50%); font: 600 17px/1.25 var(--ui); padding: 11px 18px; background: rgba(10,12,15,.86); border: 1px solid var(--glass-b); border-radius: 18px; opacity: 0; transition: opacity .2s; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); text-align: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.toast.show { opacity: 1; }
.busy { position: fixed; inset: 0; z-index: 70; display: none; place-items: center; background: rgba(4,6,9,.5); }
.busy.on { display: grid; }
.busy > div { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--glass-b); font-size: 15px; max-width: calc(100vw - 40px); }
.busy i, .spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--acc); animation: rot .8s linear infinite; flex: none; }
@keyframes rot { to { transform: rotate(360deg); } }

/* start */
.start { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--sat) + 20px) 20px calc(var(--sab) + 22px); pointer-events: none;
  background: linear-gradient(to top, rgba(8,10,13,.97) 0, rgba(8,10,13,.92) 40%, rgba(8,10,13,.15) 72%, rgba(8,10,13,0) 100%); transition: opacity .35s, visibility .35s; }
.start > * { pointer-events: auto; }
.start.gone { opacity: 0; visibility: hidden; }
.start.gone > * { pointer-events: none; }
.start .in { max-width: 460px; width: 100%; margin: 0 auto; }
.start .lang-corner { position: absolute; top: calc(var(--sat) + 14px); right: 14px; }
.start .kick { font: 600 12px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--acc); text-shadow: 0 1px 8px #000; }
.start h1 { font: 400 48px/1 var(--serif); margin: 10px 0 0; letter-spacing: -.01em; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.start h1 i { color: var(--acc); }
.start p.lead { color: var(--dim); margin: 12px 0 20px; font-size: 16.5px; line-height: 1.42; }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 15px 18px; border-radius: 16px; font: 600 17px/1.1 var(--ui); margin-bottom: 10px; transition: transform .1s; }
.btn:active { transform: scale(.98); }
.btn.pri { background: var(--acc); color: var(--acc-ink); box-shadow: 0 8px 28px rgba(92,203,255,.28); }
.btn.sec { background: rgba(255,255,255,.08); border: 1px solid var(--glass-b); }
.btn.sm { width: auto; padding: 12px 15px; font-size: 15px; margin: 0; }
.start .err { color: #ffab9e; margin: 6px 0 0; font-size: 14.5px; }
.start .small { margin-top: 12px; font-size: 13px; color: #8c9198; line-height: 1.5; }
.start .small a { color: #b9bec5; }
.demo-cap { position: absolute; left: 50%; top: calc(var(--sat) + 70px); transform: translateX(-50%); font: 600 12px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; padding: 7px 11px; border-radius: 12px; background: rgba(0,0,0,.55); color: var(--fg); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.demo-cap.on { opacity: 1; }
body.starting .rail, body.starting .bottom, body.starting .top { opacity: 0; pointer-events: none; }
body.starting .top * { pointer-events: none; }

/* full-screen panels */
.screen { position: fixed; inset: 0; z-index: 20; background: #0c0e12; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .32s cubic-bezier(.2,.8,.2,1), visibility .32s; visibility: hidden; }
.screen.open { transform: none; visibility: visible; }
#page, #crop { background: #08090b; }
.sbar { flex: none; display: flex; align-items: center; gap: 10px; padding: calc(var(--sat) + 10px) 12px 10px; }
.round { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid var(--glass-b); flex: none; }
.round.ok { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.round.on { background: rgba(92,203,255,.22); border-color: var(--acc); color: var(--acc); }
.title { flex: 1; min-width: 0; font: 600 17px/1 var(--ui); color: var(--fg); background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 9px 10px; outline: none; user-select: text; -webkit-user-select: text; }
.title:focus { border-color: var(--glass-b); background: rgba(255,255,255,.05); }
.pnum { flex: 1; text-align: center; font: 600 15px/1.2 var(--ui); color: var(--dim); }
.pgrid { flex: 1; overflow-y: auto; padding: 8px 14px 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; align-content: start; touch-action: pan-y; }
.pc { position: relative; aspect-ratio: 1 / 1.3; display: flex; align-items: center; justify-content: center; border-radius: 10px; touch-action: pan-y; }
.pc img { max-width: 100%; max-height: 100%; display: block; border-radius: 3px; box-shadow: 0 6px 22px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); background: #fff; pointer-events: none; }
.pc .n { position: absolute; left: 6px; bottom: 6px; min-width: 24px; height: 24px; border-radius: 12px; background: rgba(0,0,0,.72); font: 700 12.5px/24px var(--ui); text-align: center; padding: 0 7px; }
.pc .k { position: absolute; right: 6px; bottom: 6px; font: 600 10.5px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; padding: 5px 7px; border-radius: 8px; background: rgba(0,0,0,.72); color: var(--acc); }
.pc .spin { position: absolute; }
.pc.drag { opacity: .35; }
.pc.ghost { position: fixed; z-index: 40; pointer-events: none; transform: scale(1.06); opacity: .95; }
.pc.target::before { content: ''; position: absolute; left: -9px; top: 6%; bottom: 6%; width: 3px; border-radius: 2px; background: var(--acc); }
.pc.target.after::before { left: auto; right: -9px; }
.phint { flex: none; text-align: center; margin: 0; padding: 0 16px 8px; color: #8c9198; font-size: 13.5px; }
.sfoot { flex: none; display: flex; gap: 10px; align-items: center; padding: 10px 14px calc(var(--sab) + 12px); }
.sfoot .btn.pri { flex: 1; margin: 0; }
#crop .sfoot { justify-content: center; }
.empty-msg { grid-column: 1 / -1; text-align: center; color: var(--dim); padding: 40px 10px; font-size: 15.5px; line-height: 1.45; }

/* single page */
.viewer { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 6px 72px 6px 14px; touch-action: pan-y; }
.viewer img { max-width: 100%; max-height: 100%; display: block; box-shadow: 0 10px 40px rgba(0,0,0,.6); background: #fff; }
.viewer .spin { position: absolute; left: 50%; top: 50%; margin: -11px; display: none; }
.viewer.busy .spin { display: block; }
.viewer.busy img { opacity: .55; transition: opacity .2s .25s; }
.prail { bottom: auto; top: calc(var(--sat) + 96px); }
.prail .rb .ic { background: rgba(255,255,255,.07); }
.fbar { flex: none; padding: 6px 0 calc(var(--sab) + 12px); }
.ftrack { display: flex; gap: 10px; overflow-x: auto; padding: 4px 14px; scrollbar-width: none; scroll-snap-type: x proximity; }
.ftrack::-webkit-scrollbar { display: none; }
.fb { flex: none; width: 74px; display: flex; flex-direction: column; align-items: center; gap: 6px; scroll-snap-align: center; }
.fb .th { width: 64px; height: 80px; border-radius: 8px; background: #1b1e23 center/cover; box-shadow: 0 0 0 1px rgba(255,255,255,.1); transition: box-shadow .15s, transform .15s; }
.fb .nm { font: 500 12px/1.15 var(--ui); color: var(--dim); text-align: center; }
.fb.on .th { box-shadow: 0 0 0 3px var(--acc); transform: translateY(-2px); }
.fb.on .nm { color: var(--acc); font-weight: 600; }
.fstr { display: flex; align-items: center; gap: 12px; padding: 8px 18px 0; font-size: 13.5px; color: var(--dim); }
.fstr input { flex: 1; }

/* corner editor */
.cstage { flex: 1; min-height: 0; position: relative; touch-action: none; }
.cstage canvas, .cstage svg { position: absolute; left: 0; top: 0; }
#c-svg .q { fill: rgba(92,203,255,.12); stroke: var(--acc); stroke-width: 2; }
#c-svg .h { fill: rgba(10,12,15,.4); stroke: #fff; stroke-width: 3; }
#c-svg .h.act { stroke: var(--acc); fill: rgba(92,203,255,.35); }
#c-svg .m { fill: #fff; stroke: rgba(0,0,0,.4); stroke-width: 1; }
.loupe { position: fixed; z-index: 25; width: 120px; height: 120px; border-radius: 50%; overflow: hidden; border: 3px solid #fff; box-shadow: 0 8px 30px rgba(0,0,0,.6); pointer-events: none; display: none; }
.loupe.on { display: block; }
.loupe canvas { width: 100%; height: 100%; display: block; }

/* sheets */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; margin: 0 auto; max-width: 600px; background: var(--panel); border: 1px solid rgba(255,255,255,.1); border-bottom: 0; border-radius: 20px 20px 0 0; padding: 14px 18px calc(var(--sab) + 18px); transform: translateY(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); max-height: 88dvh; overflow: auto; overscroll-behavior: contain; }
.sheet.open { transform: none; }
.sheet-backdrop { z-index: 44 !important; position: fixed !important; }
.sheet h2 { font: 400 30px/1.05 var(--serif); margin: 0 0 12px; }
.sheet .grab { width: 44px; height: 4px; border-radius: 2px; background: #4a4e55; margin: 0 auto 12px; }
.sheet p, .sheet li { font-size: 15px; line-height: 1.42; color: #dcdee2; }
.sheet ul { padding-left: 18px; margin: 6px 0 12px; }
.sheet li { margin-bottom: 7px; }
.sheet a { color: var(--acc); }
.sheet .lp-float { float: right; margin: -2px 10px 0 0; position: sticky; top: 4px; z-index: 2; }
.set { display: grid; grid-template-columns: minmax(96px, auto) 1fr auto; align-items: center; gap: 6px 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.set > span:first-child { font-size: 15px; color: #dcdee2; }
.set .seg, .set .full { grid-column: 2 / -1; justify-self: end; }
.set .full { display: flex; gap: 10px; align-items: center; }
.set .val { font: 500 13px var(--ui); color: var(--acc); min-width: 40px; text-align: right; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; padding: 3px; border-radius: 15px; background: rgba(255,255,255,.07); gap: 3px; flex-wrap: wrap; justify-content: flex-end; }
.seg button { padding: 8px 12px; border-radius: 12px; font: 600 13.5px/1 var(--ui); color: var(--dim); }
.seg button.on { background: var(--fg); color: #0b0d10; }
.seg button:disabled { opacity: .35; }
.tg { width: 50px; height: 30px; border-radius: 15px; background: rgba(255,255,255,.16); position: relative; transition: background .15s; flex: none; }
.tg i { position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; }
.tg[aria-pressed="true"] { background: var(--acc); }
.tg[aria-pressed="true"] i { transform: translateX(20px); }
select { font: 500 14px var(--ui); color: var(--fg); background: #1d2127; border: 1px solid var(--glass-b); border-radius: 10px; padding: 7px 8px; max-width: 170px; }
select:disabled { opacity: .4; }
.note { font-size: 13.5px !important; color: #9aa0a8 !important; }
.est { font: 500 14px/1.4 var(--ui); color: var(--acc); margin: 12px 0 0; min-height: 20px; font-variant-numeric: tabular-nums; }
.prog { height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); margin: 10px 0 0; overflow: hidden; visibility: hidden; }
.prog.on { visibility: visible; }
.prog i { display: block; height: 100%; width: 0; background: var(--acc); transition: width .2s; }
.act { display: flex; gap: 10px; margin-top: 14px; }
.act button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 14px 10px; border-radius: 14px; border: 1px solid var(--glass-b); font: 600 16px/1 var(--ui); color: var(--fg); }
.act .pri { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.act button:disabled { opacity: .4; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; margin: 0; touch-action: pan-x; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; background: rgba(255,255,255,.2); border-radius: 2px; }
input[type=range]::-moz-range-track { height: 4px; background: rgba(255,255,255,.2); border-radius: 2px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--fg); border: 3px solid var(--acc); }
input[type=range]::-moz-range-thumb { width: 17px; height: 17px; border-radius: 50%; background: var(--fg); border: 3px solid var(--acc); }
.looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.looks button { padding: 12px 6px; border-radius: 13px; border: 1px solid rgba(255,255,255,.16); font: 600 14px/1.15 var(--ui); }
.looks button.on { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.sigbox { border-radius: 12px; padding: 14px; display: grid; place-items: center; min-height: 140px; max-height: 40dvh;
  background: repeating-conic-gradient(#e9eaec 0 25%, #fff 0 50%) 0 0 / 18px 18px; }
.sigbox img { max-width: 100%; max-height: calc(40dvh - 28px); display: block; }
.credits { font-size: 12.5px !important; color: #8c9198 !important; }
.perf { font: 400 11px/1.5 ui-monospace, monospace; color: #6f747b; margin-top: 10px; word-break: break-word; user-select: text; -webkit-user-select: text; }

@media (min-width: 900px) and (min-height: 560px) {
  .rail:not(.prail) { right: 20px; bottom: 50%; transform: translateY(50%); }
  .start { justify-content: center; align-items: flex-start; padding-left: 6vw; background: linear-gradient(to right, rgba(8,10,13,.97) 0, rgba(8,10,13,.88) 34%, rgba(8,10,13,0) 62%); }
  .start .in { margin: 0; }
  .start h1 { font-size: 62px; }
  .pgrid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); padding: 8px 28px 14px; }
}
@media (max-height: 600px) {
  .row { height: 70px; } .shutter { width: 64px; height: 64px; } .stack { width: 44px; height: 44px; }
  .bottom { gap: 8px; } .hint { font-size: 13px; padding: 6px 12px; }
  .row > .ctl.sd { left: 6px; top: 13px; } .row > .done { top: 13px; }
  .rail { bottom: calc(var(--sab) + 184px); }
}
@media (prefers-reduced-motion: reduce) { .sweep.go { animation: none; } .brand .mk i { animation: none; } }
@media (min-width: 700px) {
  .ftrack { justify-content: center; }
  .fstr { max-width: 560px; margin: 0 auto; }
  .viewer { padding: 10px 90px 10px 90px; }
}
@media (min-width: 700px) { .sfoot { justify-content: center; } .sfoot .btn.pri { flex: 0 1 360px; } }
