/* RedHub Dev — ink, leather and parchment. Display: Besley (Clarendon). Text: Libre Franklin. */
@font-face { font-family: "Besley"; src: url("/static/fonts/besley.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Besley"; src: url("/static/fonts/besley-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Franklin"; src: url("/static/fonts/franklin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Franklin"; src: url("/static/fonts/franklin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #14100d;
  --ink2: #1a1511;
  --panel: #201a15;
  --panel2: #2a221b;
  --line: #3b3027;
  --line2: #54463a;
  --bone: #efe6d3;
  --text: #efe6d3;
  --muted: #ab9d87;
  --dim: #7f7261;
  --red: #a3191c;
  --red2: #c4262a;
  --accent: #a3191c;
  --accent2: #c4262a;
  --brass: #c0a063;
  --gold: #c0a063;
  --parch: #e4d6b4;
  --parch2: #d6c59d;
  --parch-ink: #2b1e15;
  --ok: #7fae62;
  --warn: #d2a24a;
  --err: #d9604f;
  --radius: 4px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  --head: "Besley", "Clarendon", Georgia, serif;
  --body: "Franklin", "Libre Franklin", "Franklin Gothic Medium", system-ui, -apple-system, "Segoe UI", sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--ink); color: var(--text); font: 400 15.5px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; display: flex; flex-direction: column; position: relative; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .07; background-image: var(--grain); }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 90% 55% at 50% -10%, rgba(163, 25, 28, .16), transparent 70%); }
header, main, footer, .modal, .toasts { position: relative; z-index: 1; }
a { color: var(--brass); text-decoration: none; }
a:hover { color: var(--bone); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 .9em; }
code, pre { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .88em; }
code { background: var(--panel2); padding: 1px 6px; border-radius: 3px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: .86rem; }
.wrap { width: min(1180px, 92vw); margin: 0 auto; }
main { flex: 1; padding: 34px 0 80px; }
.center { text-align: center; }
.mt { margin-top: 18px; }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
[hidden] { display: none !important; }

/* icons */
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.i.lg { width: 26px; height: 26px; }
.i.xl { width: 34px; height: 34px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(20, 16, 13, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 1.28rem var(--head); color: var(--bone); white-space: nowrap; }
.logo:hover { color: var(--bone); }
.logo .mark { width: 46px; height: 46px; display: block; flex: none; object-fit: contain; }
.logo b { color: var(--brass); font-weight: 700; }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a { color: var(--muted); padding: 8px 12px; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; line-height: 46px; padding-block: 0; }
.nav a:hover { color: var(--bone); }
.nav a.on { color: var(--bone); border-color: var(--red2); }
.right { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.lang a { color: var(--dim); font-weight: 600; font-size: .74rem; padding: 4px 7px; letter-spacing: .04em; }
.lang a.on { color: var(--ink); background: var(--bone); }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line);
  font-weight: 600; font-size: .9rem; color: var(--bone); }
.coin { display: inline-block; width: 15px; height: 15px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #f0dba6, var(--brass) 55%, #7a6132); box-shadow: inset 0 0 0 1.5px rgba(40, 28, 10, .35); }
.coin.big { width: 24px; height: 24px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); display: block; object-fit: cover; }
.avatar.ph { display: grid; place-items: center; background: var(--panel2); color: var(--brass); font: 700 .9rem var(--head); }
.menu { position: relative; cursor: pointer; }
.menu-list { display: none; position: absolute; right: 0; top: 44px; background: var(--panel); border: 1px solid var(--line2);
  border-radius: var(--radius); min-width: 220px; padding: 6px; box-shadow: var(--shadow); }
.menu:hover .menu-list, .menu:focus-within .menu-list { display: block; }
.menu-list::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.menu-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 3px; color: var(--bone); }
.menu-list a .i { color: var(--brass); }
.menu-list a:hover { background: var(--panel2); }
.menu-list .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-list .who b { display: block; font-family: var(--head); }
.burger { display: none; background: none; border: 0; color: var(--bone); padding: 6px; cursor: pointer; }

/* buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line2); background: transparent;
  color: var(--bone); padding: 9px 18px; border-radius: 3px; font: 600 .94rem/1.3 var(--body); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { border-color: var(--bone); color: var(--bone); background: rgba(239, 230, 211, .06); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red2); border-color: var(--red2); }
.btn.discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn.discord:hover { background: #6b77f5; }
.btn.big { padding: 13px 26px; font-size: 1.02rem; }
.btn.small { padding: 5px 11px; font-size: .82rem; }
.btn.ghost { border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--bone); border-color: var(--line2); background: transparent; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* surfaces */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card.flat { background: transparent; }
.notice { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border: 1px solid var(--line2); border-left: 3px solid var(--brass);
  background: var(--panel); border-radius: 3px; margin: 14px 0; }
.notice.ok { border-left-color: var(--ok); } .notice.ok .i { color: var(--ok); }
.notice.err { border-left-color: var(--err); } .notice.err .i { color: var(--err); }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.section { margin-top: 72px; }
.page-head { margin-bottom: 26px; }
.page-head h1 { margin-bottom: 6px; }
.page-head p { color: var(--muted); max-width: 62ch; margin: 0; }
.cur-switch { display: inline-flex; margin-top: 14px; border: 1px solid var(--line2); border-radius: 999px; padding: 3px; gap: 2px; }
.cur-switch a { padding: 5px 14px; border-radius: 999px; font: 600 .82rem var(--body); color: var(--muted); text-decoration: none; }
.cur-switch a:hover { color: var(--text); }
.cur-switch a.on { background: var(--brass); color: #1b140e; }
.rule { height: 5px; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line); margin: 0; }
.stat { font: 700 1.9rem/1.1 var(--head); display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.label { color: var(--muted); font-size: .84rem; margin-bottom: 6px; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 3px; border: 1px solid var(--line2); color: var(--brass); font-size: .74rem; font-weight: 600; }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 38px 0 20px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.02; letter-spacing: -.02em; margin-bottom: 22px; }
.hero .lead { font-size: 1.14rem; color: var(--muted); max-width: 50ch; margin-bottom: 28px; }
.hero .note { color: var(--dim); font-size: .88rem; margin-top: 18px; display: flex; gap: 8px; align-items: center; }

/* the catalogue plate: parchment sheet with the props the tools produce */
.plate { position: relative; background: var(--parch); color: var(--parch-ink); padding: 26px 26px 20px; border-radius: 2px; transform: rotate(1.2deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 2px 0 rgba(255, 255, 255, .25) inset; }
.plate::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .5; mix-blend-mode: multiply; pointer-events: none; }
.plate::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(43, 30, 21, .55); outline: 1px solid rgba(43, 30, 21, .25); outline-offset: 3px; pointer-events: none; }
.plate-head { position: relative; text-align: center; font-family: var(--head); padding: 8px 0 12px; border-bottom: 3px double rgba(43, 30, 21, .6); margin: 0 12px; }
.plate-head b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: .01em; }
.plate-head span { font-style: italic; font-size: .9rem; }
.plate-figs { position: relative; display: grid; grid-template-columns: 1.7fr .55fr .85fr; gap: 10px; align-items: end; padding: 22px 14px 6px; }
.plate-figs figure { margin: 0; text-align: center; }
.plate-figs img { max-width: 100%; height: 190px; object-fit: contain; filter: sepia(.35) saturate(.85) contrast(1.05) drop-shadow(0 10px 8px rgba(43, 30, 21, .35)); }
.plate-figs figcaption { font: italic 500 .8rem var(--head); margin-top: 8px; }
.plate-foot { position: relative; text-align: center; font: 600 .78rem var(--body); margin: 10px 12px 0; padding-top: 10px; border-top: 1px solid rgba(43, 30, 21, .45); }

.drop { border: 1px dashed var(--line2); border-radius: var(--radius); padding: 30px 24px; text-align: center; background: rgba(32, 26, 21, .7);
  cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--brass); background: rgba(192, 160, 99, .07); }
.drop b { font-family: var(--head); font-size: 1.05rem; }
.drop .i { color: var(--brass); margin-bottom: 6px; }
.drop .formats { color: var(--dim); font-size: .82rem; margin-top: 6px; }
.dropband { display: flex; align-items: center; gap: 22px; text-align: left; padding: 22px 28px; margin-top: 44px; }
.dropband .formats { margin: 0 0 0 auto; }
.dropband p { margin: 2px 0 0; color: var(--muted); }

.tools { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line2); }
.tool { display: grid; grid-template-columns: 46px 1fr; align-content: start; gap: 4px 16px; padding: 24px 22px 24px 4px; color: var(--bone); border-bottom: 1px solid var(--line); transition: background .15s; }
.tool:nth-child(odd) { border-right: 1px solid var(--line); }
.tool:nth-child(even) { padding-left: 26px; }
.tool:hover { background: rgba(239, 230, 211, .035); color: var(--bone); }
.tool .i { grid-row: span 2; width: 34px; height: 34px; color: var(--brass); stroke-width: 1.4; margin-top: 2px; }
.tool h3 { margin: 0; }
.tool:hover h3 { color: var(--brass); }
.tool p { margin: 0; color: var(--muted); font-size: .95rem; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.steps > div { counter-increment: s; border-top: 3px double var(--line2); padding-top: 16px; }
.steps > div::before { content: counter(s); font: 800 3rem/1 var(--head); color: var(--red2); display: block; margin-bottom: 10px; }
.steps p { color: var(--muted); margin: 0; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.facts .i { color: var(--brass); width: 28px; height: 28px; margin-bottom: 10px; }
.facts p { color: var(--muted); margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.collab { display: flex; align-items: center; gap: 18px; padding: 20px 4px; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.collab > .i { color: var(--brass); flex: none; }
.collab b { font-family: var(--head); font-size: 1.05rem; }
.collab p { margin: 2px 0 0; color: var(--muted); max-width: 70ch; }
.collab .btn { margin-left: auto; flex: none; }
@media (max-width: 760px) { .collab { flex-wrap: wrap; } .collab .btn { margin-left: 0; } }
.split .card { display: flex; gap: 18px; align-items: flex-start; color: var(--bone); transition: border-color .15s; }
.split .card:hover { border-color: var(--brass); }
.split .card .i { width: 30px; height: 30px; color: var(--brass); margin-top: 2px; }
.split .card p { margin: 0; color: var(--muted); }

.plans-mini { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.plans-mini > div { padding: 20px 22px; border-right: 1px solid var(--line); }
.plans-mini > div:last-child { border-right: 0; }
.plans-mini .name { font-family: var(--head); font-weight: 600; }
.plans-mini .amount { font: 700 1.7rem var(--head); margin: 4px 0; }
.plans-mini .amount small { font: 400 .85rem var(--body); color: var(--muted); }

.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 600 1.02rem var(--head); padding: 16px 30px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--brass); border-bottom: 2px solid var(--brass);
  transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); max-width: 68ch; }

.closing { background: var(--parch); color: var(--parch-ink); border-radius: 2px; padding: 44px 48px; display: flex; align-items: center; gap: 30px; position: relative; overflow: hidden; }
.closing::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .5; mix-blend-mode: multiply; pointer-events: none; }
.closing > * { position: relative; }
.closing h2 { margin: 0 0 6px; font-size: 1.9rem; }
.closing p { margin: 0; color: #5b4633; }
.closing .btn { margin-left: auto; flex: none; }

/* ---------- pricing ---------- */
.plan { display: flex; flex-direction: column; gap: 12px; position: relative; padding: 26px 24px; }
.plan.best { border-color: var(--brass); background: linear-gradient(180deg, rgba(192, 160, 99, .09), transparent 40%), var(--panel); }
.plan h3 { margin: 0; font-size: 1.25rem; }
.plan .price { font: 800 2.5rem/1 var(--head); }
.plan .price small { font: 400 .9rem var(--body); color: var(--muted); }
.plan ul { margin: 6px 0 10px; padding: 0; list-style: none; color: var(--muted); font-size: .94rem; }
.plan li { padding: 5px 0 5px 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 3px; top: 11px; width: 10px; height: 5px; border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: rotate(-45deg); }
.plan li b { color: var(--bone); }
.plan .btn { margin-top: auto; }
.ribbon { position: absolute; top: -11px; left: 24px; background: var(--brass); color: var(--ink); font-weight: 700; font-size: .74rem; padding: 2px 10px; border-radius: 2px; }
.pack { text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.pack .amount { font: 800 2rem var(--head); display: flex; align-items: center; gap: 10px; }

/* ---------- workspace ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.tabs a .i { color: var(--dim); }
.tabs a.on { color: var(--bone); border-color: var(--red2); }
.tabs a.on .i { color: var(--brass); }
.tabs a:hover { color: var(--bone); }
.work { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: start; }
.viewer { position: relative; height: 480px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(ellipse 70% 60% at 50% 42%, #2b231d, #120e0b 72%, #0b0908); }
.viewer .tools { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; z-index: 2; }
.viewer .tools button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 3px; cursor: pointer;
  background: rgba(20, 16, 13, .78); border: 1px solid var(--line2); color: var(--muted); }
.viewer .tools button:hover { color: var(--bone); }
.viewer .tools button.on { color: var(--brass); border-color: var(--brass); }
.viewer .tools button[hidden] { display: none; }
.viewer canvas { width: 100%; height: 100%; display: block; }
.viewer .hud { position: absolute; left: 14px; bottom: 11px; font-size: .8rem; color: var(--bone); text-shadow: 0 1px 2px #000; font-variant-numeric: tabular-nums; }
.viewer .empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--bone); text-shadow: 0 1px 3px #000; pointer-events: none; text-align: center; padding: 20px;
  font-family: var(--head); font-size: 1.05rem; }
.form h3 { font-size: 1.3rem; margin-bottom: 4px; }
.form label { display: block; font-weight: 600; font-size: .86rem; margin: 14px 0 6px; color: var(--bone); }
.form .hint, .hint { color: var(--dim); font-size: .8rem; margin-top: 4px; }
.input, select, textarea { width: 100%; background: var(--ink2); color: var(--bone); border: 1px solid var(--line); border-radius: 3px; padding: 9px 11px; font: .95rem var(--body); }
.input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brass); }
.input::placeholder, textarea::placeholder { color: var(--dim); }
select { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--brass) 50%), linear-gradient(135deg, var(--brass) 50%, transparent 50%);
  background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
select option, select optgroup { background: var(--ink2); color: var(--bone); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 9px; margin: 10px 0; font-size: .92rem; font-weight: 400 !important; cursor: pointer; }
.check input { accent-color: var(--red2); width: 16px; height: 16px; flex: none; }
input[type=range] { width: 100%; accent-color: var(--brass); }
.input.color { padding: 2px; height: 38px; cursor: pointer; }
details.adv { margin-top: 14px; border-top: 1px solid var(--line); padding: 0 0 4px; }
details.adv summary { cursor: pointer; padding: 12px 22px 8px 0; font-weight: 600; color: var(--muted); list-style: none; position: relative; }
details.adv summary::-webkit-details-marker { display: none; }
details.adv summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: translateY(-60%) rotate(45deg); }
details.adv[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
details.adv[open] summary { color: var(--bone); }
.cost { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding: 14px 0 0; border-top: 3px double var(--line2); }
.cost b { font: 700 1.25rem var(--head); display: inline-flex; align-items: center; gap: 8px; }
.filelist { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; max-height: 320px; overflow: auto; }
.fileitem { display: grid; grid-template-columns: 54px 1fr 1fr 28px; gap: 8px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; padding: 6px; }
.fileitem img { width: 54px; height: 54px; object-fit: contain; background: var(--panel2); border-radius: 2px; }
.fileitem .x { cursor: pointer; color: var(--dim); display: grid; place-items: center; background: none; border: 0; padding: 4px; }
.fileitem .x:hover { color: var(--err); }
.fileitem.on { border-color: var(--brass); }
.job { margin-top: 18px; }
.job .card { padding: 16px; background: var(--ink2); }
.job pre, pre.log { background: #0e0b09; border: 1px solid var(--line); border-radius: 3px; padding: 10px; max-height: 220px; overflow: auto; font-size: .76rem; color: #cdbfa6; white-space: pre-wrap; margin: 8px 0 0; }
.job details summary { cursor: pointer; color: var(--dim); font-size: .82rem; margin-top: 8px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 3px; font-size: .76rem; font-weight: 600; border: 1px solid; }
.status.queued { color: var(--warn); border-color: rgba(210, 162, 74, .45); }
.status.running { color: #b8d48a; border-color: rgba(184, 212, 138, .4); }
.status.done { color: var(--ok); border-color: rgba(127, 174, 98, .45); }
.status.failed { color: var(--err); border-color: rgba(217, 96, 79, .45); }
.bar { height: 4px; background: var(--panel2); border-radius: 2px; overflow: hidden; margin: 10px 0; }
.bar i { display: block; height: 100%; width: 0; background: var(--red2); transition: width .3s; }
.bar.indet i { width: 35%; animation: indet 1.2s infinite ease-in-out; }
@keyframes indet { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }
.swatch { width: 13px; height: 13px; border-radius: 2px; border: 1px solid rgba(255, 255, 255, .3); display: inline-block; }
.uvbox { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: repeating-conic-gradient(#2a221b 0% 25%, #201a15 0% 50%) 50% / 24px 24px; }
.uvbox canvas { display: block; width: 100%; cursor: move; touch-action: none; }

/* ---------- library / market ---------- */
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 18px; }
.lib .item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: var(--bone); }
.lib .thumb { aspect-ratio: 4 / 3; background: radial-gradient(ellipse at 50% 75%, #5a4a3a, #2a221b 75%); display: grid; place-items: center; position: relative; color: var(--dim); }
.lib .thumb img { width: 82%; height: 86%; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .4)); }
.lib .thumb > .i { width: 44px; height: 44px; stroke-width: 1.2; }
.lib .body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.lib .body b { font-family: var(--head); font-weight: 600; overflow-wrap: anywhere; }
.lib .actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.empty-state { text-align: center; padding: 60px 20px; border: 1px dashed var(--line2); border-radius: var(--radius); color: var(--muted); grid-column: 1 / -1; }
.empty-state .i { width: 40px; height: 40px; color: var(--dim); stroke-width: 1.2; margin-bottom: 8px; }
.market-card { transition: border-color .15s, transform .15s; }
.market-card:hover { border-color: var(--brass); color: var(--bone); transform: translateY(-2px); }
.price-tag { position: absolute; left: 10px; bottom: 10px; background: var(--parch); color: var(--parch-ink); font: 700 .8rem var(--body); padding: 2px 9px; border-radius: 2px; display: inline-flex; gap: 6px; align-items: center; }
.price-tag.free { background: var(--ok); color: #10200a; }
.stars { display: inline-flex; gap: 1px; color: var(--line2); vertical-align: -2px; }
.stars .i { width: 14px; height: 14px; }
.stars .on { color: var(--brass); fill: var(--brass); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 18px 0 8px; }
.filters .input { flex: 2; min-width: 220px; }
.filters select { flex: 1; min-width: 160px; width: auto; }
.cats { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0; }
a.chip { color: var(--muted); background: transparent; font-weight: 500; font-size: .86rem; border-radius: 3px; }
a.chip:hover, a.chip.on { color: var(--bone); border-color: var(--brass); }
a.chip.on { background: var(--panel); }
.viewer.gallery { display: grid; place-items: center; background: radial-gradient(ellipse at 50% 75%, #5a4a3a, #2a221b 75%); }
.viewer.gallery img { max-width: 78%; max-height: 88%; object-fit: contain; filter: drop-shadow(0 16px 14px rgba(0, 0, 0, .45)); }
img.mini { width: 64px; height: 64px; object-fit: contain; background: var(--panel2); border-radius: 3px; border: 1px solid var(--line); cursor: pointer; }
.pick .item { cursor: pointer; }
.pick .item.on { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass) inset; }
.ok-text { color: var(--ok); }
.checks { list-style: none; padding: 0; margin: 14px 0; color: var(--muted); font-size: .9rem; }
.checks li { padding: 4px 0 4px 24px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 3px; top: 10px; width: 10px; height: 5px; border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: rotate(-45deg); }

/* ---------- tables ---------- */
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th::first-letter { text-transform: uppercase; }
th { color: var(--muted); font-weight: 600; font-size: .82rem; border-bottom: 1px solid var(--line2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { font-variant-numeric: tabular-nums; }
.pos { color: var(--ok); font-weight: 600; }
.neg { color: var(--err); font-weight: 600; }
.inline-form { display: inline-flex; gap: 4px; align-items: center; margin: 2px 0; }
.inline-form .input, .inline-form select { width: auto; padding: 4px 6px; font-size: .82rem; }
.inline-form select { padding-right: 24px; }

/* ---------- guides / docs ---------- */
.guides { border-top: 1px solid var(--line2); }
.guides a { display: flex; align-items: center; gap: 16px; padding: 18px 6px; border-bottom: 1px solid var(--line); color: var(--bone); font: 600 1.08rem var(--head); }
.guides a .i { color: var(--brass); }
.guides a:hover { background: rgba(239, 230, 211, .035); color: var(--brass); }
.guides a span { margin-left: auto; font: 400 .86rem var(--body); color: var(--dim); }
.doc { max-width: 760px; font-size: 1.02rem; }
.doc h1 { font-size: 2.3rem; margin-bottom: .7em; }
.doc h2 { margin-top: 1.6em; font-size: 1.4rem; padding-top: .8em; border-top: 1px solid var(--line); }
.doc li { margin: .3em 0; }
.doc pre { background: #0e0b09; padding: 14px; border-radius: 3px; overflow: auto; border: 1px solid var(--line); }
.doc pre code { background: none; padding: 0; }
.doc table { margin: 16px 0; }
.doc blockquote { margin: 16px 0; padding: 10px 16px; border-left: 3px solid var(--brass); background: var(--panel); color: var(--muted); }
.doc blockquote p { margin: 0; }
.doc img { max-width: 100%; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; margin-bottom: 18px; }

/* status */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 10px; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(127, 174, 98, .18); }
.dot.bad { background: var(--err); box-shadow: 0 0 0 4px rgba(217, 96, 79, .18); }

/* error page */
.errpage { text-align: center; padding: 70px 0; }
.errpage .code { font: 800 7rem/1 var(--head); color: var(--red2); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 44px 0 30px; color: var(--dim); font-size: .9rem; background: var(--ink2); }
footer .cols { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 30px; }
footer h4 { color: var(--bone); margin: 0 0 12px; font: 600 .95rem var(--head); }
footer a { color: var(--muted); display: block; margin: 6px 0; }
footer a:hover { color: var(--bone); }
footer .legal { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; gap: 20px; flex-wrap: wrap; font-size: .82rem; }
footer .legal span:last-child { margin-left: auto; max-width: 60ch; text-align: right; }

/* modal & toast */
.modal { position: fixed; inset: 0; background: rgba(8, 6, 5, .75); display: none; place-items: center; z-index: 50; }
.modal.open { display: grid; }
.modal .card { width: min(430px, 92vw); text-align: center; box-shadow: var(--shadow); padding: 32px; border-color: var(--line2); }
.modal .card h3 { font-size: 1.4rem; }
.toasts { position: fixed; left: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { display: flex; align-items: center; gap: 12px; background: var(--panel); color: var(--bone); border: 1px solid var(--line2); border-left: 3px solid var(--brass);
  padding: 12px 18px 12px 14px; border-radius: 3px; box-shadow: var(--shadow); max-width: 380px; font-weight: 500; font-size: .94rem; animation: pop .2s ease; }
.toast .i { color: var(--brass); width: 20px; height: 20px; }
.toast.err { border-left-color: var(--red2); } .toast.err .i { color: var(--err); }
.toast.ok { border-left-color: var(--ok); } .toast.ok .i { color: var(--ok); }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }

/* responsive */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .work { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: 1fr 1fr; }
  .plans-mini { grid-template-columns: 1fr 1fr; }
  .plans-mini > div:nth-child(2) { border-right: 0; }
  .plans-mini > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .burger { display: block; }
  .right .btn.primary { display: none; }
  .dd-list.left { min-width: min(300px, 92vw); }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--ink2); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 4vw 14px; }
  .nav.open { display: flex; }
  .nav a { line-height: 2.6; border: 0; }
  .top .wrap { gap: 12px; }
  .right { margin-left: auto; }
  .g2, .g3, .g4, .tools, .steps, .facts, .split, .row { grid-template-columns: 1fr; }
  .tool:nth-child(odd) { border-right: 0; }
  .tool:nth-child(even) { padding-left: 4px; }
  .dropband, .closing { flex-direction: column; align-items: flex-start; text-align: left; }
  .dropband .formats, .closing .btn { margin-left: 0; }
  .closing { padding: 30px 26px; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  footer .legal span:last-child { margin-left: 0; text-align: left; }
  .plate { transform: none; }
  h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* team: token packs dialog */
.modal .card.sheet { width: min(940px, 94vw); max-height: 90vh; overflow: auto; text-align: left; padding: 28px; }
.sheet .close { position: absolute; right: 14px; top: 14px; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; }
.sheet .close:hover { color: var(--bone); }
.sheet { position: relative; }
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 18px; }
.offer { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--ink2); display: flex; flex-direction: column; }
.offer p { flex: 1; }
@media (max-width: 820px) { .offers { grid-template-columns: 1fr; } }
.offer h3 { margin: 0 0 6px; font-size: 1.2rem; }
.offer p { color: var(--muted); margin: 0; font-size: .93rem; }
.offer .amount { font: 800 1.9rem/1 var(--head); margin: 16px 0 12px; padding-top: 14px; border-top: 3px double var(--line2); }

/* dropdowns (language, platform) */
.dd { position: relative; }
.iconbtn { display: grid; place-items: center; width: 36px; height: 36px; background: transparent; border: 1px solid transparent; border-radius: 3px; color: var(--muted); cursor: pointer; }
.iconbtn:hover, .dd.open .iconbtn { color: var(--bone); border-color: var(--line2); background: var(--panel); }
.dd-list { display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: var(--panel); border: 1px solid var(--line2); border-radius: var(--radius);
  padding: 6px; box-shadow: var(--shadow); z-index: 30; }
.dd-list.left { right: auto; left: 0; min-width: 300px; }
.dd.open .dd-list { display: block; }
.dd-title { color: var(--dim); font-size: .82rem; padding: 6px 10px 8px; }
.dd-list a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 3px; color: var(--bone); }
.dd-list a > span:first-of-type:not(.tile), .dd-list a > .tile + span { flex: 1; }
.dd-list a:hover { background: var(--panel2); color: var(--bone); }
.dd-list a.on .i { color: var(--brass); }
.dd-list a.off { opacity: .55; cursor: default; }
.dd-list a.off:hover { background: none; }
.dd-list b { display: block; font-weight: 600; }
.dd-list small { display: block; color: var(--muted); font-size: .82rem; }
.tile { display: grid; place-items: center; width: 36px; height: 36px; flex: none; background: var(--red); color: var(--bone); font: 800 .78rem var(--head); border-radius: 3px; }
.tile.alt { background: var(--panel2); border: 1px solid var(--line2); color: var(--muted); }
.tile img { display: block; width: 100%; height: 100%; border-radius: inherit; }
.tile.alt img { width: 58%; height: 58%; opacity: .6; }
.platform { display: inline-block; margin-bottom: 18px; }
.dd-btn { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 14px 7px 7px; color: var(--bone);
  cursor: pointer; font: inherit; text-align: left; min-width: 220px; }
.dd-btn:hover, .dd.open .dd-btn { border-color: var(--line2); }
.dd-btn > span:nth-child(2) { flex: 1; }
.dd-btn small { display: block; color: var(--dim); font-size: .74rem; line-height: 1.2; }
.dd-btn b { font: 600 1rem var(--head); }
.dd-btn .i { color: var(--muted); }

/* size box + Sketchfab gallery */
.sf-open { margin-top: 10px; }
#sizeBox .flex { gap: 8px; flex-wrap: nowrap; }
#sizeBox .input { flex: 1; min-width: 0; }
.modal .card.sheet.sf { width: min(1120px, 95vw); }
.sf-bar { display: flex; gap: 10px; margin: 16px 0 4px; }
.sf-q { position: relative; flex: 1; }
.sf-q svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.sf-q .input { padding-left: 38px; width: 100%; }
.sf-bar select { width: 200px; flex: none; }
.sf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 16px 0; }
.sf-card { position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden; cursor: pointer;
  background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius); color: var(--bone); font: inherit; }
.sf-card:hover, .sf-card:focus-visible { border-color: var(--brass); outline: none; }
.sf-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #1a1511; }
.sf-card .b { padding: 9px 11px 11px; display: grid; gap: 3px; }
.sf-card .n { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-card .a { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-card .m { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--muted); margin-top: 4px; }
.lic { font-size: .72rem; font-weight: 600; padding: 2px 7px; border: 1px solid var(--line2); border-radius: 3px; color: var(--bone); }
.lic.nc { border-color: #8a3b2c; color: #e3a08f; }
.sf-card.busy::after { content: attr(data-busy); position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(14, 11, 9, .78); font-family: var(--head); font-size: 1rem; }
.sf-card.busy { pointer-events: none; }
.sf-acc { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px; font-size: .88rem;
  background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius); }
.sf-acc > span { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sf-acc .sf-acc-on svg { color: var(--brass); }
.sf-acc [hidden] { display: none; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brass); cursor: pointer; font: inherit; text-decoration: underline; }
.lic.nd { border-color: #8a6a2c; color: #e2c48a; }
#sizeBox.locked .input { opacity: .55; }
