:root {
  --bg: #0c0d0e; --fg: #f5f4f0; --dim: rgba(245,244,240,.64); --acc: #c8f560; --acc-ink: #1a2600;
  --glass: rgba(16,17,19,.56); --glass-b: rgba(255,255,255,.14); --panel: rgba(20,21,23,.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(20,21,23,.98); --lp-menu-fg: var(--fg);
  --lp-menu-radius: 18px; --lp-item-radius: 11px; --lp-hover: rgba(200,245,96,.12); --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;
  --ok: #8ee07a; --warn: #ffc95c; --bad: #ff7a66;
}
* { 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: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input[type=file] { display: none; }
svg.i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.s { width: 17px; height: 17px; }

/* stage */
#stage { position: fixed; inset: 0; overflow: hidden; background: #08090a;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0), radial-gradient(ellipse 70% 55% at 50% 42%, rgba(200,245,96,.07), transparent 70%); background-size: 22px 22px, 100% 100%; }
#art { position: absolute; display: grid; place-items: center; transition: opacity .2s; }
#art svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 22px 48px rgba(0,0,0,.55)); }
#art.chk { background-color: #fff; background-image: linear-gradient(45deg, #e6e6e6 25%, transparent 25%, transparent 75%, #e6e6e6 75%), linear-gradient(45deg, #e6e6e6 25%, transparent 25%, transparent 75%, #e6e6e6 75%); background-size: 16px 16px; background-position: 0 0, 8px 8px; border-radius: 6px; }
#art.chk svg { filter: none; }
#art.pop { animation: pop .32s cubic-bezier(.2,.9,.3,1.3); }
@keyframes pop { 0% { transform: scale(.96); } 100% { transform: none; } }
.shade { position: fixed; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(8,9,10,.55), transparent 90px), linear-gradient(to top, rgba(8,9,10,.82) 0, rgba(8,9,10,.4) 150px, transparent 250px); }

/* top */
.top { position: fixed; z-index: 5; 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: 8px; font: 700 15px/1 var(--ui); letter-spacing: .02em; text-shadow: 0 1px 8px rgba(0,0,0,.6); white-space: nowrap; }
.brand .mk { width: 24px; height: 24px; flex: none; }
.brand em { font: italic 400 19px/1 var(--serif); letter-spacing: 0; margin-left: 2px; }

/* right rail */
.rail { position: fixed; z-index: 5; right: 4px; bottom: calc(var(--sab) + 210px); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.rb { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 70px; }
.rb .ic { width: 44px; height: 44px; border-radius: 50%; background: rgba(16,17,19,.62); border: 1px solid var(--glass-b); display: grid; place-items: center; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .12s, background .15s, border-color .15s; position: relative; }
.rb:active .ic { transform: scale(.88); }
.rb .lb { font: 500 11.5px/1.1 var(--ui); text-shadow: 0 1px 4px #000; text-align: center; max-width: 76px; white-space: normal; }
.rb.on .ic { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.rb.dot .ic::after { content: ''; position: absolute; top: 1px; right: 1px; width: 9px; height: 9px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 2px #111; }
.score-ic { overflow: hidden; }
.score-ic .ring, .score .big svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ic .trk, .score .trk { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 3; }
.score-ic .val, .score .val { fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: 97.4; transition: stroke-dashoffset .5s, stroke .3s; }
.score-ic b { position: relative; font: 700 13px/1 var(--ui); font-variant-numeric: tabular-nums; }
.rail.c1 { gap: 6px; } .rail.c1 .rb .ic { width: 38px; height: 38px; } .rail.c1 svg.i { width: 19px; height: 19px; } .rail.c1 .rb .lb { font-size: 11px; }
.rail.c2 { gap: 6px; } .rail.c2 .rb .ic { width: 36px; height: 36px; } .rail.c2 svg.i { width: 18px; height: 18px; } .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; pointer-events: none; }
.bottom > * { pointer-events: auto; }
.sname { font: 400 30px/1 var(--serif); letter-spacing: .01em; text-shadow: 0 2px 14px rgba(0,0,0,.7); white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.sname i { font-style: italic; color: var(--acc); }
.ssub { margin-top: 5px; font: 500 12px/1.2 var(--ui); letter-spacing: .03em; color: var(--dim); white-space: nowrap; max-width: 94vw; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 6px #000; pointer-events: none; }
.ssub b { color: var(--acc); font-weight: 600; }
.carousel { position: relative; width: 100%; max-width: 640px; height: 86px; margin-top: 4px; }
.track { display: flex; gap: 14px; align-items: center; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; padding: 0 calc(50% - 27px); scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.track::-webkit-scrollbar { display: none; }
.sw { flex: 0 0 54px; height: 54px; border-radius: 14px; scroll-snap-align: center; position: relative; display: grid; place-items: center; opacity: .8; overflow: hidden;
  background: #fff; transition: transform .22s cubic-bezier(.2,.9,.3,1.2), opacity .2s; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 4px 14px rgba(0,0,0,.4); }
.sw svg { width: 100%; height: 100%; display: block; }
.sw.on { transform: scale(1.14); opacity: 1; }
.ring { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 20px; border: 3px solid var(--fg); pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 6px 22px rgba(0,0,0,.45); }
.row { position: relative; width: 100%; max-width: 560px; height: 54px; display: flex; align-items: center; justify-content: center; margin-top: 6px; }
.save { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 23px; background: var(--acc); color: var(--acc-ink); font: 700 15px/1 var(--ui); letter-spacing: .02em; box-shadow: 0 8px 26px rgba(200,245,96,.25); white-space: nowrap; max-width: calc(100vw - 150px); overflow: hidden; }
.save:active { transform: scale(.96); }
.save svg.i { width: 19px; height: 19px; stroke-width: 2.1; }
.sq { position: absolute; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--glass-b); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sq.l { left: 20px; } .sq.r { right: 20px; }
/* captions under the square buttons: 76px wrappers keep the button centres where they were */
.row { box-sizing: content-box; padding-bottom: 14px; }
.row > .ctl { position: absolute; top: 4px; width: 76px; } .row > .ctl.cl { left: 5px; } .row > .ctl.cr { right: 5px; }
.row > .ctl > .sq { position: relative; left: auto; right: auto; }
.sq:active { transform: scale(.94); }

/* toast, hint, busy */
.toast { position: fixed; z-index: 70; top: 40%; left: 50%; transform: translate(-50%, -50%); font: 600 16px/1.25 var(--ui); padding: 11px 18px; background: rgba(14,15,16,.9); border: 1px solid var(--glass-b); border-radius: 16px; 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; }
.hint { position: fixed; z-index: 6; left: 50%; top: calc(var(--sat) + 58px); transform: translateX(-50%); display: none; align-items: center; gap: 10px; padding: 7px 7px 7px 14px; border-radius: 22px; background: rgba(14,15,16,.88); border: 1px solid var(--glass-b); font: 500 13.5px/1.25 var(--ui); max-width: calc(100vw - 24px); width: max-content; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hint.show { display: flex; }
.hint.warn { border-color: rgba(255,201,92,.5); }
.hint button { flex: none; padding: 8px 12px; border-radius: 16px; background: var(--acc); color: var(--acc-ink); font-weight: 700; font-size: 13px; }
.hint .x { background: none; color: var(--fg); padding: 6px 8px; opacity: .7; }
.busy { position: fixed; inset: 0; z-index: 65; display: none; place-items: center; background: rgba(8,9,10,.5); }
.busy.on { display: grid; }
.busy > div { min-width: 240px; padding: 16px 20px; border-radius: 18px; background: rgba(16,17,19,.95); border: 1px solid var(--glass-b); font-weight: 600; }
.busy .bt { display: flex; align-items: center; gap: 12px; }
.busy i { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.2); border-top-color: var(--acc); animation: spin .8s linear infinite; }
.busy .bar { margin-top: 12px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.busy .bar u { display: block; height: 100%; width: 0; background: var(--acc); transition: width .2s; }
@keyframes spin { to { transform: rotate(360deg); } }
.dropzone { position: fixed; inset: 10px; z-index: 60; border: 3px dashed var(--acc); border-radius: 26px; display: none; place-items: center; background: rgba(12,13,14,.75); font: 400 34px/1.1 var(--serif); pointer-events: none; }
body.dragging .dropzone { display: grid; }

/* start */
.start { position: fixed; inset: 0; z-index: 50; overflow: auto; overscroll-behavior: contain; touch-action: pan-y; padding: calc(var(--sat) + 20px) 20px calc(var(--sab) + 24px);
  background: radial-gradient(ellipse 80% 50% at 75% 8%, rgba(200,245,96,.13), transparent 70%), radial-gradient(ellipse 70% 50% at 10% 92%, rgba(92,200,255,.10), transparent 70%), var(--bg); transition: opacity .35s, visibility .35s; }
.start.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.start .in { max-width: 480px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; justify-content: center; }
.start .lang-corner { position: absolute; top: calc(var(--sat) + 14px); right: 14px; }
.hero { position: relative; height: 236px; margin: 34px 0 4px; display: grid; place-items: center; }
.hero .hq { width: 212px; height: 212px; position: relative; }
.hero .hq svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .6s, transform .6s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 18px 40px rgba(0,0,0,.55)); }
.hero .hq svg.out { opacity: 0; transform: scale(.94) rotate(-2deg); }
.hero .tag { position: absolute; right: 2px; top: 6px; transform: rotate(6deg); font: 700 11px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; padding: 8px 10px; border-radius: 10px; background: var(--acc); color: var(--acc-ink); box-shadow: 0 8px 22px rgba(0,0,0,.4); }
.start h1 { font: 400 46px/1 var(--serif); margin: 14px 0 0; letter-spacing: -.01em; }
.start h1 i { color: var(--acc); }
.start p.lead { color: var(--dim); margin: 12px 0 18px; font-size: 16.5px; line-height: 1.42; }
.quick { display: flex; gap: 8px; margin-bottom: 12px; }
.quick input { flex: 1; min-width: 0; height: 54px; padding: 0 16px; border-radius: 18px; border: 1px solid rgba(255,255,255,.22); background: #0b0c0d; color: var(--fg); font: 500 16.5px var(--ui); user-select: text; -webkit-user-select: text; }
.quick input:focus { outline: 2px solid var(--acc); outline-offset: 1px; }
.quick .btn { width: auto; margin: 0; padding: 0 20px; height: 54px; }
.types { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.types button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px 8px 9px; border-radius: 15px; border: 1px solid rgba(255,255,255,.18); font: 600 13px/1 var(--ui); color: #dcdcd8; }
.types button svg { width: 16px; height: 16px; stroke: var(--acc); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 15px 18px; border-radius: 18px; font: 700 16px/1.2 var(--ui); margin-bottom: 10px; text-align: center; }
.btn.pri { background: var(--acc); color: var(--acc-ink); box-shadow: 0 10px 30px rgba(200,245,96,.2); }
.btn.sec { background: rgba(255,255,255,.07); border: 1px solid var(--glass-b); }
.btn:active { transform: scale(.98); }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: #b9bdc2; }
.feats li { display: flex; gap: 7px; align-items: baseline; line-height: 1.3; }
.feats li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); transform: translateY(-1px); }
.start .small { margin-top: 22px; font-size: 13px; color: #8c8f93; line-height: 1.5; }
.start .small a { color: #b9bdc2; }

/* sheets */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; margin: 0 auto; max-width: 640px; background: var(--panel); border: 1px solid rgba(255,255,255,.1); border-bottom: 0; border-radius: 22px 22px 0 0; padding: 14px 18px calc(var(--sab) + 18px); transform: translateY(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); max-height: 86dvh; overflow: auto; touch-action: pan-y; }
.sheet.open { transform: none; }
.sheet h2 { font: 400 30px/1.05 var(--serif); margin: 0 0 12px; }
.sheet h3 { font: 600 12px/1.2 var(--ui); letter-spacing: .14em; margin: 20px 0 9px; text-transform: uppercase; color: var(--acc); }
.sheet .grab { width: 44px; height: 4px; border-radius: 2px; background: #4a4c50; margin: 0 auto 12px; }
.sheet p, .sheet li { font-size: 15px; line-height: 1.42; color: #dcdcd8; }
.sheet ul { padding-left: 18px; margin: 6px 0 12px; }
.sheet a { color: var(--acc); }
.sheet .lp-float { float: right; margin: -2px 10px 0 0; position: sticky; top: 4px; z-index: 2; }
.seg { display: inline-flex; padding: 3px; border-radius: 15px; background: rgba(255,255,255,.07); gap: 3px; flex-wrap: wrap; }
.seg button { padding: 9px 12px; border-radius: 12px; font: 600 13px/1 var(--ui); color: var(--dim); }
.seg button.on { background: var(--fg); color: #111; }
.note { font-size: 13.5px !important; color: #9da0a4 !important; }
.note.big { font-size: 15px !important; color: #dcdcd8 !important; }
.set { display: grid; grid-template-columns: minmax(96px, auto) 1fr 52px; align-items: center; gap: 4px 12px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.set > span:first-child { font-size: 15px; color: #dcdcd8; overflow-wrap: anywhere; hyphens: auto; }
.set .val { font: 500 13px var(--ui); color: var(--acc); min-width: 46px; text-align: right; font-variant-numeric: tabular-nums; }
.set[hidden], .opt[hidden], [hidden] { display: none !important; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 15px; color: #dcdcd8; }
.opt small { display: block; font-size: 12.5px; color: #8f9296; margin-top: 2px; }
.opt.col { flex-direction: column; align-items: stretch; gap: 8px; }
.opt.col .seg { align-self: flex-start; }
.tg { position: relative; flex: none; width: 48px; height: 28px; border-radius: 14px; background: rgba(255,255,255,.16); transition: background .15s; }
.tg::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; }
.tg.on { background: var(--acc); } .tg.on::after { transform: translateX(20px); }
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,.18); border-radius: 2px; }
input[type=range]::-moz-range-track { height: 4px; background: rgba(255,255,255,.18); 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); }
.act { display: flex; gap: 10px; margin-top: 14px; }
.act button, .act a { flex: 1; text-align: center; padding: 14px 10px; border-radius: 14px; border: 1px solid rgba(255,255,255,.18); font: 700 15px/1.15 var(--ui); color: var(--fg); text-decoration: none; }
.act .pri { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.act button:disabled { opacity: .45; }
.credits { font-size: 12.5px !important; color: #8c8f93 !important; }
.perf { font: 400 11px/1.5 ui-monospace, monospace; color: #7c7f83; margin-top: 10px; word-break: break-word; }
.lang-row { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 14px; color: var(--dim); }
.dims { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--dim); margin: 6px 0; }
.dims label { display: flex; align-items: center; gap: 6px; }
.dims input, .dims select { width: 96px; padding: 9px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: #0b0c0d; color: var(--fg); font: 500 15px var(--ui); }
.dims select { width: auto; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.pill { display: inline-flex; align-items: center; gap: 7px; font: 600 13px/1 var(--ui); padding: 9px 12px; border-radius: 16px; border: 1px solid rgba(255,255,255,.2); color: #dcdcd8; white-space: nowrap; }
.pill.on { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.fmts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fmts button { padding: 12px 4px 10px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); display: flex; flex-direction: column; align-items: center; gap: 4px; font: 700 15px/1 var(--ui); }
.fmts button small { font: 500 10.5px/1.15 var(--ui); color: #9da0a4; text-align: center; }
.fmts button.on { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.fmts button.on small { color: rgba(26,38,0,.7); }

/* type grid + form */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; margin-bottom: 10px; }
.tgrid button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); font: 600 11.5px/1.1 var(--ui); color: #c9ccd0; text-align: center; }
.tgrid button svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tgrid button.on { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.field { display: flex; flex-direction: column; gap: 5px; font: 500 12.5px/1.2 var(--ui); color: #9da0a4; grid-column: span 2; margin: 6px 0; }
.form .field { margin: 0; }
.field.half { grid-column: span 1; }
.field input, .field textarea, .field select { width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: #0b0c0d; color: var(--fg); font: 500 16px/1.3 var(--ui); user-select: text; -webkit-user-select: text; resize: vertical; }
.field textarea { min-height: 70px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--acc); outline-offset: 1px; }
.field.err input, .field.err textarea { border-color: var(--bad); }
.field .em { color: var(--bad); font-size: 12px; }
.field .em button { color: var(--acc); text-decoration: underline; font-size: 12px; }
.field .seg { align-self: flex-start; }
.field.chk { flex-direction: row; align-items: center; justify-content: space-between; color: #dcdcd8; font-size: 15px; }
.fit { margin: 10px 0 2px; font: 500 13px/1.4 var(--ui); color: #9da0a4; }
.fit b { color: var(--acc); }
.fit.bad b { color: var(--bad); }

/* option grids */
.ogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; }
.ogrid button { aspect-ratio: 1; border-radius: 14px; background: #f3f2ee; padding: 7px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); position: relative; }
.ogrid button svg { width: 100%; height: 100%; display: block; }
.ogrid button.on { outline: 3px solid var(--acc); outline-offset: 2px; }
.ogrid button small { position: absolute; left: 0; right: 0; bottom: -17px; font: 500 10.5px/1 var(--ui); color: #9da0a4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ogrid.frames { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); row-gap: 26px; margin-bottom: 18px; }
.ogrid.frames button { background: #2a2c30; }
.ogrid.logos button { background: #f3f2ee; padding: 11px; }
.ogrid.logos button.none { background: #2a2c30; color: #9da0a4; font: 600 12px/1 var(--ui); }
.ogrid.logos button.up img { width: 100%; height: 100%; object-fit: contain; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 2px 8px rgba(0,0,0,.35); }
.swatches button.on { outline: 3px solid var(--acc); outline-offset: 2px; }
.cpick { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 4px; }
.cpick label { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: 14px; background: rgba(255,255,255,.06); font: 500 13px/1 var(--ui); color: #c9ccd0; cursor: pointer; position: relative; }
.cpick label i { width: 28px; height: 28px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.cpick input[type=color] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.cpick code { font: 500 12px ui-monospace, monospace; color: #9da0a4; }
.contrast { margin: 10px 0 0; font: 500 13.5px/1.4 var(--ui); color: #9da0a4; }
.contrast b { font-weight: 700; }
.ctas { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.ctas button { padding: 7px 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); font: 600 12px/1 var(--ui); color: #c9ccd0; }
.ctas button.on { border-color: var(--acc); color: var(--acc); }
.fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.fonts button { height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; padding: 6px; background: rgba(255,255,255,.04); }
.fonts button svg { height: 18px; width: 100%; }
.fonts button.on { border-color: var(--acc); background: rgba(200,245,96,.08); }
.smp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.smp button { aspect-ratio: 1; border-radius: 12px; background: #222 center/cover; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); display: grid; place-items: center; color: #c9ccd0; font: 600 12px/1.1 var(--ui); text-align: center; padding: 4px; }
.smp button.on { outline: 3px solid var(--acc); outline-offset: 2px; }

/* scan */
.score { display: flex; gap: 16px; align-items: center; }
.score .big { position: relative; width: 92px; height: 92px; flex: none; display: grid; place-items: center; }
.score .big b { position: relative; font: 700 30px/1 var(--ui); font-variant-numeric: tabular-nums; }
.score .val { stroke-width: 3.2; }
.score .sl { font: 400 26px/1.05 var(--serif); }
.score .note { margin: 4px 0 0; }
.tests, .checks { list-style: none; padding: 0 !important; margin: 14px 0 0; display: grid; gap: 2px; }
.tests li, .checks li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14.5px !important; }
.tests li i, .checks li i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--ui); font-style: normal; color: #111; }
.tests li small, .checks li small { display: block; color: #8f9296; font-size: 12.5px; margin-top: 1px; }
.tests li .m { font: 500 12px var(--ui); color: #9da0a4; font-variant-numeric: tabular-nums; text-align: right; }
.i-ok { background: var(--ok); } .i-warn { background: var(--warn); } .i-bad { background: var(--bad); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; color: #dcdcd8; }
.facts span:nth-child(odd) { color: #9da0a4; }
.raw { margin: 12px 0 0; padding: 12px; border-radius: 12px; background: #0b0c0d; border: 1px solid rgba(255,255,255,.1); font: 12.5px/1.45 ui-monospace, monospace; color: #c9ccd0; white-space: pre-wrap; word-break: break-all; max-height: 180px; overflow: auto; user-select: text; -webkit-user-select: text; }
.cols { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.cols button { padding: 6px 9px; border-radius: 10px; background: rgba(255,255,255,.08); font: 600 12px/1 ui-monospace, monospace; color: var(--acc); }

@media (min-width: 900px) and (min-height: 560px) {
  .rail { right: 20px; bottom: 50%; transform: translateY(50%); }
  .sname { font-size: 34px; }
}
@media (max-height: 600px) {
  .ssub { display: none; } .sname { font-size: 22px; } .carousel { height: 66px; margin-top: 0; }
  .sw { flex-basis: 42px; height: 42px; } .track { padding: 0 calc(50% - 21px); gap: 12px; } .ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 16px; }
  .row { height: 46px; margin-top: 2px; } .save { height: 40px; } .sq { width: 40px; height: 40px; }
  .row > .ctl { top: 3px; } .row > .ctl.cl { left: 2px; } .row > .ctl.cr { right: 2px; }
  .rail { bottom: calc(var(--sab) + 10px); }
}
@media (max-width: 380px) { .feats { grid-template-columns: 1fr; } .fmts small { display: none; } .form { grid-template-columns: 1fr; } .field.half { grid-column: span 2; } }
