/* Admin & studio panel */
:root {
  --bg: #f6f4f1;
  --card: #ffffff;
  --ink: #1f2430;
  --muted: #6b7280;
  --line: #e7e2da;
  --brand: #6b1d2a;
  --brand-2: #4e1220;
  --gold: #b8893b;
  --side: #1d1a21;
  --ok: #157347;
  --ok-bg: #e6f4ec;
  --warn: #8a5a00;
  --warn-bg: #fdf3dc;
  --bad: #b42318;
  --bad-bg: #fdecea;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: var(--brand); }
h1, h2, h3 { margin: 0; line-height: 1.25; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.block { display: block; }
.mt { margin-top: 22px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }
.pay-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.grow { flex: 1; }

/* Shell */
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--side); color: #d6d3dc; display: flex; flex-direction: column; padding: 22px 16px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin: 0 6px 28px; }
.brand-home { display: flex; gap: 12px; align-items: center; color: #fff; text-decoration: none; }
.brand-logout { margin: 0 0 0 52px; }
.brand-logout .btn { width: 100%; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--gold), #8d6526); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.brand-mark.big { width: 64px; height: 64px; font-size: 32px; border-radius: 18px; margin-bottom: 18px; }
.brand strong { display: block; font-size: 16px; }
.brand small { color: #a19dab; font-size: 12px; }
.nav { display: grid; gap: 4px; }
.nav a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; color: #d6d3dc; text-decoration: none; font-weight: 500; }
.nav a i { font-style: normal; width: 20px; text-align: center; color: #a19dab; }
.nav a:hover { background: rgba(255, 255, 255, .06); }
.nav a.active { background: rgba(184, 137, 59, .18); color: #fff; }
.nav a.active i { color: var(--gold); }
.sidebar-foot { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid rgba(255, 255, 255, .08); display: grid; gap: 10px; }
.who strong { display: block; color: #fff; font-size: 14px; }
.who small { color: #a19dab; font-size: 12px; word-break: break-all; }
.sidebar .btn-ghost { color: #d6d3dc; border-color: rgba(255, 255, 255, .15); background: transparent; }

.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 18px 32px; border-bottom: 1px solid var(--line); background: var(--card); position: sticky; top: 0; z-index: 20; }
.topbar h1 { font-size: 20px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { display: flex; gap: 8px; }
.menu-btn { display: none; border: 1px solid var(--line); background: var(--card); border-radius: 10px; width: 40px; height: 40px; font-size: 18px; cursor: pointer; }
.content { padding: 28px 32px 120px; max-width: 1200px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #cfc7ba; background: #fbfaf8; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger-ghost { background: var(--card); color: var(--bad); border-color: #f2c9c4; }
.btn-danger-ghost:hover { background: var(--bad-bg); }
.btn-wa { background: #25d366; color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn.disabled { opacity: .5; pointer-events: none; }

/* Alerts & badges */
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 20px; font-weight: 500; }
.alert ul { margin: 6px 0 0; padding-left: 18px; font-weight: 400; }
.alert-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #bfe3cd; }
.alert-error { background: var(--bad-bg); color: var(--bad); border: 1px solid #f5c2bd; }
.alert-warn { background: var(--warn-bg); color: var(--warn); border: 1px solid #f1dca5; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-off { background: #eef0f3; color: #4b5563; }
.badge-warn { background: var(--warn-bg); color: var(--warn); }

/* Panels & stats */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; }
.panel h2 { font-size: 17px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel h2 small { font-weight: 400; font-size: 13px; }
.panel h3 { font-size: 15px; margin-bottom: 12px; }
.panel.flush { padding: 0; overflow: hidden; }
.panel.narrow { max-width: 460px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
a.stat { color: inherit; text-decoration: none; }
.stat span { color: var(--muted); font-size: 13px; font-weight: 500; }
.stat strong { display: block; font-size: 30px; margin: 4px 0 2px; }
.stat small { color: var(--muted); font-size: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-2.top { align-items: start; }
.row-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0ece6; }
.row-line:last-child { border-bottom: 0; }
.stack { display: grid; gap: 14px; }
.stack-sm { display: grid; gap: 8px; }

/* Forms */
.field { display: block; font-weight: 600; font-size: 13px; color: #374151; margin: 0; min-width: 0; }
.field > input, .field > select, .field > textarea, .field > .input-with-btn, .field > .logo-row, .field > .cover-row, .field > .thumbs { display: flex; margin-top: 6px; }
.field > input, .field > select, .field > textarea { display: block; }
.field > input ~ small.muted, .field > select ~ small.muted { display: block; margin-top: 4px; }
.field > span:first-child { display: block; }
.field b { color: var(--brand); }
.field small { font-weight: 400; }
fieldset.field { border: 0; padding: 0; }
fieldset.field legend { font-weight: 600; font-size: 13px; color: #374151; margin-bottom: 8px; padding: 0; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], input[type="time"], input[type="search"], select, textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: 14px; color: var(--ink); background: #fff; border: 1px solid #d9d3c8; border-radius: 10px; padding: 10px 12px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 137, 59, .18); }
input[type="file"] { font-size: 13px; max-width: 100%; }
textarea { resize: vertical; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cols-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.span-2 { grid-column: span 2; }
.span-4 { grid-column: 1 / -1; }
.span-all { grid-column: 1 / -1; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 500; cursor: pointer; }
.check.danger { color: var(--bad); }
.switch { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 42px; height: 24px; border-radius: 999px; background: #d1d5db; position: relative; flex: none; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(184, 137, 59, .35); }
.input-with-btn { display: flex; gap: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.form-grid .panel { margin: 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; border-color: #f2c9c4; }
.danger-zone p { margin: 4px 0 0; }
.logo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-weight: 400; }
.logo-md { height: 56px; width: auto; max-width: 140px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; padding: 4px; background: #fff; }
.logo-sm { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; border: 1px solid var(--line); background: #fff; flex: none; }
.logo-sm.ph { display: inline-flex; align-items: center; justify-content: center; background: #f4ece0; color: var(--brand); font-weight: 700; }
.who-cell { display: flex; gap: 12px; align-items: center; }

/* Toolbar & tables */
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar input[type="search"] { flex: 1; min-width: 200px; }
.toolbar select { width: auto; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 12px 16px; background: #faf8f5; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 16px; border-bottom: 1px solid #f0ece6; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .empty { text-align: center; color: var(--muted); padding: 40px; }
.table-compact td, .table-compact th { padding: 8px 12px; }
.table-compact audio { width: 168px; height: 32px; vertical-align: middle; }
.table-compact input[type="text"], .table-compact select { font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.table-compact input[type="text"] { width: 100%; min-width: 140px; }
.row-form { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.track-add { display: grid; grid-template-columns: 1.4fr .8fr 1.2fr auto; gap: 12px; align-items: end; }
@media (max-width: 900px) { .track-add { grid-template-columns: 1fr; } }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 10px; }

/* Studio: quick start & cards */
.quick-start { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quick-card { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: #fcfbf9; transition: border-color .15s, transform .15s; }
.quick-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.quick-card small { color: var(--muted); font-size: 12px; }
.card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.card-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-thumb { height: 140px; position: relative; background: linear-gradient(135deg, var(--b), color-mix(in srgb, var(--b) 70%, #000)); display: flex; align-items: flex-end; padding: 14px 16px; overflow: hidden; }
.card-thumb::before { content: ""; position: absolute; inset: 8px; border: 1px solid color-mix(in srgb, var(--c) 70%, transparent); border-radius: 8px; z-index: 1; pointer-events: none; }
.card-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.thumb-names { position: relative; z-index: 2; color: #fff; font-family: Georgia, serif; font-size: 22px; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.thumb-names em { color: var(--c); font-style: normal; }
.card-body { padding: 16px 18px 18px; display: grid; gap: 8px; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-body h3 { font-size: 17px; }
.card-body p { margin: 0; }
.card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.copy-link { display: flex; gap: 6px; align-items: center; }
.copy-link input { font-size: 12px; padding: 6px 10px; background: #faf8f5; }
.empty-state { text-align: center; padding: 50px 24px; grid-column: 1 / -1; }
.empty-state p { margin: 8px 0 18px; }
.share-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.share-bar > span { font-weight: 600; }

/* Card form */
.card-form { display: block; }
.form-steps { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 18px; position: sticky; top: 77px; z-index: 10; background: var(--bg); padding: 8px 0; }
.form-steps a { padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 500; white-space: nowrap; }
.form-steps a:hover { border-color: var(--gold); }
.card-form .panel { scroll-margin-top: 140px; }
.step { width: 28px; height: 28px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.card-form .cols-2 + fieldset, .card-form fieldset { margin-top: 18px; }
.template-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.template-option { position: relative; display: grid; gap: 4px; padding: 10px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 400; background: #fff; transition: border-color .15s, box-shadow .15s; }
.template-option input { position: absolute; opacity: 0; }
.template-option:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 137, 59, .18); }
.template-option:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(184, 137, 59, .45); }
.template-option strong { font-size: 14px; }
.template-option small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.template-card { position: relative; padding: 10px; border: 2px solid var(--line); border-radius: 14px; background: #fff; }
.template-card:hover { border-color: var(--gold); }
.template-card.is-dragging { opacity: .55; border-color: var(--gold); }
.template-card.is-off { opacity: .7; }
.template-card.is-off .template-swatch { filter: grayscale(.35); }
.template-card a { text-decoration: none; color: inherit; display: grid; gap: 2px; }
.template-card strong { font-size: 14px; }
.template-card small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.template-status { margin-top: 8px; }
.template-status .btn { width: 100%; }
.template-drag { position: absolute; top: 8px; right: 8px; z-index: 2; width: 28px; height: 28px; border: 0; border-radius: 8px; background: rgba(255,255,255,.9); color: var(--muted); font-size: 14px; letter-spacing: -2px; line-height: 1; cursor: grab; }
.template-drag:active { cursor: grabbing; }
.color-picks { display: flex; flex-wrap: wrap; gap: 18px; }
.color-picks .field { width: auto; }
.color-picks input[type="color"] { width: 72px; height: 46px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.check-line { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; }
.color-theme-swatch { height: 92px; border-radius: 10px; background: linear-gradient(90deg, var(--a) 50%, var(--b) 50%); border: 1px solid var(--line); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 6px; }
.color-theme-swatch i { position: absolute; inset: 0 50% 0 0; background: var(--a); }
.color-theme-swatch b { position: relative; font-family: Georgia, serif; font-style: italic; font-size: 22px; color: var(--b); mix-blend-mode: difference; }
.template-swatch { height: 92px; border-radius: 10px; background: var(--a); border: 1px solid var(--line); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 6px; }
.template-swatch i { position: absolute; inset: 0 0 auto 0; height: 26px; background: var(--b); border-bottom: 3px solid var(--c); }
.template-swatch b { font-family: Georgia, serif; font-style: italic; font-size: 22px; color: var(--b); margin-top: 22px; }
.template-option:has(input:checked) .template-swatch::after { content: "✓"; position: absolute; top: 34px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.sub-panel { border: 1px solid #f0ece6; border-radius: 12px; padding: 16px; display: grid; gap: 12px; background: #fcfbf9; }
.repeater { display: grid; gap: 14px; margin-bottom: 14px; }
.repeat-row { border: 1px solid #ebe5db; border-radius: 12px; padding: 14px 16px 16px; background: #fcfbf9; }
.repeat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.contact-row { padding: 12px 14px; }
.cols-contact { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.cover-row { display: flex; gap: 14px; align-items: center; font-weight: 400; }
.cover-preview { width: 96px; height: 96px; border-radius: 14px; background: #f4ece0 center / cover no-repeat; border: 1px solid var(--line); flex: none; }
.sample-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sample-photo { display: block; width: min(100%, 280px); height: 120px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); margin-top: 8px; background: #f4ece0; }
.sample-photo.is-round { width: 96px; height: 96px; border-radius: 50%; }
.sample-photo.is-portrait { width: 96px; height: 120px; }
.sample-audio { display: block; width: min(100%, 420px); margin-top: 8px; }
@media (max-width: 800px) { .sample-photos { grid-template-columns: 1fr; } }
.cover-preview.round { border-radius: 50%; }
.countdown-admin { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fcfbf9 center / cover no-repeat; position: relative; display: grid; gap: 12px; }
.countdown-admin[style*="background-image"]::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .5)); }
.countdown-admin > * { position: relative; z-index: 1; }
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.photo-tile { display: grid; gap: 6px; }
.photo-tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.photo-tile input[type="text"] { font-size: 12px; padding: 6px 8px; }
.photo-tile.is-deleted { opacity: .45; }
.photo-tile.is-deleted img { filter: grayscale(1); }
.gallery-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.gallery-add { position: relative; overflow: hidden; cursor: pointer; }
.gallery-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.new-photos { margin-top: 10px; }
.pending-tile { align-content: start; }
.save-bar { position: sticky; bottom: 0; z-index: 15; display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 14px 18px; margin: 10px -4px 0; background: rgba(255, 255, 255, .95); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 -8px 24px rgba(0, 0, 0, .05); }
.save-bar .muted { margin-right: auto; }

/* Login */
.login-page { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; background: #fff; }
.login-art { background: radial-gradient(circle at 30% 20%, rgba(216, 178, 106, .35), transparent 50%), linear-gradient(160deg, #6b1d2a, #2a0d14); color: #f3dfb1; display: flex; align-items: center; padding: 60px; }
.login-quote h2 { font-family: Georgia, serif; font-weight: 400; font-size: 38px; line-height: 1.2; color: #fff; margin: 0 0 14px; }
.login-quote p { max-width: 420px; color: rgba(243, 223, 177, .85); font-size: 16px; }
.login-box { align-self: center; width: min(400px, 100% - 48px); margin: 40px auto; }
.login-box h1 { font-size: 26px; margin-bottom: 4px; }
.login-box > .muted { margin: 0 0 22px; }
.login-box .small { margin-top: 22px; }

/* Responsive */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .template-grid, .quick-start { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .25s; }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35); }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .topbar { padding: 12px 16px; }
  .topbar h1 { font-size: 17px; }
  .content { padding: 18px 16px 120px; }
  .grid-2, .form-grid, .cols-2 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-page { grid-template-columns: 1fr; }
  .login-art { padding: 36px 24px; }
  .login-quote h2 { font-size: 26px; }
  .form-steps { top: 65px; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat strong { font-size: 24px; }
  .template-grid, .quick-start { grid-template-columns: 1fr 1fr; }
  .cols-4 { grid-template-columns: 1fr; }
  .cols-4 .span-2 { grid-column: auto; }
  .cols-contact { grid-template-columns: 1fr; }
  .card-list { grid-template-columns: 1fr; }
  .save-bar { flex-wrap: wrap; }
  .save-bar .btn { flex: 1; }
  .topbar-actions .btn { padding: 8px 12px; font-size: 13px; }
  .danger-zone { flex-direction: column; align-items: flex-start; }
}

/* Symbol picker */
.symbol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.symbol-option { position: relative; display: grid; justify-items: center; gap: 6px; padding: 12px 6px 10px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; text-align: center; font-weight: 400; }
.symbol-option input { position: absolute; opacity: 0; }
.symbol-option:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 137, 59, .18); background: #fffaf0; }
.symbol-option:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(184, 137, 59, .45); }
.symbol-img { width: 54px; height: 54px; background: var(--brand); -webkit-mask: var(--sym) center / contain no-repeat; mask: var(--sym) center / contain no-repeat; mask-mode: alpha; }
.symbol-img.wide { width: 90px; }
.symbol-none { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 22px; border: 1.5px dashed var(--line); border-radius: 50%; }
.symbol-option small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }

.content-wide { max-width: none; padding-bottom: 24px; }
.frame-note { margin: 0 0 12px; }
.panel-frame { display: block; width: 100%; height: calc(100vh - 148px); min-height: 640px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }

.customer-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 2px; }
.customer-line .customer-email { display: inline; margin-top: 0; }
.password-form { display: grid; gap: 12px; margin-top: 14px; }
.password-form .btn { justify-self: start; }
.password-error { margin: 0; color: var(--bad); font-size: 13px; }
.customer-email {
  display: block;
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.customer-email:hover { color: var(--brand-2); }
.panel-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(29, 26, 33, .45);
}
.panel-modal[hidden] { display: none !important; }
.panel-modal-card {
  width: min(440px, 100%);
  background: var(--card);
  border-radius: 16px;
  padding: 22px 24px 20px;
  box-shadow: 0 24px 60px rgba(29, 26, 33, .22);
}
.panel-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.panel-modal-head h2 { font-size: 18px; }
.panel-modal-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.panel-modal-close:hover { background: #f4f1ec; color: var(--ink); }
.panel-modal-card .f { margin: 16px 0 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.customer-login-form { margin: 12px 0 4px; }
.customer-test-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
body.is-modal-open { overflow: hidden; }
