/* The A-Side Awards Platform design system — shared by Liner Notes, Listening Room and Airwaves. */
:root {
  --bg: #0b0b10;
  --bg-2: #101018;
  --surface: #15151f;
  --surface-2: #1c1c29;
  --surface-3: #242434;
  --border: #2a2a3c;
  --border-strong: #3a3a52;
  --text: #ececf3;
  --text-2: #b4b4c6;
  --muted: #84849a;
  --brand: #dfe3ea;          /* The A-Side Awards Platform; each show overrides with its own primary */
  --brand-ink: #14161b;
  --accent: #7c5cff;
  --ok: #33c48d;
  --warn: #f2b84b;
  --err: #ef5a6f;
  --info: #4ea8ff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'DM Serif Display', Georgia, serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14.5px/1.55 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 28px; }
h2 { font-size: 21px; }
h3 { font-size: 16.5px; }
h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: 0; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
code, .mono { font-family: var(--mono); font-size: .92em; }
::selection { background: color-mix(in srgb, var(--brand) 40%, transparent); }

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }
.container.wide { max-width: 1480px; }
.page { padding-top: 28px; padding-bottom: 80px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.row.top { align-items: flex-start; }
.row.nowrap { flex-wrap: nowrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.lg { gap: 20px; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } .grid.c3, .grid.c4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } .container { padding: 0 16px; } h1 { font-size: 23px; } }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px } .mt-4 { margin-top: 36px }
.mb-0 { margin-bottom: 0 } .mb-1 { margin-bottom: 8px } .mb-2 { margin-bottom: 16px } .mb-3 { margin-bottom: 24px }
.muted { color: var(--muted); } .text-2 { color: var(--text-2); } .small { font-size: 12.5px; } .tiny { font-size: 11.5px; }
.right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky { position: sticky; top: 76px; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.topbar .inner { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #fff)); color: var(--brand-ink); font-weight: 800; font-size: 13px; }
.brand .product { font-weight: 500; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--border); }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { color: var(--text-2); padding: 7px 11px; border-radius: 8px; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface-2); text-decoration: none; }
.topbar .spacer { flex: 1; }
.usermenu { display: flex; align-items: center; gap: 10px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--text-2); }
.badge-dot { position: relative; }
.badge-dot[data-count]:not([data-count="0"])::after { content: attr(data-count); position: absolute; top: -4px; right: -6px; background: var(--err); color: #fff; font-size: 10px; line-height: 16px; min-width: 16px; text-align: center; border-radius: 8px; padding: 0 4px; }
@media (max-width: 760px) { .nav { display: none; } .brand .product { display: none; } }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card.pad-lg { padding: 28px; }
.card.flush { padding: 0; overflow: hidden; }
.card.hover { transition: border-color .15s, transform .15s; }
.card.hover:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-head h3 { margin: 0; }
.card-body { padding: 18px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.section-title h2, .section-title h3 { margin: 0; }

/* ---------- Buttons ---------- */
.btn { --b: var(--surface-3); display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--b); color: var(--text); font: 600 13.5px var(--font); cursor: pointer; white-space: nowrap; transition: filter .12s, background .12s, border-color .12s; text-decoration: none !important; }
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; filter: none; transform: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.outline { background: transparent; }
.btn.danger { background: transparent; border-color: color-mix(in srgb, var(--err) 50%, transparent); color: var(--err); }
.btn.danger:hover { background: color-mix(in srgb, var(--err) 12%, transparent); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #04150e; }
.btn.sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 7px; }
.btn.lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 11px; }
.btn.block { width: 100%; }
.btn.icon { width: 34px; padding: 0; }
.btn .spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-weight: 600; font-size: 13px; color: var(--text-2); }
.field .req { color: var(--err); margin-left: 2px; }
.field .help { font-size: 12.5px; color: var(--muted); }
.field .error-text { font-size: 12.5px; color: var(--err); }
.field.invalid .input, .field.invalid select, .field.invalid textarea { border-color: var(--err); }
.input, select, textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--border-strong); color: var(--text); border-radius: 9px; padding: 9px 12px; font: 14px var(--font); outline: none; transition: border-color .12s, box-shadow .12s; }
.input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
textarea { min-height: 96px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.input.sm, select.sm { padding: 5px 9px; font-size: 13px; border-radius: 7px; }
.check { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; color: var(--text-2); }
.check input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.input-group { display: flex; }
.input-group .input { border-radius: 9px 0 0 9px; }
.input-group .btn { border-radius: 0 9px 9px 0; height: auto; }
.search { position: relative; }
.search .input { padding-left: 34px; }
.search::before { content: ''; position: absolute; left: 12px; top: 50%; width: 12px; height: 12px; border: 2px solid var(--muted); border-radius: 50%; transform: translateY(-60%); }
.color-input { width: 44px; height: 38px; padding: 3px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--bg-2); }

/* ---------- Badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650; letter-spacing: .02em; background: var(--surface-3); color: var(--text-2); white-space: nowrap; text-transform: capitalize; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.plain::before { display: none; }
.badge.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.badge.warn { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.badge.err { background: color-mix(in srgb, var(--err) 15%, transparent); color: var(--err); }
.badge.info { background: color-mix(in srgb, var(--info) 15%, transparent); color: var(--info); }
.badge.brand { background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); }
.badge.accent { background: color-mix(in srgb, var(--accent) 18%, transparent); color: #b3a2ff; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 12px; color: var(--text-2); background: var(--surface-2); }
.chip button { all: unset; cursor: pointer; color: var(--muted); }
.chip button:hover { color: var(--err); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.table tr.clickable { cursor: pointer; }
.table tr.selected td { background: color-mix(in srgb, var(--brand) 8%, transparent); }
.table input[type=checkbox] { accent-color: var(--brand); width: 15px; height: 15px; }
.th-sort { cursor: pointer; user-select: none; }
.th-sort:hover { color: var(--text); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { all: unset; cursor: pointer; padding: 11px 15px; color: var(--muted); font-weight: 600; font-size: 13.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover, .tabs button:hover { color: var(--text); text-decoration: none; }
.tabs .active { color: var(--text); border-bottom-color: var(--brand); }
.subtabs { display: inline-flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 10px; }
.subtabs button { all: unset; cursor: pointer; padding: 6px 12px; border-radius: 7px; font-weight: 600; font-size: 13px; color: var(--muted); }
.subtabs button.active { background: var(--surface-3); color: var(--text); }

/* ---------- Stats ---------- */
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.stat .label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.stat .value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .delta { font-size: 12.5px; color: var(--muted); }

/* ---------- Progress / bars ---------- */
.progress { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .4s ease; }
.progress.ok > span { background: var(--ok); }
.bar-row { display: grid; grid-template-columns: minmax(120px, 220px) 1fr 70px; align-items: center; gap: 12px; padding: 6px 0; }
.bar-row .bar { height: 22px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.bar-row .bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 60%, #fff)); border-radius: 6px; transition: width .6s cubic-bezier(.2,.8,.2,1); }

/* ---------- Empty / alerts ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .icon { font-size: 34px; margin-bottom: 8px; opacity: .7; }
.empty h3 { color: var(--text); }
.alert { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-2); font-size: 13.5px; }
.alert.info { border-color: color-mix(in srgb, var(--info) 40%, transparent); background: color-mix(in srgb, var(--info) 8%, transparent); }
.alert.warn { border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 8%, transparent); color: #f6d79c; }
.alert.err { border-color: color-mix(in srgb, var(--err) 40%, transparent); background: color-mix(in srgb, var(--err) 8%, transparent); color: #f7a8b4; }
.alert.ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 8%, transparent); color: #9ee6c8; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(4,4,8,.7); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 100; padding: 20px; animation: fade .15s; }
.modal { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; width: min(560px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: var(--shadow); animation: pop .18s cubic-bezier(.2,.9,.3,1.2); }
.modal.lg { width: min(860px, 100%); }
.modal.xl { width: min(1100px, 100%); }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-head h3 { margin: 0; }
.modal-body { padding: 20px; overflow: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
@keyframes fade { from { opacity: 0 } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(6px) } }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { background: var(--surface-3); border: 1px solid var(--border-strong); border-left: 3px solid var(--info); padding: 11px 16px; border-radius: 10px; box-shadow: var(--shadow); max-width: 380px; animation: pop .2s; font-weight: 500; }
.toast.ok { border-left-color: var(--ok); } .toast.err { border-left-color: var(--err); } .toast.warn { border-left-color: var(--warn); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 48px; overflow: hidden; border-bottom: 1px solid var(--border); background:
  radial-gradient(900px 400px at 10% -10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
  radial-gradient(700px 360px at 95% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%), var(--bg); }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.01em; line-height: 1.05; }
.hero .lede { font-size: 17px; color: var(--text-2); max-width: 680px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }

/* ---------- Dropzone / media ---------- */
.dropzone { border: 1.5px dashed var(--border-strong); border-radius: 12px; padding: 26px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, transparent); color: var(--text-2); }
.media-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.media-item .kind { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); font-size: 11px; font-weight: 800; color: var(--brand); text-transform: uppercase; }
audio, video { width: 100%; border-radius: 10px; background: #000; }
audio { background: transparent; height: 40px; }

/* ---------- Steps ---------- */
.steps { display: flex; gap: 6px; counter-reset: step; flex-wrap: wrap; }
.steps .step { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: 13px; }
.steps .step::before { counter-increment: step; content: counter(step); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: 11.5px; }
.steps .step.active { color: var(--text); } .steps .step.active::before { background: var(--brand); color: var(--brand-ink); }
.steps .step.done::before { content: '✓'; background: var(--ok); color: #04150e; }

/* ---------- Misc ---------- */
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; font-size: 13.5px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-word; }
.divider-v { width: 1px; align-self: stretch; background: var(--border); }
.pill-toggle { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 9px; overflow: hidden; }
.pill-toggle button { all: unset; cursor: pointer; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pill-toggle button.active { background: var(--brand); color: var(--brand-ink); }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; min-height: 16px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.footer { border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); font-size: 12.5px; }
.list { display: flex; flex-direction: column; }
.list > .item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.list > .item:last-child { border-bottom: 0; }
.list > .item.clickable { cursor: pointer; } .list > .item.clickable:hover { background: var(--surface-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted); }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.err { background: var(--err); } .dot.live { background: var(--err); box-shadow: 0 0 0 0 var(--err); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } }
.score-input { width: 70px; text-align: center; font-variant-numeric: tabular-nums; }
.drag-handle { cursor: grab; color: var(--muted); user-select: none; padding: 0 4px; }
.dragging { opacity: .45; }
.drop-target { outline: 2px dashed var(--brand); outline-offset: 2px; }

/* ---------- Mobile ---------- */
.menu-btn { display: none; font-size: 18px; }
.mobile-menu { display: flex; flex-direction: column; padding: 6px 12px 14px; border-top: 1px solid var(--border); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a, .mobile-menu button { all: unset; cursor: pointer; padding: 13px 8px; border-bottom: 1px solid var(--border); color: var(--text-2); font-weight: 600; font-size: 15px; }
.mobile-menu a.active { color: var(--brand); }
.mobile-menu > :last-child { border-bottom: 0; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .topbar .inner { gap: 10px; height: 56px; }
  .usermenu > :not(.btn.primary) { display: none; }
  .brand { min-width: 0; }
  .sticky { position: static; }
}
@media (max-width: 640px) {
  .page { padding-top: 18px; padding-bottom: 64px; }
  .grid.c4, .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid.c3.small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { padding: 12px 14px; } .stat .value { font-size: 22px; } .stat .label { font-size: 10.5px; }
  .card { padding: 16px; }
  .hero { padding: 36px 0 30px; }
  .hero .lede { font-size: 15.5px; }
  .kv { grid-template-columns: minmax(96px, 38%) 1fr; }
  .btn.lg { height: 48px; }
  .row > .btn.lg { flex: 1 1 auto; }
  .bar-row { grid-template-columns: minmax(90px, 120px) 1fr 52px; gap: 8px; }
  .modal-backdrop { padding: 0; place-items: end stretch; }
  .modal, .modal.lg, .modal.xl { width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; }
  .toasts { left: 12px; right: 12px; bottom: 12px; } .toast { max-width: none; }
  .tabs { margin-left: -16px; margin-right: -16px; padding: 0 8px; }
  .chip-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chip-scroll > * { flex: 0 0 auto; }
  input, select, textarea, .input { font-size: 16px; } /* stops iOS zooming into fields */
}
