/* Our own copies of the fonts, not Google's: no extra connection before the page can draw (licences in static/fonts) */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 500 700; font-display: swap; src: url("/static/fonts/bricolage-grotesque.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 400 700; font-display: swap; src: url("/static/fonts/manrope.woff2") format("woff2"); }

/* Design tokens follow the approved mockup: off-white ground, ink, one deep-blue accent (owner's choice 2026-10-15). */
:root {
  --ground: #F4F6FB; --surface: #FFFFFF; --ink: #0F172A; --muted: #64748B; --line: #E5E9F2; --field: #D5DCE8;
  --accent: #1D4ED8; --accent-hover: #1E40AF; --accent-ink: #FFFFFF; --accent-soft: #E3ECFF; --accent-soft-ink: #1E3A8A;
  --warn-soft: #FDF1DC; --warn-ink: #5C3B00; --danger: #B42318; --danger-soft: #FDE7E4; --ok: #15803D; --ok-soft: #DCFCE7;
  --panel: #0F172A; --panel-ink: #FFFFFF; --panel-muted: #CBD5E1; --panel-line: #334155; --star: #B7791F;
  --tg-bg: #E7EEF6;
  --hover: #F1F4FA;
  --ring: rgba(29, 78, 216, .22);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 6px -2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -16px rgba(15, 23, 42, .18);
  --shadow-lg: 0 24px 48px -24px rgba(15, 23, 42, .35);
  --radius: 18px; --radius-sm: 12px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: Manrope, system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --telegram-ink: #5CC3F0;
    --ground: #0A0F1C; --surface: #111827; --ink: #F1F5F9; --muted: #94A3B8; --line: #1F2A3C; --field: #334155;
    --accent: #60A5FA; --accent-hover: #93C5FD; --accent-ink: #0B1220; --accent-soft: #172554; --accent-soft-ink: #BFDBFE;
    --warn-soft: #3A2C12; --warn-ink: #F2D49B; --danger: #F0A898; --danger-soft: #3A1E18; --ok: #4ADE80; --ok-soft: #12301F;
    --panel: #1E293B; --panel-ink: #F1F5F9; --panel-muted: #94A3B8; --panel-line: #334155; --star: #E0A100;
    --tg-bg: #17212B;
    --hover: #172033;
    --ring: rgba(96, 165, 250, .3);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .6);
    --shadow-lg: 0 24px 48px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
/* The header switch: `data-theme` on <html> beats the device setting. Keep these two lists in step. */
:root[data-theme="dark"] {
  --telegram-ink: #5CC3F0;
    --ground: #0A0F1C; --surface: #111827; --ink: #F1F5F9; --muted: #94A3B8; --line: #1F2A3C; --field: #334155;
    --accent: #60A5FA; --accent-hover: #93C5FD; --accent-ink: #0B1220; --accent-soft: #172554; --accent-soft-ink: #BFDBFE;
    --warn-soft: #3A2C12; --warn-ink: #F2D49B; --danger: #F0A898; --danger-soft: #3A1E18; --ok: #4ADE80; --ok-soft: #12301F;
    --panel: #1E293B; --panel-ink: #F1F5F9; --panel-muted: #94A3B8; --panel-line: #334155; --star: #E0A100;
    --tg-bg: #17212B;
    --hover: #172033;
    --ring: rgba(96, 165, 250, .3);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .6);
    --shadow-lg: 0 24px 48px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
::selection { background: var(--accent-soft); color: var(--accent-soft-ink); }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 20px; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.topbar nav { display: flex; align-items: center; gap: 4px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.wordmark:hover { color: var(--ink); }
.wordmark img { display: block; width: 30px; height: 30px; flex: none; }
.container { max-width: 560px; margin: 0 auto; padding: 28px 16px 64px; }

h1 { font-family: var(--display); font-size: 30px; line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 6px; }
h2 { font-family: var(--display); font-size: 19px; letter-spacing: -0.01em; margin: 32px 0 12px; }
h3 { font-family: var(--display); letter-spacing: -0.01em; }
.lead { color: var(--muted); font-size: 15.5px; margin: 0 0 24px; max-width: 46em; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.stack { display: flex; flex-direction: column; gap: 16px; }

label { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; font-weight: 700; }
input, textarea, select { font: inherit; font-size: 16px; font-weight: 500; padding: 11px 14px; min-height: 48px; border: 1px solid var(--field); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:hover, textarea:hover, select:hover { border-color: color-mix(in srgb, var(--field) 60%, var(--muted)); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' 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 14px center; }
textarea { resize: vertical; }
input[type="file"] { padding: 8px; font-size: 14px; color: var(--muted); cursor: pointer; }
input[type="file"]::file-selector-button { font: inherit; font-weight: 700; font-size: 14px; color: var(--ink); background: var(--hover); border: 1px solid var(--line); border-radius: 9px; padding: 7px 14px; margin-right: 12px; cursor: pointer; transition: background .15s; }
input[type="file"]::file-selector-button:hover { background: var(--accent-soft); color: var(--accent-soft-ink); }
.hint { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.prefixed { display: flex; align-items: center; border: 1px solid var(--field); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.prefixed span { padding-left: 14px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.prefixed input { border: 0; padding-left: 2px; background: transparent; box-shadow: none !important; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.prefixed:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
.prefixed input:focus-visible { outline: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; width: 100%; box-shadow: 0 1px 2px rgba(15, 23, 42, .08), inset 0 1px 0 rgba(255, 255, 255, .12); transition: background .15s, border-color .15s, transform .1s, box-shadow .15s; }
.btn:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn .ic { width: 18px; height: 18px; }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--field); box-shadow: var(--shadow-sm); }
.btn.secondary:hover { background: var(--hover); color: var(--ink); }
.btn.sm { width: auto; min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.link { background: none; border: 0; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; padding: 10px 8px; text-decoration: none; border-radius: 8px; }
.link:hover { color: var(--ink); }

.alert { display: block; border-radius: var(--radius-sm); padding: 12px 14px 12px 16px; font-size: 14px; margin-bottom: 16px; border: 1px solid transparent; border-left-width: 4px; }
.alert.error { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); border-left-color: var(--danger); }
.alert.ok { background: var(--accent-soft); color: var(--accent-soft-ink); border-color: color-mix(in srgb, var(--accent) 20%, transparent); border-left-color: var(--accent); }

.identity { display: flex; align-items: center; gap: 14px; }
.logo { width: 64px; height: 64px; flex-shrink: 0; border-radius: 16px; object-fit: cover; background: var(--ink); color: var(--ground); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 22px; }
.meta { color: var(--muted); font-size: 14px; }

.copy-row { display: flex; gap: 8px; }
.copy-row output { flex: 1; min-width: 0; display: flex; align-items: center; min-height: 44px; padding: 0 12px; background: var(--ground); border-radius: 10px; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.copy-row .btn { width: auto; min-height: 44px; font-size: 15px; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist .dot { width: 24px; height: 24px; flex-shrink: 0; border-radius: 999px; border: 2px solid var(--field); display: flex; align-items: center; justify-content: center; }
.checklist .done .dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.checklist strong { display: block; }
.checklist small { color: var(--muted); font-size: 13px; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--warn-soft); color: var(--warn-ink); margin-left: 6px; vertical-align: 1px; }

.hero { padding: 24px 0 8px; }
.hero h1 { font-size: 34px; }
.points { display: grid; gap: 10px; margin: 24px 0; }
.points .card strong { display: block; margin-bottom: 2px; }

.qr { width: 200px; height: 200px; padding: 8px; background: #FFFFFF; border-radius: 12px; border: 1px solid var(--line); }
.qr img, .qr canvas { display: block; }
.setup-key { font: 600 16px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.04em; background: var(--ground); padding: 10px 12px; border-radius: 10px; overflow-wrap: anywhere; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0; padding-left: 22px; }
.codes code { font: 600 16px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }

.channel-head { display: flex; align-items: center; gap: 12px; }
.channel-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.channel-text strong { overflow-wrap: anywhere; }
.avatar { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; object-fit: cover; background: var(--ink); color: var(--ground); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; line-height: 1.3; padding: 4px 10px; border-radius: 999px; white-space: nowrap; background: var(--hover); color: var(--muted); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn-ink); }
.badge.bad { background: var(--danger-soft); color: var(--danger); }
.channel-error { margin: 10px 0 0; color: var(--danger); }
.row-actions { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px -8px -8px; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
/* Toggles: every yes/no checkbox in a label.check is a switch (owner's preference over checkboxes). The text
   comes first, the switch sits at the end of the row. Radios in a label.check keep their look as a choice dot. */
label.check { flex-direction: row; align-items: center; gap: 14px; font-weight: 600; font-size: 15px; cursor: pointer; padding: 6px 0; }
label.check > span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
label.check > span .meta, label.check > span small { font-weight: 500; }
label.check input[type="checkbox"], input[type="checkbox"].switch { order: 2; appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 46px; height: 28px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 999px; background: var(--field); position: relative; cursor: pointer; transition: background .2s; box-shadow: inset 0 1px 2px rgba(15, 23, 42, .12); }
label.check input[type="checkbox"]::after, input[type="checkbox"].switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(15, 23, 42, .3); transition: transform .2s; }
label.check input[type="checkbox"]:checked, input[type="checkbox"].switch:checked { background: var(--accent); }
label.check input[type="checkbox"]:checked::after, input[type="checkbox"].switch:checked::after { transform: translateX(18px); }
label.check input[type="checkbox"]:focus-visible, input[type="checkbox"].switch:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }
label.check input[type="radio"] { width: 20px; height: 20px; min-height: 0; flex-shrink: 0; accent-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { label.check input::after, input.switch::after { transition: none; } }
.toggle-list { display: flex; flex-direction: column; }
.toggle-list label.check { padding: 12px 0; }
.toggle-list label.check + label.check { border-top: 1px solid var(--line); }
.topbar nav form { margin: 0; }
@media (max-width: 420px) { .topbar nav .link { padding: 10px 6px; font-size: 14px; } }

.package { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.package:hover { border-color: var(--accent); color: var(--ink); }
.package-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.price { font-family: var(--display); font-weight: 700; font-size: 18px; white-space: nowrap; }
.book-link { font-weight: 700; color: var(--accent); margin-top: 4px; }
.package-row, .pay-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.package-row > div, .pay-row > div { display: flex; flex-direction: column; min-width: 0; }
.package-row .btn, .pay-row .btn { width: auto; min-height: 44px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.card { border: 1px solid var(--line); padding: 16px; }
legend { font-family: var(--display); font-weight: 700; font-size: 18px; padding: 0; margin-bottom: 4px; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
label.chip { flex-direction: row; cursor: pointer; }
label.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.chip span { flex: 1; text-align: center; padding: 10px 0; border: 1px solid var(--field); border-radius: 10px; font-weight: 700; background: var(--surface); }
label.chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-soft-ink); }
label.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; margin-top: 18px; }
.stat { display: flex; flex-direction: column; padding: 12px; }
.stat strong { font-family: var(--display); font-size: 22px; }
.day-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.day { flex: 0 0 auto; width: 58px; padding: 8px 0; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-align: center; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.day span { font-size: 12px; font-weight: 600; }
.day strong { font-family: var(--display); font-size: 20px; }
.day.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.day.none:not(.on) { opacity: .55; }
.slot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
label.slot { flex-direction: row; cursor: pointer; }
label.slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.slot span { flex: 1; text-align: center; padding: 13px 0; border: 1px solid var(--field); border-radius: 12px; font-weight: 700; font-size: 15px; background: var(--surface); }
label.slot input:checked + span { background: var(--accent-soft); border: 2px solid var(--accent); color: var(--accent-soft-ink); }
label.slot input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
label.slot.off { cursor: not-allowed; }
label.slot.off span { color: var(--muted); background: var(--ground); text-decoration: line-through; font-weight: 600; font-size: 13px; }
.creative { width: 100%; max-height: 420px; object-fit: contain; border-radius: 12px; background: var(--ground); }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.waiting { border: 2px solid var(--accent); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--hover); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--hover) 60%, transparent); }

.tabs { display: flex; gap: 2px; width: max-content; max-width: 100%; margin: 4px 0 20px; padding: 4px; overflow-x: auto; background: var(--hover); border: 1px solid var(--line); border-radius: 12px; }
.tabs a { padding: 7px 14px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; transition: color .15s, background .15s; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.tabs .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; text-align: center; }
.booking-row { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.booking-row:hover { border-color: var(--accent); color: var(--ink); }
.review-cta { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; text-decoration: none; color: var(--accent-soft-ink); background: var(--accent-soft); border-color: var(--accent); }
.review-cta:hover { color: var(--accent-soft-ink); border-color: var(--accent-hover); }
.alert.warn { background: var(--warn-soft); color: var(--warn-ink); border-color: color-mix(in srgb, var(--star) 30%, transparent); border-left-color: var(--star); }
.flags { margin: 6px 0 0; padding-left: 20px; }
.decision { margin-top: 10px; }
details > summary { cursor: pointer; list-style-position: inside; }
details[open] > summary { margin-bottom: 12px; }
.btn.danger { color: var(--danger); }
.btn.secondary.danger:hover { background: var(--danger-soft); color: var(--danger); }
.preview { margin: 0; padding: 10px 12px; background: var(--ground); border-radius: 10px; font-size: 14px; }
.history { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.timeline li { font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.timeline li.done { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-soft-ink); }
.timeline li.now { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.label-legend { font-family: var(--body); font-size: 13px; font-weight: 700; }
.pay-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
@media (max-width: 600px) {
  .topbar { padding: 8px 14px; }
  .topbar .wordmark { flex-shrink: 0; }
  .topbar nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .topbar nav .link { white-space: nowrap; }
  .topbar nav .btn { flex-shrink: 0; white-space: nowrap; }
  .topbar nav .hide-narrow { display: none; }
}

/* Reports and ratings */
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px 12px; margin: 4px 0 0; }
.numbers div { display: flex; flex-direction: column; }
.numbers dt { font-size: 12.5px; color: var(--muted); }
.numbers dd { margin: 0; font-weight: 700; font-size: 18px; }
.stars { color: #e0a100; letter-spacing: 2px; font-size: 20px; }
.rating-line .stars { font-size: inherit; letter-spacing: 0; }
.star-input { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input legend { font-weight: 600; margin-bottom: 6px; width: 100%; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 36px; line-height: 1; color: var(--field); cursor: pointer; padding: 4px; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #e0a100; }
.star-input input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 6px; }
.credit-box { border-color: var(--accent); }
.big-number { font-family: var(--display); font-size: 30px; }
.row-links { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 600; }
.admin-nav { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 600; font-size: 14px; margin-bottom: 12px; }

/* Logged-in frame (creator, advertiser, admin): a full-height sidebar with the logo and the account; the page beside
   it on a soft ground. Phones: a slim bar with the logo and a menu button that slides the sidebar in. */
.shell-bar { display: none; }
.admin-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.admin-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px 12px; }
.side-brand { padding: 4px 10px 18px; }
.admin-side-title { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 6px 12px 6px; }
.admin-side nav { display: flex; flex-direction: column; gap: 2px; }
.admin-side nav a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px; transition: background .15s, color .15s; }
.admin-side nav a:hover { background: var(--hover); color: var(--ink); }
.admin-side nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-soft-ink); }
.admin-side-group { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 18px 12px 6px; }
.admin-count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.side-foot { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.side-campaign { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-soft-ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.side-campaign .ic { width: 18px; height: 18px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--ground); }
.side-avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-weight: 700; font-size: 14px; }
.side-email { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user form { margin: 0; }
.side-logout { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.side-logout:hover { background: var(--hover); color: var(--danger); }
.side-logout .ic { width: 18px; height: 18px; }
.side-scrim { display: none; }
.admin-main { min-width: 0; padding: 36px 40px 72px; }
.page { max-width: 860px; margin: 0 auto; }
.admin-main:not(.app-main) .page { max-width: 1280px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-head h1 { margin: 0; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; }
.kpi span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.kpi strong { font-family: var(--display); font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
.kpi small { font-size: 12.5px; color: var(--muted); }
.kpi.lead-kpi { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.kpi.lead-kpi span, .kpi.lead-kpi small { color: var(--accent-ink); opacity: .85; }
.chart { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding-top: 8px; }
.chart .col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.chart .bar { background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; }
.chart .bar.zero { background: var(--line); }
.chart-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.todo a { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 600; }
.todo a:hover { border-color: var(--accent); color: var(--ink); }
.status-list { display: flex; flex-wrap: wrap; gap: 6px; }
.search-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.search-row input, .search-row select { flex: 1 1 200px; width: auto; padding: 10px 12px; }
.search-row .btn { width: auto; min-height: 44px; }
.table-wrap td a { font-weight: 600; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
@media (max-width: 900px) {
  .shell-bar { position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .shell-menu { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); cursor: pointer; }
  .shell-menu .ic { width: 20px; height: 20px; }
  .admin-shell { display: block; min-height: 0; }
  .admin-side { position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: 280px; max-width: 86vw; transform: translateX(-102%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  body.side-open .admin-side { transform: none; }
  body.side-open .side-scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(15, 23, 42, .4); }
  .admin-main { padding: 24px 16px 64px; }
}
@media (prefers-reduced-motion: reduce) { .admin-side { transition: none; } }

/* ── Landing page ──────────────────────────────────────────────────────────────────────────────
   Full-bleed sections with a 1180px inner column; mobile-first, 16px gutters. */
.container.landing { max-width: none; padding: 0; }
.lp-inner { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.landing h2 { font-family: var(--display); font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 6px; }
.landing svg { width: 18px; height: 18px; flex: 0 0 auto; }
.landing .btn { width: auto; }

.lp-hero { padding: 40px 0 48px; background: linear-gradient(180deg, var(--accent-soft) 0%, var(--ground) 100%); }
.lp-hero-grid { display: grid; gap: 36px; align-items: center; }
.lp-eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.lp-hero h1 { font-size: clamp(34px, 7vw, 58px); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 16px; }
.lp-sub { font-size: 18px; color: var(--muted); margin: 0 0 24px; max-width: 34em; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-ctas .btn { flex: 1 1 220px; }
.lp-platforms { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-platforms li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.lp-platforms li svg { color: var(--accent); }


.lp-section { padding: 56px 0; }
.lp-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.lp-head p { margin: 0; color: var(--muted); font-size: 16px; max-width: 40em; }

.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.lp-page { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.lp-page:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.lp-page-top { display: flex; gap: 12px; align-items: center; }
.lp-page-top img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; flex: 0 0 auto; }
.lp-page-id { min-width: 0; }
.lp-page-id strong { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-page-id small { color: var(--muted); font-size: 13px; }
.lp-page-bio { margin: 0; color: var(--muted); font-size: 14px; }
.lp-page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.lp-page-platforms { display: inline-flex; gap: 6px; color: var(--accent); }
.lp-page-price { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.lp-page-price strong { color: var(--ink); font-size: 17px; }
.lp-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 28px; background: var(--surface); border: 1px dashed var(--field); border-radius: var(--radius); }
.lp-empty p { margin: 0 0 10px; color: var(--muted); max-width: 36em; }

.lp-how { display: grid; gap: 16px; }
.lp-how-col { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ground); }
.lp-how-col h3 { font-family: var(--display); font-size: 20px; margin: 0; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.lp-steps li { display: flex; gap: 14px; }
.lp-steps li > span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-soft-ink); font-weight: 800; flex: 0 0 auto; }
.lp-steps strong { display: block; margin-bottom: 2px; }
.lp-steps div { color: var(--muted); font-size: 14.5px; }
.lp-steps div strong { color: var(--ink); font-size: 15.5px; }

.lp-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.lp-feature { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lp-feature svg { width: 26px; height: 26px; padding: 8px; box-sizing: content-box; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: block; margin-bottom: 12px; }
.lp-feature strong { display: block; font-size: 16px; margin-bottom: 4px; }
.lp-feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

.lp-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.lp-note { margin: 16px 0 0; color: var(--muted); font-size: 13.5px; }

.lp-faq-wrap { max-width: 820px; }
.lp-faq { display: grid; gap: 8px; }
.lp-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.lp-faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.lp-faq details[open] summary::after { content: "−"; }
.lp-faq details p { margin: 0 0 16px; color: var(--muted); }

.lp-cta { padding: 56px 0; background-color: var(--accent); color: #FFFFFF; }
.lp-cta-grid { display: grid; gap: 20px; align-items: center; }
.lp-cta h2 { color: #FFFFFF; }
.lp-cta p { margin: 0; opacity: .9; font-size: 16px; }
.lp-cta .btn.on-dark { background: #FFFFFF; color: #1D4ED8; }
.lp-cta .btn.on-dark:hover { opacity: .92; }
.lp-cta .btn.secondary { background: transparent; color: #FFFFFF; border-color: currentColor; }

.lp-footer { padding: 40px 0 24px; background: var(--surface); }
.lp-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
.lp-footer-grid > div { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.lp-footer-grid p { margin: 0; color: var(--muted); max-width: 22em; }
.lp-footer-grid a:not(.wordmark) { color: var(--muted); text-decoration: none; }
.lp-footer-grid a:not(.wordmark):hover { color: var(--accent); }
.lp-footer-base { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (min-width: 900px) {
  .lp-hero { padding: 72px 0 80px; }
  .lp-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; }
  .lp-ctas .btn { flex: 0 0 auto; }
  .lp-section { padding: 80px 0; }
  .landing h2 { font-size: 36px; }
  .lp-how { grid-template-columns: 1fr 1fr; }
  .lp-cta-grid { grid-template-columns: minmax(0, 1fr) auto; }
}


/* ── Planning-mockup components (booking flow, report, creator dashboard, review, discover) ────────
   The boards in the planning mockup, translated to the blue tokens. Public pages keep the 560px phone column. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
legend { font-size: 20px; }
.flow-head { display: flex; align-items: center; gap: 12px; margin: -8px 0 14px; }
.back-btn { display: flex; flex-shrink: 0; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.back-btn:hover { color: var(--ink); border-color: var(--field); }
.flow-title { display: flex; flex-direction: column; min-width: 0; }
.flow-title strong { font-size: 15.5px; }
.flow-title span { font-size: 13px; color: var(--muted); }
.flow-title .urgent { color: var(--danger); font-weight: 600; }
.progress { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.step-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.step-nav.only-next { grid-template-columns: 1fr; }
.step-nav[hidden], .step-nav .btn[hidden], [data-finish][hidden], fieldset[data-step][hidden] { display: none; }
.booking-as { margin: 0; }
.booking-as .link, .step-links .link { color: var(--accent); text-decoration: underline; font: inherit; padding: 0; }
.step-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 12px; font-size: 14px; }
.progress i { height: 4px; border-radius: 4px; background: var(--line); }
.progress i.on { background: var(--accent); }
.progress-label { font-size: 12px; font-weight: 600; color: var(--muted); margin: 6px 0 18px; }

.cover { position: relative; height: 120px; margin: -24px -16px 0; background: var(--accent); }
.cover .logo { position: absolute; left: 20px; bottom: -36px; width: 76px; height: 76px; border-radius: 20px; border: 4px solid var(--ground); font-size: 26px; }
@media (min-width: 600px) { .cover, .report-head { margin: 0; border-radius: var(--radius); } }
.profile-head { padding-top: 48px; display: flex; flex-direction: column; gap: 6px; }
.profile-head h1 { margin: 0; display: flex; align-items: center; gap: 8px; }
.profile-head .sub { color: var(--muted); font-size: 14px; }
.rating-row { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.rating-row span { color: var(--muted); font-weight: 500; }
.star-icon { flex-shrink: 0; fill: var(--star); }
.stat-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat .meta:first-child { font-size: 12px; font-weight: 600; }
.stat .meta:last-child { font-size: 12px; }
.info-strip { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-soft-ink); font-size: 13.5px; }
.info-strip svg { flex-shrink: 0; margin-top: 1px; stroke: currentColor; }
.package .package-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 4px; }
.package .package-foot .meta { font-size: 12px; font-weight: 600; }
.package .book-link { margin: 0; white-space: nowrap; }
.page-foot { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }

.section-title { font-family: var(--display); font-size: 20px; font-weight: 700; margin: 26px 0 10px; }
.dropzone { position: relative; align-items: center; justify-content: center; gap: 6px; min-height: 150px; padding: 18px; border: 2px dashed var(--field); border-radius: 16px; background: var(--surface); text-align: center; cursor: pointer; font-size: 15px; }
.dropzone:hover, .dropzone:focus-within { border-color: var(--accent); }
.dropzone svg { stroke: var(--muted); }
.dropzone small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; border: 0; }
.dropzone .file-name { font-size: 13px; font-weight: 600; color: var(--accent); overflow-wrap: anywhere; }

.summary { display: flex; flex-direction: column; gap: 10px; }
.summary-who { display: flex; gap: 12px; align-items: center; }
.summary-who .avatar { width: 44px; height: 44px; }
.summary-rows { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.summary-rows div { display: flex; justify-content: space-between; gap: 12px; }
.summary-rows span:first-child { color: var(--muted); }
.summary-rows span:last-child { font-weight: 600; text-align: right; }
.summary-rows .credit span { color: var(--accent-soft-ink); }
.summary-rows .total { font-size: 17px; padding-top: 4px; }
.summary-rows .total span:first-child { color: var(--ink); font-weight: 700; }
.summary-rows .total span:last-child { font-family: var(--display); font-weight: 700; }
.soft-box { background: var(--accent-soft); color: var(--accent-soft-ink); border: 0; }
.soft-box .btn.secondary { border-color: transparent; }
.safe-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; font-size: 13px; color: var(--muted); }
.safe-note svg { flex-shrink: 0; margin-top: 1px; stroke: var(--muted); }

.status-kicker { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.vsteps { list-style: none; margin: 0 0 4px; padding: 18px 16px 0; }
.vsteps li { display: flex; gap: 14px; }
.vsteps .rail { display: flex; flex-direction: column; align-items: center; width: 24px; flex-shrink: 0; }
.vsteps .node { width: 24px; height: 24px; border-radius: 999px; background: var(--surface); border: 2px solid var(--field); display: flex; align-items: center; justify-content: center; }
.vsteps .line { width: 2px; flex: 1; min-height: 22px; background: var(--line); }
.vsteps li.done .node { background: var(--accent); border-color: var(--accent); }
.vsteps li.done .node svg { stroke: var(--accent-ink); }
.vsteps li.done .line { background: var(--accent); }
.vsteps li.now .node { border: 6px solid var(--accent); }
.vsteps .text { padding-bottom: 18px; flex: 1; }
.vsteps .text strong { display: block; font-size: 15px; }
.vsteps li:not(.done):not(.now) .text strong { color: var(--muted); }
.vsteps .text span { font-size: 13px; color: var(--muted); }
.creative-card { padding: 0; overflow: hidden; }
.creative-card .creative { border-radius: 0; max-height: 460px; display: block; }
.creative-card .caption { padding: 12px 14px; margin: 0; font-size: 14px; }
.creative-card .tags { padding: 0 14px 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 700; background: var(--ground); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.post-head .avatar { width: 32px; height: 32px; border-radius: 999px; font-size: 12px; }
.post-head strong { display: block; font-size: 14px; }
.post-head span { font-size: 12px; color: var(--muted); }
.note-card .label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.note-card p { margin: 4px 0 0; font-size: 14.5px; }
.credit-hero { margin-top: 12px; padding: 20px; border-radius: 18px; background: var(--accent); color: var(--accent-ink); }
.credit-hero small { display: block; font-size: 13px; opacity: .85; }
.credit-hero strong { display: block; font-family: var(--display); font-size: 38px; letter-spacing: -0.02em; line-height: 1.2; }
.option-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 2px solid var(--accent); text-decoration: none; color: var(--ink); }
.option-card:hover { color: var(--ink); background: var(--accent-soft); }
.option-card span.go { font-weight: 700; color: var(--accent); }

.report-head { margin: -24px -16px 0; padding: 20px 20px 24px; background: var(--panel); color: var(--panel-ink); display: flex; flex-direction: column; gap: 4px; }
.report-head .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; color: var(--panel-muted); }
.report-head .top strong { font-family: var(--display); font-size: 16px; color: var(--panel-ink); }
.report-head h1 { margin: 14px 0 0; font-size: 26px; }
.report-head p { margin: 0; font-size: 13.5px; color: var(--panel-muted); }
.report-head a { color: var(--panel-ink); }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.metric { display: flex; flex-direction: column; padding: 14px; }
.metric span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.metric strong { font-family: var(--display); font-size: 26px; font-variant-numeric: tabular-nums; line-height: 1.25; }
.metric small { font-size: 12px; color: var(--muted); }
.metric.wide { grid-column: span 2; padding: 16px; }
.metric.wide strong { font-size: 40px; letter-spacing: -0.02em; }
.metric.soft { background: var(--accent-soft); border-color: transparent; }
.metric.soft span, .metric.soft strong { color: var(--accent-soft-ink); }
.metric.soft strong { font-size: 22px; }
.by-platform { display: flex; flex-direction: column; gap: 18px; }
.bp-row { display: flex; flex-direction: column; gap: 6px; }
.bp-row .top, .bp-row .bottom { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.bp-row .top span { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bp-row .bottom { font-size: 12.5px; color: var(--muted); }
.bp-row .bottom a { font-weight: 700; white-space: nowrap; }
.bar-track { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar-fill { height: 10px; border-radius: 999px; background: var(--accent); }
.bar-fill.alt { background: var(--star); }
.bp-row .detail { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); }

.panel-card { padding: 18px; border-radius: 18px; background: var(--panel); color: var(--panel-ink); }
.panel-card .label { font-size: 13px; font-weight: 600; color: var(--panel-muted); }
.panel-card .big { font-family: var(--display); font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.panel-card .split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--panel-line); }
.panel-card .split small { display: block; font-size: 12px; color: var(--panel-muted); }
.panel-card .split strong { overflow-wrap: anywhere; }
.panel-card a { color: var(--panel-ink); }
.attention { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: var(--warn-soft); color: var(--ink); text-decoration: none; }
.attention:hover { color: var(--ink); filter: brightness(.98); }
.attention .count { width: 36px; height: 36px; flex-shrink: 0; border-radius: 999px; background: var(--star); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.attention .text { flex: 1; min-width: 0; }
.attention .text strong { display: block; }
.attention .text span { font-size: 13px; color: var(--warn-ink); }
.attention .go { font-weight: 700; color: var(--warn-ink); white-space: nowrap; }
.list-card { padding: 0; }
.list-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.list-row + .list-row { border-top: 1px solid var(--line); }
a.list-row:hover { background: var(--ground); color: var(--ink); }
.list-row .when { width: 56px; flex-shrink: 0; }
.list-row .when small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.list-row .main { flex: 1; min-width: 0; }
.list-row .main strong { display: block; overflow-wrap: anywhere; }
.list-row .main small { font-size: 12.5px; color: var(--muted); }
.list-row .amount { font-weight: 700; font-size: 14px; white-space: nowrap; }
.list-empty { padding: 14px; color: var(--muted); font-size: 14px; }

.facts { padding: 4px 16px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 14px; }
.facts div + div { border-top: 1px solid var(--line); }
.facts span:first-child { color: var(--muted); }
.facts span:last-child { font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.decide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; align-items: start; }
.decide > form { grid-column: 1 / -1; }
.decide details { background: var(--surface); border: 1px solid var(--field); border-radius: 12px; }
.decide details > summary { list-style: none; display: flex; align-items: center; justify-content: center; min-height: 48px; font-weight: 700; }
.decide details > summary::-webkit-details-marker { display: none; }
.decide details.danger { border-color: var(--danger-soft); }
.decide details.danger > summary { color: var(--danger); }
.decide details[open] { grid-column: 1 / -1; padding: 0 14px 14px; }
.decide details[open] > summary { margin-bottom: 4px; }

.search-box { display: flex; flex-direction: row; align-items: center; gap: 10px; height: 50px; padding: 0 14px; margin-top: 16px; border: 1px solid var(--field); border-radius: 14px; background: var(--surface); }
.search-box svg { flex-shrink: 0; stroke: var(--muted); }
.search-box input { flex: 1; min-width: 0; font-size: 15px; border: 0; padding: 0; background: transparent; height: 100%; }
.search-box input:focus-visible { outline: none; }
.search-box:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.chip-row { display: flex; gap: 8px; padding-top: 14px; overflow-x: auto; }
.chip-link { flex: 0 0 auto; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--field); background: var(--surface); color: var(--ink); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.chip-link:hover { color: var(--ink); border-color: var(--ink); }
.chip-link[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.creator-row { display: flex; gap: 12px; padding: 14px; text-decoration: none; color: var(--ink); }
.creator-row:hover { border-color: var(--accent); color: var(--ink); }
.creator-row .logo { width: 48px; height: 48px; border-radius: 14px; font-size: 17px; }
.creator-row .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.creator-row .line1, .creator-row .line3 { display: flex; justify-content: space-between; gap: 8px; }
.creator-row .line1 strong { overflow-wrap: anywhere; }
.creator-row .line1 span { font-size: 13px; font-weight: 700; white-space: nowrap; }
.creator-row .line2 { font-size: 12.5px; color: var(--muted); }
.creator-row .line3 { align-items: center; margin-top: 4px; }
.creator-row .line3 .reach { font-size: 12px; font-weight: 700; color: var(--accent); }
.creator-row .line3 .from { font-size: 13.5px; font-weight: 700; white-space: nowrap; margin-left: auto; }


/* ── Visuals: icons, illustrated product shots, photos, covers, empty states ────────────────────────
   Illustrations are HTML/CSS "screens" (templates/_illustrations.html): theme-aware, no image requests.
   Photos (docs/CREDITS.md) always sit under a blue overlay or beside text, never behind body copy. */
.ic { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: -4px; }

/* Illustration base */
.ill { --ill-bg: var(--surface); background: var(--ill-bg); border: 1px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: 0 24px 48px -28px rgba(15, 23, 42, .45); color: var(--ink); font-size: 12.5px; line-height: 1.35; text-align: left; }
.ill strong { font-size: 13px; }
.ill small { display: block; color: var(--muted); font-size: 11px; }
.ill .ic { width: 15px; height: 15px; vertical-align: -3px; }
.ill-av { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #FFFFFF; font-family: var(--display); font-weight: 700; font-size: 13px; flex: 0 0 auto; }
.ill-av.ring { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px #E1306C; }
.ill-av.tg { background: #229ED9; }
.ill-plat { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; color: #FFFFFF; flex: 0 0 auto; }
.ill-plat .ic { width: 14px; height: 14px; }
.ill-plat.fb { background: #1877F2; } .ill-plat.ig { background: linear-gradient(45deg, #F58529, #DD2A7B 55%, #8134AF); } .ill-plat.tg { background: #229ED9; }
.ill-post-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ill-post-head > div { flex: 1; min-width: 0; }
.ill-post-head strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ill-cap { margin: 0 0 8px; }
.ill-cap b { color: var(--accent); }
.ill-media { display: block; aspect-ratio: 1.6; border-radius: 10px; background: var(--accent-soft) center / cover no-repeat; }
.ill-media.tall { aspect-ratio: 1; }
.ill-media.short { aspect-ratio: 2.2; margin-bottom: 8px; }
.ill-media.mini { width: 44px; height: 44px; aspect-ratio: auto; flex: 0 0 auto; }
.ill-cta-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--ground); }
.ill-cta-row span { color: var(--muted); font-size: 11.5px; }
.ill-cta-row b { padding: 5px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-soft-ink); font-size: 11.5px; }
.ill-react { display: flex; gap: 12px; margin-top: 8px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.ill-react .ic { color: #E11D48; }
.ill-ig .ill-react .ic { color: var(--ink); }
.ill-story { position: relative; aspect-ratio: 9 / 16; max-height: 420px; padding: 10px; background: #0F172A center / cover no-repeat; color: #FFFFFF; overflow: hidden; }
.ill-story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 30%, transparent 65%, rgba(0,0,0,.55)); }
.ill-story > * { position: relative; z-index: 1; }
.ill-story-bar { display: flex; gap: 4px; margin-bottom: 8px; }
.ill-story-bar i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.95); }
.ill-story-bar i + i { background: rgba(255,255,255,.4); }
.ill-story-head { display: flex; align-items: center; gap: 6px; }
.ill-story-head small { color: rgba(255,255,255,.85); }
.ill-story-cta { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 999px; background: #FFFFFF; color: #0F172A; font-weight: 700; white-space: nowrap; }
.ill-tg { --ill-bg: var(--tg-bg); }
.ill-tg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ill-tg-head > div { flex: 1; min-width: 0; }
.ill-tg-bubble { background: var(--surface); border-radius: 12px 12px 12px 4px; padding: 8px; }
.ill-tg-bubble p { margin: 0 0 4px; }
.ill-tg-bubble b { color: #229ED9; }
.ill-tg-bubble small { text-align: right; }
.ill-tg-btn { margin-top: 6px; padding: 8px; border-radius: 10px; background: rgba(34, 158, 217, .16); color: var(--telegram-ink, #0B6E9E); font-weight: 700; text-align: center; }
.ill-mpesa { width: 230px; max-width: 100%; text-align: center; padding: 16px; }
.ill-mpesa p { margin: 6px 0 10px; font-size: 13px; }
.ill-mpesa-tag { color: #16A34A !important; font-weight: 800; letter-spacing: .08em; }
.ill-pin { display: flex; justify-content: space-between; padding: 8px 10px; border: 1px solid var(--field); border-radius: 8px; color: var(--muted); }
.ill-pin span { color: var(--ink); letter-spacing: .2em; }
.ill-mpesa-btns { display: flex; justify-content: space-between; margin-top: 10px; font-weight: 700; color: var(--muted); }
.ill-mpesa-btns b { color: var(--accent); }
.ill-mpesa-ok { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 50%; background: #16A34A; color: #FFFFFF; }
.ill-mpesa-ok .ic { width: 22px; height: 22px; }
.ill-mpesa strong { display: block; font-size: 15px; }
.ill-report-big strong { display: block; font-family: var(--display); font-size: 28px; line-height: 1.1; }
.ill-report-big span { color: var(--muted); }
.ill-bars { display: flex; align-items: flex-end; gap: 5px; height: 56px; margin: 10px 0; }
.ill-bars i { flex: 1; border-radius: 4px 4px 0 0; background: var(--accent); opacity: .85; }
.ill-bars i:nth-child(odd) { opacity: .5; }
.ill-report-row { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--line); }
.ill-report-row span { color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.ill-approve-ad { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.ill-checks { display: flex; gap: 6px; align-items: center; padding: 8px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-soft-ink); font-weight: 700; }
.ill-approve-btn { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 8px; padding: 10px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.ill-pick-row { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.ill-pick-row b { color: var(--accent); white-space: nowrap; }
.ill-slots { display: flex; gap: 6px; margin-top: 8px; }
.ill-slots i { flex: 1; font-style: normal; text-align: center; padding: 6px 0; border-radius: 8px; border: 1px solid var(--field); font-weight: 700; }
.ill-slots i.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-soft-ink); }
.ill-linkbox { display: flex; gap: 6px; align-items: center; margin-top: 8px; padding: 8px; border-radius: 8px; background: var(--ground); font-weight: 700; overflow-wrap: anywhere; }
.ill-conn { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); }
.ill-conn:first-child { border-top: 0; }
.ill-conn > div { flex: 1; min-width: 0; }
.ill-conn b { color: #16A34A; }

/* Landing: hero photo with floating product shots */
.lp-hero-art { position: relative; max-width: 460px; width: 100%; margin: 0 auto; padding: 0 0 30px; }
.lp-hero-photo { display: block; width: 78%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; margin-left: auto; border-radius: 28px; box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .5); }
.lp-float { position: absolute; }
.lp-float-post { left: 0; bottom: 0; width: 64%; max-width: 270px; }
.lp-float-post .ill-react, .lp-float-post .ill-cta-row { display: none; }
.lp-float-pay { right: 0; top: 18px; width: 170px; padding: 12px; }
.lp-float-chip { left: 6%; top: 10%; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; box-shadow: 0 10px 24px -14px rgba(15, 23, 42, .4); white-space: nowrap; }
.lp-float-chip .ic { color: var(--accent); }
@media (max-width: 420px) { .lp-float-chip { display: none; } .lp-float-pay { width: 150px; } }

/* Landing: two sides */
.lp-split { display: grid; gap: 16px; }
.lp-side { position: relative; display: block; min-height: 420px; border-radius: 22px; overflow: hidden; color: #FFFFFF; text-decoration: none; isolation: isolate; }
.lp-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s; }
.lp-side::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 23, 42, .05) 0%, rgba(15, 23, 42, .35) 35%, rgba(23, 37, 84, .92) 100%); }
.lp-side:hover { color: #FFFFFF; }
.lp-side:hover img { transform: scale(1.03); }
.lp-side-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; }
.lp-side h2 { color: #FFFFFF; font-size: 26px !important; margin: 8px 0 12px !important; }
.lp-side ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; font-weight: 600; }
.lp-side li { display: flex; gap: 8px; align-items: center; }
.lp-side li .ic { color: #93C5FD; }
.lp-side-tag { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); font-size: 13px; font-weight: 700; }
.lp-side-go { display: inline-flex; gap: 6px; align-items: center; font-weight: 800; }
.landing .lp-side svg { width: 18px; height: 18px; }

/* Landing: how it works step cards */
.lp-how-title { display: flex; gap: 8px; align-items: center; font-family: var(--display); font-size: 20px; margin: 8px 0 14px; }
.lp-how-title .ic { color: var(--accent); }
.lp-stepcards { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.lp-stepcards li { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ground); }
.lp-stepcards li p { margin: 0; color: var(--muted); font-size: 14.5px; }
.lp-stepcards li > strong { font-size: 16px; }
.lp-stepart { display: grid; place-items: center; min-height: 210px; margin: -4px -4px 12px; padding: 18px; border-radius: 12px; background: radial-gradient(circle at 30% 20%, var(--accent-soft), transparent 70%), var(--surface); overflow: hidden; }
.lp-stepart > .ill { width: 100%; max-width: 250px; }
.lp-stepnum { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 13px; }
.landing .ill svg { width: 15px; height: 15px; }
.landing .ill-plat svg { width: 14px; height: 14px; }
.landing .ill-mpesa-ok svg { width: 22px; height: 22px; }

/* Landing: showcase of sample posts */
.lp-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; align-items: start; }
.lp-shots .ill-story { max-height: none; }

/* Landing: category photo tiles */
.lp-cats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.lp-cat { position: relative; display: flex; align-items: flex-end; min-height: 130px; padding: 14px; border-radius: 16px; overflow: hidden; background: #172554 center / cover no-repeat; color: #FFFFFF; text-decoration: none; font-weight: 800; font-size: 15.5px; isolation: isolate; }
.lp-cat > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.lp-cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(29, 78, 216, .15), rgba(23, 37, 84, .88)); transition: opacity .2s; }
.lp-cat:hover { color: #FFFFFF; }
.lp-cat:hover::before { opacity: .85; }

/* Landing: CTA band over a photo */
.lp-cta { background: #1D4ED8 center / cover no-repeat; position: relative; isolation: isolate; }
.lp-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(29, 78, 216, .96) 0%, rgba(29, 78, 216, .9) 55%, rgba(30, 64, 175, .6) 100%); }

@media (min-width: 900px) {
  .lp-split { grid-template-columns: 1fr 1fr; }
  .lp-side { min-height: 520px; }
  .lp-hero-art { max-width: 520px; }
}

/* Empty states */
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 18px; background: var(--surface); border: 1px dashed var(--field); border-radius: var(--radius); }
.empty-state p { margin: 0 0 8px; color: var(--muted); max-width: 30em; font-size: 14.5px; }
.empty-state .btn { width: auto; }
.empty-art { position: relative; width: 120px; height: 96px; margin-bottom: 6px; }
.empty-disc { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.empty-disc .ic { width: 38px; height: 38px; }
.empty-chip { position: absolute; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--accent); box-shadow: 0 8px 18px -10px rgba(15, 23, 42, .4); }
.empty-chip .ic { width: 16px; height: 16px; }
.empty-chip.a { right: 0; top: 4px; color: #16A34A; }
.empty-chip.b { left: 0; bottom: 4px; }

/* Sidebar icons */
.side-label { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.admin-side nav a .ic { width: 18px; height: 18px; color: var(--muted); }
.admin-side nav a[aria-current="page"] .ic { color: var(--accent-soft-ink); }

/* Log in / sign up: form + photo panel */
.container.auth-wide { max-width: 1120px; }
.auth-grid { display: grid; gap: 32px; align-items: start; }
.auth-form { width: 100%; max-width: 440px; margin: 0 auto; }
.auth-banner { height: 120px; margin: -8px 0 22px; border-radius: 18px; background: #172554 center 30% / cover no-repeat; position: relative; }
.auth-banner::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(29, 78, 216, .55), rgba(29, 78, 216, .1)); }
.auth-visual { display: none; }
@media (min-width: 900px) {
  .auth-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: stretch; }
  .auth-form { padding-top: 32px; margin: 0; justify-self: end; }
  .auth-banner { display: none; }
  .auth-visual { display: block; position: relative; min-height: 560px; border-radius: 28px; overflow: hidden; isolation: isolate; }
  .auth-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
  .auth-visual::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23, 37, 84, 0) 35%, rgba(23, 37, 84, .9) 100%); }
  .auth-visual-text { position: absolute; left: 28px; right: 28px; bottom: 28px; color: #FFFFFF; }
  .auth-visual-text strong { display: block; font-family: var(--display); font-size: 28px; line-height: 1.15; margin-bottom: 6px; }
  .auth-visual-text span { opacity: .9; }
  .auth-float { position: absolute; top: 28px; right: 28px; width: 240px; }
}

/* Covers: an uploaded photo, or a generated gradient per handle (web.cover_style) with a fine dot texture */
.cover { background-color: var(--accent); background-size: cover; background-position: center; overflow: visible; }
.cover.generated::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.5px); background-size: 14px 14px; mask-image: linear-gradient(180deg, transparent, #000 70%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%); }
.cover.photo::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(15, 23, 42, 0) 40%, rgba(15, 23, 42, .35)); }
.cover .logo { z-index: 1; }
@media (min-width: 600px) { .cover { height: 160px; } }
.lp-page { padding-top: 0; overflow: hidden; }
.lp-page-cover { height: 72px; margin: 0 -16px 0; background-size: cover; background-position: center; overflow: hidden; }
.lp-page-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-page .lp-page-top { margin-top: -26px; align-items: flex-end; }
.lp-page .lp-page-top img, .lp-page .lp-avatar.big { border: 3px solid var(--surface); box-shadow: 0 6px 16px -8px rgba(15, 23, 42, .45); }
.lp-avatar.big { font-size: 18px; }
.plat-icons { display: inline-flex; gap: 4px; vertical-align: -5px; }
.plat-dot { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; color: #FFFFFF; }
.plat-dot .ic { width: 12px; height: 12px; }
.plat-dot.facebook { background: #1877F2; } .plat-dot.instagram { background: linear-gradient(45deg, #F58529, #DD2A7B 55%, #8134AF); } .plat-dot.telegram { background: #229ED9; }
.discover-hero { height: 140px; margin: -8px 0 18px; border-radius: 20px; overflow: hidden; position: relative; }
.discover-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
.discover-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29, 78, 216, .55), rgba(29, 78, 216, .05)); }

/* Creator dashboard header and rows */
.dash-cover { position: relative; height: 110px; border-radius: var(--radius); background-color: var(--accent); background-size: cover; background-position: center; }
.dash-cover.generated::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.5px); background-size: 14px 14px; }
.dash-identity { margin: -34px 0 0 16px; align-items: flex-end; position: relative; }
.dash-identity .logo { border: 4px solid var(--ground); width: 72px; height: 72px; }
.dash-identity h1 { margin: 0; }
.panel-card .label .ic { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; opacity: .85; }
.with-ic { display: inline-flex; align-items: center; gap: 8px; }
.with-ic .ic { color: var(--accent); }
.channel-mini { justify-content: flex-start !important; }
.channel-mini > div { flex: 1; }
.plat-dot.big { width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto; }
.plat-dot.big .ic { width: 18px; height: 18px; }
.list-card .empty-state { border: 0; padding: 18px 8px; }
.avatar.sm { width: 32px; height: 32px; border-radius: 10px; font-size: 12px; }
.credit-card { background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%); }
.credit-card .ic { color: var(--accent); }
.channel-text .plat-dot { vertical-align: -5px; }
h2.with-ic { display: flex; }
h2.with-ic .plat-dot + .plat-dot { margin-left: -4px; }
.kpi-label { display: flex; align-items: center; gap: 8px; }
.kpi-ic { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-style: normal; flex: 0 0 auto; }
.kpi-ic .ic { width: 16px; height: 16px; }
.kpi.lead-kpi .kpi-ic { background: rgba(255, 255, 255, .18); color: var(--accent-ink); }
.kpi strong { margin-top: 4px; }
.cover-preview { position: relative; height: 110px; border-radius: 12px; background-color: var(--accent); background-size: cover; background-position: center; }
.cover-preview.generated::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.5px); background-size: 14px 14px; }
.lp-avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-weight: 700; flex: 0 0 auto; }
.lp-avatar.big { width: 60px; height: 60px; border-radius: 16px; }
.lp-page .lp-page-id { padding-top: 30px; }
@media (max-width: 700px) {
  /* Phones: the sample posts become a swipeable strip instead of four full-width cards. */
  .lp-shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 4px 16px 18px; }
  .lp-shots > .ill { flex: 0 0 250px; scroll-snap-align: start; }
  .lp-shots .ill-story { max-height: 440px; }
}
.dash-identity > div:not(.logo) { padding-top: 40px; min-width: 0; }
.dash-identity { gap: 16px; margin-bottom: 20px; }
.dash-identity h1 { line-height: 1.2; margin-bottom: 8px; }
.dash-identity h1 + .meta { margin-top: 0; line-height: 1.5; }
.with-ic .plat-dot .ic, .plat-dot .ic { color: #FFFFFF; }

/* Closing band on the brand banner (owner's artwork): the section is the banner's own blue and the art's
   edges fade into it, so there's no visible seam. Text first; the art beside it from 900px. */
.lp-banner { background: #1062FC; color: #FFFFFF; padding: 48px 0 0; overflow: hidden; }
.lp-banner-grid { display: grid; gap: 8px; align-items: center; }
.lp-banner h2 { color: #FFFFFF; font-size: clamp(28px, 5vw, 42px); margin: 0 0 10px; }
.lp-banner p { color: #FFFFFF; font-size: 17px; margin: 0 0 22px; }
.lp-banner .btn { background: #FFFFFF; color: #1E40AF; }
.lp-banner .btn:hover { background: #DBEAFE; color: #1E3A8A; }
.lp-banner .btn.secondary { background: transparent; color: #FFFFFF; border: 2px solid rgba(255, 255, 255, .7); }
.lp-banner .btn.secondary:hover { background: rgba(255, 255, 255, .12); }
.lp-banner-art { margin: 0 -16px; }
.lp-banner-art img { display: block; width: 100%; height: auto;
  -webkit-mask-image: radial-gradient(ellipse 66% 62% at 52% 50%, #000 70%, transparent 100%);
          mask-image: radial-gradient(ellipse 66% 62% at 52% 50%, #000 70%, transparent 100%); }
@media (min-width: 900px) {
  .lp-banner { padding: 24px 0; }
  .lp-banner-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; }
  .lp-banner-art { margin: 0 -60px 0 -20px; }
}

/* Site footer on public pages (the landing page has its own), and the Terms / Privacy pages. */
.site-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; max-width: 1080px; margin: 0 auto; padding: 18px 16px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--accent); }
.lp-footer-base a { color: var(--muted); }
.container.legal { max-width: 760px; }
.legal-doc { line-height: 1.65; }
.legal-doc h2 { font-size: 18px; margin-top: 30px; }
.legal-doc ul { padding-left: 20px; }
.legal-doc li { margin: 0 0 8px; }

/* Pricing */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 8px; }
.plan-card { display: flex; flex-direction: column; gap: 6px; }
.plan-card .btn { margin-top: auto; }
.plan-pick { border: 2px solid var(--accent); }
.plan-name { font-family: var(--display); font-weight: 700; font-size: 18px; display: flex; gap: 8px; align-items: center; }
.plan-price { font-family: var(--display); font-weight: 700; font-size: 26px; }
.plan-price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.plan-fee { color: var(--accent); font-weight: 700; font-size: 14px; }
.plan-list { margin: 8px 0 14px; }

/* Discover: filters, saved pages, featured / new tags */
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.filters summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 10px 0 12px; }
.filter-grid select, .filter-grid input { padding: 9px 10px; font-size: 15px; }
.creator-row { align-items: flex-start; }
.creator-row .row-link { display: flex; gap: 12px; flex: 1; min-width: 0; text-decoration: none; color: var(--ink); }
.creator-row.is-featured { border-color: var(--accent); }
.creator-row .line3 { flex-wrap: wrap; }
.creator-row .line3 .badge, .creator-row .line3 .meta { font-size: 11.5px; }
.save-form { margin: 0; }
.save-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.save-btn svg { fill: none; stroke: currentColor; }
.save-btn:hover { color: var(--accent); border-color: var(--accent); }
.save-btn.on { color: var(--accent); }
.save-btn.on svg { fill: currentColor; }
.featured-tag, .new-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; }
.featured-tag { background: var(--accent); color: var(--accent-ink); }
.new-tag { background: var(--accent-soft); color: var(--accent-soft-ink); }
.lp-page-cover { position: relative; }
.lp-page-cover .tag { position: absolute; top: 10px; left: 10px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.trust-row .badge { font-size: 12px; }
.reply { margin: 8px 0 0 14px; padding-left: 10px; border-left: 3px solid var(--accent-soft); font-size: 14px; }
.niche-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.niche-picks label { flex-direction: row; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; padding: 8px 14px; border: 1px solid var(--field); border-radius: 999px; background: var(--surface); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.niche-picks label:hover { border-color: var(--accent); }
.niche-picks input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; }
.niche-picks label:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.niche-picks label:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--ring); }
.thread { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.msg.mine { align-self: flex-end; }
.msg.staff { background: var(--accent-soft); border-color: transparent; color: var(--accent-soft-ink); }
.msg-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 12.5px; margin-bottom: 6px; }
.msg-head time { color: var(--muted); }
.msg.staff .msg-head time { color: inherit; opacity: .8; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.msg-files img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); display: block; }
.job-error { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; max-height: 300px; overflow: auto; }
.pm-guide { margin-bottom: 14px; }
.pm-guide summary { cursor: pointer; font-weight: 700; }
.pm-guide .steps { margin: 12px 0; }
.pm-guide a { display: inline-flex; align-items: center; gap: 6px; }
.pm-guide .ic { width: 16px; height: 16px; }
.guide-list { list-style: none; padding-left: 0 !important; }
.guide-list li { margin: 0 0 10px; }
.pm-live { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.pm-live-count { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font-size: 24px; font-weight: 800; }
.pm-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.pm-card { display: flex; flex-direction: column; gap: 8px; height: 100%; text-decoration: none; color: var(--ink); }
.pm-card:hover { border-color: var(--accent); }
.pm-card.pm-off { background: transparent; }
.pm-top, .pm-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pm-foot { margin-top: auto; }
.pm-go { font-weight: 700; color: var(--accent); font-size: 14px; }
.pm-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; white-space: nowrap; color: var(--muted); }
.pm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.pm-on .pm-state, .pm-state.pm-on { color: var(--accent-soft-ink); }
.pm-on .pm-dot, .pm-state.pm-on .pm-dot { background: var(--accent); }
.pm-test .pm-state, .pm-state.pm-test, .pm-partial .pm-state, .pm-state.pm-partial { color: var(--warn-ink); }
.pm-test .pm-dot, .pm-state.pm-test .pm-dot, .pm-partial .pm-dot, .pm-state.pm-partial .pm-dot { background: var(--warn-ink); }
.pm-field + .pm-field { border-top: 1px solid var(--line); padding-top: 14px; }
.pm-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pm-code { display: block; overflow-wrap: anywhere; font-size: 13.5px; }

/* blog */
.blog-list li { margin: 0 0 22px; }
.blog-list li > a { font-weight: 700; font-size: 17px; }
.blog-list p { margin: 4px 0 0; }

/* help chat: ratings and translations */
.msg-rate { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.msg-rate .link { font-size: 15px; padding: 2px 4px; opacity: .55; }
.msg-rate .link.on, .msg-rate .link:hover { opacity: 1; }
.msg-translation { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line, #ddd); white-space: pre-wrap; }

.pro-tag { background: var(--accent-soft); color: var(--accent-soft-ink); }

/* Profile, "Ads you accept": small switches in two columns, so a long list stays short */
.kind-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 20px; }
.kind-grid label.check, .kind-grid label.check + label.check { gap: 8px; padding: 6px 0; border-top: 0; font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.kind-grid label.check input[type="checkbox"] { width: 34px; height: 20px; }
.kind-grid label.check input[type="checkbox"]::after { top: 2px; left: 2px; width: 16px; height: 16px; }
.kind-grid label.check input[type="checkbox"]:checked::after { transform: translateX(14px); }

/* notification preferences */
.notify-pref { margin: 0; }

/* help chat: the user's side (/app/help), built from the usual card, field, chip and button styles */
.chat { max-width: none; }
.chat .msg.typing { display: flex; gap: 5px; padding: 16px 18px; }
.chat .msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: chat-dot 1.2s infinite ease-in-out; }
.chat .msg.typing span:nth-child(2) { animation-delay: .15s; }
.chat .msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .chat .msg.typing span { animation: none; opacity: .6; } }
.chat-suggest { flex-wrap: wrap; padding-top: 0; margin-bottom: 14px; }
.chat-suggest[hidden] { display: none; }
.chat-window { display: flex; flex-direction: column; height: calc(100dvh - 210px); min-height: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-head strong, .chat-status { display: block; }
.chat-avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent-soft-ink); }
.chat-status { font-size: 12.5px; color: var(--muted); }
.chat-status.live::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #22C55E; }
.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; background: var(--bg); }
.chat-scroll .thread { margin-bottom: 12px; }
.chat-scroll .chat-suggest { justify-content: flex-start; margin-bottom: 4px; }
.chat-scroll .chat-suggest .chip-link { border-radius: 999px; border: 1px solid var(--accent); background: transparent; color: var(--accent); padding: 8px 14px; }
.chat-scroll .chat-suggest .chip-link:hover { background: var(--accent-soft); }
.chat-window .chat-bar { flex: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.chat-suggest .chip-link { font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.chat-bar textarea { resize: none; }
.chat-files { margin: 0; }
.chat-actions { display: flex; gap: 10px; }
.chat-actions .btn { width: auto; }
.chat-actions .chat-send { flex: 1; }
.chat-attach { position: relative; flex-direction: row; gap: 8px; cursor: pointer; }
.chat-attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; padding: 0; }
.chat-attach:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.chat > .hint { margin-top: 10px; }

/* ── Design system v2 (2026-10-30): one look for the dashboards and the public site ────────────────────────── */
/* A fieldset card's legend sits inside the card as its title, not on the border. */
fieldset.card { padding: 20px; }
fieldset.card > legend { float: left; width: 100%; padding: 0; margin: 0 0 14px; font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
fieldset.card > legend + * { clear: both; }
fieldset.card.stack > legend { margin-bottom: 0; }
fieldset.card.stack > legend + * { margin-top: -10px; }
/* Switch rows in a list get hairlines between them. */
label.check + label.check { border-top: 1px solid var(--line); padding-top: 14px; }
.stack > label.check + label.check { margin-top: -6px; }
/* Money panels and the lead figure: the landing page's deep blue, with a soft glow. */
.panel-card { position: relative; overflow: hidden; padding: 22px; border-radius: var(--radius); background: radial-gradient(120% 140% at 100% 0%, rgba(96, 165, 250, .35) 0%, transparent 55%), linear-gradient(135deg, #172554 0%, #1E3A8A 55%, #1D4ED8 100%); color: #FFFFFF; box-shadow: var(--shadow); }
.panel-card .label, .panel-card .split small { color: rgba(255, 255, 255, .75); }
.panel-card .split { border-top-color: rgba(255, 255, 255, .18); }
.panel-card a { color: #FFFFFF; }
.kpi.lead-kpi { background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 60%, #3B82F6 100%); border-color: transparent; color: #FFFFFF; box-shadow: var(--shadow); }
.kpi.lead-kpi span, .kpi.lead-kpi small { color: rgba(255, 255, 255, .85); opacity: 1; }
.kpi { transition: transform .15s, box-shadow .15s; }
/* Cards that are links lift slightly on hover, like the landing page's page cards. */
a.card, .package, .booking-row, .creator-row, .pm-card, .todo a { transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover, .package:hover, .booking-row:hover, .creator-row:hover, .pm-card:hover, .todo a:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
/* Lists inside cards */
.list-card { overflow: hidden; }
a.list-row { transition: background .15s; }
a.list-row:hover { background: var(--hover); }
/* The attention strip and info strips get the alert treatment. */
.attention { border: 1px solid color-mix(in srgb, var(--star) 30%, transparent); box-shadow: var(--shadow-sm); }
.info-strip { border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); }
/* Section headings inside the app */
.app-main h2, .admin-main h2 { font-size: 18px; }
/* Empty states: solid, softly tinted, not dashed */
.empty-state { border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--accent-soft) 25%, var(--surface))); box-shadow: var(--shadow-sm); }
/* Time and slot pickers: toggle pills that fill when on */
label.chip span, label.slot span { border-radius: 10px; transition: background .15s, border-color .15s, color .15s; }
label.chip input:checked + span, label.slot input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
label.chip:hover span, label.slot:not(.off):hover span { border-color: var(--accent); }
/* Choice pills (radio groups, e.g. notification settings): a segmented control */
.chip-row[role="radiogroup"] { display: inline-flex; width: max-content; padding-top: 4px; gap: 2px; padding: 4px; background: var(--hover); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; max-width: 100%; }
.radio-chip { flex-direction: row; align-items: center; padding: 7px 14px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.radio-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; }
.radio-chip:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.radio-chip:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--ring); }
/* Back links at the top of a page */
.back-link { display: flex; width: max-content; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--ink); }
.back-link .ic { width: 16px; height: 16px; transform: rotate(180deg); }
/* Public creator page: photos on top, the page on the left, a booking card that stays in view on the right */
.container.creator-page { max-width: 1120px; }
.creator-page .cover { height: 150px; margin: 0; border-radius: var(--radius); }
.photo-strip { position: relative; display: flex; gap: 8px; margin: -12px -16px 0; padding: 0 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.photo-strip::-webkit-scrollbar { display: none; }
.photo-strip img { flex: 0 0 84%; height: 300px; min-width: 0; object-fit: cover; border-radius: var(--radius); background: var(--hover); scroll-snap-align: center; }
.photo-strip.count-1 img { flex-basis: 100%; }
.photo-all-btn { display: none; position: absolute; right: 14px; bottom: 14px; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); }
.photo-all-btn .ic { width: 16px; height: 16px; }
.photo-wall { width: min(960px, 94vw); max-height: 90vh; padding: 16px; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.photo-wall::backdrop { background: rgba(15, 23, 42, .7); }
.photo-wall form { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.photo-wall form .btn { width: auto; }
.photo-wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.photo-wall-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); }
.creator-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 20px; }
.creator-id { display: flex; align-items: center; gap: 16px; }
.creator-id .logo { width: 84px; height: 84px; border-radius: 50%; font-size: 28px; }
.creator-id-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.creator-id h1 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 26px; overflow-wrap: anywhere; }
.creator-id h1 svg { flex-shrink: 0; }
.creator-id .sub { color: var(--muted); font-size: 14px; }
.creator-id .rating-row { text-decoration: none; color: var(--ink); }
.creator-save { align-self: flex-start; }
.creator-save .btn { width: auto; white-space: nowrap; }
.reach-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.reach-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 7px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: 13.5px; color: var(--muted); box-shadow: var(--shadow-sm); }
.reach-pill strong { color: var(--ink); }
.highlights { list-style: none; display: grid; gap: 14px; margin: 22px 0 0; padding: 0; }
.highlights li { display: flex; align-items: flex-start; gap: 12px; }
.highlights li > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.highlights span:not(.hl-icon) { color: var(--muted); font-size: 13.5px; }
.hl-icon { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-soft-ink); }
.hl-icon .ic { width: 20px; height: 20px; }
.creator-bio { margin: 22px 0 0; font-size: 16px; line-height: 1.55; white-space: pre-line; }
.creator-page h2#packages { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.package[hidden] { display: none; }
.package-where { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.post-feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.post-feed[hidden] { display: none; }
.post-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--ink); text-decoration: none; }
.post-card:hover { color: var(--ink); }
.post-card:hover .post-image { box-shadow: var(--shadow); }
.post-image { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--hover); }
.post-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 13px; line-height: 1.35; }
.post-meta { font-size: 12px; }
@media (max-width: 480px) { .post-text { display: none; } .post-meta { font-size: 11px; } }
.rate-package { position: relative; }
.package-open { color: inherit; text-decoration: none; }
.package-open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rate-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.rate-head .btn { width: auto; flex: 0 0 auto; }
.rate-pages { list-style: none; display: grid; gap: 8px; margin: 10px 0 2px; padding: 0; }
.rate-pages li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 14px; }
.package-open strong { font-size: 16.5px; }
.rate-times { display: flex; align-items: center; gap: 8px; }
.rate-times .ic { width: 16px; height: 16px; margin: 0 2px; flex: 0 0 auto; }
.rate-note { margin: 6px 0 0; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--hover); font-size: 13.5px; }
.rate-note a, .rate-actions { position: relative; z-index: 1; }
.rate-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.rate-actions > .danger { margin-left: auto; }
@media (max-width: 480px) { .rate-head { flex-direction: column; gap: 0; } .rate-head .btn { margin-bottom: 18px; } }
.package-delete { margin-top: 18px; }
.package-delete > .btn { width: auto; }
.modal { width: min(460px, 92vw); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgba(15, 23, 42, .7); }
.modal-body { padding: 24px; }
.modal-body h2 { margin: 0 0 10px; overflow-wrap: anywhere; }
.modal-body p { margin: 0 0 10px; font-size: 14.5px; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.modal-actions .btn { width: auto; }
.public-package { position: relative; }
.public-package .book-link { text-decoration: none; }
.public-package .book-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.package-pages { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 2px; padding: 0; }
.package-pages li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 13.5px; }
.package-pages a { position: relative; z-index: 1; font-weight: 700; overflow-wrap: anywhere; }
.package-pages .meta { white-space: nowrap; }
.book-card-wrap { display: none; }
.book-card { display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.book-card-price { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.book-card .meta { margin: 0; font-size: 14px; }
.book-card select { text-overflow: ellipsis; }
.book-card .book-pages { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.book-card-note { display: flex; gap: 10px; align-items: flex-start; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.book-card-note strong { color: var(--ink); }
.book-card-note .ic { flex-shrink: 0; width: 18px; height: 18px; color: var(--accent); }
.book-card-how { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.book-card-how .ic { width: 16px; height: 16px; }
.book-bar { position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.book-bar small { color: var(--muted); }
.book-bar strong { font-family: var(--display); font-size: 18px; }
.book-bar .btn { width: auto; }
.creator-page:has(.book-bar) { padding-bottom: 96px; }
.photo-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.photo-thumb { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.photo-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }
@media (min-width: 720px) {
  .photo-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: -8px 0 0; padding: 0; overflow: visible; }
  .photo-strip.count-1 { grid-template-columns: minmax(0, 1fr); }
  .photo-strip.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-strip img { width: 100%; height: 400px; }
  .photo-strip img:nth-of-type(n+4) { display: none; }
  .photo-strip.count-1 img { height: 340px; }
  .photo-all-btn { display: inline-flex; }
  .highlights:has(li:nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .creator-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; margin-top: 28px; }
  .book-card-wrap { display: block; position: sticky; top: 84px; align-self: start; }
  .book-bar { display: none; }
  .creator-page:has(.book-bar) { padding-bottom: 64px; }
}

/* Page analytics on the public page: one series per panel, so bars wear the accent and carry their own label. */
.an-table { margin-top: 10px; }
.an-table th, .an-table td { padding: 10px; }
.an-platform { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.an-title { margin: 22px 0 10px; font-size: 15px; }
.an-audience { display: grid; gap: 10px; }
.an-bars { list-style: none; display: grid; gap: 8px; margin: 10px 0 0; padding: 0; font-size: 13.5px; }
.an-bars li { display: grid; grid-template-columns: minmax(0, 96px) minmax(0, 1fr) 38px; align-items: center; gap: 8px; }
.an-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-bar-track { height: 8px; border-radius: 4px; background: var(--hover); overflow: hidden; }
.an-bar-fill { display: block; height: 100%; min-width: 2px; border-radius: 4px; background: var(--accent); }
.an-bar-value { text-align: right; font-weight: 700; }
.an-note { display: block; margin: 10px 0 0; }
@media (min-width: 720px) { .an-audience { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Light / dark switch */
.theme-toggle, .icon-btn { display: inline-grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; }
.theme-toggle:hover, .icon-btn:hover { background: var(--hover); color: var(--ink); }
.theme-toggle .ic, .icon-btn .ic { width: 18px; height: 18px; }
.theme-toggle .ic-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-dark { display: block; }
:root[data-theme="dark"] .theme-toggle .ic-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ic-dark { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .ic-light { display: none; }
}
.shell-bar-actions { display: flex; align-items: center; gap: 8px; }
.side-theme { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px; font-size: 13.5px; font-weight: 600; color: var(--muted); }

/* Phones: wide tables become labelled cards (the script in base.html marks only tables that don't fit). */
table.stacked, table.stacked tbody, table.stacked tr, table.stacked td { display: block; width: 100%; }
table.stacked thead { display: none; }
table.stacked tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
table.stacked tbody tr:last-child { border-bottom: 0; }
table.stacked td { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 6px 14px; border: 0; white-space: normal; text-align: right; overflow-wrap: anywhere; }
table.stacked td[data-label]::before { content: attr(data-label); flex-shrink: 0; font-size: 12.5px; font-weight: 700; color: var(--muted); text-align: left; }
@media (max-width: 480px) {
  .stat { padding: 12px 10px; }
  .stat strong { font-size: 17px; white-space: nowrap; }
}

/* Public pages share the same top bar buttons */
.topbar .btn.sm { margin-left: 6px; }
/* Fold-out sections: a chevron instead of the browser's triangle */
details > summary { list-style: none; display: flex; align-items: center; gap: 8px; font-weight: 700; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; opacity: .6; margin: 0 4px 0 2px; }
details[open] > summary::before { transform: rotate(45deg); }
.decide details > summary::before, .lp-faq summary::before, .filters summary::before { display: none; }
.panel-card + .hint { display: block; margin-top: 10px; }
/* Counters stay a strong red in both themes; titles breathe before a form; filter rows line up. */
.admin-count { background: #DC2626; color: #FFFFFF; }
h1 { margin-bottom: 18px; }
h1 + .lead, h1 + p.meta, h1 + .meta { margin-top: -12px; }
.search-row .btn { min-height: 48px; }
.search-row input, .search-row select { padding: 11px 14px; }

/* Advertisers: the plain site with an account menu; My ads reads like a list of orders. */
.topbar nav.has-menu { overflow: visible; }
.account-menu { position: relative; }
.account-menu > summary { list-style: none; margin: 0; cursor: pointer; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary::before, .account-menu > summary::after { display: none; content: none; }
.account-menu[open] > summary { margin-bottom: 0; }
.account-menu-list { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; display: flex; flex-direction: column; min-width: 220px; max-width: calc(100vw - 28px); padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.account-menu-list a, .account-menu-list button { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.account-menu-list a:hover, .account-menu-list button:hover { background: var(--hover); }
.account-menu-list form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }
.account-menu-email { padding: 8px 12px; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-back { display: inline-block; margin-bottom: 10px; font-weight: 600; }
.container.orders-page { max-width: 860px; }
.acct-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 8px; }
.acct-link { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.acct-link:hover { background: var(--hover); }
.acct-link strong { font-size: 15px; }
.acct-link span { color: var(--muted); font-size: 13px; }
.orders-head { margin: 28px 0 12px; }
.orders { display: flex; flex-direction: column; gap: 14px; }
.order { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.order.needs-you { border-color: var(--accent); }
.order-top { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 12px 16px; background: var(--hover); border-bottom: 1px solid var(--line); font-size: 13px; }
.order-top div { display: flex; flex-direction: column; min-width: 0; }
.order-top span { color: var(--muted); }
.order-top strong { font-weight: 600; }
.order-top .order-details { margin-left: auto; align-self: center; font-weight: 600; }
.order-body { display: flex; gap: 16px; justify-content: space-between; padding: 16px; }
.order-thumb { flex: 0 0 96px; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 10px; background: var(--hover); color: var(--muted); }
.order-thumb img, .order-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.order-main { min-width: 0; flex: 1 1 auto; }
.order-status { display: block; margin-bottom: 4px; font-family: var(--display); font-size: 18px; }
.order-status.bad { color: var(--danger); }
.order-main p { margin: 0 0 6px; }
.order-what { color: var(--muted); font-size: 14px; }
.order-caption { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.order-actions { display: flex; flex-direction: column; gap: 8px; flex: 0 0 170px; }
.order-actions .btn { width: 100%; text-align: center; justify-content: center; }
.credit-total { margin: 0 0 8px; font-family: var(--display); font-size: 34px; font-weight: 700; }
.credit-lines { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.credit-lines li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border-top: 1px solid var(--line); }
.credit-lines li:first-child { border-top: 0; }
.credit-lines li div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.credit-lines li span { color: var(--muted); font-size: 13px; }
.credit-amount { white-space: nowrap; }
.credit-amount.up { color: var(--ok); }
@media (max-width: 640px) {
  .acct-links { grid-template-columns: repeat(2, 1fr); }
  .order-body { flex-wrap: wrap; }
  .order-thumb { flex-basis: 72px; width: 72px; height: 72px; }
  .order-main { flex-basis: calc(100% - 88px); width: calc(100% - 88px); }
  .order-actions { flex: 1 1 100%; }
}

/* Channels: what to do next, and each way of connecting as a section that opens. */
.next-step { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; border-color: var(--accent); }
.next-step > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.next-step .btn { flex-shrink: 0; }
.connect-option > summary { display: flex; align-items: center; gap: 8px; list-style: none; }
.connect-option > summary::-webkit-details-marker { display: none; }
.connect-option[open] > summary { margin-bottom: 14px; }

/* The first question after signing up. */
.choice-card { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 20px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font: inherit; text-decoration: none; cursor: pointer; }
.choice-card:hover { background: var(--hover); border-color: var(--accent); }
.choice-card strong { font-size: 17px; }

/* Entering a code at checkout. */
.code-entry > summary { font-weight: 600; font-size: 14px; }
.code-entry-row { display: flex; gap: 8px; align-items: stretch; }
.code-entry-row input { flex: 1 1 auto; min-width: 0; text-transform: uppercase; }
.code-entry-row .btn { flex: 0 0 auto; }

/* Audience detail for logged-in visitors: a preview with made-up bars, never the page's real numbers. */
.an-locked { display: flex; flex-direction: column; gap: 16px; margin-top: 10px; }
.an-locked-preview { display: grid; gap: 10px; filter: blur(3px); opacity: .7; }
.an-locked-text { display: flex; flex-direction: column; gap: 6px; }
.an-locked-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* Receipts and media kits print as plain paper. */
.print-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.print-actions .account-back { margin: 0; }
.print-actions .btn { flex-shrink: 0; }
.paper .summary-rows span:last-child { white-space: nowrap; }
.paper-brand { font-family: var(--display); font-size: 20px; }
.paper-parties { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.kit-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.kit-head h1 { margin: 0; }
.kit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.kit-price { margin-left: auto; }
@media print {
  .topbar, .site-foot, .print-actions, .sticky-book { display: none !important; }
  :root, body { background: #fff !important; color: #000 !important; }
  .card { box-shadow: none !important; background: #fff !important; color: #000; border: 1px solid #ccc; break-inside: avoid; }
  .container { max-width: none; padding: 0; }
  a { color: inherit; text-decoration: none; }
  .meta, .hint, .summary-rows span:first-child { color: #444 !important; }
  .an-bar-track { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .an-bar-fill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* The month view of a page's bookings. */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 12px; }
.cal-head h2 { margin: 0; }
.cal-head .btn { width: 44px; justify-content: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-name { padding: 4px; color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }
.cal-day { display: flex; flex-direction: column; gap: 2px; min-height: 76px; padding: 6px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 12px; text-decoration: none; }
.cal-day:hover { background: var(--hover); }
.cal-day.today { border-color: var(--accent); }
.cal-day.chosen { background: var(--accent-soft); }
.cal-day.past { opacity: .6; }
.cal-booked { font-weight: 700; color: var(--accent); }
.cal-free { color: var(--muted); }
@media (max-width: 480px) { .cal-day { min-height: 60px; padding: 4px; font-size: 11px; } }

/* A conversation about a booked ad. */
.note-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.note-list li { padding: 10px 12px; background: var(--hover); border-radius: var(--radius-sm); margin-right: 32px; }
.note-list li.mine { background: var(--accent-soft); margin: 0 0 0 32px; }
.note-list p { margin: 4px 0 0; overflow-wrap: anywhere; }

