/* Built from /prompt/video/video.css by try/build.mjs. Edit the source, then rebuild. */
:root {
  --bg: #faf9f6; --paper: #fff; --sand: #f4f0e8; --ink: #171512; --muted: #66615a; --line: #e6e1d8; --line-2: #cfc8bd;
  --coral: #d73e1c; --coral-2: #b83215; --coral-soft: #fdf1ec; --green: #237b4b; --green-soft: #e5f3ea; --red-soft: #fbe9e6; --amber-soft: #fdf5e1; --amber: #8a5a00;
  --display: "Bricolage Grotesque", Georgia, serif; --body: Figtree, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 8px; }
header { position: sticky; top: 0; z-index: 10; background: rgba(250,249,246,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { max-width: 1180px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 8px; font: 800 16px/1 var(--display); letter-spacing: .04em; text-decoration: none; color: inherit; margin-right: auto; }
.brand img { width: 30px; height: 30px; object-fit: contain; mix-blend-mode: multiply; }
.tag { font: 700 10px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--coral-2); background: var(--coral-soft); border: 1px solid #f3cfc2; border-radius: 99px; padding: 5px 9px; }
.back { font-size: 14px; font-weight: 600; text-decoration: none; color: inherit; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--paper); }
/* Header credit balance (full editor): always on screen, opens the credit packs. */
.bar-credits { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 99px; background: #fbe9e3; color: #b3361a; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.bar-credits[hidden] { display: none; }
main { max-width: 1180px; margin: 0 auto; padding: 28px 20px 80px; display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 28px; align-items: start; }
h1 { font: 800 30px/1.1 var(--display); letter-spacing: -.02em; margin: 0 0 6px; }
.lede { color: var(--muted); margin: 0 0 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.soon { max-width: 620px; margin: 70px auto; padding: 0 20px; }
.soon-tag { display: inline-block; font: 700 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); background: var(--amber-soft); border: 1px solid #f0dfae; border-radius: 99px; padding: 6px 11px; margin-bottom: 14px; }
.soon-list { padding-left: 18px; margin: 0 0 14px; } .soon-list li { margin: 4px 0; }
.balance { display: flex; align-items: center; gap: 22px; padding: 14px 18px; margin-bottom: 12px; flex-wrap: wrap; }
.balance .k { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.balance strong { font: 800 24px/1.1 var(--display); }
.buy { margin-left: auto; border: 0; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 700; padding: 10px 16px; cursor: pointer; }
.buy:disabled { opacity: .45; cursor: default; }
.packs { display: grid; gap: 8px; margin-bottom: 12px; padding: 14px; }
.pack { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fcfbf8; cursor: pointer; text-align: left; width: 100%; }
.pack:hover { border-color: var(--coral); } .pack strong { font-size: 15px; } .pack span { color: var(--muted); font-size: 13px; }
.form { position: sticky; top: 80px; }
.label { display: block; font-weight: 700; font-size: 13px; margin: 18px 0 8px; } .label small { font-weight: 500; color: var(--muted); margin-left: 4px; }
.label:first-child { margin-top: 0; }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--sand); border-radius: 12px; }
.seg button { flex: 1; border: 0; background: none; border-radius: 9px; padding: 9px 8px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.seg.small button { font-size: 13px; padding: 7px 6px; }
.drop { display: flex; align-items: center; justify-content: center; border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 16px; text-align: center; color: var(--muted); cursor: pointer; background: #fcfbf8; font-size: 14px; }
.drop:hover, .drop.over { border-color: var(--coral); color: var(--ink); } .drop strong { color: var(--ink); }
.refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 10px; }
.ref { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--sand); aspect-ratio: 3/4; }
.ref img, .ref video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ref .audio { display: grid; place-items: center; height: 100%; font-size: 28px; }
.ref .tok { position: absolute; left: 5px; bottom: 5px; background: rgba(23,21,18,.82); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 99px; border: 0; cursor: pointer; }
.ref .x { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(23,21,18,.75); color: #fff; cursor: pointer; font-size: 13px; line-height: 1; }
.ref .busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(250,249,246,.75); font-size: 12px; font-weight: 600; text-align: center; padding: 4px; }
.ref.bad .busy { color: var(--coral-2); }
textarea { width: 100%; min-height: 130px; resize: vertical; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; background: var(--paper); line-height: 1.5; }
.hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.row label { font-size: 12px; font-weight: 600; color: var(--muted); display: grid; gap: 5px; }
select { width: 100%; border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 10px; background: var(--paper); font-size: 14px; color: var(--ink); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-top: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--coral); }
.quote { margin: 16px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--sand); font-size: 14px; }
.quote.warn { background: var(--red-soft); color: var(--coral-2); }
.go { width: 100%; margin-top: 12px; border: 0; border-radius: 12px; background: var(--coral); color: #fff; font-weight: 700; font-size: 16px; padding: 14px; cursor: pointer; }
.go:hover { background: var(--coral-2); } .go:disabled { opacity: .5; cursor: default; }
.status { min-height: 20px; margin: 10px 0 0; font-size: 13px; color: var(--green); } .status.err { color: var(--coral-2); }
.tabs { display: flex; gap: 6px; margin: 4px 0 14px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: none; padding: 10px 4px; margin-right: 12px; font-weight: 700; font-size: 15px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--coral); }
.jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.job { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.job .media { aspect-ratio: 9/16; max-height: 460px; background: #111; display: grid; place-items: center; color: #fff; font-size: 13px; text-align: center; }
.job .media video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.job .media .wait { display: grid; gap: 10px; place-items: center; padding: 20px; }
.spin { width: 28px; height: 28px; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: s 1s linear infinite; }
@keyframes s { to { transform: rotate(360deg); } }
.job .media.failed { background: var(--red-soft); color: var(--coral-2); padding: 18px; }
.job .media.unknown { background: var(--amber-soft); color: var(--amber); padding: 18px; }
.job .meta { padding: 12px 14px; display: grid; gap: 6px; }
.job .top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.pill { background: var(--sand); border-radius: 99px; padding: 3px 9px; font-weight: 600; font-size: 12px; }
.pill.ok { background: var(--green-soft); color: var(--green); } .pill.bad { background: var(--red-soft); color: var(--coral-2); } .pill.warn { background: var(--amber-soft); color: var(--amber); }
.job p { margin: 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.job .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.job .actions a, .job .actions button { font-size: 13px; font-weight: 600; border: 1px solid var(--line-2); border-radius: 99px; padding: 6px 12px; background: var(--paper); text-decoration: none; color: inherit; cursor: pointer; }
.empty { color: var(--muted); padding: 40px 20px; text-align: center; border: 1.5px dashed var(--line-2); border-radius: 14px; }
.tbl { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 13px; }
.tbl th, .tbl td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #fcfbf8; }
.tbl .n { text-align: right; white-space: nowrap; } .tbl .plus { color: var(--green); } .tbl .minus { color: var(--coral-2); }
@media (max-width: 900px) { main { grid-template-columns: minmax(0, 1fr); } .form { position: static; } }
@media (max-width: 520px) { main { padding: 20px 16px 60px; } .bar { padding: 10px 16px; } h1 { font-size: 26px; } .row { grid-template-columns: 1fr 1fr; } .tag { display: none; } .tbl { display: block; overflow-x: auto; } }
.tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tier { position: relative; display: grid; gap: 2px; text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 14px 12px 12px; background: #fcfbf8; cursor: pointer; }
.tier:hover { border-color: var(--coral); } .tier:disabled { opacity: .5; cursor: default; }
.tier .tl { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tier .tc { font: 800 22px/1.1 var(--display); } .tier .tb { font-size: 12px; color: var(--green); font-weight: 600; min-height: 16px; }
.tier .tp { font-size: 15px; font-weight: 700; margin-top: 4px; } .tier .tu { font-size: 11px; color: var(--muted); }
.tier .badge { position: absolute; top: -9px; right: 10px; background: var(--coral); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 99px; padding: 3px 8px; }
.perk { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 600; }
.buys { margin-top: 12px; font-size: 13px; } .buys summary { cursor: pointer; font-weight: 700; margin-bottom: 8px; }

/* Studio sidebar on the video pages (desktop); phones keep the top bar. */
.vpage .studio-sidebar { display: none; }
@media (min-width: 851px) {
  .vpage .studio-sidebar { position: fixed; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; overflow-y: auto; }
  .vpage header { margin-left: 240px; }
  .vpage .bar { max-width: none; padding-left: clamp(20px, 4vw, 48px); padding-right: clamp(20px, 4vw, 48px); }
  .vpage .brand { visibility: hidden; }
  .vpage main { margin: 0 0 0 240px; max-width: 1300px; padding: 28px clamp(20px, 4vw, 48px) 80px; }
  .vpage .soon { margin: 70px 0 0 calc(240px + clamp(20px, 6vw, 90px)); }
}
@media (min-width: 851px) and (max-width: 1150px) {
  .vpage header, .vpage main { margin-left: 214px; }
  .vpage .soon { margin-left: calc(214px + 24px); }
}
.vpage .studio-pill:empty { display: none; }
body.is-library main { grid-template-columns: minmax(0, 1fr); }
body.is-library .jobs { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.lib-head h1 { margin-bottom: 4px; }
.lib-filter { max-width: 420px; margin: 0 0 18px; }

/* Prompt helper */
.helper { margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line-2); background: var(--paper); border-radius: 99px; padding: 7px 13px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink); }
.chip:hover { border-color: var(--coral); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips.small .chip { padding: 5px 10px; font-size: 12px; }
.swap-opts { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--sand); display: grid; gap: 10px; }
.swap-opts .hint { margin: 0; color: var(--ink); font-weight: 600; }
.mini { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.text { width: 100%; border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 11px; background: var(--paper); font-size: 14px; }
.roles { display: grid; gap: 6px; } .role-row { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.swap-opts .check { margin-top: 6px; }
.linkish { border: 0; background: none; padding: 0; color: var(--coral-2); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.job .media.photo { background: var(--sand); } .job .media.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Reference frame step */
.frame-cta { padding: 12px; border-radius: 12px; background: var(--paper); border: 1px solid #f3cfc2; }
.frame-cta strong { display: block; font-size: 14px; } .frame-cta p { margin: 4px 0 10px; font-size: 13px; color: var(--muted); }
.go.small { width: auto; margin: 0; padding: 10px 16px; font-size: 14px; }
.frame-done { margin: 8px 0 0 !important; color: var(--green) !important; font-weight: 700; }
dialog.sheet { width: min(1120px, 96vw); max-height: 92vh; border: 0; border-radius: 18px; padding: 20px; background: var(--bg); color: var(--ink); overflow: auto; }
dialog.sheet::backdrop { background: rgba(23, 21, 18, .55); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-head h2 { margin: 0; font: 800 22px/1.2 var(--display); }
.sheet-x { border: 0; background: var(--sand); width: 34px; height: 34px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.sheet-lede { margin: 6px 0 16px; }
.sheet-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 14px; align-items: start; }
.fs-step { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.fs-step h3 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.fs-step h3 span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--coral); color: #fff; font-size: 12px; }
.fs-player { display: grid; gap: 8px; } .fs-player video { width: 100%; max-height: 52vh; border-radius: 10px; background: #000; object-fit: contain; }
.fs-scrub { width: 100%; accent-color: var(--coral); }
.fs-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.fs-time { font-weight: 700; font-variant-numeric: tabular-nums; }
.fs-step .go { margin-top: 0; }
.fs-frame, .fs-item { margin: 0; } .fs-frame img { width: 100%; max-height: 46vh; object-fit: contain; border-radius: 10px; background: #000; }
.fs-item img { width: 100%; max-height: 180px; object-fit: contain; border-radius: 10px; background: var(--sand); }
.fs-frame figcaption, .fs-item figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.fs-desc { min-height: 80px; }
.fs-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fs-compare figure { margin: 0; } .fs-compare img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: #000; }
.fs-compare figcaption { font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; margin-top: 3px; }
@media (max-width: 860px) {
  dialog.sheet { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; padding: 16px; }
  .sheet-grid { grid-template-columns: 1fr; }
  .fs-player video { max-height: 45vh; }
}

.fs-mine-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-height: 210px; overflow-y: auto; }
.fs-mine-pick { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--sand); cursor: pointer; aspect-ratio: 3 / 4; }
.fs-mine-pick:hover { border-color: var(--coral); } .fs-mine-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Link import + trim */
.link-import { display: flex; gap: 6px; margin-top: 8px; } .link-import .text { flex: 1; min-width: 0; }
.ref .trim { position: absolute; top: 5px; left: 5px; border: 0; border-radius: 99px; padding: 3px 8px; background: rgba(23,21,18,.82); color: #fff; font-size: 11px; font-weight: 700; cursor: pointer; }
.seg button { white-space: nowrap; }
dialog.trim-sheet { width: min(560px, 96vw); }
.trim-sheet video { width: 100%; max-height: 55vh; border-radius: 12px; background: #000; margin-bottom: 10px; }
.trim-bars { display: grid; gap: 6px; margin-bottom: 8px; } .trim-bars label { display: grid; grid-template-columns: 42px 1fr; align-items: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.trim-bars input { width: 100%; accent-color: var(--coral); }
.trim-sheet .fs-row { margin: 6px 0; }
@media (max-width: 860px) { dialog.trim-sheet { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; } }
.link-status { margin: 6px 0 0; min-height: 0; }

/* Embedded Square checkout */
.tier[aria-pressed="true"] { border-color: var(--coral); box-shadow: 0 0 0 2px var(--coral-soft); }
.pay-box { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--paper); display: grid; gap: 10px; }
.pay-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pay-head strong { font-size: 15px; } .pay-head span { font: 800 20px/1 var(--display); }
.pay-wallets { display: grid; gap: 8px; } .pay-wallets:empty { display: none; }
.pay-wallet { width: 100%; min-height: 46px; border: 0; border-radius: 10px; padding: 0; background: #000; cursor: pointer; overflow: hidden; }
.pay-wallet.cashapp { background: none; min-height: 0; }
.pay-wallet.google { background: none; }
@supports (-webkit-appearance: -apple-pay-button) {
  .pay-wallet.apple { -webkit-appearance: -apple-pay-button; -apple-pay-button-type: buy; -apple-pay-button-style: black; background: none; }
}
@supports not (-webkit-appearance: -apple-pay-button) {
  .pay-wallet.apple { color: #fff; font-weight: 700; } .pay-wallet.apple::after { content: "Apple Pay"; }
}
.pay-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.pay-or::before, .pay-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.pay-card { min-height: 90px; }
.pay-go { width: 100%; }
.pay-status { margin: 0; min-height: 0; } .pay-status:empty { display: none; }
.pay-fine { margin: 0; }
.pay-link { justify-self: start; border: 0; background: none; padding: 0; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; }
@media (max-width: 560px) { .pay-box { padding: 12px; } }

/* ---------- Phones first: most people make videos on their phone ---------- */
@media (max-width: 640px) {
  /* 16px stops iPhone from zooming in when a field is tapped */
  input, select, textarea, .text { font-size: 16px !important; }
  main { padding: 16px 14px 40px; gap: 18px; }
  h1 { font-size: 26px; margin-bottom: 4px; } .lede { font-size: 14px; }
  .card { padding: 16px 14px; border-radius: 14px; }
  .balance strong { font-size: 26px; }
  /* thumb-sized tap targets */
  .chip { min-height: 44px; padding: 10px 14px; font-size: 14px; }
  .chips { gap: 8px; }
  .seg button { min-height: 44px; font-size: 14px; padding: 10px 6px; }
  .row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .row select { min-height: 46px; padding-left: 10px; padding-right: 4px; }
  .check { min-height: 44px; display: flex; align-items: center; gap: 10px; }
  .check input { width: 22px; height: 22px; flex: 0 0 auto; }
  .drop { min-height: 88px; }
  .link-import { gap: 8px; } .link-import .chip { flex: 0 0 auto; }
  textarea#prompt { min-height: 130px; }
  /* the Generate button (with the price) follows you down the form */
  .go { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 6; min-height: 54px; box-shadow: 0 8px 24px rgba(214, 74, 40, .28); }
  .quote { font-size: 13px; }
  /* Library and video lists: two per row instead of one giant card */
  .jobs, body.is-library .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .job { border-radius: 12px; }
  .job .media { aspect-ratio: 9 / 16; max-height: none; overflow: hidden; }
  .job .media img, .job .media video { width: 100%; height: 100%; object-fit: cover; }
  .job .meta { padding: 9px 9px 10px; gap: 6px; }
  .job .top { font-size: 11px; gap: 4px; }
  .job .top .pill { padding: 2px 7px; }
  .job p { font-size: 12px; -webkit-line-clamp: 2; }
  .job .actions { display: grid; gap: 6px; }
  .job .actions a, .job .actions button { min-height: 40px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; padding: 6px 8px; }
  /* filter chips scroll sideways instead of getting cut off */
  .lib-filter { max-width: none; display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .lib-filter::-webkit-scrollbar { display: none; }
  .lib-filter button { flex: 0 0 auto; padding: 10px 14px; }
  .tabs { overflow-x: auto; scrollbar-width: none; } .tabs button { min-height: 44px; white-space: nowrap; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .tier { min-height: 44px; }
}
.check.consent { align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); margin-top: 6px; }
.check.consent input { margin-top: 2px; } .check.consent a, .hint.final a { color: var(--coral-2); font-weight: 600; }
.hint.final { margin: 10px 2px 2px; }

/* Model buttons: a short role under each name (Wan 3.0 Prime is the recommended default; Seedance is the highest quality). */
.seg .seg-tag { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.seg button[aria-pressed="true"] .seg-tag { color: var(--coral-2); }

/* Credit packs: what each pack makes, in videos. */
.tier .tv { display: block; font: 700 22px/1.1 var(--display); color: var(--ink); }
.tier .tvs { display: block; font-size: 12px; line-height: 1.4; color: var(--muted); }
.pack-makes { margin: 12px 0 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.pack-makes > summary { min-height: 44px; display: flex; align-items: center; padding: 0 14px; font-weight: 700; cursor: pointer; }
.pack-makes table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.pack-makes th, .pack-makes td { padding: 8px 6px; border-top: 1px solid var(--line); text-align: right; overflow-wrap: anywhere; }
.pack-makes th:first-child, .pack-makes td:first-child { text-align: left; width: 38%; }
.pack-makes thead th { font-size: 12px; color: var(--muted); font-weight: 600; }
.pack-makes .foot { margin: 0; padding: 10px 14px 12px; font-size: 12px; line-height: 1.5; color: var(--muted); border-top: 1px solid var(--line); }
