/* Tukuy platform: owner-facing pages (registro, entrar, empezar, mi-tienda). Dark, quiet, one accent.
   Fonts are the approved set from /fonts/fonts.css: Hanken Grotesk, Newsreader for accents, JetBrains Mono for numbers. */
:root {
  --bg: #09090a; --bg-2: #0f0f11; --card: #141416; --card-2: #1b1b1e; --card-3: #232327;
  --line: #222226; --line-2: #2e2e33;
  --text: #f4f4f2; --muted: #9c9ca3; --faint: #6c6c73;
  --accent: #4b48ee; --accent-hi: #5d5aff; --on-accent: #fff;
  --lime: #d9f66a; --coral: #f76b5e; --lav: #c3b7f2;
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif; --serif: Newsreader, Georgia, serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --r: 20px; --r-sm: 12px; --ease: cubic-bezier(.2, 0, 0, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html[lang="es"] body [lang="en"], html[lang="en"] body [lang="es"] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
::selection { background: var(--accent); color: #fff; }
.ic { width: 20px; height: 20px; flex: none; }
.mono, .num { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: -.02em; }
em.s { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

/* brand */
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; letter-spacing: -.02em; text-decoration: none; }
.brand [data-bird] { width: 30px; height: 26px; display: inline-block; }
.brand [data-bird] svg { width: 100%; height: 100%; display: block; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--accent); color: var(--on-accent); font-weight: 600; letter-spacing: -.01em; text-decoration: none; transition: background .2s var(--ease), transform .2s var(--ease), opacity .2s; white-space: nowrap; }
.btn:hover { background: var(--accent-hi); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.white { background: var(--text); color: #0a0a0b; }
.btn.white:hover { background: #fff; }
.btn.ghost { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: var(--card-3); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.block { width: 100%; height: 52px; font-size: 16px; }
.chip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.chip:hover { color: var(--text); border-color: var(--faint); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .02em; background: var(--card-3); color: var(--muted); }
.tag.lime { background: var(--lime); color: #121218; }
.tag.coral { background: rgba(247,107,94,.15); color: #ff8f84; }
.tag.blue { background: rgba(75,72,238,.2); color: #b3b1ff; }

label.f { display: grid; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.in, label.f input, label.f textarea, label.f select { width: 100%; height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font-size: 16px; font-weight: 400; transition: border-color .2s, box-shadow .2s; }
label.f textarea { height: auto; min-height: 96px; padding: 12px 16px; resize: vertical; line-height: 1.5; }
.in:focus, label.f input:focus, label.f textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(75,72,238,.25); }
.hint { font-size: 13px; color: var(--faint); font-weight: 400; }
.err { color: #ff8f84; font-size: 14px; }

/* "Muy pronto" (flag off) */
.soon { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: 24px; }
.soon [data-bird] { width: 72px; height: 60px; display: block; }
.soon h1 { font-size: 40px; font-weight: 600; letter-spacing: -.035em; }
.soon p { color: var(--muted); max-width: 34ch; }

/* ---------- registro / entrar ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.auth-l { position: relative; display: grid; grid-template-rows: auto 1fr auto; padding: 24px 32px; }
.auth-l header { display: flex; justify-content: space-between; align-items: center; }
.auth-box { width: 100%; max-width: 380px; margin: auto; display: grid; gap: 24px; padding: 48px 0; }
.auth-box h1 { font-size: 40px; line-height: 1.05; font-weight: 600; letter-spacing: -.04em; }
.auth-box .sub { color: var(--muted); font-size: 16px; margin-top: -8px; text-wrap: pretty; }
.auth-box form { display: grid; gap: 16px; }
.auth-box .fine { font-size: 13px; color: var(--faint); }
.auth-box .fine a, .auth-box .swap a { color: var(--text); text-underline-offset: 3px; }
.auth-box .swap { font-size: 14px; color: var(--muted); text-align: center; }
.auth-foot { font-size: 12px; color: var(--faint); display: flex; justify-content: space-between; gap: 16px; }
.auth-r { position: relative; overflow: hidden; background: #e9e6df; }
.auth-r::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,9,10,.35), transparent 18%); pointer-events: none; }
.collage { position: absolute; left: 50%; top: 50%; width: 1300px; height: 1700px; display: flex; gap: 24px; transform: translate(-50%, -50%) rotate(-14deg); }
.col { display: flex; flex-direction: column; gap: 24px; animation: drift 90s linear infinite; }
.col:nth-child(2) { animation-duration: 120s; animation-direction: reverse; margin-top: -180px; }
.col:nth-child(3) { animation-duration: 100s; margin-top: -60px; }
.col:nth-child(4) { animation-duration: 130s; animation-direction: reverse; margin-top: -260px; }
@keyframes drift { to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .col { animation: none; } }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .auth-r { display: none; } .auth-l { padding: 16px 20px; } .auth-box h1 { font-size: 34px; } }

/* mini store page used in the collage */
.mini { width: 280px; flex: none; border-radius: 28px; background: #fff; color: #17171a; overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 20px 40px -20px rgba(0,0,0,.25); font-size: 12px; }
.mini .cv { height: 150px; background: var(--a) center/cover no-repeat; position: relative; }
.mini .cv.type { display: grid; place-items: end start; padding: 16px; color: #fff; font: italic 400 34px/1 var(--serif); letter-spacing: -.02em; }
.mini .lg { width: 48px; height: 48px; border-radius: 14px; background: var(--a); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 20px; margin: -24px 0 0 16px; position: relative; border: 3px solid #fff; }
.mini .nm { padding: 8px 16px 0; font-weight: 700; font-size: 17px; letter-spacing: -.02em; display: flex; justify-content: space-between; align-items: center; }
.mini .nm b { font-weight: 600; font-size: 11px; color: #fff; background: var(--a); border-radius: 999px; padding: 5px 10px; }
.mini .tl { padding: 2px 16px 0; color: #6a6a70; font-family: var(--serif); font-style: italic; font-size: 13px; }
.mini .tb { display: flex; gap: 16px; padding: 12px 16px 0; border-bottom: 1px solid #eee; color: #8a8a90; font-weight: 600; }
.mini .tb span { padding-bottom: 8px; }
.mini .tb .on { color: #17171a; box-shadow: inset 0 -2px 0 var(--a); }
.mini .gr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 16px 16px; }
.mini .pr { display: grid; gap: 4px; }
.mini .pr i { display: block; aspect-ratio: 1; border-radius: 12px; background: var(--t) center/cover no-repeat; }
.mini .pr span { font-weight: 600; line-height: 1.2; }
.mini .pr small { font-family: var(--mono); color: #6a6a70; }
.mini .ls { padding: 8px 16px 16px; display: grid; gap: 0; }
.mini .ls div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-weight: 600; }
.mini .ls small { font-family: var(--mono); font-weight: 400; color: #6a6a70; }
.mini .qr { padding: 16px; display: grid; gap: 8px; justify-items: center; text-align: center; }
.mini .qr svg { width: 150px; height: 150px; }
.mini .qr .tt { font: 600 28px/1 var(--mono); letter-spacing: -.04em; }
.mini .qr .pay { width: 100%; background: #17171a; color: #fff; border-radius: 999px; padding: 10px; font-weight: 600; }

/* ---------- empezar (onboarding) ---------- */
.top { height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.top .crumb { color: var(--muted); font-weight: 600; padding-left: 16px; border-left: 1px solid var(--line-2); }
.top .sp { flex: 1; }
.ob-bar { display: flex; align-items: center; gap: 16px; padding: 20px 24px; }
.back { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--text); font-weight: 600; padding: 8px 4px; }
.back:disabled { visibility: hidden; }
.prog { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.prog .track { width: min(320px, 40vw); height: 4px; border-radius: 4px; background: var(--card-3); overflow: hidden; }
.prog .fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width .5s var(--ease); }
.ob { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 440px); gap: 48px; justify-content: center; align-items: center; padding: 32px 24px 64px; min-height: calc(100vh - 160px); }
.q { display: grid; gap: 24px; align-content: center; animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.q h1 { font-size: 40px; line-height: 1.08; font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
.q .sub { color: var(--muted); font-size: 16px; margin-top: -12px; }
.tiles { display: grid; gap: 12px; }
.tiles.two { grid-template-columns: 1fr 1fr; }
.tile { display: flex; align-items: center; gap: 16px; min-height: 88px; padding: 16px 20px; border-radius: var(--r); border: 0; background: var(--card-2); text-align: left; font-weight: 600; font-size: 17px; letter-spacing: -.01em; box-shadow: inset 0 0 0 1px transparent; transition: background .2s, box-shadow .2s, transform .2s var(--ease); }
.tile:hover { background: var(--card-3); }
.tile:active { transform: scale(.99); }
.tile .ic { width: 44px; height: 44px; }
.tile .lbl { flex: 1; line-height: 1.25; }
.tile .lbl small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }
.tile .rd { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-2); flex: none; transition: box-shadow .2s; }
.tile[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent); background: var(--card-3); }
.tile[aria-pressed="true"] .rd { box-shadow: inset 0 0 0 7px var(--accent); }
.name-in { height: 60px; font-size: 20px; border-radius: 16px; }
.again { justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--card-2); font-weight: 600; font-size: 14px; }
.again:hover { background: var(--card-3); }
.again .ic { width: 18px; height: 18px; }
.samples { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.smp { border: 0; padding: 0; background: var(--card-2); border-radius: var(--r); overflow: hidden; text-align: left; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s, transform .2s var(--ease); }
.smp i { display: block; height: 104px; background: var(--a) center/cover no-repeat; }
.smp i.type { display: grid; place-items: end start; padding: 12px; color: #fff; font: italic 400 24px/1 var(--serif); }
.smp span { display: block; padding: 12px 16px 16px; font-weight: 600; }
.smp small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.smp[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 2px var(--accent); }
.linkish { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; justify-self: start; padding: 0; font-size: 14px; }
.done { text-align: left; }
.done [data-bird] { width: 84px; height: 70px; display: block; animation: hop .9s var(--ease); }
@keyframes hop { 0% { transform: translateY(16px) rotate(-8deg); opacity: 0; } 60% { transform: translateY(-6px) rotate(3deg); opacity: 1; } }
.addr { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 14px; background: var(--card-2); font-family: var(--mono); font-size: 14px; min-width: 0; }
.addr span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }

/* live preview card (Whop step 4) */
.pv { border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; position: sticky; top: 24px; }
.pv-cv { height: 168px; background: var(--card-2) center/cover no-repeat; position: relative; display: grid; place-items: center end; padding-right: 40px; transition: background-color .4s; }
.pv-cv .ic { width: 96px; height: 96px; transform: rotate(-6deg); filter: drop-shadow(0 10px 20px rgba(0,0,0,.35)); }
.pv-lg { width: 96px; height: 96px; border-radius: 24px; margin: -56px 0 0 20px; position: relative; background: var(--card-3); box-shadow: 0 0 0 6px var(--card); display: grid; place-items: center; font-size: 38px; font-weight: 700; color: #fff; transition: background .4s; }
.pv-lg .ic { width: 44px; height: 44px; opacity: .9; }
.pv-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; }
.pv-hd h2 { font-size: 26px; font-weight: 700; letter-spacing: -.03em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-hd h2.ph { color: var(--faint); }
.pv-buy { height: 38px; padding: 0 16px; border-radius: 10px; background: var(--pa, var(--accent)); color: #fff; font-weight: 600; display: grid; place-items: center; flex: none; transition: background .4s; }
.pv-tabs { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.pv-tabs span { padding: 14px 0; }
.pv-tabs .on { color: var(--text); box-shadow: inset 0 -2px 0 var(--pa, var(--accent)); }
.pv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 20px 20px; }
.pv-p { border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.pv-p i { display: block; aspect-ratio: 4/3; background: var(--card-2) center/cover no-repeat; }
.pv-p div { padding: 10px 12px 12px; display: grid; gap: 6px; }
.pv-p b { font-weight: 600; font-size: 13px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-p small { font-family: var(--mono); color: var(--muted); font-size: 12px; }
.sk { display: block; height: 8px; border-radius: 4px; background: var(--card-3); }
@media (max-width: 960px) {
  .ob { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 8px 20px 48px; align-items: start; min-height: 0; }
  .pv { position: static; max-width: 440px; }
  .q h1 { font-size: 30px; }
  .top { padding: 0 16px; } .top .crumb { display: none; }
  .ob-bar { padding: 12px 16px; }
}
@media (max-width: 520px) { .tiles.two, .samples { grid-template-columns: 1fr; } .tile { min-height: 72px; } .pv-cv { height: 128px; } .pv-lg { width: 72px; height: 72px; font-size: 28px; margin-top: -40px; border-radius: 18px; } }

/* ---------- mi-tienda (owner dashboard, Whop-like) ---------- */
.dash { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 8px; padding: 16px 12px; border-right: 1px solid var(--line); background: var(--bg); }
.side .brand { padding: 4px 8px 12px; }
.who { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 8px; min-width: 0; }
.who .lg { width: 40px; height: 40px; border-radius: 12px; background: var(--sa, var(--accent)) center/cover; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; }
.who b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { color: var(--muted); font-size: 12px; }
.who > div { min-width: 0; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 10px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 500; transition: background .15s, color .15s; }
.nav a:hover { background: var(--card); color: var(--text); }
.nav a[aria-current="page"] { background: var(--card-2); color: var(--text); }
.nav a .ic { width: 22px; height: 22px; }
.nav .badge { margin-left: auto; font: 600 11px var(--mono); background: var(--accent); color: #fff; border-radius: 999px; padding: 2px 7px; }
.side .sp { flex: 1; }
.side .foot { display: grid; gap: 4px; padding: 8px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.side .foot button { background: none; border: 0; padding: 0; color: var(--muted); text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.main { min-width: 0; padding: 24px 40px 80px; }
.mhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.mhead h1 { font-size: 28px; font-weight: 650; letter-spacing: -.035em; margin-right: auto; }
.card { background: var(--card); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
.home-g { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.hero { padding: 24px; display: grid; gap: 4px; }
.hero .lbl { color: var(--muted); font-size: 14px; }
.hero .amt { font: 500 48px/1.05 var(--mono); letter-spacing: -.06em; }
.hero .amt small { font: 400 14px var(--sans); letter-spacing: 0; color: var(--faint); margin-left: 8px; }
.hero svg.chart { width: 100%; height: 180px; margin-top: 16px; display: block; overflow: visible; }
.hero .axis { display: flex; justify-content: space-between; color: var(--faint); font: 12px var(--mono); margin-top: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.stat { padding: 16px 20px; display: grid; gap: 4px; text-decoration: none; transition: background .15s; }
a.stat:hover { background: var(--card-2); }
.stat span { color: var(--muted); font-size: 13px; }
.stat b { font: 500 28px var(--mono); letter-spacing: -.05em; }
.check { padding: 20px; display: grid; gap: 12px; }
.check h2, .fee h2 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.segs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; align-items: center; }
.segs i { height: 4px; border-radius: 4px; background: var(--card-3); }
.segs i.on { background: var(--lime); }
.segs-l { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.steps li { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 8px; border-radius: 10px; }
.steps li.next { background: var(--card-2); }
.steps .bx { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-2); flex: none; }
.steps li.ok .bx { box-shadow: none; }
.steps li.ok .ic { width: 20px; height: 20px; }
.steps li.ok .nm { color: var(--faint); text-decoration: line-through; text-decoration-color: var(--line-2); }
.steps .nm { flex: 1; font-size: 14px; }
.steps .tm { font: 12px var(--mono); color: var(--faint); }
.fee { padding: 20px; display: grid; gap: 8px; margin-top: 16px; }
.fee .amt { font: 500 32px var(--mono); letter-spacing: -.05em; }
.fee p { color: var(--muted); font-size: 13px; }
.list { display: grid; }
.list .r { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.list .r:last-child { border-bottom: 0; }
.list .r i { width: 56px; height: 56px; border-radius: 12px; background: var(--card-3) center/cover; display: grid; place-items: center; font: italic 400 22px var(--serif); color: var(--muted); font-style: italic; }
.list .r b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .r small { color: var(--muted); font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .r .p { font-family: var(--mono); }
.hdr-note { color: var(--muted); font-size: 13px; margin: -12px 0 16px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filters button { height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); font-weight: 600; font-size: 13px; }
.filters button[aria-pressed="true"] { background: var(--text); color: #0a0a0b; box-shadow: none; }
.orders { display: grid; gap: 12px; }
.order { padding: 16px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
.order .who2 { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.order .who2 b { font-weight: 600; }
.order .who2 a { color: var(--muted); font-size: 13px; }
.order .items { color: var(--muted); font-size: 14px; grid-column: 1; }
.order .tot { font: 500 22px var(--mono); letter-spacing: -.04em; text-align: right; }
.order .acts { grid-column: 1 / 3; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.order .when { color: var(--faint); font: 12px var(--mono); margin-left: auto; }
.empty-st { padding: 48px 24px; display: grid; justify-items: center; gap: 12px; text-align: center; }
.empty-st .ic { width: 64px; height: 64px; }
.empty-st b { font-size: 17px; }
.empty-st p { color: var(--muted); max-width: 40ch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .n { font-family: var(--mono); text-align: right; }
.tbl-wrap { overflow-x: auto; }
.form-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.fs { padding: 24px; display: grid; gap: 16px; }
.fs h2 { font-size: 16px; font-weight: 600; }
.fs > p { color: var(--muted); font-size: 13px; margin-top: -8px; }
.up { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: center; }
.up i { width: 88px; height: 88px; border-radius: 16px; background: var(--card-3) center/contain no-repeat; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); }
.up i.cov { background-size: cover; }
.up i.qr { background-color: #fff; }
.up b { display: block; font-weight: 600; }
.up small { color: var(--muted); font-size: 13px; display: block; margin-bottom: 8px; }
.up input[type=file] { display: none; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatches button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.swatches input[type=color] { width: 32px; height: 32px; border: 0; padding: 0; background: none; border-radius: 50%; }
.prefix { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); overflow: hidden; }
.prefix span { padding: 0 4px 0 16px; color: var(--faint); font: 14px var(--mono); white-space: nowrap; }
.prefix input { border: 0 !important; background: none !important; box-shadow: none !important; padding-left: 0 !important; font-family: var(--mono) !important; font-size: 14px !important; min-width: 0; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--card-3); position: relative; flex: none; transition: background .2s; cursor: pointer; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(18px); }
dialog.modal { width: min(520px, calc(100vw - 32px)); border: 0; border-radius: 24px; padding: 0; background: var(--card); color: var(--text); box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -20px rgba(0,0,0,.6); }
dialog.modal::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(3px); }
dialog.modal form { display: grid; gap: 16px; padding: 24px; }
dialog.modal h2 { font-size: 20px; font-weight: 650; letter-spacing: -.03em; }
.mrow { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--text); color: #0a0a0b; font-weight: 600; font-size: 14px; padding: 12px 18px; border-radius: 999px; transition: all .3s var(--ease); pointer-events: none; z-index: 99; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1100px) { .home-g { grid-template-columns: 1fr; } .form-g { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .side { min-width: 0; }
  .side { position: sticky; z-index: 20; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 8px 12px; gap: 8px; border-right: 0; border-bottom: 1px solid var(--line); background: rgba(9,9,10,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .side .brand { padding: 4px; }
  .side .who { margin: 0 0 0 auto; padding: 4px; background: none; box-shadow: none; }
  .side .who > div, .side .sp, .side .foot { display: none; }
  .who .lg { width: 32px; height: 32px; border-radius: 10px; font-size: 14px; }
  .nav { order: 3; width: 100%; display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; width: calc(100% + 24px); }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; height: 36px; font-size: 14px; }
  .nav a .ic { width: 18px; height: 18px; }
  .main { padding: 16px 16px 64px; }
  .mhead h1 { font-size: 24px; width: 100%; }
  .hero .amt { font-size: 40px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stat { padding: 12px; } .stat b { font-size: 22px; }
  .list .r { grid-template-columns: 48px minmax(0, 1fr) auto; } .list .r i { width: 48px; height: 48px; } .list .r .p { display: none; }
}
