/* PyroSoft Convert: everything below the fold. Tokens, nav and hero live in tools/convert/critical/ and are inlined into index.html. */

.js main > :not(.hero, .dock), .js .s-foot { visibility: visible; animation: none; }
.js main > .dock { visibility: visible; animation: dock-in .6s var(--spring); }
html:has(.dock:not([hidden])) { scroll-padding-bottom: 96px; }
.is-off, .is-off *, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }
#panels * { scroll-margin-top: 52px; }
.panel:focus { outline: none; }
::placeholder { color: var(--ink-3); opacity: 1; }

/* ---------- Motion primitives ---------- */
.fx [data-reveal] { opacity: 0; transform: translateY(22px); }
.fx [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .8s var(--out), transform .9s var(--out); transition-delay: calc(var(--d, 0) * 70ms); }
.spot { position: relative; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), color-mix(in oklab, var(--ember) 13%, transparent), transparent 70%); }
.spot:hover::after { opacity: 1; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.vt-theme::view-transition-old(root) { z-index: 1; }
.vt-theme::view-transition-new(root) { z-index: 2; animation: vt-circle .7s var(--ease) both; }
@keyframes vt-circle { from { clip-path: circle(0 at var(--vt-x, 90%) var(--vt-y, 40px)); } to { clip-path: circle(150vmax at var(--vt-x, 90%) var(--vt-y, 40px)); } }
.vt-tab #panels { view-transition-name: cv-panel; }
.vt-tab::view-transition-group(cv-panel) { animation-duration: .42s; animation-timing-function: var(--out); overflow: clip; }
.vt-tab::view-transition-old(cv-panel) { animation: vt-out .22s var(--ease) both; height: auto; }
.vt-tab::view-transition-new(cv-panel) { animation: vt-in .46s var(--out) both; height: auto; }
@keyframes vt-out { to { opacity: 0; transform: translateX(calc(var(--vt-dir, 1) * -28px)); } }
@keyframes vt-in { from { opacity: 0; transform: translateX(calc(var(--vt-dir, 1) * 36px)); } }

/* ---------- Buttons & form controls ---------- */
.cv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px; border: 0;
  background: var(--ink); color: var(--paper); font-weight: 650; font-size: 14.5px; letter-spacing: -.01em;
  white-space: nowrap; text-decoration: none; transition: transform .3s var(--spring), box-shadow .2s, background .15s, opacity .15s;
}
.cv-btn:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
.cv-btn:active { transform: scale(.97); }
.cv-btn[disabled] { opacity: .45; pointer-events: none; }
.cv-btn--fire { background: var(--fire-deep); color: #fff; box-shadow: 0 10px 30px -12px rgba(255,91,4,.7), inset 0 1px 0 rgba(255,255,255,.2); }
.cv-btn--ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2), var(--sh-1); }
.cv-btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink-3), var(--sh-2); }
.cv-btn--sm { height: 36px; padding: 0 14px; font-size: 13.5px; gap: 6px; }
.cv-btn--icon { width: 36px; padding: 0; }
.cv-btn--danger { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--bad) 40%, transparent); }
@media (pointer: coarse) { .cv-btn--sm { height: 44px; padding: 0 16px; } .cv-btn--icon { width: 44px; padding: 0; } }

.field { display: grid; gap: 6px; min-width: 0; }
.field > span, .field > label, .lbl { font-size: 12.5px; font-weight: 650; letter-spacing: .01em; color: var(--ink-2); }
.field small { color: var(--ink-3); font-size: 12px; }
.input, .select, .textarea {
  width: 100%; min-width: 0; height: 42px; padding: 0 12px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
  font-size: 14.5px; transition: border-color .15s, box-shadow .15s;
}
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238f867c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.textarea { height: auto; min-height: 220px; padding: 12px; font: 500 13px/1.55 var(--mono); resize: vertical; tab-size: 2; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ember) 22%, transparent); }
input[type="range"] { accent-color: var(--ember); width: 100%; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ember); width: 16px; height: 16px; margin: 0; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; user-select: none; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 14px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 11px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: background .2s, color .2s, box-shadow .2s, transform .3s var(--spring); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.seg button:active { transform: scale(.96); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.chip .ico { width: 14px; height: 14px; }
.chip--gpu { background: var(--gpu-wash); color: var(--gpu); }
.chip--wasm { background: var(--wasm-wash); color: var(--wasm); }
.chip--ok { background: var(--ok-wash); color: var(--ok); }
.chip--warn { background: var(--warn-wash); color: var(--warn); }
.chip--bad { background: var(--bad-wash); color: var(--bad); }
.chip--ember { background: var(--ember-wash); color: var(--ember-ink); }
.kbd { font: 600 11.5px var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--paper-2); box-shadow: inset 0 -1px 0 var(--line-2); }

/* ---------- Popular jobs ---------- */
.tiles-wrap { padding-top: 18px; }
.tiles { --play: paused; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tiles.is-run { --play: running; }
.tile { display: grid; grid-template-rows: 104px auto auto; gap: 1px; padding: 8px 8px 12px; border-radius: var(--r-lg); background: var(--card); color: var(--ink); text-decoration: none; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); transition: transform .45s var(--spring), box-shadow .25s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--sh-3), inset 0 0 0 1px color-mix(in oklab, var(--ember) 40%, var(--line)); }
.tile:active { transform: scale(.98); }
.tile b { margin: 9px 6px 0; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.tile b i { font-style: normal; color: var(--ember-ink); transition: margin .3s var(--spring); }
.tile:hover b i { margin-inline: 3px; }
.tile small { margin: 0 6px; font-size: 12.5px; color: var(--ink-3); }
.tile__art { position: relative; display: block; overflow: hidden; border-radius: 15px; background: linear-gradient(150deg, #241b16, #120e0b); contain: strict; }
.tile__art em { position: absolute; bottom: 7px; font: 600 10px var(--mono); font-style: normal; padding: 2px 6px; border-radius: 6px; color: #fff; background: rgba(0,0,0,.55); }
@media (max-width: 900px) {
  .tiles { display: flex; overflow-x: auto; scroll-snap-type: x proximity; margin-inline: -16px; padding: 4px 16px 10px; scrollbar-width: none; }
  .tiles::-webkit-scrollbar { display: none; }
  .tile { flex: 0 0 172px; scroll-snap-align: center; grid-template-rows: 88px auto auto; }
}
/* film strip */
.art-film__strip { position: absolute; inset: 14px 0; width: 200%; animation: film 7s linear infinite; animation-play-state: var(--play); background: radial-gradient(circle at 50% 50%, #120e0b 2.6px, transparent 3.2px) 0 -1px / 20px 11px repeat-x, radial-gradient(circle at 50% 50%, #120e0b 2.6px, transparent 3.2px) 0 calc(100% + 1px) / 20px 11px repeat-x, repeating-linear-gradient(90deg, #ff8a3d 0 56px, #2b1e16 56px 60px, #ffb340 60px 116px, #2b1e16 116px 120px, #ff5b04 120px 176px, #2b1e16 176px 180px), #2b1e16; background-repeat: repeat-x, repeat-x, repeat, repeat; background-clip: border-box; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); mask: linear-gradient(#000 0 0); }
@keyframes film { to { transform: translateX(-180px); } }
.art-film__play { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; padding: 9px; border-radius: 50%; color: #17130f; background: rgba(255,255,255,.92); box-shadow: 0 8px 22px rgba(0,0,0,.45); }
/* photo */
.art-photo { background: linear-gradient(180deg, #2a2f6d 0%, #c8527a 46%, #ffb36b 74%, #ffe0a8 100%); }
.art-photo__sun { position: absolute; left: 58%; top: 34%; width: 34px; height: 34px; border-radius: 50%; background: #fff3cf; box-shadow: 0 0 34px 10px rgba(255,214,150,.75); }
.art-photo__far { position: absolute; inset: 40% 0 0; background: #7b3a64; clip-path: polygon(0 62%, 14% 32%, 26% 58%, 44% 12%, 60% 56%, 76% 26%, 100% 66%, 100% 100%, 0 100%); }
.art-photo__near { position: absolute; inset: 60% 0 0; background: #2c1a2c; clip-path: polygon(0 58%, 20% 26%, 38% 62%, 62% 22%, 82% 56%, 100% 34%, 100% 100%, 0 100%); }
.art-photo__scan { position: absolute; inset: 0 auto 0 0; width: 50%; backdrop-filter: grayscale(1) contrast(.85); -webkit-backdrop-filter: grayscale(1) contrast(.85); border-right: 2px solid #fff; box-shadow: 1px 0 10px rgba(0,0,0,.45); animation: scan 5s ease-in-out infinite alternate; animation-play-state: var(--play); }
@keyframes scan { from { width: 84%; } to { width: 16%; } }
.art-photo em:nth-of-type(1) { left: 7px; } .art-photo em:nth-of-type(2) { right: 7px; }
/* equalizer */
.art-eq { display: flex; align-items: center; justify-content: center; gap: 4px; padding-inline: 14px; }
.art-eq i { flex: 1; height: 62%; max-width: 8px; border-radius: 4px; background: linear-gradient(180deg, #ffb340, #ff5b04); transform: scaleY(.3); animation: eq 1.05s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -137ms); animation-play-state: var(--play); }
@keyframes eq { from { transform: scaleY(.14); } to { transform: scaleY(1); } }
/* cube */
.art-cube { display: grid; place-items: center; perspective: 420px; }
.cube { position: relative; width: 50px; height: 50px; transform-style: preserve-3d; animation: cube 11s linear infinite; animation-play-state: var(--play); }
.cube i { position: absolute; inset: 0; border: 1.5px solid #ff9a5c; background: rgba(255,120,40,.12); box-shadow: inset 0 0 14px rgba(255,120,40,.35); }
.cube i:nth-child(1) { transform: translateZ(25px); } .cube i:nth-child(2) { transform: rotateY(180deg) translateZ(25px); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(25px); } .cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(25px); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(25px); } .cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(25px); }
@keyframes cube { from { transform: rotateX(-24deg) rotateY(0); } to { transform: rotateX(-24deg) rotateY(360deg); } }
/* gif */
.art-gif__ball { position: absolute; left: 12%; top: 18%; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe0a8, #ff5b04 70%); box-shadow: 0 4px 18px rgba(255,91,4,.65); animation: gif-x 2.4s steps(10) infinite alternate, gif-y .6s steps(5) infinite alternate; animation-play-state: var(--play); }
@keyframes gif-x { to { left: calc(88% - 30px); } }
@keyframes gif-y { to { top: calc(82% - 30px); } }
.art-gif em { right: 7px; }
/* shrink */
.art-shrink__bar { position: absolute; left: 10%; right: 10%; top: 28%; height: 18px; border-radius: 6px; background: var(--fire); transform-origin: left; animation: shrink 4.4s var(--ease) infinite alternate; animation-play-state: var(--play); }
@keyframes shrink { 0%, 22% { transform: scaleX(1); } 78%, 100% { transform: scaleX(.21); } }
.art-shrink em { position: absolute; left: 10%; bottom: 15%; font-size: 15px; background: none; padding: 0; animation: fade-a 4.4s var(--ease) infinite alternate; animation-play-state: var(--play); }
.art-shrink em + em { opacity: 0; animation-name: fade-b; color: #ffb37a; }
@keyframes fade-a { 0%, 42% { opacity: 1; } 58%, 100% { opacity: 0; } }
@keyframes fade-b { 0%, 42% { opacity: 0; } 58%, 100% { opacity: 1; } }
/* pages */
.art-pages { display: grid; place-items: center; }
.art-pages i { grid-area: 1 / 1; width: 46px; height: 62px; border-radius: 4px; background: repeating-linear-gradient(180deg, transparent 0 9px, rgba(40,28,20,.22) 9px 11px) 8px 10px / 30px 42px no-repeat, #fbf6ef; box-shadow: 0 8px 18px rgba(0,0,0,.5); animation: page-a 4s var(--ease) infinite alternate; animation-play-state: var(--play); }
.art-pages i:nth-child(2) { animation-name: page-b; }
.art-pages i:nth-child(3) { animation-name: page-c; background-color: #ffe8d6; }
@keyframes page-a { 0%, 20% { transform: translateX(-52px) rotate(-7deg); } 80%, 100% { transform: translate(-3px, 3px) rotate(-3deg); } }
@keyframes page-b { 0%, 20% { transform: translateX(52px) rotate(7deg); } 80%, 100% { transform: translate(3px, 2px) rotate(3deg); } }
@keyframes page-c { 0%, 20% { transform: translateY(70px); } 80%, 100% { transform: none; } }
/* code */
.art-code { display: grid; align-content: center; gap: 7px; padding-inline: 16%; }
.art-code i { display: block; height: 7px; width: var(--w); margin-left: var(--x, 0); border-radius: 4px; background: #ff9a5c; animation: code 4s var(--ease) infinite alternate; animation-delay: calc(var(--x, 0%) * 0); animation-play-state: var(--play); }
.art-code i:nth-child(1), .art-code i:nth-child(5) { background: #8f867c; animation-name: code-brace; }
.art-code i:nth-child(3) { background: #ffb340; } .art-code i:nth-child(4) { background: #ffe0a8; }
@keyframes code { 0%, 25% { transform: none; } 75%, 100% { transform: translateX(-14%) scaleX(.86); } }
@keyframes code-brace { 0%, 25% { opacity: 1; transform: none; } 75%, 100% { opacity: 0; transform: scaleX(.3); } }

/* ---------- Tool rail ---------- */
.rail { position: sticky; top: var(--nav-h); z-index: 40; margin-top: 14px; background: color-mix(in oklab, var(--paper) 84%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); }
.rail > .wrap { display: flex; align-items: center; gap: 10px; }
.rail__in { position: relative; display: flex; flex: 1; min-width: 0; gap: 2px; overflow-x: auto; padding: 8px 2px; scrollbar-width: none; }
.rail__in::-webkit-scrollbar { display: none; }
.rail__ink { position: absolute; left: 0; top: 8px; height: 44px; width: 0; border-radius: 14px; background: var(--card); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); transition: transform .55s var(--spring), width .55s var(--spring); pointer-events: none; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 14px; color: var(--ink-2); font-size: 14.5px; font-weight: 620; white-space: nowrap; text-decoration: none; transition: color .2s; }
.tab:hover { color: var(--ink); }
.tab svg { transition: transform .5s var(--spring), color .2s; }
.tab:hover svg { transform: translateY(-1px) scale(1.1); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"] svg { color: var(--ember); transform: scale(1.12); }
.tab:focus-visible { outline-offset: -2px; }
.tab .count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; background: var(--ember-ink); color: #fff; animation: pop .5s var(--spring); }
:root[data-theme="dark"] .tab .count { background: #ff8a3d; color: #17130f; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@media (max-width: 1240px) { .rail__in { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 20px), transparent); } }
.rail__free { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ok); background: var(--ok-wash); text-decoration: none; white-space: nowrap; transition: transform .45s var(--spring); }
.rail__free:hover { transform: translateY(-1px); }
.rail__free .ico { width: 13px; height: 13px; }
.rail__short { display: none; }
@media (max-width: 640px) { .rail__free { padding: 0 9px; } .rail__free .ico, .rail__long { display: none; } .rail__short { display: inline; } }
@media (max-width: 860px) { .rail__in { padding-block: 5px; } .rail__ink { top: 5px; } }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    body::before { content: ""; position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 70; background: var(--fire); transform-origin: left; animation: read-progress linear both; animation-timeline: scroll(root); pointer-events: none; }
    @keyframes read-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

/* ---------- Panels ---------- */
.panel { padding: 16px 0 44px; }
.panel[hidden] { display: none; }
.panel__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin: 8px 0 18px; }
.panel__head h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; line-height: 1.08; }
.panel__head p { margin: 6px 0 0; color: var(--ink-2); max-width: 46em; }
.panel__engines { display: flex; gap: 6px; flex-wrap: wrap; }
.panel:has(.job) .panel__head p { display: none; }
.panel:has(.job) .panel__head { margin-bottom: 12px; }
.panel__load { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) 360px; padding-top: 16px; }
.panel__load i { display: block; border-radius: var(--r-lg); min-height: 420px; background: linear-gradient(100deg, var(--paper-2) 30%, color-mix(in oklab, var(--paper-2) 60%, var(--card)) 50%, var(--paper-2) 70%) 0 0 / 220% 100%; animation: skel 1.5s linear infinite; }
@keyframes skel { to { background-position: -220% 0; } }
@media (max-width: 1040px) { .panel__load { grid-template-columns: 1fr; } }

.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.card__pad { padding: clamp(16px, 2.2vw, 24px); }
.card h3 { margin: 0 0 4px; font-size: 16px; letter-spacing: -.01em; }
.card .sub { margin: 0 0 14px; font-size: 13.5px; color: var(--ink-3); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.layout--wide-side { grid-template-columns: minmax(0, 1fr) 380px; }
.layout > aside { position: sticky; top: 136px; }
@media (max-width: 1040px) { .layout, .layout--wide-side { grid-template-columns: minmax(0, 1fr); } .layout > aside { position: static; } }

/* The workbench column: format, quality, and one button that is always the next step */
.bench__card { display: grid; grid-template-rows: minmax(0, 1fr) auto; max-height: calc(100dvh - 152px); overflow: hidden; }
.bench__scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: clamp(16px, 2vw, 20px); scrollbar-width: thin; }
.bench__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.bench__head h3 { margin: 0; }
.bench__cta { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--card); }
.bench__est { flex: 0 0 100%; margin: 0; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.bench__est[hidden] { display: none; }
.bench__free { flex: 0 0 100%; margin: 0; text-align: center; font-size: 12.5px; line-height: 1.35; color: var(--ink-3); }
.free-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 650; color: var(--ok); white-space: nowrap; }
.free-tag .ico { width: 13px; height: 13px; }
@media (max-width: 1040px) { .bench__card { max-height: none; } }
.cv-cta { position: relative; flex: 1; min-width: 0; height: 56px; padding: 0 18px; border: 0; border-radius: 16px; overflow: hidden; isolation: isolate; color: #fff; font-size: 18.7px; font-weight: 750; letter-spacing: -.015em; background: var(--fire-deep); box-shadow: 0 16px 36px -16px rgba(255,91,4,.95), inset 0 1px 0 rgba(255,255,255,.22); transition: transform .4s var(--spring), box-shadow .25s, filter .2s, background .3s; }
.cv-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%) -140% 0 / 200% 100% no-repeat; transition: background-position .9s var(--out); }
.cv-cta:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -16px rgba(255,91,4,1), inset 0 1px 0 rgba(255,255,255,.28); }
.cv-cta:hover::before { background-position: 240% 0; }
.cv-cta:active { transform: scale(.975); }
.cv-cta__txt { display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; }
.cv-cta__txt > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-cta svg { width: 20px; height: 20px; flex: none; }
.cv-cta[data-mode="choose"] { background: var(--ink); color: var(--paper); box-shadow: var(--sh-2); }
.cv-cta[data-mode="download"] { background: var(--ink); color: var(--paper); box-shadow: var(--sh-3); animation: cta-pop .6s var(--spring); }
.cv-cta[data-mode="busy"] { background: var(--paper-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); cursor: default; font-size: 16px; }
.cv-cta__fill { position: absolute; inset: 0; z-index: -1; transform-origin: left; transform: scaleX(var(--p, 0)); background: var(--fire); opacity: 0; transition: transform .3s linear, opacity .2s; }
.cv-cta[data-mode="busy"] .cv-cta__fill { opacity: .62; }
:root[data-theme="dark"] .cv-cta[data-mode="busy"] .cv-cta__fill { opacity: .45; }
@keyframes cta-pop { 40% { transform: scale(1.03); } }

.settings { display: grid; gap: 14px; }
.settings__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.settings hr { border: 0; border-top: 1px solid var(--line); margin: 2px 0; }
.settings details summary, details.more summary { cursor: pointer; font-size: 13.5px; font-weight: 650; color: var(--ink-2); list-style: none; display: flex; align-items: center; gap: 7px; padding: 4px 0; border-radius: 6px; }
.settings details summary::-webkit-details-marker, details.more summary::-webkit-details-marker { display: none; }
.settings details summary::before, details.more summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(-45deg); transition: transform .35s var(--spring); }
.settings details[open] > summary::before, details.more[open] > summary::before { transform: translateY(-2px) rotate(45deg); }
.settings details[open] > .settings { margin-top: 12px; animation: unfold .4s var(--out); }
@keyframes unfold { from { opacity: 0; transform: translateY(-6px); } }

.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.fmt { position: relative; display: grid; gap: 1px; justify-items: center; padding: 11px 4px 10px; border-radius: 13px; border: 0; background: var(--paper-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, box-shadow .2s, color .2s, transform .45s var(--spring); }
.fmt b { font-size: 14.5px; letter-spacing: .01em; color: var(--ink); }
.fmt small { font-size: 11px; line-height: 1.2; color: var(--ink-3); text-align: center; }
.fmt:hover { box-shadow: inset 0 0 0 1px var(--ink-3); transform: translateY(-1px); }
.fmt:active { transform: scale(.95); }
.fmt[aria-pressed="true"] { background: var(--ember-wash); box-shadow: inset 0 0 0 1.5px var(--ember), 0 8px 20px -12px rgba(255,91,4,.7); animation: fmt-pop .5s var(--spring); }
.fmt[aria-pressed="true"] b { color: var(--ember-ink); }
@keyframes fmt-pop { 30% { transform: scale(1.06); } }
.fmt__tag { position: absolute; left: 50%; top: -7px; translate: -50% 0; padding: 1px 7px; border-radius: 999px; font-size: 9.5px; font-weight: 650; letter-spacing: .02em; color: var(--ink-2); background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; animation: pop .5s var(--spring); z-index: 1; }
.fmt.is-more { display: none; }
.formats.is-open .fmt.is-more { display: grid; animation: unfold .35s var(--out) both; }
.fmt--toggle { grid-column: 1 / -1; padding: 7px; font-size: 12.5px; font-weight: 650; color: var(--ink-2); background: transparent; box-shadow: inset 0 0 0 1px var(--line); display: flex; justify-content: center; gap: 6px; }
.fmt--toggle .ico { width: 13px; height: 13px; transition: transform .35s var(--spring); }
.formats.is-open .fmt--toggle .ico { transform: rotate(180deg); }
.rec-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 9px 11px; border-radius: 12px; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); background: var(--paper-2); animation: unfold .45s var(--out); }
.rec-note .ico { width: 14px; height: 14px; color: var(--ink-3); margin-top: 1px; }
.fmt__size { margin-top: 3px; font-size: 11px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fmt[aria-pressed="true"] .fmt__size { color: var(--ember-ink); }
.seg--sized { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
.seg--sized button { display: grid; gap: 1px; justify-items: center; padding: 6px 3px; line-height: 1.2; }
.seg--sized button[hidden] { display: none; }
.seg__size { font-size: 10.5px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.preset small { font-size: 11px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.preset:disabled { opacity: .62; cursor: not-allowed; transform: none; box-shadow: inset 0 0 0 1px var(--line); }
.fitbox { display: grid; gap: 8px; padding: 11px; border-radius: 13px; background: var(--paper-2); }
.fitbox[hidden] { display: none; }
.fitbox__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fitbox p { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.fitbox__lead b { color: var(--ink); }
.fitbox__use { flex: none; height: 28px; padding: 0 10px; border: 0; border-radius: 9px; font-size: 12px; font-weight: 650; color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); }
.fitbox__use:hover { box-shadow: inset 0 0 0 1px var(--ember); }
.fitbox .fitbox__now.is-no { color: var(--bad); font-weight: 600; }
.fitbox__tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 5px; }
.fitbox__tier { display: grid; gap: 1px; justify-items: center; padding: 6px 4px; border: 0; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.fitbox__tier:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.fitbox__tier b { font-size: 13px; color: var(--ink); }
.fitbox__tier small { font-size: 11px; font-variant-numeric: tabular-nums; }
.fitbox__tier[aria-pressed="true"] { background: var(--ember-wash); box-shadow: inset 0 0 0 1.5px var(--ember); }
.fitbox__tier[aria-pressed="true"] b { color: var(--ember-ink); }
@media (pointer: coarse) { .fitbox__use { height: 38px; } .fitbox__tier { padding-block: 9px; } }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.preset { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border: 0; border-radius: 10px; font-size: 12.5px; font-weight: 620; color: var(--ink-2); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, color .2s, transform .35s var(--spring); }
.preset:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ember); transform: translateY(-1px); }
.preset:active { transform: scale(.96); }
@media (pointer: coarse) { .preset { height: 40px; padding: 0 13px; } }

/* Local drop zone inside tools */
.ldrop { position: relative; display: flex; align-items: center; gap: 16px; padding: 28px 24px; border-radius: var(--r-lg); cursor: pointer; border: 1.5px dashed var(--line-2); background: var(--card-2); transition: border-color .2s, background .2s, padding .45s var(--out), transform .4s var(--spring); }
.ldrop:hover { border-color: var(--ember); background: var(--ember-wash); }
.ldrop.is-over { border-color: var(--ember); background: var(--ember-wash); transform: scale(1.012); box-shadow: 0 0 0 6px color-mix(in oklab, var(--ember) 14%, transparent); }
.ldrop:focus-within { outline: 2.5px solid var(--ember-ink); outline-offset: 2px; }
.ldrop__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--ember-wash); color: var(--ember-ink); flex: none; transition: transform .5s var(--spring), width .35s var(--out), height .35s var(--out); }
.ldrop:hover .ldrop__icon { transform: translateY(-3px) scale(1.05); }
.ldrop__icon .ico { width: 22px; height: 22px; }
.ldrop__txt { min-width: 0; }
.ldrop strong { display: block; font-size: 16px; letter-spacing: -.01em; }
.ldrop small { display: block; color: var(--ink-3); font-size: 13px; }
.ldrop__end { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }
.ldrop__sample { border: 0; background: none; padding: 8px 10px; border-radius: 10px; font-size: 13px; font-weight: 620; color: var(--ember-ink); white-space: nowrap; }
.ldrop__sample:hover { background: var(--ember-wash); }
.ldrop.is-compact { padding: 12px 16px; }
.ldrop.is-compact .ldrop__icon { width: 38px; height: 38px; border-radius: 12px; }
.ldrop.is-compact small, .ldrop.is-compact .ldrop__sample { display: none; }
.ldrop.is-compact strong { font-size: 14.5px; }
@media (max-width: 620px) { .ldrop { flex-wrap: wrap; padding: 20px 16px; } .ldrop__end { margin-left: 0; width: 100%; } .ldrop.is-compact .ldrop__end { width: auto; margin-left: auto; } }

/* Before there are files, the drop box is the whole stage. */
@property --rim { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.ldrop--stage:not(.is-compact) { flex-direction: column; justify-content: center; gap: 10px; min-height: clamp(280px, 46vh, 520px); text-align: center; padding: 28px 20px; background: radial-gradient(420px 260px at 50% 42%, var(--ember-wash), transparent 72%), var(--card-2); }
.ldrop--stage:not(.is-compact) .ldrop__icon { width: 76px; height: 76px; border-radius: 24px; color: #fff; background: var(--fire); box-shadow: 0 18px 40px -14px rgba(255,91,4,.85), inset 0 1px 0 rgba(255,255,255,.35); animation: bob 4.2s ease-in-out infinite; }
.ldrop--stage:not(.is-compact) .ldrop__icon .ico { width: 32px; height: 32px; }
.ldrop--stage:not(.is-compact) strong { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.025em; }
.ldrop--stage:not(.is-compact) small { font-size: 14.5px; max-width: 30em; }
.ldrop--stage:not(.is-compact) .ldrop__end { margin: 6px 0 0; flex-direction: row-reverse; width: auto; }
.ldrop::before { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; padding: 2px; pointer-events: none; opacity: 0; background: conic-gradient(from var(--rim), transparent 0 58%, #ff5b04 76%, #ffb340 92%, transparent); -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); transition: opacity .3s; }
.ldrop:hover::before, .ldrop.is-over::before { opacity: 1; animation: rim 3.2s linear infinite; }
@keyframes rim { to { --rim: 360deg; } }

/* ---------- Queue ---------- */
.queue { display: grid; gap: 10px; margin-top: 12px; }
.queue:empty { display: none; }
.qbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.qbar .spacer { flex: 1; }
.qbar .meta { font-size: 13px; color: var(--ink-3); }
.job { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: var(--r); background: var(--card); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); isolation: isolate; overflow: hidden; animation: job-in .6s var(--spring) both; transition: box-shadow .35s; }
@keyframes job-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.job__fill { position: absolute; inset: 0; z-index: -1; transform-origin: left; transform: scaleX(0); opacity: 0; background: linear-gradient(90deg, color-mix(in oklab, var(--ember) 6%, transparent), color-mix(in oklab, var(--ember) 17%, transparent)); transition: transform .35s linear, opacity .3s; }
.job__fill::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 3px; background: var(--fire); box-shadow: 0 0 16px 3px rgba(255,120,30,.8); }
.job[data-state="running"] .job__fill { opacity: 1; }
.job.is-indet .job__fill { transform: none !important; opacity: 1; background: linear-gradient(100deg, transparent 30%, color-mix(in oklab, var(--ember) 20%, transparent) 50%, transparent 70%) 0 0 / 220% 100%; animation: skel 1.3s linear infinite; }
.job.is-indet .job__fill::after { display: none; }
.job__thumb { position: relative; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: var(--paper-2); display: grid; place-items: center; color: var(--ink-3); font-size: 11px; font-weight: 700; }
.job__thumb img, .job__thumb video, .job__thumb canvas { width: 100%; height: 100%; object-fit: cover; animation: fade-in .5s var(--ease); }
@keyframes fade-in { from { opacity: 0; } }
.job__name { font-weight: 650; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job__meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12.5px; color: var(--ink-3); margin-top: 1px; align-items: center; }
.job__status { display: flex; align-items: center; gap: 6px 10px; margin-top: 6px; font-size: 12.5px; color: var(--ink-2); min-height: 26px; flex-wrap: wrap; }
.job__pct { font-weight: 700; font-variant-numeric: tabular-nums; }
.job__actions { display: flex; gap: 6px; align-items: center; }
.job__err { color: var(--bad); font-size: 12.5px; margin-top: 6px; overflow-wrap: anywhere; }
.job__preview { grid-column: 1 / -1; padding-top: 4px; overflow: hidden; }
.job[data-state="done"] { box-shadow: var(--sh-2), inset 0 0 0 1px color-mix(in oklab, var(--ok) 40%, var(--line)); }
.job[data-state="error"] { box-shadow: var(--sh-1), inset 0 0 0 1px color-mix(in oklab, var(--bad) 45%, var(--line)); }
.job.is-landed { animation: job-land .7s var(--spring); }
@keyframes job-land { 30% { transform: scale(1.012); box-shadow: 0 0 0 4px color-mix(in oklab, var(--ok) 25%, transparent), var(--sh-3); } }
.chk path { stroke-dasharray: 26; stroke-dashoffset: 26; animation: draw .5s .1s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sz { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.sz__bars { display: grid; gap: 2px; width: 56px; }
.sz__bars i { display: block; height: 4px; border-radius: 4px; width: var(--w); background: var(--line-2); animation: grow .9s var(--out) both; transform-origin: left; }
.sz__bars i + i { background: var(--ember); animation-delay: .12s; }
@keyframes grow { from { transform: scaleX(0); } }
.delta { font-weight: 700; }
.delta--down { color: var(--ok); }
.delta--up { color: var(--warn); }
@media (max-width: 620px) {
  .job { grid-template-columns: 48px minmax(0, 1fr); gap: 10px 12px; }
  .job__thumb { width: 48px; height: 48px; border-radius: 12px; }
  .job__actions { grid-column: 1 / -1; justify-content: flex-end; flex-wrap: wrap; }
}
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid color-mix(in oklab, var(--ember) 25%, transparent); border-top-color: var(--ember); animation: spin .7s linear infinite; flex: none; }
.empty { padding: 26px; text-align: center; color: var(--ink-3); font-size: 14px; }
.note { display: flex; gap: 10px; padding: 11px 13px; border-radius: 14px; background: var(--paper-2); color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.note svg { flex: none; margin-top: 1px; width: 16px; height: 16px; color: var(--ember-ink); }

/* Floating status and action bar */
.dock { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 2000; display: flex; align-items: center; gap: 12px; width: min(560px, calc(100% - 24px)); padding: 8px 8px 8px 14px; border-radius: 20px; color: #f7f1ea; background: rgba(24,19,16,.92); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 24px 60px -18px rgba(0,0,0,.65), inset 0 0 0 1px rgba(255,255,255,.1); transform: translateX(-50%); animation: dock-in .6s var(--spring); }
@keyframes dock-in { from { opacity: 0; transform: translate(-50%, 24px) scale(.97); } }
.dock__ring { width: 34px; height: 34px; flex: none; transform: rotate(-90deg); }
.dock__ring circle { fill: none; stroke-width: 3.5; stroke: rgba(255,255,255,.14); }
.dock__ring circle + circle { stroke: #ff8a3d; stroke-linecap: round; stroke-dasharray: 88; stroke-dashoffset: calc(88 - 88 * var(--p, 0)); transition: stroke-dashoffset .35s linear; }
.dock__ico { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; color: #ffb37a; background: rgba(255,138,61,.16); }
.dock__txt { flex: 1; min-width: 0; border: 0; background: none; color: inherit; text-align: left; padding: 0; }
.dock__txt b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock__txt small { display: block; font-size: 12px; color: #bfb3a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock__act { flex: none; height: 44px; padding: 0 16px; border: 0; border-radius: 14px; font-size: 14.5px; font-weight: 700; color: #fff; background: var(--fire-deep); transition: transform .35s var(--spring); }
.dock__act:hover { transform: translateY(-1px); }
.dock__act:active { transform: scale(.96); }
.dock__act--quiet { color: #f7f1ea; background: rgba(255,255,255,.1); }

/* ---------- 3D ---------- */
.viewer { position: relative; aspect-ratio: 16 / 10; min-height: 320px; border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(circle at 50% 35%, #2a2420, #0f0c0b 75%); }
.viewer canvas { width: 100% !important; height: 100% !important; animation: fade-in .6s var(--ease); }
.viewer__empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #b9ada1; padding: 20px; }
.viewer__empty strong { color: #fff; display: block; font-size: 17px; margin: 14px 0 4px; }
.viewer__empty .art-cube { --play: running; display: grid; place-items: center; width: 100%; height: 76px; perspective: 420px; background: none; contain: none; }
.viewer__bar { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: space-between; pointer-events: none; }
.viewer__bar > * { pointer-events: auto; }
.viewer__btn { height: 34px; padding: 0 12px; border-radius: 12px; border: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #f2ebe3; background: rgba(20,17,15,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); transition: transform .3s var(--spring), background .2s; }
.viewer__btn:hover { background: rgba(40,32,26,.82); }
.viewer__btn:active { transform: scale(.95); }
.viewer__btn[aria-pressed="true"] { background: #c24100; color: #fff; }
.viewer:has(.viewer__empty:not([hidden])) .viewer__bar { display: none; }
.viewer__empty .ldrop__sample { color: #ffb37a; }
.viewer__empty .ldrop__sample:hover { color: #fff; background: rgba(255,255,255,.12); }
.viewer.is-over { outline: 2px dashed var(--ember); outline-offset: -8px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 12px; }
.stats:empty { display: none; }
.stat { padding: 10px 12px; border-radius: 12px; background: var(--paper-2); animation: job-in .5s var(--spring) both; }
.stat span { display: block; font-size: 11.5px; font-weight: 650; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.stat b { font-size: 15px; font-variant-numeric: tabular-nums; }
.stat:last-child { grid-column: span 2; }

/* ---------- Data / text tools ---------- */
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: stretch; }
.split__mid { display: grid; place-items: center; color: var(--ink-3); }
.split .pane { display: grid; gap: 8px; grid-template-rows: auto 1fr auto; min-width: 0; }
.pane__head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pane__head .select { width: auto; height: 36px; font-size: 13.5px; }
.pane__head .spacer { flex: 1; }
.pane .textarea { min-height: 380px; }
.err-line { font: 500 12.5px var(--mono); color: var(--bad); min-height: 18px; overflow-wrap: anywhere; }
.ok-line { font-size: 12.5px; color: var(--ink-3); min-height: 18px; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .split__mid { transform: rotate(90deg); } }
.md-frame { width: 100%; min-height: 380px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }

/* Units */
.uq { display: flex; gap: 10px; align-items: center; padding: 6px 6px 6px 18px; border-radius: 18px; background: var(--card); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.uq:focus-within { box-shadow: var(--sh-2), inset 0 0 0 1.5px var(--ember); }
.uq input { flex: 1; border: 0; background: transparent; height: 50px; font-size: 18px; min-width: 0; }
.uq input:focus { outline: none; }
.uq__ans { font-weight: 750; font-size: 18px; padding-right: 14px; color: var(--ember-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; cursor: copy; }
.ucats { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.ugrid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px; align-items: start; }
.ulist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.urow { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 0; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .35s var(--spring); }
.urow:hover { box-shadow: inset 0 0 0 1px var(--ember); transform: translateY(-1px); }
.urow:active { transform: scale(.98); }
.urow b { font-size: 16px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.urow span { font-size: 12.5px; color: var(--ink-3); }
.urow.is-from { background: var(--ember-wash); box-shadow: inset 0 0 0 1.5px var(--ember); }
@media (max-width: 800px) { .ugrid { grid-template-columns: minmax(0, 1fr); } }
.kv { display: grid; gap: 8px; }
.kv__row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--paper-2); }
.kv__row span { font-size: 12.5px; font-weight: 650; color: var(--ink-3); }
.kv__row code, .kv__row input { font: 600 14px var(--mono); overflow-wrap: anywhere; }
.kv__row input { border: 0; background: transparent; width: 100%; min-width: 0; padding: 0; height: 26px; }
.kv__row input:focus { outline: none; }
.kv__row:focus-within { box-shadow: inset 0 0 0 1.5px var(--ember); }
@media (max-width: 560px) { .kv__row { grid-template-columns: minmax(0, 1fr) auto; } .kv__row span { grid-column: 1 / -1; } }

/* Color */
.swatch { height: 180px; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); display: flex; align-items: flex-end; padding: 14px; position: relative; overflow: hidden; isolation: isolate; }
.swatch::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-conic-gradient(#ddd 0% 25%, #fff 0% 50%) 50% / 18px 18px; }
.swatch__fill { position: absolute; inset: 0; z-index: -1; transition: background .35s var(--ease); }
.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.contrast div { padding: 10px 12px; border-radius: 12px; font-weight: 650; font-size: 14px; display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.shades { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; margin-top: 12px; }
.shades button { height: 44px; border: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); transition: transform .35s var(--spring); }
.shades button:hover { transform: translateY(-3px) scale(1.06); }

/* Console */
.term { background: #0f0c0b; color: #e8dfd5; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); }
.term__bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #1a1513; border-bottom: 1px solid #2a2320; flex-wrap: wrap; }
.term__bar .dots { display: flex; gap: 6px; }
.term__bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a322d; }
.term__bar .dots i:first-child { background: #ff5f57; } .term__bar .dots i:nth-child(2) { background: #febc2e; } .term__bar .dots i:nth-child(3) { background: #28c840; }
.term__cmd { display: flex; align-items: center; gap: 8px; padding: 12px; border-bottom: 1px solid #2a2320; }
.term__cmd span { font: 700 13.5px var(--mono); color: #ff9a5c; }
.term__cmd input { flex: 1; min-width: 0; height: 38px; border: 0; background: transparent; color: #fff; font: 500 13.5px var(--mono); }
.term__cmd input:focus { outline: none; }
.term__cmd:focus-within { box-shadow: inset 0 -2px 0 #ff9a5c; }
.term__cmd input::placeholder { color: #a89c90; }
.term__log { height: 360px; overflow: auto; margin: 0; padding: 12px 14px; font: 500 12px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: #cfc5ba; }
.term__log .e { color: #ff8b7e; } .term__log .i { color: #9fd8ff; } .term__log .s { color: #7ee2a8; }
.recipes { display: flex; flex-wrap: wrap; gap: 6px; }
.recipes button { font: 600 12px var(--mono); }

/* ---------- Free by design ---------- */
.free { position: relative; isolation: isolate; overflow: hidden; color: #f7f1ea; background: linear-gradient(180deg, #17110e, #0e0b09); border-radius: clamp(22px, 3vw, 40px); margin: 28px clamp(0px, 1.2vw, 16px) 0; content-visibility: auto; contain-intrinsic-size: auto 760px; }
.free__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(640px 520px at 82% 34%, rgba(255,91,4,.32), transparent 66%), radial-gradient(520px 380px at 0% 100%, rgba(255,179,64,.12), transparent 62%); animation: breathe 9s ease-in-out infinite alternate; }
@keyframes breathe { to { opacity: .68; transform: scale(1.06); } }
.free__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(44px, 7vw, 96px) clamp(30px, 4vw, 56px); }
.free h2 { margin: 18px 0 18px; font-size: clamp(36px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -.04em; font-weight: 800; text-wrap: balance; }
.free p { margin: 0 0 14px; max-width: 37em; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.6; color: #d9cfc4; }
.free__close { margin-top: 20px !important; font-size: clamp(18px, 1.8vw, 22px) !important; font-weight: 700; color: #fff !important; letter-spacing: -.015em; line-height: 1.35 !important; }
.prices { margin: 0; padding-bottom: clamp(44px, 7vw, 96px); }
.prices__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.16); }
.prices__head h3 { margin: 0; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.2; font-weight: 750; letter-spacing: -.02em; color: #fff; }
.prices__head span { font-size: 13.5px; color: #a89c90; }
.prices__list { list-style: none; margin: 8px -12px 0; padding: 0; }
.prices__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 86px; gap: 6px 24px; align-items: center; padding: 9px 12px; border-radius: 12px; transition: background .2s; }
.prices__row:hover { background: rgba(255,255,255,.05); }
.prices__who { display: grid; gap: 1px; min-width: 0; }
.prices__who a, .prices__who strong { justify-self: start; font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.prices__who a { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.prices__who a:hover { text-decoration: underline; text-underline-offset: 3px; }
.prices__who a:focus-visible { outline-color: #ffb27a; }
.prices__who a .ico { width: 12px; height: 12px; opacity: .55; transition: transform .35s var(--spring), opacity .2s; }
.prices__who a:hover .ico { opacity: 1; transform: translate(1px, -1px); }
.prices__who small { font-size: 12.5px; line-height: 1.35; color: #a89c90; }
.prices__bar { position: relative; height: 6px; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.09); }
.prices__bar i { position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--v) * 100%); border-radius: 4px; background: #e6ddd3; transition: transform 1.2s var(--out) calc(.15s + var(--i) * 70ms); }
.fx .prices:not(.is-in) .prices__bar i { transform: translateX(-101%); }
.prices__num { text-align: right; font-size: clamp(18px, 1.7vw, 22px); font-weight: 750; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.prices__row--us { margin-top: 10px; padding-block: 13px; background: rgba(255,138,61,.13); box-shadow: inset 0 0 0 1px rgba(255,138,61,.45); transition: background .2s, opacity .7s var(--out) .9s, transform .8s var(--spring) .9s; }
.prices__row--us:hover { background: rgba(255,138,61,.18); }
.fx .prices:not(.is-in) .prices__row--us { opacity: 0; transform: translateY(16px) scale(.98); }
.prices__row--us small { color: #f0d6c1; }
.prices__zero { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 700; color: #ffd0ab; }
.prices__dot { flex: none; width: 14px; height: 14px; margin-left: 2px; border-radius: 50%; background: #ff8a3d; box-shadow: 0 0 0 2px #17110e, 0 0 0 4px #ff8a3d; animation: dot-pulse 2.4s ease-in-out infinite; }
@keyframes dot-pulse { 50% { box-shadow: 0 0 0 2px #17110e, 0 0 0 4px #ff8a3d, 0 0 22px 8px rgba(255,138,61,.6); } }
.prices__row--us .prices__num { font-size: clamp(26px, 2.6vw, 34px); line-height: 1; color: #ffb27a; }
.prices figcaption { margin-top: 16px; max-width: 74em; font-size: 12.5px; line-height: 1.5; color: #a89c90; }
@media (max-width: 720px) {
  .prices__row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; }
  .prices__bar { grid-column: 1 / -1; grid-row: 2; height: 5px; }
  .prices__zero { grid-column: 1 / -1; grid-row: 2; }
  .prices__num { grid-column: 2; grid-row: 1; align-self: start; }
  .prices__row--us .prices__num { align-self: center; }
}
.printer { position: relative; width: min(100%, 370px); margin-inline: auto; padding-top: 12px; }
.printer__slot { position: absolute; left: -12px; right: -12px; top: 0; height: 18px; z-index: 2; border-radius: 9px; background: linear-gradient(180deg, #38302a, #1a1512); box-shadow: 0 10px 22px -8px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.14); }
.receipt { position: relative; padding: 30px 22px 30px; font: 500 12.5px/1.5 var(--mono); color: #2a2019; background: #fbf7f0; --z: 8px; -webkit-mask: conic-gradient(from -45deg at 50% 100%, #000 90deg, transparent 0) 0 100% / calc(var(--z) * 2) var(--z) repeat-x, linear-gradient(#000 0 0) 0 0 / 100% calc(100% - var(--z)) no-repeat; mask: conic-gradient(from -45deg at 50% 100%, #000 90deg, transparent 0) 0 100% / calc(var(--z) * 2) var(--z) repeat-x, linear-gradient(#000 0 0) 0 0 / 100% calc(100% - var(--z)) no-repeat; transform-origin: top; }
.fx .printer:not(.is-in) .receipt { transform: translateY(-101%); }
.fx .printer.is-in .receipt { animation: print 2.4s cubic-bezier(.25,.6,.2,1) both; }
.printer { clip-path: inset(0 -40px -60px -40px); }
@keyframes print { 0% { transform: translateY(-101%); } 20% { transform: translateY(-78%); } 26% { transform: translateY(-74%); } 46% { transform: translateY(-46%); } 52% { transform: translateY(-42%); } 74% { transform: translateY(-14%); } 80% { transform: translateY(-10%); } 100% { transform: none; } }
.receipt__head { display: grid; justify-items: center; gap: 3px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1.5px dashed #cfc4b4; text-align: center; }
.receipt__head b { font-weight: 600; font-size: 14px; letter-spacing: .05em; }
.receipt__head span { font-size: 11.5px; color: #6c5f53; }
.receipt dl { margin: 0; display: grid; gap: 5px; }
.receipt dl > div { display: flex; justify-content: space-between; gap: 10px; }
.receipt dt { color: #5b4f44; }
.receipt dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipt dd.is-bump { animation: bump .6s var(--spring); }
@keyframes bump { 40% { transform: scale(1.22); color: #c24100; } }
.receipt__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 12px; border-top: 1.5px dashed #cfc4b4; font-weight: 600; }
.receipt__total b { font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1; color: #c24100; }
.fx .printer.is-in .receipt__total b { animation: stamp .55s 2.15s var(--spring) both; }
@keyframes stamp { from { opacity: 0; transform: scale(1.8) rotate(-6deg); } }
.receipt p { margin: 12px 0 14px; text-align: center; font-size: 12.5px; color: #5b4f44; }
.receipt__code { height: 34px; background: repeating-linear-gradient(90deg, #2a2019 0 2px, transparent 2px 5px, #2a2019 5px 6px, transparent 6px 8px, #2a2019 8px 11px, transparent 11px 13px); opacity: .85; }
@media (max-width: 940px) { .free__grid { grid-template-columns: minmax(0, 1fr); } .printer { margin-top: 8px; } }

/* ---------- Info sections ---------- */
.section { padding: clamp(44px, 6.5vw, 88px) 0; content-visibility: auto; contain-intrinsic-size: auto 700px; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(28px, 3.6vw, 46px); letter-spacing: -.035em; line-height: 1.06; margin: 0 0 10px; }
.section > .wrap > p.lede { margin: 0 0 28px; color: var(--ink-2); font-size: 17px; max-width: 46em; }
.flow { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 8px 0 30px; container-type: inline-size; }
.flow__line { position: absolute; left: 10%; right: 10%; top: 25px; height: 2px; background: var(--line-2); border-radius: 2px; container-type: inline-size; }
.flow__line i { position: absolute; left: 0; top: -3px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 14px 5px rgba(255,120,30,.7); animation: flow-run 8s cubic-bezier(.5,0,.5,1) infinite; }
@keyframes flow-run { 0% { transform: translateX(0); opacity: 0; } 4% { opacity: 1; } 92% { opacity: 1; } 100% { transform: translateX(100cqw); opacity: 0; } }
.flow__stop { position: relative; display: grid; justify-items: center; text-align: center; gap: 2px; }
.flow__dot { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 16px; background: var(--card); color: var(--ink-2); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-2); animation: flow-lit 8s linear infinite; animation-delay: calc(var(--i) * 1.84s + .1s); }
@keyframes flow-lit { 0%, 16%, 100% { background: var(--card); color: var(--ink-2); transform: none; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-2); } 3%, 9% { background: var(--ember-wash); color: var(--ember-ink); transform: translateY(-3px) scale(1.08); box-shadow: 0 10px 26px -10px rgba(255,91,4,.8), inset 0 0 0 1.5px var(--ember); } }
.flow__stop b { font-size: 14.5px; letter-spacing: -.01em; }
.flow__stop small { font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 720px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .flow__line { display: none; }
  .flow__stop { grid-template-columns: 52px minmax(0, 1fr); justify-items: start; text-align: left; column-gap: 12px; }
  .flow__dot { grid-row: span 2; margin: 0; }
  .flow__stop b { align-self: end; } .flow__stop small { align-self: start; }
}
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.how .card { padding: 22px; transition: transform .45s var(--spring), box-shadow .25s; }
.how .card:hover { transform: translateY(-3px); box-shadow: var(--sh-3), inset 0 0 0 1px var(--line-2); }
.how .badge { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; }
.how h3 { font-size: 17px; margin-bottom: 6px; }
.how p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 900px) { .how { grid-template-columns: minmax(0, 1fr); } }
.marquee { --mq: 90s; display: grid; gap: 8px; margin: -4px 0 36px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__row { display: flex; gap: 8px; width: max-content; animation: mq var(--mq) linear infinite; }
.marquee__row + .marquee__row { animation-direction: reverse; --mq: 110s; }
.marquee span { font: 600 12.5px var(--mono); padding: 7px 11px; border-radius: 10px; color: var(--ink-2); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
@keyframes mq { to { transform: translateX(-50%); } }
.matrix { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.matrix .card { padding: 18px 20px; }
.matrix h3 { display: flex; align-items: center; gap: 8px; }
.matrix h3 .ico { color: var(--ember-ink); }
.matrix dl { margin: 10px 0 0; display: grid; gap: 8px; font-size: 13.5px; }
.matrix dt { font-weight: 700; color: var(--ink-3); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.matrix dd { margin: 0; color: var(--ink-2); font-family: var(--mono); font-size: 12.5px; line-height: 1.6; }
.faq { display: grid; gap: 10px; max-width: 860px; interpolate-size: allow-keywords; }
.faq details { background: var(--card); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); padding: 4px 18px; transition: box-shadow .25s; }
.faq details:hover { box-shadow: inset 0 0 0 1px var(--line-2), var(--sh-1); }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--out), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; border-radius: 6px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--ember-ink); font-size: 22px; line-height: 1; transition: transform .4s var(--spring); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }
.privacy-box { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between; padding: 18px 20px; margin-top: 16px; }
.privacy-box p { margin: 0; color: var(--ink-2); font-size: 14px; }
.privacy-box__btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Room at the end of the page, so the dock never sits on the last line. */
body:has(.dock:not([hidden])) .s-foot { padding-bottom: 96px; }
@media (prefers-reduced-motion: reduce) { .faq details::details-content { transition: none; } }
/* Phones: comfortable targets, and text fields big enough that iOS doesn't zoom the page. */
@media (pointer: coarse) {
  .input, .select, .textarea, .pane__head .select, .term__cmd input, .kv__row input, .uq input { font-size: 16px; }
  .seg button, .fmt--toggle, .viewer__btn { min-height: 44px; }
  .settings details summary, details.more summary, .askd__x { min-height: 44px; }
}

/* Toast */
.cv-toast { position: fixed; left: 50%; bottom: 84px; z-index: 3000; transform: translate(-50%, 20px) scale(.96); opacity: 0; pointer-events: none; padding: 11px 16px; border-radius: 14px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 600; box-shadow: var(--sh-3); transition: opacity .25s, transform .5s var(--spring); max-width: calc(100% - 32px); text-align: center; }
.cv-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Full-page drag overlay */
.dragveil { position: fixed; inset: 0; z-index: 2500; display: grid; place-items: center; pointer-events: none; opacity: 0; visibility: hidden; color: #fff; background: radial-gradient(circle at 50% 50%, rgba(255,91,4,.32), rgba(14,11,9,.86) 62%); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: opacity .25s, visibility .25s; }
.dragveil.is-on { opacity: 1; visibility: visible; }
.dragveil__ring { grid-area: 1 / 1; width: min(62vmin, 460px); aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(255,190,140,.7); box-shadow: 0 0 120px 10px rgba(255,91,4,.5), inset 0 0 90px rgba(255,91,4,.35); transform: scale(.86); transition: transform .6s var(--spring); }
.dragveil.is-on .dragveil__ring { transform: none; animation: spin 18s linear infinite; }
.dragveil__txt { grid-area: 1 / 1; display: grid; justify-items: center; gap: 4px; text-align: center; }
.dragveil__txt svg { width: 44px; height: 44px; margin-bottom: 8px; color: #ffb37a; }
.dragveil.is-on .dragveil__txt svg { animation: bob 1.6s ease-in-out infinite; }
.dragveil__txt strong { font-size: clamp(24px, 4vw, 38px); font-weight: 800; letter-spacing: -.03em; }
.dragveil__txt span { color: #e0d5c9; }

/* Spark and file-flight layer */
.fx-sparks { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; z-index: 2900; pointer-events: none; }
.fx-ghost { position: fixed; z-index: 2800; display: inline-flex; align-items: center; gap: 8px; max-width: 260px; padding: 9px 13px; border-radius: 12px; font-size: 13.5px; font-weight: 650; color: var(--ink); background: var(--card); box-shadow: var(--sh-3), inset 0 0 0 1px var(--line-2); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Ask (command palette) ---------- */
.askd { width: min(640px, calc(100% - 24px)); max-width: none; max-height: min(620px, calc(100dvh - 40px)); margin: min(12vh, 90px) auto auto; padding: 0; border: 0; border-radius: 22px; color: var(--ink); background: var(--card); box-shadow: 0 40px 110px -24px rgba(0,0,0,.6), inset 0 0 0 1px var(--line-2); overflow: hidden; }
.askd[open] { display: flex; flex-direction: column; animation: askd-in .5s var(--spring); }
.askd::backdrop { background: rgba(14,11,9,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade-in .25s var(--ease); }
@keyframes askd-in { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
.askd__field { display: flex; align-items: center; gap: 12px; padding: 0 12px 0 18px; border-bottom: 1px solid var(--line); flex: none; }
.askd__field > svg { width: 20px; height: 20px; color: var(--ember-ink); flex: none; }
.askd__field input { flex: 1; min-width: 0; height: 62px; border: 0; background: none; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.askd__field input:focus { outline: none; }
.askd__field input::placeholder { color: var(--ink-3); }
.askd__x { flex: none; height: 30px; padding: 0 9px; border: 0; border-radius: 8px; font: 600 11.5px var(--mono); color: var(--ink-2); background: var(--paper-2); }
.askd__list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px; scrollbar-width: thin; }
.askd__sec { padding: 8px 10px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.askd__row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 13px; text-align: left; background: none; color: inherit; animation: ask-row .4s var(--out) both; animation-delay: calc(var(--i, 0) * 22ms); transition: background .12s; }
@keyframes ask-row { from { opacity: 0; transform: translateY(5px); } }
.askd__row[aria-selected="true"] { background: var(--ember-wash); }
.askd__ic { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; color: var(--ink-2); background: var(--paper-2); transition: background .15s, color .15s; }
.askd__row[aria-selected="true"] .askd__ic { color: #fff; background: var(--ember-ink); }
:root[data-theme="dark"] .askd__row[aria-selected="true"] .askd__ic { color: #17130f; background: #ff9a5c; }
.askd__t { flex: 1; min-width: 0; }
.askd__t b { display: block; font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.askd__t small { display: block; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.askd__go { flex: none; color: var(--ink-3); opacity: 0; transition: opacity .15s; }
.askd__row[aria-selected="true"] .askd__go { opacity: 1; }
.askd__sw { width: 36px; height: 36px; flex: none; border-radius: 11px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.askd__none { padding: 26px 16px; text-align: center; color: var(--ink-3); font-size: 14px; }
.askd__foot { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); flex: none; }
.askd__foot .kbd { margin-right: 3px; }
@media (hover: none) { .askd__foot { display: none; } }
@media (max-width: 620px) { .askd { width: 100%; max-height: 82dvh; margin: 0 auto auto; border-radius: 0 0 22px 22px; } }

/* ---------- Previews ---------- */
.ba { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.ba--single { grid-template-columns: minmax(0, 1fr); }
.pv { margin: 0; min-width: 0; display: grid; gap: 6px; align-content: start; }
.pv figcaption { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.pv video, .pv img { width: 100%; max-height: 380px; object-fit: contain; border-radius: 12px; background: #0f0c0b; }
.pv img { background: repeating-conic-gradient(color-mix(in oklab, var(--line) 80%, transparent) 0% 25%, transparent 0% 50%) 50% / 16px 16px; }
.pv audio { width: 100%; }
.pv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.pv-grid img { aspect-ratio: 16/9; object-fit: cover; }
.pv-none { display: flex; gap: 8px; align-items: center; padding: 18px; border-radius: 12px; background: var(--paper-2); color: var(--ink-2); font-size: 13.5px; min-height: 90px; }
.pv-bar { display: flex; justify-content: flex-end; margin-top: 8px; }
@media (max-width: 940px) {
  .ba { grid-template-columns: minmax(0, 1fr); }
  .viewer { aspect-ratio: auto !important; height: 320px; }
  /* One scrolling row, so the toolbar never covers the model. */
  .viewer__bar { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .viewer__bar::-webkit-scrollbar { display: none; }
  .viewer__bar > * { flex: none; flex-wrap: nowrap !important; }
}
/* Short windows: the site nav stops sticking there, so the tool strip takes its place at the top. */
@media (max-height: 560px) { .rail { top: 0; } #panels * { scroll-margin-top: 64px; } }
.cmp { position: relative; overflow: hidden; border-radius: 14px; user-select: none; background: repeating-conic-gradient(color-mix(in oklab, var(--line) 80%, transparent) 0% 25%, transparent 0% 50%) 50% / 16px 16px; max-height: 520px; }
.cmp > img, .cmp__clip img { display: block; width: 100%; max-height: 520px; object-fit: contain; }
.cmp__clip { position: absolute; inset: 0; }
.cmp__handle { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); pointer-events: none; }
.cmp__handle span { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; color: #17130f; display: grid; place-items: center; box-shadow: var(--sh-3); }
.cmp__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.cmp:has(.cmp__range:focus-visible) .cmp__handle span { outline: 3px solid #c24100; outline-offset: 2px; }
.cmp__tag { position: absolute; top: 10px; padding: 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(20,17,15,.66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none; }
.cmp__tag--l { left: 10px; } .cmp__tag--r { right: 10px; }
.wave { display: grid; gap: 8px; }
.wave__stage { position: relative; height: 92px; border-radius: 12px; overflow: hidden; cursor: pointer; background: linear-gradient(180deg, #1d1612, #120e0b); animation: wave-in .7s var(--out); }
@keyframes wave-in { from { opacity: 0; transform: scaleY(.3); } }
.wave__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.wave__stage canvas + canvas { clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0); }

/* ---------- PDF ---------- */
.pdf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.pdf-grid[hidden] { display: none; }
.pdf-page { position: relative; display: grid; gap: 6px; padding: 10px; border-radius: 14px; background: var(--card); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); text-decoration: none; cursor: grab; transition: box-shadow .2s, opacity .15s, transform .4s var(--spring); animation: job-in .5s var(--spring) both; }
.pdf-page:hover { box-shadow: var(--sh-2), inset 0 0 0 1px var(--line-2); transform: translateY(-2px); }
.pdf-page > span { font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdf-page > small { font-size: 11.5px; color: var(--ink-3); }
.pdf-page img, .pdf-page canvas { width: 100%; height: 100%; object-fit: contain; }
.pdf-page > img { aspect-ratio: 3 / 4; border-radius: 8px; background: var(--paper-2); }
.pdf-thumb { aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: var(--paper-2); display: grid; place-items: center; }
.pdf-thumb canvas { transition: transform .35s var(--spring); box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.pdf-page .pv-none { aspect-ratio: 3 / 4; min-height: 0; justify-content: center; }
.pdf-page__tools { position: absolute; top: 14px; right: 14px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; opacity: 0; transition: opacity .15s; }
.pdf-page:hover .pdf-page__tools, .pdf-page:focus-within .pdf-page__tools { opacity: 1; }
/* No hover on phones: the tools sit under the page instead of on top of it. */
@media (hover: none) { .pdf-page__tools { position: static; opacity: 1; justify-content: center; } }
.pdf-page__tools [aria-disabled="true"] { opacity: .4; }
.pdf-page.is-del { opacity: .38; }
.pdf-page.is-del .pdf-thumb { outline: 2px solid var(--bad); outline-offset: -2px; }
.pdf-page.is-drag { opacity: .5; transform: scale(.97); }

/* ---------- Archives ---------- */
.arc-list { display: grid; gap: 4px; max-height: 620px; overflow: auto; align-content: start; }
.arc-row { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 0; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); min-height: 40px; }
.arc-row > button:first-child { flex: 1; min-width: 0; display: flex; justify-content: space-between; gap: 10px; align-items: center; border: 0; background: none; text-align: left; padding: 6px 10px; border-radius: 8px; }
.arc-row > button:first-child:hover { background: var(--paper-2); }
.arc-path { font: 500 13px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.arc-path small { color: var(--ink-3); font: inherit; }
.arc-size { font-size: 12px; color: var(--ink-3); white-space: nowrap; }

@media (forced-colors: active) {
  .cv-cta, .tile, .fmt, .job, .dock__act { border: 1px solid CanvasText; }
  .prices__bar i { background: CanvasText; }
  .job__fill, .tile__art, .forge__disc::after { display: none; }
}

/* ---------- Site footer (from the store header stylesheet snapshot) ---------- */
:root[data-theme="dark"] .s-foot { --paper: #100e0d; --paper-2: #1c1917; --card: #181513; --card-muted: #1a1715; --ink: #f5f0ea; --ink-2: #cbc2b8; --ink-3: #8f867c; --line: #2a2522; --line-2: #3b342f; --line-strong: #756b61; --ember-ink: #ff9a5c; --ember-wash: rgba(255,91,4,.14); }
.s-foot:where(:root:is([data-theme="dark"],[data-footer-theme="dark"]) *){--paper: #100e0d;--paper-2: #1c1917;--card: #181513;--card-muted: color-mix(in oklab,var(--card) 50%,var(--paper));--ink: #f5f0ea;--ink-2: #cbc2b8;--ink-3: #8f867c;--line: #2a2522;--line-2: #3b342f;--line-strong: #756b61;--ember-ink: #ff9a5c;--ember-wash: rgba(255,91,4,.14);--ok: #2fb371;--ok-wash: rgba(47,179,113,.14);--warn: #f2b45a;--warn-wash: rgba(242,180,90,.14);--src-paypal: #6ea8ff;--src-itch: #ff7a7c;--night: #0b0a09;--sh-1: 0 1px 2px rgba(0,0,0,.4);--sh-2: 0 1px 2px rgba(0,0,0,.35),0 10px 28px -10px rgba(0,0,0,.7);--sh-3: 0 2px 4px rgba(0,0,0,.35),0 28px 70px -20px rgba(0,0,0,.85)}
.s-foot:where(:root:is([data-theme="dark"],[data-footer-theme="dark"]) *){border-top: 1px solid var(--line)}
.s-foot{--focus: var(--ember-2)}
@media (max-width: 560px){.s-nav .wrap,.s-foot .wrap{width: calc(100% - 32px)}}
.s-foot{background: var(--night);color: rgba(255,255,255,.62);margin-top: 90px;padding: 64px 0 36px;font-size: 14.5px}
.s-foot__grid{display: grid;grid-template-columns: 1.4fr repeat(3,1fr);gap: 40px}
.s-foot h2{color: #fff;font-size: 13px;line-height: 1.3;font-weight: 700;letter-spacing: .1em;text-transform: uppercase;margin: 0 0 14px}
.s-foot ul{list-style: none;padding: 0;margin: 0;display: grid;gap: 9px}
.s-foot a{border-radius: 4px;transition: color .15s}
.s-foot a:hover{color: #fff}
.s-foot a:focus-visible{outline: 2px solid var(--ember-3);outline-offset: 3px}
.s-foot .s-brand{color: #fff;margin-bottom: 14px}
.s-foot .s-brand small{color: rgba(255,255,255,.55)}
.s-foot .s-brand small b{color: rgba(255,255,255,.78)}
.s-foot__about{max-width: 34ch;margin: 0}
.s-foot__base{margin-top: 48px;padding-top: 22px;border-top: 1px solid var(--night-line);display: flex;justify-content: space-between;gap: 8px 20px;flex-wrap: wrap;font-size: 13px}
.s-foot .pay-row{margin: 0;color: rgba(255,255,255,.62)}
@media (max-width: 1020px){.s-foot__grid{grid-template-columns: repeat(3,1fr)}.s-foot__grid > :first-child{grid-column: 1 / -1}}
@media (max-width: 560px){.s-foot{padding-top: 52px}.s-foot__grid{grid-template-columns: 1fr 1fr;gap: 32px 20px}.s-foot__grid > :first-child{grid-column: 1 / -1}}
@media (pointer: coarse){.s-foot ul{gap: 0}.s-foot ul a{display: inline-block;padding-block: 10px}}
@media (forced-colors: active){.s-nav :focus-visible,.s-foot :focus-visible,.palette :focus-visible,.s-skip.s-skip:focus-visible{outline-color: Highlight}}

/* ---------- Landing pages (/convert/<conversion>/) ---------- */
.land { padding: clamp(40px, 6vw, 84px) 0 clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); margin-top: clamp(28px, 4vw, 48px); }
.land h2 { margin: 0; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.06; letter-spacing: -.035em; }
.land h3 { margin: 0 0 14px; font-size: 19px; line-height: 1.25; letter-spacing: -.015em; }
.land__head { margin-bottom: 26px; }
.land__kicker { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ember-ink); }
.land__duel { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); align-items: center; gap: 12px; margin-bottom: 14px; }
.land__duel--one { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
.land__fmt { height: 100%; padding: clamp(20px, 2.4vw, 28px); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.land__fmt--to { background: linear-gradient(180deg, var(--ember-wash), var(--card) 70%); box-shadow: var(--sh-1), inset 0 0 0 1px color-mix(in oklab, var(--ember) 42%, transparent); }
.land__tag { display: inline-grid; place-items: center; min-width: 58px; height: 34px; padding: 0 11px; margin-bottom: 14px; border-radius: 10px; font: 700 14px/1 "JetBrains Mono", ui-monospace, monospace; color: var(--ink); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.land__fmt--to .land__tag { color: #fff; background: var(--fire); box-shadow: 0 10px 22px -12px rgba(255,91,4,.9); }
.land__fmt h3 { margin-bottom: 8px; }
.land__fmt p { margin: 0 0 16px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.land__fmt dl { display: grid; gap: 8px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.land__fmt dl div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; }
.land__fmt dt { color: var(--ink-3); }
.land__fmt dd { margin: 0; color: var(--ink); font-weight: 600; }
.land__fmt dd::first-letter { text-transform: uppercase; }
.land__arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ember-ink); background: var(--card); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.land__arrow .ico { width: 18px; height: 18px; transform: rotate(-90deg); }
.land__note { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--paper-2); }
.land__note > .ico { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--ember-ink); }
.land__note h3 { margin: 0 0 4px; font-size: 15.5px; }
.land__note p { margin: 0; max-width: 62em; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.land__fact { display: grid; gap: 14px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-lg); color: #f7f1ea; background: linear-gradient(120deg, #17110e, #2a1408); }
.land__eq { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0; font-size: clamp(18px, 2vw, 24px); color: #d9cfc4; }
.land__eq i { font-style: normal; color: #ff8a3d; }
.land__eq b { font-size: clamp(32px, 5vw, 60px); line-height: 1; font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: #fff; overflow-wrap: anywhere; }
.land__formula { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-size: 14px; color: #b9ad9f; }
.land__formula code { font: 500 14px/1.5 "JetBrains Mono", ui-monospace, monospace; color: #ffd0ab; overflow-wrap: anywhere; }
.land__how { margin-top: clamp(36px, 5vw, 60px); }
.land__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.land__steps li { position: relative; padding: 18px 18px 20px; border-radius: var(--r); font-size: 15px; line-height: 1.5; color: var(--ink-2); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); counter-increment: s; }
.land__steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 12px; border-radius: 10px; font-size: 14px; font-weight: 800; color: var(--ember-ink); background: var(--ember-wash); }
.land__chartwrap { margin-top: clamp(36px, 5vw, 60px); max-width: 720px; }
.land__scroll { overflow-x: auto; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.land__table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.land__table th, .land__table td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.land__table tr:last-child td { border-bottom: 0; }
.land__table thead th { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.land__table td { color: var(--ink-2); }
.land__table td:last-child { font-weight: 650; color: var(--ink); }
.land__split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: clamp(36px, 5vw, 60px); }
.land__words { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.land__words li { padding: 5px 11px; border-radius: 999px; font-size: 13px; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
.land__rel { margin-top: clamp(30px, 4vw, 44px); }
.land__links { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.land__links a { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 100%; min-height: 42px; padding: 8px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; line-height: 1.25; color: var(--ink); text-decoration: none; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .35s var(--spring); }
.land__links a:hover { box-shadow: inset 0 0 0 1px var(--ember); transform: translateY(-1px); }
.land__links .ico { flex: none; width: 12px; height: 12px; color: var(--ink-3); }
.land__band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(36px, 5vw, 60px); padding: clamp(24px, 3.4vw, 40px); border-radius: var(--r-lg); color: #f7f1ea; background: radial-gradient(520px 300px at 88% 20%, rgba(255,91,4,.34), transparent 70%), linear-gradient(180deg, #17110e, #0e0b09); }
.land__band h2 { font-size: clamp(24px, 3vw, 36px); color: #fff; }
.land__band ul { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; color: #d9cfc4; }
.land__band li { display: inline-flex; align-items: center; gap: 6px; }
.land__band .ico { width: 14px; height: 14px; color: #ff9a5c; }
.land__go { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 22px; border-radius: 15px; font-size: 16px; font-weight: 750; text-align: center; color: #fff; text-decoration: none; background: var(--fire); box-shadow: 0 18px 40px -18px rgba(255,91,4,1); transition: transform .35s var(--spring); }
.land__go:hover { transform: translateY(-2px); }
.land__go:focus-visible { outline-color: #ffb27a; }
.land__all { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 22px 0 0; font-size: 14px; }
.land__all a { display: inline-block; padding-block: 6px; color: var(--ember-ink); }
.hub { margin-top: 0; border-top: 0; padding-top: clamp(22px, 3vw, 36px); }
.hub__bar { position: sticky; top: var(--nav-h); z-index: 30; display: grid; gap: 8px; margin: 0 calc(var(--hub-pad, 0px) * -1) 14px; padding-block: 10px; background: color-mix(in oklab, var(--paper) 90%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); }
.hub__search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: 15px; background: var(--card); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-2); }
.hub__search:focus-within { box-shadow: var(--sh-1), inset 0 0 0 1.5px var(--ember); }
.hub__search .ico { flex: none; width: 18px; height: 18px; color: var(--ink-3); }
.hub__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font-size: 16px; }
.hub__jump { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.hub__jump::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .hub__jump { flex-wrap: wrap; } }
.hub__jump a { flex: none; padding: 6px 11px; border-radius: 10px; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--ink-2); text-decoration: none; }
.hub__jump a:hover { color: var(--ink); background: var(--paper-2); }
.hub__none { color: var(--ink-2); }
.hub__group { padding-top: clamp(22px, 3vw, 34px); scroll-margin-top: calc(var(--nav-h) + 110px); content-visibility: auto; contain-intrinsic-size: auto 900px; }
.hub__group[hidden], .hub__card[hidden], .hub__card li[hidden] { display: none; }
.hub__group h2 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; font-size: clamp(22px, 2.6vw, 30px); }
.hub__group h2 small { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--ink-3); }
.hub__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; align-items: start; }
.hub__card { padding: 14px 16px 12px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.hub__card h4 { margin: 0 0 8px; font-size: 14.5px; letter-spacing: -.01em; }
.hub__card ul { display: flex; flex-wrap: wrap; gap: 2px 4px; margin: 0; padding: 0; list-style: none; }
.hub__card a { display: inline-block; padding: 3px 6px; border-radius: 6px; font-size: 13px; color: var(--ink-2); text-decoration: none; }
.hub__card a:hover { color: var(--ember-ink); background: var(--ember-wash); }
@media (max-width: 760px) {
  .land__duel { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .land__fmt { width: 100%; }
  .land__arrow { margin-block: -24px; z-index: 1; }
  .land__arrow .ico { transform: none; }
  .land__steps { grid-template-columns: minmax(0, 1fr); }
  .land__steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; }
  .land__steps li::before { margin: 0; }
  .land__split { grid-template-columns: minmax(0, 1fr); }
  .land__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .land__go { width: 100%; }
  .hub__cards { grid-template-columns: minmax(0, 1fr); }
}
@media (pointer: coarse) { .hub__card a { padding: 8px 10px; font-size: 14px; } .hub__jump a { padding-block: 10px; } }

/* ---------- Comfortable tap targets on touch screens ---------- */
@media (pointer: coarse) {
  .ldrop__sample { min-height: 40px; }
  .check { min-height: 40px; }
  .pane__head .select { height: 40px; }
  .fitbox__use { height: 40px; }
  .shades { grid-template-columns: repeat(6, 1fr); }
  .rail__free { height: 36px; }
  input[type="color"] { min-height: 40px; }
  [data-panel="ffmpeg"] input { min-height: 44px; }
}

/* ---------- AI audio tools (/convert/audio/) ---------- */
.aimodels { display: grid; gap: 6px; }
.aimodel { position: relative; display: grid; gap: 2px; padding: 9px 11px; border-radius: 12px; background: var(--paper-2); cursor: pointer; transition: box-shadow .16s, background .16s; }
.aimodel:hover { box-shadow: inset 0 0 0 1px var(--ember); }
.aimodel:has(input:checked) { background: var(--ember-wash); box-shadow: inset 0 0 0 1.5px var(--ember); }
.aimodel:has(input:focus-visible) { outline: 2.5px solid var(--ember-ink); outline-offset: 2px; }
.aimodel input { position: absolute; opacity: 0; pointer-events: none; }
.aimodel__top { display: flex; align-items: center; gap: 7px; font-size: 13.5px; }
.aimodel__top b { font-weight: 680; }
.aimodel__top small { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.aimodel__tag { padding: 1px 7px; border-radius: 99px; font-size: 10.5px; font-weight: 700; letter-spacing: .01em; color: var(--ok); background: var(--ok-wash); }
.aimodel__blurb { font-size: 12px; line-height: 1.35; color: var(--ink-3); }
.ainote { display: flex; gap: 8px; align-items: flex-start; margin: 9px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.ainote .ico { flex: none; width: 14px; height: 14px; margin-top: 2px; color: var(--ink-3); }
.ainote--plain { color: var(--ink-3); }
.settings > .ainote { margin-top: 0; }
.ailive { grid-column: 2 / -1; margin: 6px 0 0; max-height: 4.5em; overflow: hidden; font-size: 13px; line-height: 1.5; color: var(--ink-2); display: flex; flex-direction: column; justify-content: flex-end; -webkit-mask-image: linear-gradient(transparent, #000 40%); mask-image: linear-gradient(transparent, #000 40%); }

/* Transcript */
.tx { display: grid; gap: 10px; }
.tx__player { width: 100%; }
video.tx__player { max-height: 380px; border-radius: 12px; background: #0f0c0b; }
.tx__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tx__meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); min-width: 0; }
.tx__meta .ico { flex: none; width: 14px; height: 14px; }
.tx__list { position: relative; display: grid; gap: 1px; max-height: 420px; overflow-y: auto; padding: 6px; border-radius: 14px; background: var(--paper-2); overscroll-behavior: contain; }
.tx__row { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 3px 4px; border-radius: 9px; transition: background .2s; }
.tx__row.is-on { background: var(--ember-wash); }
.tx__time { height: 26px; padding: 0; border: 0; border-radius: 7px; background: transparent; font: 600 12px var(--mono); color: var(--ember-ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.tx__time:hover { background: var(--card); }
.tx__text { min-width: 0; padding: 3px 5px; border-radius: 6px; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.tx__text:hover { box-shadow: inset 0 0 0 1px var(--line); }
.tx__text:focus { outline: none; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ember); }
@media (pointer: coarse) { .tx__time { height: 40px; } }

/* Stem mixer */
.mix { display: grid; gap: 10px; }
.mix__bar { display: flex; align-items: center; gap: 10px; }
.mix__clock { font: 600 12.5px var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mix__track { --p: 0%; position: relative; display: grid; gap: 6px; }
.mix__row { display: grid; grid-template-columns: 118px auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 12px; background: var(--paper-2); transition: opacity .2s; }
.mix__row.is-off .mix__wave, .mix__row.is-off .mix__name { opacity: .35; }
.mix__name { font-size: 13px; font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mix__btns { display: inline-flex; gap: 3px; }
.mix__btn { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; font: 700 11.5px var(--mono); color: var(--ink-2); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.mix__btn:hover { box-shadow: inset 0 0 0 1px var(--ember); }
.mix__btn[aria-pressed="true"] { color: #fff; background: var(--ember-ink); box-shadow: none; }
.mix__wave { display: block; width: 100%; height: 44px; border-radius: 8px; background: linear-gradient(180deg, #1d1612, #120e0b); transition: opacity .2s; cursor: pointer; }
.mix__wavebox { position: relative; display: block; min-width: 0; }
.mix__wavebox::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--p, 0%); width: 2px; border-radius: 2px; background: #fff; box-shadow: 0 0 6px rgba(255,255,255,.6); pointer-events: none; }
@media (max-width: 620px) { .mix__row { grid-template-columns: minmax(0, 1fr) auto auto; } .mix__wavebox { grid-column: 1 / -1; grid-row: 2; } }
@media (pointer: coarse) { .mix__btn { width: 40px; height: 40px; } }

/* Text to speech */
.tts__writer { display: grid; gap: 10px; padding: clamp(12px, 1.6vw, 16px); }
.tts__text { min-height: 188px; padding: 14px; border-radius: 14px; font: 500 16px/1.6 var(--sans, inherit); resize: vertical; }
.tts__under { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tts__examples { display: flex; flex-wrap: wrap; gap: 6px; }
.tts__count { flex: 0 0 auto; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tts__count:empty { display: none; }
.tts__live { margin-top: 12px; padding: 13px 15px; border-radius: 16px; background: var(--ember-wash); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ember) 30%, var(--line)); }
.tts__live[hidden] { display: none; }
.tts__livehead { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 650; color: var(--ember-ink); }
.tts__now { margin: 5px 0 0; font-size: 15px; line-height: 1.5; min-height: 1.5em; }
.tts__result { display: block; }
.tts__resultbody { display: grid; gap: 8px; min-width: 0; }
.tts__resulttop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tts__resulttop .job__name { flex: 1 1 200px; white-space: normal; }
.tts__filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tts__filters .seg button { padding: 5px 9px; font-size: 12.5px; }
.tts__accent[hidden] { display: none; }
.tts__speed { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.voices { display: grid; gap: 5px; max-height: 286px; overflow-y: auto; padding: 2px; margin: -2px; scrollbar-width: thin; overscroll-behavior: contain; }
.voice { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 6px 10px 6px 6px; border-radius: 12px; background: var(--paper-2); cursor: pointer; transition: box-shadow .16s, background .16s; }
.voice:hover { box-shadow: inset 0 0 0 1px var(--ember); }
.voice:has(input:checked) { background: var(--ember-wash); box-shadow: inset 0 0 0 1.5px var(--ember); }
.voice:has(input:focus-visible) { outline: 2.5px solid var(--ember-ink); outline-offset: 2px; }
.voice input { position: absolute; opacity: 0; pointer-events: none; }
.voice__play { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: transform .3s var(--spring), background .16s, color .16s; }
.voice__play:hover { transform: scale(1.08); }
.voice__play .ico { width: 14px; height: 14px; }
.voice__play.is-on { color: #fff; background: var(--ember-ink); box-shadow: none; }
.voice__txt { display: grid; min-width: 0; line-height: 1.25; }
.voice__txt b { font-size: 13.5px; font-weight: 660; }
.voice__txt small { font-size: 11.5px; color: var(--ink-3); }
.voice__grade { font: 700 11px var(--mono); color: var(--ink-3); }
@media (pointer: coarse) { .voice__play { width: 42px; height: 42px; } .voices { max-height: 330px; } }
.tts__go { display: flex; align-items: center; gap: 10px; }
.tts__go .cv-cta { flex: 1 1 auto; }
.tts__who { display: inline-flex; align-items: center; gap: 7px; flex: 0 1 auto; min-width: 0; height: 56px; padding: 0 14px; border: 0; border-radius: 16px; font-size: 13.5px; font-weight: 650; color: var(--ink); background: var(--paper-2); cursor: pointer; }
.tts__who:hover { box-shadow: inset 0 0 0 1px var(--ember); }
.tts__who .ico { flex: none; width: 16px; height: 16px; color: var(--ink-3); }
.tts__who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .tts__go { flex-direction: column; align-items: stretch; } .tts__who { height: 44px; justify-content: center; } }
.tts__writer .bench__free { text-align: center; }
