/* ConquerStyles workspace. Built on the kit finishes (finish.css, grounds.css, motion.css).
   Colours, type and the house orange come from tokens.css, shared with the public site and the owner console. */
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--background); color: var(--foreground); font: 400 15px/1.55 var(--font-b); min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 8px; }
.boot { min-height: 100vh; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 22px 16px 16px; border-right: 1px solid var(--border); background: linear-gradient(180deg, #111317, #0d0e11); overflow-y: auto; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 6px 12px 20px; text-decoration: none; font: 700 19px/1 var(--font-d); letter-spacing: -.02em; }
.brand img { display: block; height: 24px; width: auto; }
.mobbar .brand img { height: 20px; }
.brand-mark { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: var(--primary-foreground); }
.brand small { display: block; font: 500 11px/1 var(--font-b); letter-spacing: .02em; color: var(--faint); margin-top: 4px; }
.nav-group { margin-top: 18px; }
.nav-group:first-child { margin-top: 0; }
.nav a .ext { margin-left: auto; opacity: .5; display: inline-flex; }
.nav a .ext svg { width: 13px; height: 13px; }
.nav-group h2 { font: 600 12px/1 var(--font-b); color: var(--faint); letter-spacing: .06em; text-transform: uppercase; padding: 0 12px 8px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; text-decoration: none; color: var(--muted); font-weight: 500; transition: background .18s, color .18s; }
.nav a:hover { background: rgba(228, 233, 240, .05); color: var(--foreground); }
.nav a[aria-current=page] { color: var(--foreground); background: linear-gradient(180deg, rgba(238, 96, 0, .16), rgba(238, 96, 0, .07)); box-shadow: inset 0 0 0 1px rgba(238, 96, 0, .28); }
.nav a[aria-current=page] svg { color: var(--primary); }
.nav svg { width: 18px; height: 18px; flex: none; }
.side-foot { margin-top: auto; padding-top: 18px; display: grid; gap: 10px; }
.plan-card { border-radius: 16px; padding: 14px 15px; border: 1px solid rgba(238, 96, 0, .28); position: relative; text-decoration: none; display: block; background: radial-gradient(120% 120% at 100% 0%, rgba(238, 96, 0, .22), transparent 60%), #151a22; transition: border-color .2s; }
.plan-card:hover { border-color: rgba(238, 96, 0, .55); }
.plan-card .name { font: 700 16px/1.2 var(--font-d); }
.plan-card p { color: var(--muted); font-size: 13px; }
.who { display: flex; align-items: center; gap: 10px; padding: 8px 6px; font-size: 13px; color: var(--muted); min-width: 0; text-decoration: none; border-radius: 12px; }
.who:hover { background: rgba(228, 233, 240, .05); color: var(--foreground); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 700 13px/1 var(--font-d); color: var(--primary-foreground); background: linear-gradient(140deg, #ff9a4d, #c24e00); }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobbar { display: none; }

.shell > div, .wrap, .stack > *, .grid > *, .card, .li > * { min-width: 0; }
.modcard { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); gap: 22px; }
.main { position: relative; isolation: isolate; min-width: 0; padding: 40px clamp(20px, 4vw, 56px) 72px; }
.main::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 420px; z-index: -1; pointer-events: none; background: radial-gradient(60% 100% at 78% 0%, rgba(238, 96, 0, .13), transparent 70%), radial-gradient(45% 80% at 12% -10%, rgba(157, 176, 207, .10), transparent 70%); }
.wrap { max-width: 1180px; margin: 0 auto; }
.phead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.phead h1 { font: 700 clamp(30px, 4vw, 46px)/1.05 var(--font-d); letter-spacing: -.03em; }
.phead p { color: var(--muted); max-width: 56ch; margin-top: 10px; font-size: 16px; }
.phead .acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-width: 1px; border-style: solid; border-radius: 12px; padding: 10px 16px; font-weight: 600; font-size: 14px; line-height: 1.1; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .15s, opacity .15s; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled=true] { opacity: .5; cursor: not-allowed; }
.btn.primary { color: var(--primary-foreground); }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.danger { color: var(--bad); border-color: rgba(255, 143, 132, .35); background: rgba(255, 143, 132, .06); }
.btn.danger:hover { background: rgba(255, 143, 132, .14); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--foreground); background: rgba(228, 233, 240, .06); }
.btn.icon { padding: 9px; }

/* ---------- surfaces ---------- */
.card { background: linear-gradient(180deg, #181b20, #14161a); border: 1px solid var(--border); border-radius: var(--r); padding: 22px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.card h2, .card h3 { font: 700 19px/1.2 var(--font-d); letter-spacing: -.015em; }
.card .sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.stack { display: grid; gap: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-m); font-size: .92em; }

/* ---------- chips, dots ---------- */
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.2; color: #c3cbd7; background: rgba(228, 233, 240, .07); border: 1px solid var(--border); }
.chip.amber { color: #ff9a4d; background: rgba(238, 96, 0, .12); border-color: rgba(238, 96, 0, .3); }
.chip.good { color: var(--good); background: rgba(111, 217, 160, .1); border-color: rgba(111, 217, 160, .28); }
.chip.bad { color: var(--bad); background: rgba(255, 143, 132, .1); border-color: rgba(255, 143, 132, .3); }
.chip.warn { color: var(--warn); background: rgba(243, 201, 105, .1); border-color: rgba(243, 201, 105, .3); }
.chip.cobalt { color: #c3cbd7; background: rgba(157, 176, 207, .12); border-color: rgba(157, 176, 207, .3); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in oklab, currentColor 20%, transparent); flex: none; }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); flex: none; }
.swatches { display: flex; gap: -4px; }
.swatches .swatch + .swatch { margin-left: -5px; }

/* ---------- filters ---------- */
.filters { display: grid; gap: 14px; margin-bottom: 24px; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
.search input { padding-left: 42px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { border: 1px solid var(--border-2); background: transparent; color: var(--muted); padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; }
.pill:hover { color: var(--foreground); border-color: rgba(228, 233, 240, .45); }
.pill[aria-pressed=true] { background: var(--foreground); color: #15130f; border-color: var(--foreground); }
.fl-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.fgroup { display: flex; gap: 8px; align-items: center; }
.fl-row label { color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }

/* ---------- inputs ---------- */
.input, .select, textarea.input { width: 100%; background: #101216; color: var(--foreground); border: 1px solid var(--border-2); border-radius: 12px; padding: 11px 14px; font: 400 15px/1.3 var(--font-b); transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: var(--faint); }
.input:focus, .select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(238, 96, 0, .2); }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23aaa79f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; width: auto; min-width: 140px; cursor: pointer; }
.field { display: grid; gap: 7px; }
.field > label, .lbl { font-size: 13px; font-weight: 600; color: var(--muted); }
.field .hint { font-size: 13px; color: var(--faint); }
.toggle { position: relative; width: 46px; height: 26px; flex: none; border-radius: 999px; border: 1px solid var(--border-2); background: #101216; cursor: pointer; padding: 0; transition: background .2s, border-color .2s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #c3cbd7; transition: transform .2s, background .2s; }
.toggle[aria-checked=true] { background: rgba(238, 96, 0, .25); border-color: var(--primary); }
.toggle[aria-checked=true]::after { transform: translateX(20px); background: var(--primary); }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: #101216; border: 1px solid var(--border); }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: 13px; cursor: pointer; }
.seg button[aria-pressed=true] { background: var(--card-2); color: var(--foreground); box-shadow: inset 0 0 0 1px var(--border-2); }

/* ---------- item card ---------- */
.item { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: #14161a; transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .25s, box-shadow .25s; }
.item:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: 0 22px 40px -24px rgba(0, 0, 0, .9); }
.poster { position: relative; aspect-ratio: 16 / 10; background-size: cover; background-position: center; overflow: hidden; }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster .kind { position: absolute; left: 12px; top: 12px; }
.poster .lock { position: absolute; right: 12px; top: 12px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; }
.item .body { padding: 14px 16px 16px; display: grid; gap: 8px; flex: 1; align-content: start; }
.item h3 { font: 600 17px/1.25 var(--font-d); letter-spacing: -.01em; }
.item p { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.heart[aria-pressed=true] { color: #ff8fa3; }
.heart[aria-pressed=true] svg { fill: currentColor; }
.chip.glass { backdrop-filter: blur(10px); background: rgba(12, 12, 15, .62); color: #f1eee8; border-color: rgba(255, 255, 255, .16); }
.pager { display: flex; justify-content: center; gap: 12px; margin-top: 28px; align-items: center; color: var(--muted); }

/* ---------- list rows, tables ---------- */
.list { display: grid; }
.li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 4px; border-top: 1px solid var(--border); }
.li:first-child { border-top: 0; }
.li h4 { font: 600 16px/1.3 var(--font-d); }
.li .meta { color: var(--muted); font-size: 13px; margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tbl-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--border); background: #14161a; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; font: 600 12px/1 var(--font-b); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 14px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 13px 16px; border-top: 1px solid var(--border); vertical-align: middle; }
tr:first-child td { border-top: 0; }
tbody tr:hover td { background: rgba(228, 233, 240, .025); }
td.r, th.r { text-align: right; }

/* ---------- code, keys ---------- */
.code { font: 400 13px/1.6 var(--font-m); background: #0a0b0d; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; overflow-x: auto; color: #e4e1da; white-space: pre; position: relative; }
.code .pr { color: var(--primary); }
.keyline { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #0a0b0d; border: 1px solid var(--border-2); font: 500 14px/1.2 var(--font-m); word-break: break-all; }
kbd { font: 500 12px/1 var(--font-m); color: #cfd2c6; padding: 4px 7px; border-radius: 6px; background: rgba(228, 233, 240, .07); border: 1px solid var(--border-2); border-bottom-width: 2px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 16px; color: var(--muted); font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected=true] { color: var(--foreground); border-bottom-color: var(--primary); }

/* ---------- meters, stats ---------- */
.meter { height: 8px; border-radius: 99px; background: rgba(228, 233, 240, .08); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff9a4d, #ee6000); }
.stat { display: grid; gap: 6px; justify-items: start; }
.stat b { font: 700 32px/1 var(--font-d); letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: 13px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #ff9a4d, rgba(238, 96, 0, .35)); min-height: 4px; }

/* ---------- states ---------- */
.empty { text-align: center; padding: 56px 24px; border: 1px dashed var(--border-2); border-radius: 20px; display: grid; gap: 12px; justify-items: center; }
.empty h3 { font: 700 20px/1.2 var(--font-d); }
.empty p { color: var(--muted); max-width: 44ch; }
.empty .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(238, 96, 0, .12); color: var(--primary); }
.pending { border-style: dashed; }
.skel { border-radius: 14px; background: linear-gradient(100deg, #15171b 30%, #1d2026 50%, #15171b 70%); background-size: 200% 100%; animation: sk 1.4s linear infinite; min-height: 18px; }
@keyframes sk { to { background-position: -200% 0; } }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(243, 201, 105, .07); border: 1px solid rgba(243, 201, 105, .25); color: #ecd89a; font-size: 14px; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.notice.bad { background: rgba(255, 143, 132, .07); border-color: rgba(255, 143, 132, .3); color: #ffb3ab; }

/* ---------- drop zone, steps ---------- */
.drop { border: 1.5px dashed var(--border-2); border-radius: 18px; padding: 34px 20px; text-align: center; display: grid; gap: 10px; justify-items: center; transition: border-color .2s, background .2s; cursor: pointer; background: rgba(228, 233, 240, .02); }
.drop:hover, .drop.over { border-color: var(--primary); background: rgba(238, 96, 0, .06); }
.job-steps { display: flex; gap: 6px; }
.job-steps i { height: 5px; flex: 1; border-radius: 99px; background: rgba(228, 233, 240, .1); }
.job-steps i.on, .job-steps i.done { background: var(--primary); }
.job-steps i.done { opacity: .7; }
.job-steps i { position: relative; overflow: hidden; }
.job-steps i.live::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); transform: translateX(-100%); animation: jobsweep 1.3s ease-in-out infinite; }
@keyframes jobsweep { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .job-steps i.live::after { animation: none; } }

/* ---------- modal, toast ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(5, 6, 8, .72); backdrop-filter: blur(6px); animation: fade .15s; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 20px; padding: 26px; background: linear-gradient(180deg, #1a1d22, #14161a); border: 1px solid var(--border-2); box-shadow: 0 40px 80px -30px #000; display: grid; gap: 18px; }
.modal.wide { width: min(880px, 100%); }
.modal h2 { font: 700 22px/1.2 var(--font-d); letter-spacing: -.02em; }
.modal .acts { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.preview-frame { width: 100%; height: min(60vh, 520px); border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.toasts { position: fixed; z-index: 60; right: 20px; bottom: 20px; display: grid; gap: 10px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: 14px; color: #f1eee8; background: #1d2026; border: 1px solid var(--border-2); box-shadow: 0 20px 40px -20px #000; animation: rise .22s cubic-bezier(.2, .7, .2, 1); }
.toast.bad { border-color: rgba(255, 143, 132, .45); }
.toast svg { width: 17px; height: 17px; color: var(--good); }
.toast.bad svg { color: var(--bad); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- billing ---------- */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan { border-radius: 20px; padding: 24px; border: 1px solid var(--border); background: #14161a; display: grid; gap: 14px; align-content: start; position: relative; }
.plan.cur { border-color: rgba(238, 96, 0, .5); box-shadow: 0 0 0 1px rgba(238, 96, 0, .25), 0 30px 60px -40px rgba(238, 96, 0, .5); }
.plan .price { font: 700 38px/1 var(--font-d); letter-spacing: -.03em; }
.plan .price small { font: 500 14px/1 var(--font-b); color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; display: grid; gap: 9px; color: #c3cbd7; font-size: 14px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 16px; height: 16px; color: var(--primary); flex: none; margin-top: 3px; }
.plan.feat { background: radial-gradient(90% 60% at 50% -10%, rgba(238, 96, 0, .2), transparent 70%), #15171b; }

/* ---------- settings ---------- */
.set-grid { display: grid; gap: 18px; max-width: 760px; }
.danger-zone { border-color: rgba(255, 143, 132, .28); }
.conn { display: flex; align-items: center; gap: 14px; }
.glogo { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #fff; flex: none; }

/* ---------- clients (connect) ---------- */
.clients { display: grid; gap: 14px; }

@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 40; inset: 0 auto 0 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .25s cubic-bezier(.2, .7, .2, 1); box-shadow: 30px 0 80px -30px #000; }
  .side.open { transform: none; }
  .mobbar { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 30; padding: 12px 16px; background: rgba(13, 14, 17, .86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
  .mobbar .brand { padding: 0; }
  .main { padding: 26px 16px 64px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .li { grid-template-columns: 1fr; }
  .modcard { grid-template-columns: 1fr; }
  .toasts { left: 16px; right: 16px; }
}
@media (max-width: 700px) {
  .tbl-wrap { overflow: visible; border: 0; background: none; }
  table, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { background: #14161a; border: 1px solid var(--border); border-radius: 16px; padding: 8px 4px; margin-bottom: 12px; }
  td, td.r { border: 0; padding: 8px 14px; text-align: left; }
  td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; font: 600 11px/1 var(--font-b); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
  td .row { justify-content: flex-start !important; }
  tbody tr:hover td { background: none; }
}
@media (max-width: 520px) {
  .fgroup { flex-direction: column; align-items: stretch; flex: 1 1 140px; gap: 6px; }
  .fgroup .select { width: 100%; }
  .g4 { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .phead .acts { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* sign-in, email-link landing and reset */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(440px, 100%); display: grid; gap: 18px; padding: 28px; }
.auth-card h1 { font: 700 28px/1.15 var(--font-d); letter-spacing: -.02em; }
.auth-card .sub { margin-top: -8px; }
.auth-card .brand { text-decoration: none; }
.auth-card .btn { width: 100%; }
.auth-card .tabs { margin-bottom: 0; }
.auth-card [hidden] { display: none !important; }
.auth .or { text-align: center; color: var(--faint); font-size: 13px; }
.auth-card .brand { padding: 0 0 4px; }
.auth-card .brand img { height: 26px; }

/* =====================================================================================
   Workspace v2 (2026-12-04): Home and the guided start, styles and the style window, the viewer,
   new style (four ways in), connect your AI. Spacing runs on 4/8/12/16/20/24/32/48; type on 13/15/17/22/30/46.
   ===================================================================================== */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--foreground); color: #111; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
body.locked { overflow: hidden; }
.main:focus { outline: none; }
.fine { font-size: 13px; line-height: 1.5; }
.dim { color: var(--faint); }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lbl { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
a.fine, .fine a, .notice a, .muted a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.hr { height: 1px; background: var(--border); margin: 18px 0; }
.banners:empty { display: none; }
.banners { max-width: 1180px; margin: 0 auto 22px; display: grid; gap: 10px; }
.notice.banner { align-items: center; }
.notice .btn { flex: none; }
.seg button[aria-selected=true] { background: var(--card-2); color: var(--foreground); box-shadow: inset 0 0 0 1px var(--border-2); }
.seg button:focus-visible, .tabs button:focus-visible { outline-offset: -2px; }
.toast-act { margin-left: 6px; border: 1px solid var(--border-2); background: rgba(255, 255, 255, .06); border-radius: 8px; padding: 5px 10px; font: 600 13px/1 var(--font-b); color: var(--foreground); cursor: pointer; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(228, 233, 240, .15); border-top-color: var(--primary); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.primary { box-shadow: 0 10px 24px -14px rgba(238, 96, 0, .9); }

/* ---------- modal head ---------- */
.mhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.msub { color: var(--faint); font-size: 13px; margin-top: 2px; }
.modal.xl { width: min(1120px, 100%); height: min(820px, calc(100vh - 40px)); grid-template-rows: auto minmax(0, 1fr) auto; }

/* ---------- the viewer ---------- */
.viewer { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px; min-height: 0; }
.vfmts { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.vfmt { flex: none; border: 1px solid var(--border-2); background: transparent; color: var(--muted); padding: 8px 14px; border-radius: 999px; font: 600 13px/1 var(--font-b); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.vfmt:hover { color: var(--foreground); border-color: rgba(228, 233, 240, .4); }
.vfmt[aria-selected=true] { background: var(--foreground); color: #12161d; border-color: var(--foreground); }
.vstage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-height: 0; }
.vstage.has-list { grid-template-columns: 250px minmax(0, 1fr); }
.vlist { min-height: 0; overflow: auto; display: none; }
.vstage.has-list .vlist { display: block; }
.vsel { display: none; width: 100%; }
.vfiles { display: grid; gap: 2px; }
.vfile { display: grid; gap: 2px; text-align: left; border: 0; background: transparent; color: var(--muted); padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 13px; }
.vfile span { overflow-wrap: anywhere; font-family: var(--font-m); font-size: 12.5px; }
.vfile small { color: var(--faint); font-size: 11.5px; }
.vfile:hover { background: rgba(228, 233, 240, .05); color: var(--foreground); }
.vfile[aria-selected=true] { background: rgba(238, 96, 0, .12); color: var(--foreground); box-shadow: inset 2px 0 0 var(--primary); }
.vmain { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; min-height: 0; min-width: 0; }
.vhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vhead:empty { display: none; }
.vname { display: flex; gap: 10px; align-items: center; min-width: 0; }
.vname > svg { width: 20px; height: 20px; color: var(--primary); flex: none; }
.vname b { display: block; font: 600 15px/1.25 var(--font-m); overflow-wrap: anywhere; }
.vname span { font-size: 12.5px; color: var(--faint); }
.vacts { display: flex; gap: 8px; flex-wrap: wrap; }
.vbody { min-height: 0; overflow: hidden; display: grid; }
.vtext { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; min-height: 0; overflow: auto; border: 1px solid var(--border); border-radius: 14px; background: #0b0d11; }
.vgut, .vcode { margin: 0; font: 400 12.5px/1.65 var(--font-m); }
.vgut { color: #4a5363; text-align: right; padding: 14px 12px 14px 14px; user-select: none; border-right: 1px solid var(--border); position: sticky; left: 0; background: #0b0d11; min-height: 100%; }
.vcode { padding: 14px 18px; color: #d9dee6; white-space: pre; tab-size: 2; }
.vcode:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
.t-key { color: #9cc3ff; } .t-str { color: #a8e0b0; } .t-num { color: #ffb37a; } .t-kw { color: #ff9a4d; } .t-com { color: #6b7587; font-style: italic; } .t-fn { color: #e6c07b; } .t-dim { color: #6b7587; } .t-punc { color: var(--primary); }
.vload { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 14px; border: 1px dashed var(--border-2); border-radius: 14px; padding: 40px 20px; text-align: left; }
.vtree { overflow: auto; border: 1px solid var(--border); border-radius: 14px; background: #0f1218; padding: 8px; display: grid; gap: 8px; align-content: start; }
.vgroup { display: grid; gap: 1px; }
.vgh { display: flex; align-items: center; gap: 8px; padding: 8px 10px; color: var(--soft); font-size: 13px; }
.vgh svg { width: 15px; height: 15px; color: var(--primary); }
.vgh span { margin-left: auto; color: var(--faint); font-size: 12px; }
.vrow { display: flex; justify-content: space-between; gap: 12px; border: 0; background: transparent; color: var(--muted); padding: 6px 10px 6px 33px; border-radius: 8px; font: 400 12.5px/1.4 var(--font-m); text-align: left; cursor: pointer; }
.vrow:hover:not([disabled]) { background: rgba(228, 233, 240, .05); color: var(--foreground); }
.vrow[disabled] { cursor: default; opacity: .7; }
.vrow span { overflow-wrap: anywhere; }
.vrow small { color: var(--faint); flex: none; font-family: var(--font-b); }
.vmore { color: var(--faint); font-size: 12px; padding: 4px 33px; }
.vfoot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 14px; }
.vfoot > p { flex: 1 1 260px; color: var(--muted); font-size: 13px; }
.vbody .preview-frame { height: 100%; min-height: 360px; }

/* ---------- connect your AI ---------- */
.tool-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-tab { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--border-2); background: #12161d; color: var(--muted); padding: 7px 13px 7px 7px; border-radius: 12px; font: 600 13.5px/1 var(--font-b); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.tool-tab:hover { color: var(--foreground); border-color: rgba(228, 233, 240, .4); }
.tool-tab[aria-selected=true] { color: var(--foreground); border-color: rgba(238, 96, 0, .6); background: rgba(238, 96, 0, .1); }
.tlogo { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font: 700 10.5px/1 var(--font-m); background: #1e2531; color: var(--soft); }
.tool-tab[aria-selected=true] .tlogo { background: var(--grad); color: #171d26; }
.csteps { display: grid; gap: 12px; margin-top: 16px; }
.cstep { color: var(--soft); font-size: 14.5px; }
.cblock { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #0b0d11; }
.cbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--border); background: #11151c; }
.cbar > span { display: inline-flex; align-items: center; gap: 8px; color: var(--faint); font: 500 12.5px/1.3 var(--font-m); min-width: 0; overflow-wrap: anywhere; }
.cbar svg { width: 15px; height: 15px; flex: none; }
.cblock .code { border: 0; border-radius: 0; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ccheck { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; color: var(--muted); font-size: 14px; }
.ccheck svg { width: 18px; height: 18px; color: var(--good); flex: none; margin-top: 2px; }
.keys-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.usage { position: sticky; top: 24px; }

/* ---------- style cards ---------- */
.scards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.scard { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: #151a22; text-decoration: none; transition: transform .3s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .3s; }
.scard:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .9); }
.scard:focus-visible { outline-offset: 4px; border-radius: 20px; }
.band { display: flex; height: 118px; }
.band i { flex: 1; transition: flex .45s cubic-bezier(.2, .7, .2, 1); }
.band i.none { background: linear-gradient(135deg, #1e2531, #12161d); }
.scard:hover .band i:first-child { flex: 2.2; }
.band.mini { height: 24px; width: 64px; border-radius: 7px; overflow: hidden; flex: none; }
.scard-body { padding: 16px 18px 18px; display: grid; gap: 6px; }
.scard-body h3 { font: 650 18px/1.25 var(--font-d); letter-spacing: -.01em; }
.scard .meta { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; min-width: 0; }
.scard .meta svg { width: 15px; height: 15px; flex: none; }
.scard .meta.dim { color: var(--faint); }
.faces { font: 500 13.5px/1.3 var(--font-b); color: var(--soft); }
.scard.add { align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 28px; border-style: dashed; background: transparent; min-height: 200px; }
.add-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(238, 96, 0, .12); color: var(--primary); }

/* first style: the empty state is the invitation */
.first-style { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: center; padding: 40px; border-radius: 24px; border: 1px solid var(--border); background: radial-gradient(80% 120% at 0% 50%, rgba(238, 96, 0, .14), transparent 60%), #141920; }
.first-style h2 { font: 700 clamp(24px, 3vw, 32px)/1.1 var(--font-d); letter-spacing: -.02em; }
.first-style p { color: var(--muted); margin: 12px 0 20px; max-width: 52ch; }
.fs-art { position: relative; height: 210px; }
.fs-art i { position: absolute; left: 50%; top: 50%; width: 120px; height: 170px; border-radius: 18px; box-shadow: 0 24px 40px -20px #000, inset 0 0 0 1px rgba(255, 255, 255, .1); transform-origin: 50% 120%; transform: translate(-50%, -50%) rotate(calc((var(--i) - 2) * 11deg)); animation: fan .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes fan { from { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; } }

/* ---------- the style window ---------- */
.shero { position: relative; padding: 4px 0 28px; }
.shero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -8px 0 14px -10px; }
.title-row { display: flex; align-items: center; gap: 10px; }
.title-in { flex: 0 1 auto; field-sizing: content; max-width: 100%; min-width: 4ch;  background: transparent; border: 1px solid transparent; border-radius: 12px; color: var(--foreground); font: 700 clamp(30px, 4.4vw, 52px)/1.08 var(--font-d); letter-spacing: -.03em; padding: 2px 8px; margin-left: -9px; transition: border-color .15s, background .15s; }
.title-in:hover { border-color: var(--border); }
.title-in:focus { outline: none; border-color: var(--primary); background: #11151c; box-shadow: 0 0 0 3px rgba(238, 96, 0, .2); }
.pen { color: var(--faint); display: inline-flex; }
.pen svg { width: 18px; height: 18px; }
.shero .meta { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; margin-top: 6px; flex-wrap: wrap; min-width: 0; }
.shero .meta svg { width: 16px; height: 16px; }
.dot-sep { white-space: nowrap; }
.dot-sep::before { content: "·"; margin-right: 8px; color: var(--faint); }
.shero .meta .clip { max-width: 40ch; }
.swatch-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; margin-top: 26px; }
.sw { display: grid; gap: 3px; text-align: left; border: 0; padding: 0; background: none; cursor: pointer; color: inherit; }
.sw-fill { height: 92px; border-radius: 16px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 16px 30px -20px #000; margin-bottom: 7px; transition: transform .2s cubic-bezier(.2, .7, .2, 1); }
.sw:hover .sw-fill { transform: translateY(-3px); }
.sw-role { font: 600 13.5px/1.25 var(--font-b); }
.sw-hex { font: 500 12px/1.2 var(--font-m); color: var(--faint); }
.type-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 16px; }
.face { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border); background: #141920; }
.face .face-aa { font-size: 40px; line-height: 1; font-weight: 600; letter-spacing: -.02em; color: var(--foreground); min-width: 56px; }
.face b { display: block; font: 650 16px/1.25 var(--font-d); }
.face span { font-size: 13px; color: var(--faint); }
.sgrid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.sside { position: sticky; top: 24px; display: grid; gap: 16px; }
.use { display: grid; gap: 16px; background: radial-gradient(120% 80% at 100% 0%, rgba(238, 96, 0, .16), transparent 55%), linear-gradient(180deg, #19202a, #151a22); border-color: rgba(238, 96, 0, .3); }
.use .seg { width: 100%; }
.use .seg button { flex: 1; }
.say { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: #0b0d11; border: 1px solid var(--border-2); }
.say p { font: 500 14px/1.55 var(--font-m); color: #f1efe9; overflow-wrap: anywhere; }
.say .btn { justify-self: start; }
.asks { display: flex; flex-wrap: wrap; gap: 8px; }
.ask { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border-2); background: transparent; color: var(--soft); border-radius: 999px; padding: 7px 12px; font: 600 13px/1 var(--font-b); cursor: pointer; transition: border-color .15s, color .15s; }
.ask svg { width: 13px; height: 13px; opacity: .6; }
.ask:hover { color: var(--foreground); border-color: rgba(238, 96, 0, .6); }
.plain { display: grid; gap: 18px; }
.plain-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px 28px; }
.plain-sec h3 { font: 600 13px/1 var(--font-b); color: var(--accent-ink); margin-bottom: 10px; }
.plain-sec ul { list-style: none; padding: 0; display: grid; gap: 7px; }
.plain-sec li { font-size: 14.5px; color: var(--soft); padding-left: 14px; position: relative; }
.plain-sec li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--border-2); }
.plain .fine { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.plain .fine svg { width: 17px; height: 17px; color: var(--good); flex: none; margin-top: 1px; }
.exports { display: grid; gap: 18px; margin-top: 36px; }
.exports > .row h2 { font: 700 22px/1.2 var(--font-d); letter-spacing: -.015em; }
.xgroup h3 { font: 600 13px/1 var(--font-b); color: var(--faint); margin-bottom: 10px; }
.xcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1100px) { .xcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .xcards { grid-template-columns: 1fr; } }
.xcard { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; text-align: left; border: 1px solid var(--border); background: #151a22; color: inherit; padding: 14px 16px; border-radius: 16px; cursor: pointer; transition: border-color .2s, transform .2s cubic-bezier(.2, .7, .2, 1), background .2s; }
.xcard:hover { border-color: rgba(238, 96, 0, .5); transform: translateY(-2px); background: #171d26; }
.xic { grid-row: span 2; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(238, 96, 0, .1); color: var(--primary); }
.xic svg { width: 19px; height: 19px; }
.xtxt { display: grid; gap: 3px; }
.xtxt b { font: 650 15px/1.25 var(--font-d); }
.xtxt span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.xtype { grid-column: 2; font: 500 11.5px/1 var(--font-m); color: var(--faint); margin-top: 6px; }
.sfoot { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); }
/* the reveal when a new style lands: colours one by one, then type, then the panels (about 1.4 s end to end) */
.shero.reveal .title-row, .shero.reveal .meta { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.shero.reveal .meta { animation-delay: .08s; }
.shero.reveal .sw { animation: swIn .62s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 70ms + 160ms); }
.shero.reveal .sw-fill { animation: swGlow 1.4s ease-out both; animation-delay: calc(var(--i) * 70ms + 160ms); }
.shero.reveal .face { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 90ms + 700ms); }
.shero.reveal ~ .sgrid, .shero.reveal ~ .exports { animation: rise .7s cubic-bezier(.2, .8, .2, 1) .9s both; }
@keyframes swIn { from { opacity: 0; transform: translateY(22px) scale(.9); } }
@keyframes swGlow { 0% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 0 0 0 rgba(238, 96, 0, 0); } 40% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 0 36px -6px var(--c); } }

/* ---------- new style ---------- */
.newstyle { display: grid; gap: 20px; padding: 24px; transition: border-color .2s, background .2s; }
.newstyle.over { border-color: var(--primary); background: linear-gradient(180deg, #1d1a17, #16130f); }
.srcs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.src { display: grid; gap: 6px; justify-items: start; align-content: start; text-align: left; border: 1px solid var(--border); background: #12161d; color: var(--muted); padding: 16px; border-radius: 16px; cursor: pointer; transition: border-color .2s, background .2s, transform .2s cubic-bezier(.2, .7, .2, 1); font-size: 13px; line-height: 1.45; }
.src b { color: var(--foreground); font: 650 15px/1.25 var(--font-d); }
.src:hover { border-color: var(--border-2); transform: translateY(-2px); }
.src[aria-checked=true] { border-color: rgba(238, 96, 0, .7); background: radial-gradient(120% 120% at 0% 0%, rgba(238, 96, 0, .16), transparent 60%), #151a22; }
.src-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: #1e2531; color: var(--soft); margin-bottom: 4px; }
.src[aria-checked=true] .src-ic { background: var(--grad); color: #171d26; }
.src-ic svg { width: 19px; height: 19px; }
.srcpanel { display: grid; gap: 10px; }
.srcpanel .input { font-size: 17px; padding: 14px 16px; }
.drop { padding: 40px 20px; }
.drop-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(238, 96, 0, .12); color: var(--primary); margin-bottom: 4px; }
.ready { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px; border-radius: 16px; border: 1px solid rgba(111, 217, 160, .3); background: rgba(111, 217, 160, .05); }
.ready[hidden] { display: none; }
.ready-pic { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); max-height: 180px; background: #fff; }
.ready-pic img { display: block; width: 100%; height: auto; }
.ready p { margin: 4px 0 8px; font-size: 13.5px; }
.send-row .row > span:empty { display: none; }
.send-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 4px; }
.rights { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; color: var(--muted); font-size: 14px; max-width: 520px; }
.rights input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--primary); flex: none; }
.pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; max-height: 420px; overflow: auto; padding: 4px; }
.page { position: relative; border: 2px solid transparent; border-radius: 12px; padding: 0; background: #1e2531; aspect-ratio: 3 / 4; overflow: hidden; cursor: pointer; display: grid; place-items: center; }
.page .pg-img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.page .pg-n { position: absolute; left: 6px; bottom: 6px; font: 700 11px/1 var(--font-m); padding: 4px 6px; border-radius: 6px; background: rgba(10, 12, 16, .8); color: #fff; }
.page[aria-pressed=true] { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(238, 96, 0, .2); }
.page[aria-pressed=true]::after { content: "\2713"; position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #171d26; font-weight: 800; font-size: 13px; }
.jobs { margin-top: 32px; display: grid; gap: 12px; }
.jobs:empty { display: none; }
.jobs h2 { font: 700 20px/1.2 var(--font-d); }
.jlist { display: grid; gap: 10px; }
.job { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border); background: #141920; }
.job.live { border-color: rgba(238, 96, 0, .35); background: linear-gradient(90deg, rgba(238, 96, 0, .07), transparent 60%), #141920; }
.job.failed { border-color: rgba(255, 143, 132, .28); }
.job-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #1e2531; color: var(--soft); }
.job.live .job-ic { color: var(--primary); }
.job-main { display: grid; gap: 3px; min-width: 0; }
.job-main b { font: 600 15px/1.3 var(--font-d); }
.job-err { font-size: 13.5px; color: #ffb3ab; margin-top: 4px; }
.job-act { display: flex; gap: 8px; }
.jprog { margin-top: 8px; display: grid; gap: 6px; max-width: 460px; }

/* ---------- home ---------- */
.home-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: center; padding: 8px 0 32px; }
/* the style as stacked layers, after the brand mark: each layer one colour of your latest style; they land, then breathe apart */
.home-art { order: 1; position: relative; height: 300px; }
.home-art i { position: absolute; left: 50%; top: calc(24px + var(--i) * 30px); z-index: calc(10 - var(--i)); width: 168px; height: 168px; margin-top: -42px; border-radius: 22px; transform: translateX(-50%) rotateX(60deg) rotateZ(45deg); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16), 0 30px 40px -18px rgba(0, 0, 0, .9); animation: layerIn .9s cubic-bezier(.2, .8, .2, 1) both, breathe 5.6s ease-in-out infinite alternate; animation-delay: calc(var(--i) * 90ms), calc(.9s + var(--i) * 90ms); }
@keyframes layerIn { from { opacity: 0; transform: translateX(-50%) translateY(-60px) rotateX(60deg) rotateZ(45deg); } }
@keyframes breathe { to { transform: translateX(-50%) translateY(calc(var(--i) * 7px - 14px)) rotateX(60deg) rotateZ(45deg); } }
.hello { color: var(--accent-ink); font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.home-hero h1 { font: 700 clamp(32px, 4.6vw, 54px)/1.04 var(--font-d); letter-spacing: -.035em; max-width: 16ch; }
.home-hero .lead { color: var(--muted); font-size: 17px; max-width: 54ch; margin: 14px 0 22px; }
.guide { padding: 0; overflow: hidden; }
.guide-head { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.guide-head h2 { font: 700 21px/1.2 var(--font-d); }
.guide-head p { font-size: 14px; margin-top: 4px; }
.ring { --p: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none; background: conic-gradient(var(--primary) calc(var(--p) * 1%), rgba(228, 233, 240, .1) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #171d26; }
.ring b { position: relative; font: 700 14px/1 var(--font-d); }
.guide-body { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: 360px; }
.steps { list-style: none; padding: 12px; margin: 0; display: grid; gap: 4px; align-content: start; border-right: 1px solid var(--border); background: #141920; }
.step { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; border: 0; background: transparent; color: var(--muted); padding: 12px; border-radius: 14px; cursor: pointer; transition: background .15s, color .15s; }
.step:hover { background: rgba(228, 233, 240, .04); color: var(--foreground); }
.step.open { background: rgba(238, 96, 0, .1); color: var(--foreground); box-shadow: inset 0 0 0 1px rgba(238, 96, 0, .3); }
.step > svg { width: 16px; height: 16px; opacity: .5; }
.step-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--font-d); border: 1.5px solid var(--border-2); color: var(--soft); }
.step-n svg { width: 15px; height: 15px; }
.step.done .step-n { background: var(--good); border-color: var(--good); color: #0c2117; }
.step-t { display: grid; gap: 2px; }
.step-t b { font: 650 15px/1.25 var(--font-d); color: var(--foreground); }
.step-t span { font-size: 12.5px; color: var(--faint); line-height: 1.4; }
.step.done .step-t b { color: var(--muted); }
.step-pane { padding: 22px 24px 26px; min-width: 0; }
.step-pane h3 { font: 700 20px/1.2 var(--font-d); }
.step-pane > .stack { animation: rise .35s cubic-bezier(.2, .8, .2, 1); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form .input { flex: 1 1 240px; width: auto; }
.pick-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.pick { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); background: #12161d; color: var(--foreground); padding: 10px 12px; border-radius: 14px; cursor: pointer; text-align: left; font: 600 14px/1.25 var(--font-b); }
.pick.on { border-color: rgba(238, 96, 0, .7); background: rgba(238, 96, 0, .08); }
.connect.compact .code { max-height: 220px; overflow: auto; }
.guide-mini { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--border); background: #141920; color: var(--muted); font-size: 14px; }
.guide-mini > span { display: inline-flex; gap: 10px; align-items: center; }
.guide-mini svg { width: 16px; height: 16px; color: var(--primary); }
.home-recent { margin-top: 36px; display: grid; gap: 16px; }
.home-recent:empty { display: none; }
.home-recent h2 { font: 700 22px/1.2 var(--font-d); }

/* ---------- plan, settings, items ---------- */
.beta-card { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid rgba(238, 96, 0, .35); background: #151a22; padding: clamp(24px, 4vw, 44px); margin-bottom: 20px; }
.beta-glow { position: absolute; inset: -40% -10% auto auto; width: 70%; height: 180%; background: var(--grad-soft); pointer-events: none; }
.beta-main { position: relative; display: grid; gap: 14px; justify-items: start; max-width: 620px; }
.beta-main h2 { font: 700 clamp(32px, 5vw, 56px)/1.02 var(--font-d); letter-spacing: -.035em; }
.beta-main p { color: var(--soft); font-size: 16.5px; }
.incl { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 2px; }
.incl li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.incl li:first-child { border-top: 0; }
.incl b { display: block; font-weight: 600; font-size: 15px; }
.incl span:not(.incl-ic) { font-size: 13.5px; color: var(--muted); }
.incl-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(238, 96, 0, .1); color: var(--primary); flex: none; }
.incl-ic svg { width: 18px; height: 18px; }
.profile { display: flex; gap: 16px; align-items: center; min-width: 0; }
.avatar.lg { width: 52px; height: 52px; font-size: 20px; }
.item-open { display: block; width: 100%; border: 0; padding: 0; background: none; cursor: pointer; }

@media (max-width: 1100px) {
  .sgrid, .keys-grid { grid-template-columns: 1fr; }
  .sside, .usage { position: static; }
  .sside { order: -1; }
  .home-hero { grid-template-columns: 1fr; }
  .home-art { display: none; }
}
@media (max-width: 900px) {
  .srcs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-body { grid-template-columns: 1fr; }
  .steps { border-right: 0; border-bottom: 1px solid var(--border); }
  .first-style { grid-template-columns: 1fr; padding: 28px 22px; gap: 10px; }
  .fs-art { height: 180px; }
  body.menu-open .mobbar, body.menu-open .main { filter: brightness(.45); transition: filter .25s; }
  .vstage.has-list { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .vstage.has-list .vlist { overflow: visible; }
  .vfiles { display: none; }
  .vsel { display: block; }
  .modal.xl { height: calc(100vh - 24px); padding: 18px; }
  .scrim { padding: 12px; }
}
@media (max-width: 640px) {
  .srcs { gap: 8px; }
  .src { padding: 12px; }
  .src span:not(.src-ic) { display: none; }
  .ready { grid-template-columns: 1fr; }
  .job { grid-template-columns: auto minmax(0, 1fr); }
  .job-act { grid-column: 1 / -1; }
  .job-act:empty { display: none; }
  .swatch-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sw-fill { height: 72px; }
  .band { height: 96px; }
  .guide-head { padding: 18px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
  .guide-head > .btn { grid-column: 1 / -1; justify-self: start; margin-left: -10px; }
  .step-pane { padding: 18px; }
  .vgut { display: none; }
  .vtext { grid-template-columns: minmax(0, 1fr); }
  .vacts .btn { padding: 7px 10px; }
  .send-row .row { width: 100%; }
  .send-row .btn.primary { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .home-art i, .fs-art i { animation: none !important; }
}

/* =====================================================================================
   Phones (2026-12-05): a floating tab bar for the main journey and a More sheet for the rest, modals as sheets you can
   swipe away, the viewer's Copy and Download docked under the thumb, 44 px targets, 16 px inputs, press states everywhere.
   ===================================================================================== */
html { -webkit-tap-highlight-color: transparent; }
@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }
.tabbar, .sheet, .mob-who, .modal .grab { display: none; }
.modal.xl .mbody { min-height: 0; display: grid; }
.vdock:empty { display: none; }
.vdock { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .side { display: none; }
  .mobbar { padding: calc(8px + env(safe-area-inset-top)) 12px 8px 16px; transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
  .mobbar.away { transform: translateY(-105%); }
  .mob-who { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; text-decoration: none; }
  .mob-who .avatar { width: 34px; height: 34px; box-shadow: 0 0 0 2px rgba(238, 96, 0, .25); transition: transform .15s; }
  .mob-who:active .avatar { transform: scale(.9); }
  .main { padding: 22px 16px calc(112px + env(safe-area-inset-bottom)); }
  .has-tabbar .toasts { bottom: calc(96px + env(safe-area-inset-bottom)); left: 16px; right: 16px; }

  /* the tab bar: a floating glass pill */
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; z-index: 45; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 6px; border-radius: 24px;
    background: rgba(16, 18, 22, .8); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); border: 1px solid rgba(228, 233, 240, .1);
    box-shadow: 0 20px 44px -14px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06); }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 56px; padding: 0; border: 0; border-radius: 18px; background: none; color: var(--muted); text-decoration: none; font: 600 11px/1 var(--font-b); letter-spacing: .01em; cursor: pointer; transition: color .2s, transform .2s cubic-bezier(.3, 1.5, .5, 1); }
  .tab-ic { display: grid; place-items: center; width: 48px; height: 30px; border-radius: 999px; transition: background .25s, box-shadow .25s, color .25s; }
  .tab svg { width: 21px; height: 21px; }
  .tab-l { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tab[aria-current=page] { color: var(--foreground); }
  .tab[aria-current=page] .tab-ic { background: rgba(238, 96, 0, .16); color: var(--primary); box-shadow: inset 0 0 0 1px rgba(238, 96, 0, .34); animation: tabOn .45s cubic-bezier(.3, 1.4, .5, 1); }
  .tab-new .tab-ic { background: var(--grad); color: #171d26; box-shadow: 0 8px 18px -8px rgba(238, 96, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .35); }
  .tab-new[aria-current=page] .tab-ic { background: var(--grad); color: #171d26; box-shadow: 0 0 0 3px rgba(238, 96, 0, .3), 0 8px 18px -8px rgba(238, 96, 0, .95); }
  .tab:active { transform: scale(.9); transition-duration: .08s; }
  .tab[aria-expanded=true] .tab-ic { background: rgba(228, 233, 240, .1); color: var(--foreground); }
  @keyframes tabOn { from { transform: scale(.7); opacity: .4; } }

  /* the More sheet */
  .sheet { display: block; position: fixed; inset: 0; z-index: 55; pointer-events: none; }
  .sheet.open { pointer-events: auto; }
  .sheet-scrim { position: absolute; inset: 0; background: rgba(5, 6, 8, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
  .sheet.open .sheet-scrim { opacity: 1; }
  .sheet-box { position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(100dvh - 56px); overflow-y: auto; overscroll-behavior: contain; padding: 6px 16px calc(18px + env(safe-area-inset-bottom));
    border-radius: 28px 28px 0 0; background: linear-gradient(180deg, #1b1e24, #121418 40%); border-top: 1px solid var(--border-2); box-shadow: 0 -30px 70px -20px #000;
    transform: translateY(104%); visibility: hidden; transition: transform .42s cubic-bezier(.2, .9, .25, 1), visibility 0s .42s; }
  .sheet.open .sheet-box { transform: none; visibility: visible; transition: transform .42s cubic-bezier(.2, .9, .25, 1), visibility 0s; }
  .sheet-box.dragging, .modal.dragging { transition: none !important; }
  .grab { display: block; width: 42px; height: 5px; border-radius: 99px; background: rgba(228, 233, 240, .24); margin: 6px auto 16px; }
  .sheet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .more-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 92px; padding: 14px; border-radius: 20px; border: 1px solid var(--border); background: #161a20; color: var(--soft); text-decoration: none; font: 600 14.5px/1.25 var(--font-b); transition: transform .15s, background .15s, border-color .15s; }
  .more-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(228, 233, 240, .06); color: var(--foreground); }
  .more-ic svg { width: 19px; height: 19px; }
  .more-tile .ext { position: absolute; right: 14px; top: 14px; opacity: .45; display: inline-flex; }
  .more-tile .ext svg { width: 14px; height: 14px; }
  .more-tile .cm-badge { position: absolute; right: 12px; top: 12px; margin: 0 !important; }
  .more-tile[aria-current=page] { color: var(--foreground); border-color: rgba(238, 96, 0, .5); background: radial-gradient(120% 120% at 0% 0%, rgba(238, 96, 0, .18), transparent 60%), #171b21; }
  .more-tile[aria-current=page] .more-ic { background: var(--grad); color: #171d26; }
  .more-tile:active { transform: scale(.96); background: #1c2128; }
  .sheet.open .more-tile { animation: tileIn .5s cubic-bezier(.2, .8, .2, 1) both; }
  .sheet.open .more-tile:nth-child(2) { animation-delay: 30ms; } .sheet.open .more-tile:nth-child(3) { animation-delay: 60ms; } .sheet.open .more-tile:nth-child(4) { animation-delay: 90ms; }
  .sheet.open .more-tile:nth-child(5) { animation-delay: 120ms; } .sheet.open .more-tile:nth-child(6) { animation-delay: 150ms; } .sheet.open .more-tile:nth-child(7) { animation-delay: 180ms; }
  @keyframes tileIn { from { opacity: 0; transform: translateY(18px) scale(.96); } }
  .sheet .side-foot { margin-top: 12px; padding-top: 0; grid-template-columns: minmax(0, 1fr); }
  .sheet .who { min-height: 48px; }
  .sheet .plan-card { min-height: 44px; }
  .sheet .side-foot .btn { width: 100%; }

  /* targets and inputs */
  .input, .select, textarea.input { font-size: 16px; min-height: 48px; }
  .select { min-width: 0; }
  .btn { min-height: 44px; }
  .btn.sm { min-height: 44px; padding: 0 14px; font-size: 14px; }
  .btn.icon { min-width: 44px; min-height: 44px; justify-content: center; }
  .btn.icon.sm { padding: 0; }
  .pill, .vfmt, .ask, .tool-tab, .seg button, .tabs button, .vfile, .vrow, .pick, .step, .toast-act { min-height: 44px; }
  .pill, .vfmt, .ask { display: inline-flex; align-items: center; }
  .seg button { padding: 0 16px; }
  .toast-act { padding: 0 14px; }
  a.fine, .cm-link, .cm-back { display: inline-flex; align-items: center; min-height: 44px; }
  .rights, .cm-check, .cm-lic { min-height: 44px; align-items: center; }
  .rights input, .cm-check input { width: 22px; height: 22px; margin-top: 0; }
  .toggle { width: 60px; height: 44px; border: 0; background: none; }
  .toggle::before { content: ""; position: absolute; left: 4px; right: 4px; top: 8px; bottom: 8px; border-radius: 999px; border: 1px solid var(--border-2); background: #101216; transition: background .2s, border-color .2s; }
  .toggle::after { top: 13px; left: 9px; }
  .toggle[aria-checked=true] { background: none; }
  .toggle[aria-checked=true]::before { background: rgba(238, 96, 0, .25); border-color: var(--primary); }
  .toggle[aria-checked=true]::after { transform: translateX(24px); }
  .phead { margin-bottom: 22px; gap: 16px; }
  .phead .acts { width: 100%; }
  .phead .acts .btn { flex: 1 1 auto; min-height: 50px; }
}

/* press states for touch; hover lifts stay on devices with a real pointer */
@media (hover: none) {
  .item:hover, .scard:hover, .xcard:hover, .src:hover, .cm-card:hover, .sw:hover .sw-fill { transform: none; box-shadow: none; }
  .scard:hover .band i:first-child { flex: 1; }
  .btn:active { transform: scale(.96); transition-duration: .08s; }
  .xcard:active, .scard:active, .src:active, .pick:active, .step:active, .item-open:active, .cm-card:active, .face:active, .job:active { transform: scale(.98); transition: transform .08s; }
  .ask:active, .vfmt:active, .pill:active, .tool-tab:active, .seg button:active, .vfile:active, .vrow:active, .tabs button:active { transform: scale(.95); transition: transform .08s; }
  .sw:active .sw-fill { transform: scale(.94); transition-duration: .08s; }
  .drop:active { background: rgba(238, 96, 0, .08); border-color: var(--primary); }
}

@media (max-width: 640px) {
  /* every dialog is a sheet; forms and the viewer fill the screen, a yes-or-no stays short */
  .scrim { padding: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; animation: fade .25s; }
  .modal, .modal.wide, .modal.xl { width: 100%; height: calc(100dvh - 12px - env(safe-area-inset-top)); max-height: none; padding: 0; gap: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 26px 26px 0 0; border-bottom: 0; box-shadow: 0 -30px 70px -20px #000;
    animation: sheetUp .44s cubic-bezier(.2, .9, .25, 1); transition: transform .26s cubic-bezier(.2, .9, .25, 1); }
  .modal.compact { height: auto; max-height: calc(100dvh - 40px); }
  .modal .grab { display: block; flex: none; margin: 8px auto 0; }
  .modal .mhead { flex: none; align-items: center; padding: 4px 10px 12px 20px; border-bottom: 1px solid var(--border); }
  .modal .mhead h2 { font-size: 19px; overflow-wrap: anywhere; }
  .modal .mbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 24px; }
  .modal.compact .mbody { flex: 0 1 auto; }
  .modal .acts { flex: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: rgba(18, 20, 24, .96); }
  .modal .acts .btn { width: 100%; min-height: 52px; font-size: 15px; white-space: normal; text-align: center; }
  .scrim.closing { animation: fadeOut .24s forwards; }
  .scrim.closing .modal { transform: translateY(102%); transition-duration: .24s; }
  @keyframes sheetUp { from { transform: translateY(100%); } }
  @keyframes fadeOut { to { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; } }

  /* the viewer: chips that scroll with a fade, the code scrolling inside its own panel, Copy and Download under the thumb */
  .modal.xl .mbody { padding: 12px 0 0; display: grid; overflow: hidden; }
  .viewer { gap: 12px; height: 100%; }
  .vfmts { padding: 0 16px 2px; gap: 8px; scrollbar-width: none; scroll-padding: 0 16px; scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 36px), transparent); }
  .vfmts::-webkit-scrollbar { display: none; }
  .vfmt { scroll-snap-align: start; padding: 0 16px; font-size: 14px; }
  .vstage { padding: 0 16px; }
  .vhead .vacts { display: none; }
  .vname b { font-size: 14px; }
  .vtext { border-radius: 12px; }
  .vcode { padding: 12px 14px; font-size: 12.5px; }
  .vfoot { display: grid; gap: 10px; margin: 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: rgba(18, 20, 24, .97); }
  .vfoot > p { display: none; }
  .vfoot > .btn { width: 100%; }
  .vfoot > .fine { font-size: 13px; }
  .vdock { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
  .vdock .btn { min-height: 52px; font-size: 15px; }
  .vbody .preview-frame { min-height: 0; }
  .vload { padding: 28px 16px; }

  /* page details */
  .phead h1 { font-size: 32px; }
  .phead p { font-size: 15px; }
  .home-hero { padding-bottom: 24px; }
  .home-hero .lead { font-size: 16px; }
  .home-hero .row .btn { flex: 1 1 auto; }
  .shero .meta .clip { max-width: 100%; }
  .title-in { font-size: 30px; }
  .sgrid { gap: 16px; }
  .card { padding: 18px; }
  .use .seg button { padding: 0 8px; }
  .keyline { font-size: 13px; }
  .xcard { padding: 14px; }
  .exports > .row { align-items: flex-start; }
  .first-style { padding: 24px 18px; }
  .toasts { left: 12px; right: 12px; }
  .toast { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .modal, .sheet-box, .scrim, .tab, .more-tile, .mobbar { animation: none !important; transition: none !important; }
}

/* the guided start: the ring fills from where it was; phones get an accordion */
.ring { transition: --p 1.2s cubic-bezier(.2, .8, .2, 1); }
.step > svg { transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
@media (max-width: 900px) {
  .guide-body { display: block; min-height: 0; }
  .steps { border: 0; padding: 8px; background: none; gap: 6px; }
  .steps li { border-radius: 18px; transition: background .25s, box-shadow .25s; }
  .steps li.is-open { background: #141920; box-shadow: inset 0 0 0 1px rgba(238, 96, 0, .32); }
  .steps li.is-open .step { background: none; box-shadow: none; }
  .step.open > svg { transform: rotate(90deg); opacity: .9; color: var(--primary); }
  .steps .step-pane { padding: 2px 14px 18px; }
  .steps .step-pane > .stack > h3:first-child { display: none; }
  .steps .step-pane .inline-form .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .ring { transition: none; } }
.upstat { display: grid; gap: 8px; color: var(--soft); }
.upstat:empty { display: none; }
.upstat .spin { width: 18px; height: 18px; border-width: 2px; }
.upmeter i { transition: width .2s ease-out; }
@media (max-width: 900px) {
  .main { overflow-x: clip; }
  .mobbar .brand { min-height: 44px; justify-content: center; }
  a.fine { min-width: 44px; justify-content: center; }
}
@media (max-width: 640px) {
  .vtext.prose .vcode { white-space: pre-wrap; overflow-wrap: anywhere; }
  .vtext { overscroll-behavior-x: contain; }
}
.auth { overflow-x: clip; }
@media (max-width: 900px) {
  .auth-card .brand { min-height: 44px; justify-content: center; }
  .title-in { min-height: 48px; }
}
/* table rows as compact cards: the first cell is the card's title, the rest are label-value pairs */
@media (max-width: 700px) {
  tr { padding: 6px 2px; border-radius: 18px; }
  td[data-label]:not([data-label=""]) { display: grid; grid-template-columns: minmax(84px, 32%) minmax(0, 1fr); gap: 12px; align-items: center; padding: 7px 14px; overflow-wrap: anywhere; }
  td[data-label]:not([data-label=""])::before { margin: 0; }
  td:first-child[data-label] { display: block; padding-top: 12px; padding-bottom: 10px; font: 650 16px/1.3 var(--font-d); border-bottom: 1px solid var(--border); margin-bottom: 4px; }
  td:first-child[data-label]::before { display: none !important; }
  td .select { width: 100%; }
  td[data-label=""]:empty { display: none; }
  td[data-label=""] { padding: 8px 14px 12px; }
  td[data-label=""] .btn { width: 100%; }
}
@media (max-width: 640px) {
  /* tool picker: one row that scrolls, like the viewer's formats */
  .tool-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 2px 18px 4px; scroll-padding: 0 18px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 36px), transparent); }
  .tool-tabs::-webkit-scrollbar { display: none; }
  .tool-tab { flex: none; }
  .connect .seg { width: 100%; }
  .connect .seg button { flex: 1; }
  .cbar { padding-left: 12px; }
}
@media (max-width: 700px) { td[data-label]:not([data-label=""]) > :not(.select) { justify-self: start; } }
