:root {
  --ink: #151a2d;
  --ink-2: #3b4160;
  --muted: #6b7090;
  --line: #e3e3ee;
  --paper: #f7f7fb;
  --card: #ffffff;
  --brand: #c2185b;
  --brand-ink: #ffffff;
  --brand-soft: #fbe4ee;
  --ok: #1f8a5b;
  --ok-soft: #e3f4ec;
  --warn: #b7791f;
  --warn-soft: #fbf1df;
  --err: #c0392b;
  --err-soft: #fbe6e3;
  --info-soft: #e8eef8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 33, 46, .05), 0 6px 24px rgba(22, 33, 46, .06);
  --display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); font-size: 15px; line-height: 1.5; }
a { color: var(--ink); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-family: var(--display); font-weight: 600; font-size: 30px; letter-spacing: -.01em; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
code { background: #eeeef6; padding: 1px 6px; border-radius: 6px; font-size: 13px; }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--ink); color: #dfe5ee; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.side .logo { font-family: var(--display); font-size: 21px; color: #fff; text-decoration: none; padding: 4px 10px 14px; display: flex; gap: 8px; align-items: center; }
.side .logo i { width: 26px; height: 26px; border-radius: 8px; background: var(--brand); display: inline-block; }
.side a.nav { display: flex; gap: 10px; align-items: center; color: #c7d0dc; text-decoration: none; padding: 8px 10px; border-radius: 9px; font-weight: 600; font-size: 14px; }
.side a.nav:hover { background: rgba(255,255,255,.07); color: #fff; }
.side a.nav.on { background: rgba(255,255,255,.12); color: #fff; }
.side .sec { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8794a6; padding: 14px 10px 4px; }
.side .badge { margin-left: auto; background: var(--brand); color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 8px; }
.side .foot { margin-top: auto; padding-top: 14px; font-size: 13px; color: #9aa6b6; }
.side .foot a { color: #c7d0dc; }
.main { padding: 26px 34px 60px; max-width: 1240px; width: 100%; min-width: 0; }
.caption-preview, .card { overflow-wrap: anywhere; }
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.topbar .spacer { flex: 1; }
.credits-pill { background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; font-weight: 700; font-size: 13px; text-decoration: none; }
.credits-pill b { color: var(--brand); }
select.brand-switch { font-weight: 700; }
.btn.menu-btn { display: none; }

/* ---------- components ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.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)); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.stat { font-family: var(--display); font-size: 32px; font-weight: 600; line-height: 1; }
.stat-label { color: var(--muted); font-size: 13px; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: 10px; padding: 9px 16px; font: 700 14px var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.15); }
.btn.primary { background: var(--brand); border-color: var(--brand); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: #efeff7; filter: none; }
.btn.danger { background: var(--err); border-color: var(--err); }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn[disabled], .btn.busy { opacity: .55; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 2px 10px; font-size: 12px; font-weight: 700; background: #eeeef6; color: var(--ink-2); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.err { background: var(--err-soft); color: var(--err); }
.chip.info { background: var(--info-soft); color: #33507a; }
.chip.brand { background: var(--brand-soft); color: var(--brand); }
.flash { border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-weight: 600; }
.flash.ok { background: var(--ok-soft); color: #145c3d; }
.flash.error { background: var(--err-soft); color: #8e2a1f; }
.notice { display: flex; gap: 12px; align-items: center; background: var(--warn-soft); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
.notice .spacer { flex: 1; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 9px 14px; text-decoration: none; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-color: var(--brand); }
.tabs a .n { font-size: 12px; background: #f1ede6; border-radius: 99px; padding: 0 7px; margin-left: 4px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.table-wrap { overflow-x: auto; }

/* ---------- forms ---------- */
label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 5px; }
.field { margin-bottom: 14px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number],
input[type=datetime-local], input[type=time], input[type=search], select, textarea {
  width: 100%; border: 1px solid #d6d6e4; border-radius: 10px; padding: 9px 12px; font: 500 14px var(--sans); background: #fff; color: var(--ink);
}
textarea { min-height: 90px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
input[type=color] { width: 44px; height: 38px; border: 1px solid #d6d6e4; border-radius: 10px; padding: 3px; background: #fff; }
input[type=range] { width: 100%; accent-color: var(--brand); }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; font-size: 14px; }
.check input { margin-top: 3px; accent-color: var(--brand); }
.choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice .box { display: block; border: 2px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; cursor: pointer; height: 100%; }
.choice input:checked + .box { border-color: var(--brand); background: var(--brand-soft); }
.choice input:focus-visible + .box { outline: 2px solid var(--brand); }
.choice .box b { display: block; margin-bottom: 3px; }
.choice .box span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.slider-row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; align-items: center; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.slider-row span:first-child { order: 1; }
.slider-row span:last-child { order: 2; text-align: right; }
.slider-row input { order: 3; grid-column: 1 / -1; }
.swatches { display: flex; gap: 14px; flex-wrap: wrap; }
.swatches .sw { text-align: center; font-size: 12px; font-weight: 700; }

/* ---------- wizard ---------- */
.wiz { display: grid; grid-template-columns: 230px 1fr; gap: 28px; }
.wiz-steps { list-style: none; padding: 0; margin: 0; position: sticky; top: 20px; align-self: start; }
.wiz-steps li { display: flex; gap: 10px; align-items: center; padding: 8px 0; color: var(--muted); font-weight: 700; }
.wiz-steps li .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 12px; background: #fff; }
.wiz-steps li.done .dot { background: var(--ink); color: #fff; border-color: var(--ink); }
.wiz-steps li.on { color: var(--ink); }
.wiz-steps li.on .dot { border-color: var(--brand); color: var(--brand); }
.wiz-steps a { text-decoration: none; color: inherit; }
.wiz-actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.preview-tile { width: 100%; max-width: 360px; aspect-ratio: 4/5; border-radius: 12px; background: #eee center/cover; box-shadow: var(--shadow); }

/* ---------- posts ---------- */
.post-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.post-card .thumb { aspect-ratio: 4/5; background: #f1ede6 center/cover; display: grid; place-items: center; color: var(--muted); font-weight: 700; text-decoration: none; }
.post-card .thumb.text { padding: 18px; font-size: 14px; line-height: 1.45; color: var(--ink-2); place-items: start; overflow: hidden; font-weight: 500; }
.post-card .meta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.post-card .sel { position: absolute; top: 10px; left: 10px; width: 20px; height: 20px; accent-color: var(--brand); }
.post-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
.slides { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.slides img { height: 420px; border-radius: 10px; scroll-snap-align: start; box-shadow: var(--shadow); }
.caption-preview { white-space: pre-wrap; background: #faf8f4; border: 1px solid var(--line); border-radius: 10px; padding: 14px; font-size: 14px; }
.spinner { width: 18px; height: 18px; border: 3px solid #e7e1d7; border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal .dow { background: #f5f2ec; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--muted); padding: 6px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal .day { min-height: 118px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px; background: #fff; }
.cal .day.other { background: #faf8f4; }
.cal .day.today { box-shadow: inset 0 0 0 2px var(--brand); }
.cal .day.drop { background: var(--brand-soft); }
.cal .num { font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 4px; }
.cal .ev { display: flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; background: #f5f2ec; border-radius: 7px; padding: 3px 6px; margin-bottom: 4px; text-decoration: none; color: var(--ink); border-left: 3px solid #b9b2a5; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal .ev[draggable=true] { cursor: grab; }
.cal .ev.ready { border-left-color: var(--warn); }
.cal .ev.approved, .cal .ev.scheduled { border-left-color: #3c6fb3; }
.cal .ev.published { border-left-color: var(--ok); }
.cal .ev.failed { border-left-color: var(--err); }
.cal .ev img { width: 18px; height: 18px; border-radius: 4px; object-fit: cover; flex: none; }

/* ---------- public ---------- */
.pub-nav { display: flex; align-items: center; gap: 18px; padding: 18px 28px; max-width: 1160px; margin: 0 auto; }
.pub-nav .logo { font-family: var(--display); font-size: 22px; text-decoration: none; display: flex; gap: 8px; align-items: center; font-weight: 600; }
.pub-nav .logo i { width: 26px; height: 26px; border-radius: 8px; background: var(--brand); display: inline-block; }
.pub-nav a { text-decoration: none; font-weight: 700; white-space: nowrap; }
.hero h1 { overflow-wrap: break-word; }
.pub { max-width: 1160px; margin: 0 auto; padding: 0 28px 80px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 40px 0 60px; overflow: hidden; }
.hero h1 { font-size: 54px; line-height: 1.04; }
.hero p.lead { font-size: 19px; color: var(--ink-2); max-width: 34em; }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; transform: rotate(-2deg); }
.hero-art div { border-radius: 14px; aspect-ratio: 4/5; box-shadow: var(--shadow); padding: 16px; display: flex; align-items: flex-end; font-family: var(--display); font-size: 20px; font-weight: 600; }
.feature h3 { font-size: 17px; }
.price-card { display: flex; flex-direction: column; }
.price-card .amt { font-family: var(--display); font-size: 40px; font-weight: 600; }
.price-card ul { padding-left: 18px; margin: 10px 0 18px; }
.auth-box { max-width: 420px; margin: 40px auto; }
footer.pub-foot { border-top: 1px solid var(--line); padding: 24px 28px; text-align: center; color: var(--muted); font-size: 13px; }

@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 30; width: 260px; left: -270px; transition: left .2s; }
  .side.open { left: 0; }
  .btn.menu-btn { display: inline-flex; }
  .main { padding: 18px 16px 50px; }
  .g2, .g3, .g4, .post-layout { grid-template-columns: minmax(0, 1fr); }
  .wiz { grid-template-columns: 1fr; }
  .wiz-steps { position: static; display: flex; gap: 6px; overflow-x: auto; }
  .wiz-steps li .label { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .pub-nav { padding: 14px 16px; gap: 12px; }
  .pub { padding: 0 16px 60px; }
  .hero h1 { font-size: 38px; }
  .cal .day { min-height: 80px; }
  .slides img { height: 300px; }
}

/* ---------- magic outreach ---------- */
.kpi { display: flex; flex-direction: column; gap: 2px; }
.kpi .sub { font-size: 12px; color: var(--muted); font-weight: 600; }
.meter { height: 8px; background: #ececf5; border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.meter.ok i { background: var(--ok); } .meter.warn i { background: var(--warn); } .meter.err i { background: var(--err); }
.dns { display: flex; gap: 6px; flex-wrap: wrap; }
.source-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.source-grid .box .ico { font-size: 20px; font-weight: 800; display: inline-block; width: 30px; height: 30px; text-align: center; line-height: 30px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); margin-bottom: 6px; }
.step-card { border-left: 4px solid var(--brand); }
.step-card .head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.step-card textarea { min-height: 180px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.wait { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; font-size: 13px; margin: 10px 0 10px 18px; }
.wait input { width: 70px; }
.email-preview { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; white-space: pre-wrap; font-size: 14px; line-height: 1.55; }
.email-preview .subj { font-weight: 800; margin-bottom: 8px; display: block; white-space: normal; }
.vars { display: flex; flex-wrap: wrap; gap: 6px; }
.vars code { cursor: pointer; }
.ub { display: flex; flex-direction: column; }
.ub a.row-link { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); text-decoration: none; align-items: center; }
.ub a.row-link:hover { background: #fafaff; }
.ub a.row-link.unread { background: #f6f5ff; }
.ub a.row-link.unread .who { font-weight: 800; }
.ub .who { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ub .snip { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.ub .snip b { color: var(--ink); font-weight: 700; }
.msg { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; }
.msg.out { background: #f8f8fc; }
.msg + .msg { margin-top: 10px; }
.msg .meta { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.msg .body { white-space: pre-wrap; font-size: 14px; }
.pager { display: flex; gap: 6px; align-items: center; margin-top: 14px; }
.check-list li { margin-bottom: 6px; }
.check-list .done { text-decoration: line-through; color: var(--muted); }
table.leads td { font-size: 13.5px; }
table.leads td.nowrap { white-space: nowrap; }
.sticky-actions { position: sticky; bottom: 0; background: var(--paper); padding: 10px 0; border-top: 1px solid var(--line); margin-top: 12px; z-index: 2; }
@media (max-width: 960px) {
  .ub a.row-link { grid-template-columns: minmax(0, 1fr) auto; }
  .ub a.row-link .snip { grid-column: 1 / -1; }
}
.grid > .card + .card { margin-top: 0; }
@media (max-width: 960px) { .sticky-actions { position: static; } }
.split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } .split > div[style*="sticky"] { position: static !important; } }
@media (max-width: 960px) { .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat { font-size: 26px; } }

/* --- AI Model Studio --- */
.choices.compact { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.choices.compact .box { padding: 8px 10px; font-size: 13.5px; }
.thumbs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.thumbs.small { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.thumbs .box.img, .thumbs .box.rejected { display: block; aspect-ratio: 3/4; border-radius: 12px; background: #f1ede6 center/cover; border: 2px solid var(--line); padding: 0; }
.thumbs .choice input:checked + .box.img { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.thumbs .box.img.chosen { border-color: var(--brand); }
.thumbs .box.rejected { display: grid; place-items: center; padding: 10px; text-align: center; background: var(--err-soft); color: var(--err); border-color: var(--err-soft); }
.thumbs .box.vid video { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 8px; background: #111; margin-bottom: 6px; }
.persona-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.persona-card { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.persona-card .avatar { width: 64px; height: 80px; border-radius: 12px; flex: none; background: var(--brand-soft) center/cover; display: grid; place-items: center; font-family: var(--display); font-size: 26px; color: var(--brand); }
@media (max-width: 640px) {
  .choices.compact { grid-template-columns: repeat(2, 1fr); }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
}
.monetize-cta { border: 2px solid var(--brand); background: linear-gradient(135deg, var(--brand-soft), #fff 70%); }
.modes { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px; margin: 0 0 14px; background: #fff; }
.modes .mode { padding: 6px 16px; border-radius: 99px; text-decoration: none; font-weight: 700; font-size: 13.5px; color: var(--muted); }
.modes .mode.on { background: var(--ink); color: #fff; }
.modes .mode.nsfw.on { background: var(--brand); }
.modes .mode.locked { opacity: .7; }
.link-row { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; background: #fff; }

.linkbtn{background:none;border:0;padding:0;cursor:pointer;font:inherit;color:inherit;text-decoration:underline}
.linkbtn:hover{color:var(--danger,#c0392b)}

/* asset page: the whole photo/video fits on screen (portraits were taller than the window) */
.asset-media{display:block;margin:0 auto;max-width:100%;max-height:72vh;width:auto;height:auto;border-radius:10px;object-fit:contain}

/* video tiles: the opening photo under a play button */
.post-card .thumb.is-video { position: relative; }
.post-card .thumb .play { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; padding-left: 4px; color: #fff; background: rgba(20, 12, 18, .55); box-shadow: 0 2px 12px rgba(0, 0, 0, .25); backdrop-filter: blur(2px); }
.post-card .thumb.is-video:hover .play { background: rgba(20, 12, 18, .75); }

/* billing: account strip, plan groups, best-plan ribbon, cost list */
.account-bar { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 18px 22px; margin-bottom: 22px;
  border-radius: var(--radius); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); }
.account-bar .ab-balance { display: flex; align-items: baseline; gap: 8px; }
.account-bar .ab-num { font-family: var(--display); font-size: 40px; font-weight: 600; color: var(--brand); line-height: 1; }
.account-bar .ab-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.account-bar .ab-plan { display: flex; flex-direction: column; gap: 2px; padding-left: 28px; border-left: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); flex: 1; min-width: 180px; }
.account-bar .ab-plan b { font-size: 18px; }
.plan-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); margin-bottom: 10px; max-width: 100%; }
@media (max-width: 520px) { .plan-toggle { display: flex; } .plan-toggle button { flex: 1; padding: 8px 10px; white-space: normal; line-height: 1.2; } }
.plan-toggle button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.plan-toggle button.on { background: var(--brand); color: var(--brand-ink, #fff); }
.plan-group-note { margin: 4px 0 14px; max-width: 70ch; }
.plan-group { container-type: inline-size; }
.plan-cards { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); align-items: stretch; padding-top: 12px; }
@container (min-width: 860px) { .plan-cards { grid-template-columns: repeat(4, 1fr); } }
@container (max-width: 520px) { .plan-cards { grid-template-columns: 1fr; } }
.plan-cards > .card, .pack-list > .card { margin: 0; }  /* the global ".card + .card" spacing staggered the row */
.plan-cards:has(> .price-card:only-child) { grid-template-columns: minmax(0, 360px); }
.price-card { position: relative; }
.price-card.best { border: 2px solid var(--brand); box-shadow: 0 10px 30px color-mix(in srgb, var(--brand) 18%, transparent); }
.price-card .ribbon { position: absolute; top: -12px; left: 18px; background: var(--brand); color: var(--brand-ink, #fff); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.price-card.current { outline: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent); outline-offset: 3px; }
.pack-list { display: grid; gap: 10px; }
.cost-list { display: grid; }
.cost-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.cost-row:last-child { border-bottom: 0; }
.cost-row > div { display: flex; flex-direction: column; }
.cost-row .cost { font-weight: 700; white-space: nowrap; }
@media (max-width: 640px) { .account-bar { gap: 14px; } .account-bar .ab-plan { padding-left: 0; border-left: 0; } }

/* photo source + voice picker + tile actions */
form:has(input[name=photo_source][value=library]:checked) .new-only { display: none; }
form:has(input[name=photo_source][value=new]:checked) .lib-photos { display: none; }
.lib-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; margin-top: 10px; max-height: 260px; overflow-y: auto; }
.lib-photo input { position: absolute; opacity: 0; }
.lib-photo span { display: block; aspect-ratio: 4/5; border-radius: 10px; background: #f1ede6 center/cover; border: 2px solid transparent; cursor: pointer; }
.lib-photo input:checked + span { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.voice-list { display: grid; gap: 6px; max-height: 300px; overflow-y: auto; }
.voice-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--card); }
.voice-row:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.voice-row .vr-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.voice-row .vr-text .tiny { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-actions { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 2px; }
.btn.xs { padding: 3px 8px; font-size: 11px; border-radius: 8px; }

/* voice dropdown with previews */
.vdrop { position: relative; max-width: 460px; }
.vdrop-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font: inherit; cursor: pointer; text-align: left; color: var(--ink); }
.vdrop-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.vdrop-menu { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); max-height: 320px; overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,.12)); padding: 4px; }
.vdrop-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.vdrop-opt:hover { background: var(--brand-soft); }
.vdrop-opt.on { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.vdrop-opt .vo-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.vdrop-opt .vo-text .tiny { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Size picker: a little outline of each shape */
.choices.sizes .box { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.choices.sizes .shape { width: auto; height: 34px; border: 2px solid currentColor; border-radius: 4px; opacity: .55; }
.choices.sizes input:checked + .box .shape { opacity: 1; color: var(--brand); }

.photo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }

.renew-card { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; border-left: 4px solid var(--brand); }

.err-text { color: var(--err); font-weight: 700; }

/* --- public site polish ------------------------------------------------------------ */
.home-section { margin-top: 56px; }
.home-section > h2 { font-size: 30px; margin-bottom: 18px; }
.hero-art.photos { grid-template-columns: 1fr 1fr; }
.hero-photo { aspect-ratio: 3/4; border-radius: 18px; background: #eee center/cover; position: relative; box-shadow: 0 14px 34px rgba(0,0,0,.14); overflow: hidden; }
.hero-photo span { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.45); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; backdrop-filter: blur(4px); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 8px; }
.step h3 { margin: 4px 0 6px; font-size: 17px; }
.model-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.model-card { display: flex; flex-direction: column; gap: 3px; }
.model-photo { aspect-ratio: 3/4; border-radius: 14px; background: #eee center/cover; margin-bottom: 6px; }
.trust h3 { font-size: 16px; margin: 0 0 4px; }
.cta { text-align: center; padding: 40px 20px; border-radius: var(--radius); background: var(--brand-soft); }
.cta h2 { margin: 0 0 6px; }
.pub-foot { text-align: left; max-width: 1160px; margin: 40px auto 0; }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.foot-cols > div { display: flex; flex-direction: column; gap: 6px; }
.foot-cols a { color: var(--ink-2); text-decoration: none; font-size: 13px; }
.foot-cols a:hover { color: var(--brand); }
.policy-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; margin: 30px 0; align-items: start; }
.policy-nav { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 2px; }
.policy-nav a { padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.policy-nav a.on, .policy-nav a:hover { background: var(--brand-soft); color: var(--brand); }
.policy { max-width: 760px; }
.policy h2 { font-size: 19px; margin: 22px 0 6px; }
.policy li { margin-bottom: 6px; }
.age-gate { position: fixed; inset: 0; z-index: 100; background: rgba(15, 8, 14, .78); backdrop-filter: blur(14px); display: grid; place-items: center; padding: 16px; }
.age-card { max-width: 440px; background: var(--card); border-radius: 20px; padding: 28px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.age-card h2 { margin: 10px 0 8px; font-size: 26px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .policy-layout { grid-template-columns: minmax(0, 1fr); }
  .policy-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .hide-sm { display: none; }
}
@media (max-width: 520px) { .steps, .foot-cols { grid-template-columns: minmax(0, 1fr); } .hero h1 { font-size: 38px; } }

.hero-tag { position: absolute; top: 10px; right: 10px; font-style: normal; background: rgba(255,255,255,.92); color: var(--ink); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.path { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 26px; }
.path h2 { margin: 4px 0 0; font-size: 24px; }
.path .btn { margin-top: auto; }
@media (max-width: 760px) { .paths { grid-template-columns: minmax(0, 1fr); } }
