/* TeeSee — palette carried over from ProductStudio, slightly refined */
:root {
    --accent: #7b2ff7;
    --accent-hover: #6a22e0;
    --accent-soft: #efe6ff;
    --bg: #f7f5fb;
    --sidebar-bg: #1c1530;
    --sidebar-text: #cfc8e2;
    --card: #ffffff;
    --text: #241c3b;
    --muted: #6b6480;
    --border: #e4dff2;
    --input-bg: #ffffff;
    --danger: #c53030;
    --danger-soft: #fdecec;
    --warn: #8a5a00;
    --warn-soft: #fff5de;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(36, 28, 59, .05), 0 8px 24px rgba(36, 28, 59, .06);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

code { background: rgba(0,0,0,.06); padding: .1rem .35rem; border-radius: 4px; font-size: .88em; }
.muted { color: var(--muted); }

/* ---------- Shell ---------- */
.app-shell { display: flex; min-height: 100vh; }
.app-main { flex: 1; min-width: 0; padding: 2rem 2.5rem; max-width: 2200px; }

.sidebar {
    width: 232px; flex-shrink: 0;
    background: var(--sidebar-bg); color: #fff;
    display: flex; flex-direction: column;
    padding: 1.5rem 1rem;
    position: sticky; top: 0; height: 100vh;
}

.sidebar-brand { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; margin: 0 .25rem 2rem; }
.brand-mark { width: 36px; height: 36px; display: block; flex-shrink: 0; }
.brand-name { font-weight: 600; font-size: 1.1rem; letter-spacing: -.01em; }

.sidebar-nav { display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.nav-item {
    display: flex; align-items: center; gap: .7rem;
    padding: .65rem .75rem; border-radius: 8px;
    color: var(--sidebar-text); text-decoration: none; font-size: .95rem;
}
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active { background: var(--accent); color: #fff; }
.nav-icon { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.sidebar-footer { font-size: .75rem; color: #7d7496; padding: 0 .5rem; }

/* ---------- Page header ---------- */
.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
h1 { margin: 0; font-size: 1.75rem; letter-spacing: -.02em; }
.page-subtitle { color: var(--muted); margin: .25rem 0 0; }
.model-pill {
    font-size: .78rem; color: var(--accent); background: var(--accent-soft);
    padding: .3rem .7rem; border-radius: 999px; white-space: nowrap;
}

/* ---------- Notices ---------- */
.notice { padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1.25rem; font-size: .92rem; }
.notice-warn { background: var(--warn-soft); color: var(--warn); }
.notice-error { background: var(--danger-soft); color: var(--danger); margin: 1rem 0 0; white-space: pre-wrap; }

/* ---------- Layout ---------- */
.design-layout { display: grid; grid-template-columns: minmax(360px, 520px) minmax(0, 1fr); gap: 1.5rem; align-items: start; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.card-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1.75rem 0 1rem; }
.card-title:first-child { margin-top: 0; }

.result-card { position: sticky; top: 2rem; }

/* ---------- Fields ---------- */
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field-label { font-size: .86rem; font-weight: 600; }
.field-hint { font-weight: 400; color: var(--muted); }

.input {
    width: 100%; padding: .6rem .75rem;
    border: 1px solid var(--border); border-radius: 8px;
    background: var(--input-bg); color: var(--text);
    font: inherit; font-size: .95rem;
}
.input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
textarea.input { resize: vertical; }
.input.mono { font-family: Consolas, "Cascadia Mono", monospace; font-size: .82rem; line-height: 1.55; }
.input[readonly] { background: #faf9fc; color: var(--muted); }

.prompt-box { border: 1px solid var(--border); border-radius: 8px; padding: .6rem .8rem; margin-bottom: 1.25rem; }
.prompt-box summary { cursor: pointer; font-size: .88rem; font-weight: 600; }
.prompt-box[open] summary { margin-bottom: .6rem; }
.checkbox { display: flex; align-items: center; gap: .5rem; font-size: .88rem; margin-bottom: .5rem; }

/* ---------- Template fields ---------- */
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field-wide { grid-column: 1 / -1; }
.field-grid .field-toggle { grid-column: 1 / -1; margin-bottom: .75rem; }
.field-hint { font-size: .8rem; color: var(--muted); margin: 0; }
.field-toggle .field-hint { margin-left: 3.1rem; }
.custom-input { margin-top: .35rem; }
.top-row .field { margin-bottom: .25rem; }

.toggle { display: flex; align-items: center; gap: .75rem; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle-track {
    width: 38px; height: 22px; border-radius: 999px; background: #d9d3e8; position: relative; flex-shrink: 0; transition: background .15s;
}
.toggle-track::after {
    content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s;
}
.toggle input:checked + .toggle-track { background: var(--accent); }
.toggle input:checked + .toggle-track::after { transform: translateX(16px); }
.toggle input:focus-visible + .toggle-track { outline: 2px solid var(--accent); outline-offset: 2px; }

.swatches { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.swatch {
    width: 32px; height: 32px; border-radius: 50%; padding: 0; cursor: pointer;
    background: var(--swatch, #fff); border: 2px solid var(--border);
}
.swatch.active { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.swatch-custom {
    position: relative; overflow: hidden; display: inline-block;
    background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
}
.swatch-custom input { position: absolute; inset: -8px; width: 48px; height: 48px; opacity: 0; cursor: pointer; }
.colour-row { display: flex; gap: .6rem; align-items: center; margin-top: .5rem; }
.colour-row .hex { flex-shrink: 0; }

/* ---------- Buttons ---------- */
.actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
    background: var(--accent); color: #fff; border: 0; border-radius: 8px;
    padding: .75rem 1.4rem; font: inherit; font-weight: 600; cursor: pointer;
}
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.btn-ghost {
    display: inline-block; padding: .5rem .9rem; border: 1px solid var(--border); border-radius: 8px;
    color: var(--text); text-decoration: none; font-size: .9rem;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.status { font-size: .88rem; color: var(--muted); }

/* ---------- Result ---------- */
.result-frame {
    aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden;
    display: grid; place-items: center; transition: background .2s;
}
.checker { background: repeating-conic-gradient(#e9e4f3 0% 25%, #fbfafd 0% 50%) 0 0 / 24px 24px; }
/* Mid grey so both light (cream/white ink) and dark designs stand out */
.checker-sm .thumb { background: #8c8c8c; }
/* The picture fills the frame and is scaled to fit inside it, never cropped – whatever its
   shape (square, portrait ad, wide) and however short the window makes the frame. */
.result-frame { position: relative; }
.result-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.result-empty, .result-loading { text-align: center; color: var(--muted); padding: 2rem; }
.result-empty svg { width: 64px; height: 64px; fill: none; stroke: #c9bfe0; stroke-width: 2; stroke-linejoin: round; }
.result-empty p { margin: .4rem 0 0; }
.spinner {
    width: 42px; height: 42px; margin: 0 auto 1rem; border-radius: 50%;
    border: 4px solid var(--accent-soft); border-top-color: var(--accent);
    animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.result-actions { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.result-actions button.btn-ghost { background: none; font: inherit; font-size: .9rem; cursor: pointer; }
.used-prompt {
    white-space: pre-wrap; font-family: Consolas, "Cascadia Mono", monospace; font-size: .8rem;
    background: #faf9fc; border: 1px solid var(--border); border-radius: 8px; padding: .8rem; margin: .8rem 0 0;
    max-height: 320px; overflow: auto;
}
.preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.preview-bgs { display: flex; gap: .4rem; }
.bg-btn {
    width: 24px; height: 24px; border-radius: 6px; padding: 0; cursor: pointer;
    border: 2px solid var(--border); background: var(--bg, #fff);
}
.bg-btn[data-bg="checker"] { background: repeating-conic-gradient(#d9d3e8 0% 25%, #fff 0% 50%) 0 0 / 8px 8px; }
.bg-btn.active { border-color: var(--accent); }

.gallery-title { margin-top: 1.75rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; aspect-ratio: 1; }
.thumb:hover, .thumb.active { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

[hidden] { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .design-layout { grid-template-columns: 1fr; }
    .result-card { position: static; }
}

@media (max-width: 760px) {
    .app-shell { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; padding: .75rem 16px; gap: 1rem; }
    .sidebar-brand { margin: 0; }
    .sidebar { flex-wrap: wrap; }
    .sidebar-nav { flex-direction: row; flex-wrap: wrap; gap: .3rem; flex-basis: 100%; }
    .nav-item { padding: .45rem .6rem; font-size: .85rem; gap: .4rem; }
    .sidebar-footer { display: none; }
    .app-main { padding: 1.25rem 16px; }
    .field-row, .field-grid { grid-template-columns: 1fr; }
    .page-header { flex-direction: column; }
}
#gallery-empty { grid-column: 1 / -1; margin: 0; }

/* ---------- Props table (Scene Builder) ---------- */
/* Each prop is two lines: the item on top, then position / size / % in frame. */
.props-table { display: grid; gap: .6rem; }
.props-head { display: none; }
.prop-row {
    display: grid; gap: .4rem; align-items: center;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 4.8rem 2.1rem;
    padding: .6rem; border: 1px solid var(--border); border-radius: 10px; background: #faf9fc;
}
.prop-row [data-p="item"] { grid-column: 1 / -1; }
.prop-row .input { padding: .45rem .5rem; font-size: .88rem; }
.prop-del { border: 1px solid var(--border); background: #fff; border-radius: 8px; height: 2.1rem; cursor: pointer; color: var(--muted); font-size: 1.1rem; }
.prop-del:hover { color: var(--danger); border-color: var(--danger); }
.btn-small { padding: .35rem .7rem; font-size: .85rem; background: none; cursor: pointer; align-self: flex-start; margin-top: .4rem; font-family: inherit; }

/* ---------- Mockup Studio ---------- */
.scene-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; margin-bottom: .5rem; }
.scene-thumb { padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 1; background: #ddd; }
.scene-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scene-thumb:hover { border-color: var(--accent-soft); }
.scene-thumb.active { border-color: var(--accent); }
.scene-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dropzone {
    display: flex; align-items: center; gap: 1rem; padding: 1rem; margin-bottom: .5rem;
    border: 2px dashed var(--border); border-radius: 10px; cursor: pointer; text-align: left; font-size: .9rem;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dropzone img { width: 96px; height: 96px; object-fit: contain; border-radius: 8px; background: #8c8c8c; flex-shrink: 0; }
.dropzone:focus-within { outline: 2px solid var(--accent); }
.field-hint a { color: var(--accent); }

/* ---------- Choose from Printify ---------- */
.shirt-source { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .6rem; }
.btn-printify { display: inline-flex; align-items: center; gap: .45rem; background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.btn-printify svg { width: 18px; height: 18px; fill: currentColor; }
.btn-printify:hover { border-color: var(--accent); }
.pf-dialog {
    width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 64px); padding: 0;
    border: 0; border-radius: 14px; box-shadow: 0 24px 64px rgba(28, 21, 48, .35); color: var(--text);
}
.pf-dialog::backdrop { background: rgba(28, 21, 48, .55); }
.pf-head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--card); z-index: 1; }
.pf-head h2 { margin: 0; font-size: 1.05rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-head .btn-small { margin-top: 0; align-self: center; }
.pf-refresh { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.pf-refresh svg { width: 15px; height: 15px; fill: currentColor; }
.pf-refresh:disabled svg { animation: pf-spin 1s linear infinite; }
@keyframes pf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pf-refresh:disabled svg { animation: none; } }
@media (max-width: 600px) { .pf-refresh span { display: none; } }
.pf-close { border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 .25rem; }
.pf-close:hover { color: var(--text); }
.pf-body { padding: 1rem 1.25rem 1.25rem; }
.pf-body .input[type="search"] { margin-bottom: 1rem; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.pf-card {
    display: flex; flex-direction: column; gap: .4rem; padding: .5rem; cursor: pointer; text-align: left;
    border: 2px solid var(--border); border-radius: 10px; background: #fff; font: inherit; font-size: .85rem; color: var(--text);
}
.pf-card:hover, .pf-card:focus-visible { border-color: var(--accent); }
.pf-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f3f1f7; border-radius: 6px; }
.pf-card span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pf-msg:empty { display: none; }
#pf-more { margin-top: 1rem; }

/* Write Facebook post dialog */
.fb-dialog { width: min(720px, calc(100vw - 32px)); }
.fb-step { margin-bottom: 1rem; }
.fb-row { display: flex; gap: .5rem; }
.fb-row .input { flex: 1; min-width: 0; }
.fb-browse { margin-top: .6rem; }
.fb-browse summary { cursor: pointer; color: var(--accent); font-size: .9rem; margin-bottom: .6rem; }
.fb-results { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); max-height: 320px; overflow: auto; }
.fb-product { display: flex; gap: .75rem; align-items: center; margin-top: .75rem; padding: .6rem; border: 1px solid var(--border); border-radius: 10px; }
.fb-product img { width: 64px; height: 64px; object-fit: contain; background: #f3f1f7; border-radius: 6px; }
.fb-product div { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.fb-checks { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.fb-output { margin-top: 1rem; }
.fb-output textarea { font-size: .95rem; line-height: 1.45; }

/* Video Maker */
.slide-list { list-style: none; margin: 0 0 .75rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; counter-reset: slide; }
.slide-row { display: flex; gap: .6rem; align-items: flex-start; padding: .5rem; border: 2px solid var(--border); border-radius: 10px; counter-increment: slide; }
.slide-row.active { border-color: var(--accent); }
.slide-thumb { position: relative; flex: 0 0 72px; height: 72px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: #8c8c8c; }
.slide-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-thumb::after { content: counter(slide); position: absolute; left: 4px; top: 4px; min-width: 20px; height: 20px; border-radius: 10px; background: rgba(28,21,48,.8); color: #fff; font-size: .75rem; line-height: 20px; text-align: center; }
.slide-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .4rem; }
.slide-opts { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.slide-opts .input { width: auto; flex: 1 1 120px; padding-top: .35rem; padding-bottom: .35rem; }
.slide-move { display: flex; gap: .25rem; }
.btn-small { padding: .3rem .6rem; font-size: .85rem; }
.video-stage { position: relative; display: flex; justify-content: center; align-items: center; background: #1a1a1a; border-radius: 12px; padding: .75rem; min-height: 320px; }
.video-stage canvas, .video-stage video { max-width: 100%; max-height: 70vh; border-radius: 8px; display: block; }
.video-stage .result-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(26,26,26,.85); color: #fff; border-radius: 12px; }
.video-thumb { position: relative; background: #2a2440; }
.video-thumb img { object-fit: cover; }
.play-badge { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.4rem; text-shadow: 0 1px 6px rgba(0,0,0,.7); pointer-events: none; }
.pick-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.pick-tab { border: 1px solid var(--border); background: none; border-radius: 999px; padding: .35rem .8rem; font: inherit; font-size: .88rem; cursor: pointer; }
.pick-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pick-card.picked { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pick-grid { margin-bottom: .75rem; }
.input-colour { height: 2.6rem; padding: .2rem; }

/* Change this picture (edit box under the result) */
.edit-box { margin-top: 1rem; padding: .75rem; border: 1px dashed var(--border); border-radius: 10px; display: flex; flex-direction: column; gap: .5rem; }
.edit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }

/* ---------- Sign in / sign up ---------- */
.auth-body {
    min-height: 100vh; margin: 0;
    background: radial-gradient(1200px 700px at 15% -10%, #3a2470 0%, transparent 60%), var(--sidebar-bg);
}
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-panel {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%; max-width: 920px; min-height: 600px;
    background: var(--card); border-radius: 20px; overflow: hidden;
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
}
.auth-form-side { padding: 2.5rem 2.75rem 2.25rem; display: flex; flex-direction: column; justify-content: center; }
.auth-brand { display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; margin-bottom: 1.75rem; }
.auth-brand .brand-mark { width: 32px; height: 32px; }
.auth-title { font-size: 1.6rem; margin: 0 0 .5rem; letter-spacing: -.01em; }
.auth-lead { margin: 0 0 1.5rem; }
.auth-title + form, .auth-title + .auth-google { margin-top: 1.25rem; }

/* The picture side: the same idea as the landing page – a print file over its ad photo. */
.auth-art {
    position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.75rem;
    padding: 2.5rem 2rem;
    background: linear-gradient(150deg, #9b5cff 0%, #7b2ff7 45%, #3d1a86 100%);
    color: #fff;
}
.auth-art-stack { position: relative; width: 74%; max-width: 300px; }
.auth-art-photo { width: 100%; height: auto; display: block; border-radius: 12px; box-shadow: 0 24px 50px -18px rgba(0,0,0,.55); transform: rotate(2deg); }
.auth-art-print {
    position: absolute; left: -22%; bottom: -8%; width: 56%; padding: 5%;
    background-color: #fff;
    background-image: linear-gradient(45deg, #ece8f3 25%, transparent 25%, transparent 75%, #ece8f3 75%),
                      linear-gradient(45deg, #ece8f3 25%, transparent 25%, transparent 75%, #ece8f3 75%);
    background-size: 16px 16px; background-position: 0 0, 8px 8px;
    border-radius: 10px; transform: rotate(-5deg); box-shadow: 0 18px 40px -14px rgba(0,0,0,.55);
}
.auth-art-print img { width: 100%; height: auto; display: block; }
.auth-art-text { margin: 1rem 0 0; max-width: 18em; text-align: center; font-size: 1.15rem; font-weight: 600; line-height: 1.35; text-wrap: balance; }

.auth-close {
    position: absolute; top: 14px; right: 14px; width: 38px; height: 38px;
    display: grid; place-items: center; border-radius: 50%;
    background: rgba(255,255,255,.92); color: var(--text);
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.auth-close:hover { background: #fff; }
.auth-close svg { width: 20px; height: 20px; fill: currentColor; }
.auth-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

@media (max-width: 760px) {
    .auth-shell { align-items: flex-start; padding: 1.5rem 1rem; }
    .auth-panel { grid-template-columns: 1fr; min-height: 0; border-radius: 16px; }
    .auth-art { display: none; }
    .auth-form-side { padding: 2rem 1.5rem 1.75rem; }
    .auth-close { background: var(--accent-soft); box-shadow: none; }
}

/* Main button full width, any secondary link centred underneath. */
.auth-actions { margin-top: 1.5rem; flex-direction: column; align-items: stretch; gap: .9rem; }
.auth-actions .btn-primary { width: 100%; min-height: 46px; }
.auth-actions a { align-self: center; }
.auth-turnstile { margin-top: 1rem; min-height: 65px; }
.auth-legal { margin: 1rem 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
.auth-legal a { color: var(--accent); }
.auth-legal-google { margin-top: .5rem; }
.auth-actions a, .auth-switch a { color: var(--accent); font-size: .9rem; }
.auth-switch { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: .92rem; color: var(--muted); text-align: center; }
.auth-switch .btn-primary { display: inline-block; color: #fff; text-decoration: none; }
.auth-errors:empty, .auth-errors.validation-summary-valid { display: none; }
.auth-errors ul { margin: 0; padding-left: 1.1rem; }
.field-error { color: var(--danger); font-size: .82rem; }
.input-validation-error { border-color: var(--danger); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.auth-google { margin-bottom: 1rem; }
.btn-google { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; background: #fff; font: inherit; font-weight: 600; padding: .7rem; cursor: pointer; }
.btn-google svg { width: 18px; height: 18px; }
.auth-or { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .82rem; margin: 0 0 1rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--border); }

/* Signed-in user, bottom of the sidebar */
.sidebar-user { border-top: 1px solid rgba(255,255,255,.1); padding: .9rem .5rem .25rem; margin-top: 1rem; font-size: .82rem; color: var(--sidebar-text); }
.sidebar-user .who { display: block; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user .credits { display: block; color: #b99cf5; margin: .15rem 0 .5rem; }
.sidebar-user form { display: inline; }
.sidebar-user a, .sidebar-user button { color: var(--sidebar-text); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; margin-right: .75rem; }
.sidebar-user a:hover, .sidebar-user button:hover { color: #fff; }

/* Admin */
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th, .admin-table td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.admin-table .num { text-align: right; }
.admin-gift { display: flex; gap: .4rem; align-items: center; }
.admin-gift .input { width: 5.5rem; padding: .35rem .5rem; }
.admin-gift .btn-ghost { padding: .35rem .7rem; background: none; cursor: pointer; font: inherit; font-size: .85rem; }
.badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: .1rem .45rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.notice-ok { background: #e7f6ec; color: #1e6b3a; }

/* ---------- My Library + Uploads ---------- */
a.pick-tab { color: var(--text); text-decoration: none; }
a.pick-tab.active { color: #fff; }
.storage-meter { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; font-size: .82rem; color: var(--muted); min-width: 180px; }
.storage-bar { width: 180px; height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.storage-bar span { display: block; height: 100%; background: var(--accent); }
.storage-full .storage-bar span { background: var(--danger); }
.storage-full .storage-text { color: var(--danger); }
.library-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.library-search { flex: 0 1 280px; }
.library-actions { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.library-actions-right { display: flex; gap: .5rem; flex-wrap: wrap; }
.library-actions .btn-ghost, .selection-bar .btn-ghost { background: none; font: inherit; font-size: .88rem; padding: .4rem .8rem; cursor: pointer; }
.btn-ghost:disabled { opacity: .5; cursor: not-allowed; }
.btn-danger:hover { border-color: var(--danger); color: var(--danger); }
.selection-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .6rem .8rem; margin-bottom: 1rem; border-radius: 10px; background: var(--accent-soft); }
.selection-bar strong { margin-right: .5rem; font-size: .9rem; }
.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .9rem; }
.lib-card { position: relative; display: flex; flex-direction: column; border: 2px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--card); }
.lib-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lib-thumb { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: repeating-conic-gradient(#e9e4f3 0% 25%, #fbfafd 0% 50%) 0 0 / 20px 20px; }
.lib-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.lib-select { position: absolute; left: .4rem; top: .4rem; z-index: 1; background: rgba(255,255,255,.9); border-radius: 6px; padding: .2rem .3rem; line-height: 0; cursor: pointer; }
.lib-select input { width: 18px; height: 18px; margin: 0; cursor: pointer; accent-color: var(--accent); }
.lib-fav { position: absolute; right: .4rem; top: .4rem; z-index: 1; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: #b9b2c9; font-size: 1.05rem; cursor: pointer; line-height: 1; }
.lib-fav.on { color: #e0a100; }
.lib-fav:hover { color: #e0a100; }
.lib-meta { display: flex; flex-direction: column; padding: .5rem .6rem 0; font-size: .82rem; min-width: 0; }
.lib-label { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-links { display: flex; flex-wrap: wrap; gap: .1rem .7rem; padding: .35rem .6rem .6rem; font-size: .8rem; }
.lib-links a, .lib-links .link-button { color: var(--accent); font-size: .8rem; }
.library-pages { display: flex; justify-content: center; gap: .75rem; margin-top: 1.25rem; }
.library-pages .btn-ghost { text-decoration: none; }
.library-empty, .uploads-empty { margin: 1rem 0; }
.library-empty a { color: var(--accent); }
.upload-drop { padding: 1.75rem 1.25rem; margin-bottom: 1.25rem; justify-content: center; text-align: center; }
.upload-drop.busy { opacity: .6; pointer-events: none; }
.notice { white-space: pre-line; }
@media (max-width: 760px) {
    .storage-meter { align-items: flex-start; }
    .library-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
.scene-group { margin: .75rem 0 .4rem; }

/* ---------- Admin: prices ---------- */
.admin-nav { display: flex; gap: .4rem; }
.admin-nav a { border: 1px solid var(--border); border-radius: 999px; padding: .35rem .9rem; color: var(--text); text-decoration: none; font-size: .9rem; }
.admin-nav a.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.prices-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1.5rem; margin-bottom: 1.25rem; }
.prices-big { font-size: 1.6rem; }
.prices-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(560px, 1fr)); gap: 1.25rem; }
.prices-where { margin: -.6rem 0 .75rem; }
.prices-table th[colspan] { text-align: center; border-bottom: 0; }
.prices-table td { padding: .3rem .35rem; }
.prices-table .input { width: 4.6rem; padding: .3rem .4rem; font-size: .88rem; }
.prices-table .price-cost { width: 5.4rem; }
.margin { font-size: .8rem; white-space: nowrap; }
.margin-ok { color: #1e6b3a; }
.margin-thin { color: var(--warn); }
.margin-loss { color: var(--danger); font-weight: 600; }
.prices-actions { margin-top: 1.25rem; }
@media (max-width: 760px) { .prices-grid { grid-template-columns: 1fr; } .prices-grid .card { overflow-x: auto; } }

/* ---------- Credits page ---------- */
.credits-balance { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.credits-balance strong { font-size: 2rem; }
.credits-section { margin-bottom: 1.25rem; }
.credits-h2 { font-size: 1.1rem; margin: 1.5rem 0 .75rem; }
.credits-examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-bottom: .75rem; }
.credits-examples div { display: flex; flex-direction: column; padding: .75rem 1rem; border-radius: 10px; background: var(--accent-soft); }
.credits-examples strong { font-size: 1.7rem; color: var(--accent); line-height: 1.1; }
.credits-examples span { font-size: .88rem; }
.credits-table-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.credits-table-head .card-title { margin: 0; }
.credits-table-head .pick-tabs { margin: 0; }
.credits-table-wrap { overflow-x: auto; margin-top: .75rem; }
.credits-table td { vertical-align: top; }
.credits-table td .muted { font-size: .8rem; }
.credits-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.credits-notes, .credits-free { margin: 1rem 0 0; padding-left: 1.2rem; display: grid; gap: .35rem; font-size: .9rem; }
.credits-free { margin-top: 0; }
.packs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: .6rem; }
.pack-card { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem; background: var(--card); border: 2px solid var(--border); border-radius: var(--radius); }
.pack-featured { border-color: var(--accent); }
.pack-badge { position: absolute; top: -.7rem; left: 1rem; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; }
.pack-card h3 { margin: 0; font-size: 1rem; color: var(--muted); }
.pack-credits strong { font-size: 2rem; }
.pack-price { font-size: 1.15rem; font-weight: 600; }
.pack-card ul { margin: .25rem 0 .75rem; padding-left: 1.1rem; font-size: .86rem; color: var(--muted); flex: 1; }
.pack-bonus { color: #1e6b3a; font-weight: 600; }
.sidebar-user .credits a { color: inherit; text-decoration: underline; margin: 0; }
.packs-admin { margin-top: 1.25rem; }
.table-scroll { overflow-x: auto; }
.packs-admin .input { padding: .3rem .45rem; font-size: .88rem; }
.packs-admin .pk-price, .packs-admin .pack-credits-in { width: 6rem; }
.packs-admin .pack-order { width: 4.5rem; }
.credits-link { margin-left: auto; }

/* ---------- Preview size and the Recent column ---------- */
/* The preview never grows taller than the window, so its buttons stay in view. */
/* A definite height (not just a shape), so the picture inside can always be scaled to fit:
   as tall as the window allows while the buttons underneath stay in view. */
.result-frame { width: 100%; aspect-ratio: auto; height: clamp(320px, calc(100vh - 19rem), 1100px); max-height: none; min-height: 0; }
@media (max-width: 900px) { .result-frame { height: auto; aspect-ratio: 1 / 1; } }
@media (min-width: 1600px) {
    .design-layout { grid-template-columns: minmax(380px, 520px) minmax(0, 1fr); }
    .result-card { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 0 1.5rem; align-items: start; }
    .result-side { border-left: 1px solid var(--border); padding-left: 1.5rem; max-height: calc(100vh - 8rem); overflow-y: auto; }
    .result-side .gallery-title { margin-top: 0; }
    .result-side .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 2000px) {
    .result-card { grid-template-columns: minmax(0, 1fr) 340px; }
    .result-side .gallery { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Admin dashboard ---------- */
.dash-head-actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.dash-head-actions .btn-ghost { background: none; font: inherit; font-size: .9rem; padding: .35rem .9rem; cursor: pointer; border-radius: 999px; }
.dash-top { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.dash-balance { display: flex; flex-direction: column; gap: .35rem; }
.dash-balance-head { display: flex; justify-content: space-between; align-items: center; }
.dash-balance-head .card-title { margin: 0; }
.dash-big { font-size: 2.6rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dash-sub { margin: 0; }
.pill { font-size: .75rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; }
.pill-ok { background: #e7f6ec; color: #1e6b3a; }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-bad { background: var(--danger-soft); color: var(--danger); }
.pill-muted { background: var(--accent-soft); color: var(--muted); }
.dash-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .9rem; }
.tile { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .15rem; }
.tile-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tile strong { font-size: 1.8rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.tile span:last-child { font-size: .8rem; color: var(--muted); }
.dash-section { margin-bottom: 1.25rem; min-width: 0; }
.dash-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 1.25rem; }
.dash-chart-wrap { overflow-x: auto; }
.dash-chart { width: 100%; height: 200px; display: block; min-width: 560px; }
.dash-chart .grid { stroke: var(--border); stroke-width: 1; }
.dash-chart .bar { fill: var(--accent); }
.dash-chart .bar-failed { fill: var(--danger); opacity: .75; }
.dash-chart .axis { fill: var(--muted); font-size: 11px; }
.dash-legend { font-size: .8rem; color: var(--muted); margin: .5rem 0 0; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-left: .5rem; }
.key-ok { background: var(--accent); margin-left: 0; }
.key-failed { background: var(--danger); opacity: .75; }
.dash-email { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1rem 0; }
.dash-form-row { display: flex; gap: .5rem; margin-top: .35rem; }
.dash-form-row .input { flex: 1; min-width: 0; }
.dash-form-row .btn-ghost { background: none; font: inherit; cursor: pointer; }
.dash-entries form { display: inline; }
.dash-alerts { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .6rem; font-size: .9rem; }
.dash-alerts li { display: grid; gap: .1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--border); }
.dash-alerts pre { white-space: pre-wrap; font-family: inherit; font-size: .85rem; color: var(--muted); margin: .3rem 0 0; }
.dash-alerts .alert-unsent { color: var(--danger, #b42318); font-size: .85rem; }
.dash-alerts-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.dash-later { background: var(--accent-soft); border-style: dashed; }
@media (max-width: 1100px) { .dash-top { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .dash-two { grid-template-columns: 1fr; } }

/* Admin → Accounts: possible duplicates */
.dup-card { margin-bottom: 1.25rem; }
.dup-group { border-top: 1px solid var(--border); padding-top: .75rem; margin-top: .75rem; }
.dup-reasons { font-weight: 600; font-size: .9rem; margin: 0 0 .4rem; }
.dup-actions { display: flex; gap: .4rem; justify-content: flex-end; flex-wrap: wrap; }
.dup-actions form { margin: 0; }
.dup-actions .btn-small { margin-top: 0; }
.inline-form { display: inline; margin: 0; }
.link-button { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-size: .8rem; cursor: pointer; text-decoration: underline; }
.dash-stack { display: grid; gap: 1.25rem; align-content: start; }
.nowrap { white-space: nowrap; }

/* Printify page */
.pf-connect { max-width: 760px; margin-bottom: 1.25rem; }
.pf-steps { margin: 1rem 0 0; padding-left: 1.4rem; display: grid; gap: 1.25rem; }
.pf-steps li > strong { display: block; margin-bottom: .25rem; }
.pf-steps p { margin: .2rem 0; }
.pf-steps a, .pf-connect .field-hint a { color: var(--accent); }
.pf-scopes { list-style: none; padding: 0; margin: .5rem 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.pf-scopes code { background: var(--accent-soft); color: var(--accent); padding: .15rem .5rem; border-radius: 6px; font-size: .85rem; }
.pf-token { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; resize: vertical; width: 100%; }
.pf-token-form .actions { margin-top: .75rem; display: flex; gap: .5rem; }
.pf-privacy { margin-top: 1.25rem; }
.pf-status { display: flex; gap: .9rem; align-items: flex-start; }
.pf-status p { margin: .2rem 0; }
.pf-dot { width: .8rem; height: .8rem; border-radius: 50%; margin-top: .45rem; flex: none; }
.pf-dot.ok { background: #2e9e57; }
.pf-dot.bad { background: var(--danger); }
.pf-change-shop { margin-top: 1.25rem; }
.pf-row { display: flex; gap: .5rem; }
.pf-row select { flex: 1; }
.pf-actions { margin-top: 1.25rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.pf-actions form { margin: 0; }
.pf-shops { display: grid; gap: .5rem; margin-top: 1rem; }
.pf-shop { display: flex; gap: .6rem; align-items: center; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.pf-shop:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pf-shops .actions { margin-top: .5rem; }
.pf-page-error { max-width: 760px; margin: 0 0 1.25rem; }
.pf-connect-hint { margin-top: .75rem; }
.pf-connect-hint a { color: var(--accent); font-weight: 600; }
.pf-connect button.btn-ghost { background: var(--card); cursor: pointer; font-family: inherit; line-height: inherit; }

/* ---------- "Done" notice after a job (wwwroot/js/credits.js) ---------- */
.credit-notice {
    position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 60;
    width: min(340px, calc(100vw - 2rem));
    background: var(--sidebar-bg); color: #fff;
    border-radius: 12px; padding: 1rem 2.75rem 1rem 1.15rem;
    box-shadow: 0 18px 40px -12px rgba(28, 21, 48, .55);
}
.credit-notice:not([hidden]) { animation: cn-in .25s ease-out; }
@keyframes cn-in { from { opacity: 0; transform: translateY(12px); } }
.credit-notice p { margin: 0; }
.cn-title { font-weight: 700; margin-bottom: .2rem !important; }
.cn-text { color: #ddd5ee; font-size: .92rem; }
.cn-low { margin-top: .4rem !important; font-size: .88rem; color: #ffd98a; }
.cn-low a { color: #fff; }
.cn-stop { display: flex; align-items: center; gap: .45rem; margin-top: .7rem; font-size: .82rem; color: #b9b0cf; cursor: pointer; }
.cn-stop input { accent-color: var(--accent); margin: 0; }
.cn-close {
    position: absolute; top: .45rem; right: .5rem; width: 30px; height: 30px;
    border: 0; border-radius: 50%; background: transparent; color: #cfc8e2; font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.cn-close:hover { background: rgba(255,255,255,.1); color: #fff; }
.credit-notice :focus-visible { outline: 2px solid #b58cff; outline-offset: 2px; }

/* The sidebar balance lights up briefly when it changes. */
.credits-flash { animation: credits-flash 1.6s ease-out; border-radius: 6px; }
@keyframes credits-flash { 0%, 30% { background: rgba(181, 140, 255, .35); color: #fff; } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .credit-notice:not([hidden]), .credits-flash { animation: none; } }
@media (max-width: 600px) { .credit-notice { right: 1rem; bottom: 1rem; } }
.notices-form p { margin-top: 0; }

/* "How credits work" panel (credits.js) and the restored-settings note (image-design.js) */
.credits-help { width: min(560px, calc(100vw - 32px)); }
.credits-help .pf-body p { margin: 0 0 1rem; }
.ch-table { width: 100%; border-collapse: collapse; margin: 0 0 1.25rem; font-size: .92rem; font-variant-numeric: tabular-nums; }
.ch-table caption { text-align: left; font-weight: 600; margin-bottom: .4rem; }
.ch-table th, .ch-table td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--border); }
.ch-table thead th { font-size: .8rem; color: var(--muted); font-weight: 600; }
.ch-table tbody th { font-weight: 500; }
.ch-note { font-size: .85rem; }
.ch-balance { padding: .7rem .9rem; background: var(--accent-soft); border-radius: 8px; }
.ch-links a { color: var(--accent); font-weight: 600; }
.draft-note { margin: 0 0 1rem; padding: .55rem .8rem; border-radius: 8px; background: var(--accent-soft); font-size: .88rem; color: var(--text); }

/* Mockup Studio: bigger preview of a scene while hovering over it (mockup-studio.js) */
.scene-peek {
    position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none;
    width: 300px; background: var(--card); border-radius: 12px; overflow: hidden;
    box-shadow: 0 20px 50px -14px rgba(28, 21, 48, .45), 0 0 0 1px rgba(28, 21, 48, .06);
}
.scene-peek img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: contain; background: #2a2238; }
.sp-info { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .85rem .8rem; font-size: .85rem; }
.sp-name { font-size: .95rem; color: var(--text); }
.sp-meta { color: var(--muted); }
.sp-price { color: var(--accent); font-weight: 600; }
.sp-price:empty { display: none; }
.scene-thumb img { transition: transform .2s ease; }
.scene-thumb:hover img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .scene-thumb img { transition: none; } .scene-thumb:hover img { transform: none; } }

/* Admin → Waiting list */
.waitlist-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.waitlist-filter { display: flex; flex-direction: column; gap: .3rem; min-width: 220px; }
