/* TopBrand Console — "Every screen, on brand." */
/* Fonts are self-hosted (SIL Open Font License) so the console works without Google Fonts. */
@font-face { font-family: 'Unbounded'; font-weight: 500; font-display: swap; src: url('../fonts/unbounded-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Unbounded'; font-weight: 700; font-display: swap; src: url('../fonts/unbounded-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url('../fonts/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-display: swap; src: url('../fonts/dm-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-display: swap; src: url('../fonts/dm-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url('../fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 700; font-display: swap; src: url('../fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2'); }

:root {
  --ink: #10131C;
  --night: #0F121A;
  --night-2: #171B26;
  --night-line: #222838;
  --lime: #C8F03C;
  --lime-soft: #EEF9CF;
  --lime-ink: #2F4A00;
  --ok: #5C8A00;
  --ground: #F2F4F7;
  --card: #FFFFFF;
  --line: #E3E7EE;
  --line-2: #D5DAE3;
  --muted: #5A6170;
  --muted-2: #8A93A8;
  --side-text: #B9C0CE;
  --danger: #B3261E;
  --danger-line: #F1C9C4;
  --warn: #FFB020;
  --radius: 16px;
  --font: 'DM Sans', system-ui, sans-serif;
  --display: 'Unbounded', 'DM Sans', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--ground); font-size: 15px; line-height: 1.45; }
a { color: var(--ink); }
a:hover { color: #3A4256; }
h1, h2, h3 { margin: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Shell ---------- */
.shell { min-height: 100vh; display: flex; background: linear-gradient(to right, var(--night) 248px, var(--ground) 248px); }
.sidebar { width: 248px; flex: none; background: var(--night); color: var(--side-text); padding: 24px 16px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 4px 10px 24px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 20px; color: #fff; letter-spacing: -0.02em; }
.brand b { color: var(--lime); font-weight: 700; }
.brand-lg span { font-size: 24px; }
.nav-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: #6B7488; padding: 18px 14px 8px; }
.nav-label:first-of-type { padding-top: 8px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 0 14px; min-height: 44px; border-radius: 10px; color: var(--side-text); text-decoration: none; font-size: 15px; }
.nav-link:hover { background: var(--night-2); color: #fff; }
.nav-link.is-active { background: var(--lime); color: var(--night); font-weight: 700; }
.storage { margin-top: auto; padding: 16px 14px 0; border-top: 1px solid var(--night-line); display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted-2); }
.storage .mono { font-size: 12px; color: var(--side-text); }
.meter { height: 6px; border-radius: 3px; background: var(--night-line); overflow: hidden; }
.meter > div { height: 100%; background: var(--lime); border-radius: 3px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 16px 32px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 10px; background: var(--ground); color: var(--muted); max-width: 560px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 14px; outline: none; color: var(--ink); }
.user-chip { margin-left: auto; display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; font-weight: 700; font-size: 14px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--lime); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
.avatar-lg { width: 56px; height: 56px; font-family: var(--display); font-size: 18px; }
.icon-btn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn.sm { width: 36px; height: 36px; border-radius: 8px; border-color: var(--line-2); }
.icon-btn.danger { color: var(--danger); border-color: var(--danger-line); }
.only-mobile { display: none; }

.page { padding: 32px; display: flex; flex-direction: column; gap: 24px; max-width: 1180px; width: 100%; }
.foot { font-size: 13px; color: var(--muted); padding-top: 8px; }

/* ---------- Page header ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head .eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--muted); }
.page-head h1 { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; margin-top: 6px; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; border: 1.5px solid transparent; font: inherit; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #262B3A; color: #fff; }
.btn-primary svg { color: var(--lime); }
.btn-lime { background: var(--lime); color: var(--night); }
.btn-lime:hover { background: #B8E22A; color: var(--night); }
.btn-ghost { background: var(--card); border-color: var(--line-2); color: var(--ink); }
.btn-outline { background: var(--card); border-color: var(--ink); color: var(--ink); }
.btn-danger { background: var(--card); border-color: var(--danger-line); color: var(--danger); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; height: 52px; font-size: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.field small { font-weight: 400; color: var(--muted); }
.input, .select, textarea.input { height: 46px; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 15px; font-weight: 400; background: var(--card); color: var(--ink); width: 100%; }
textarea.input { height: auto; min-height: 90px; padding: 10px 12px; }
.input:focus, .select:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.input[readonly] { background: var(--ground); color: var(--muted); border-color: var(--line); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 400; color: #3A4256; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-head h2 { font-size: 17px; }
.card-head a { font-size: 14px; font-weight: 700; }
.card-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.grid-2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.kpi { display: flex; flex-direction: column; gap: 12px; }
.kpi .label { font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.kpi .value { font-family: var(--display); font-size: 40px; font-weight: 700; line-height: 1; }
.kpi .value small { font-size: 20px; color: #6B7488; }
.kpi .sub { font-size: 13px; color: var(--muted); }
.card-dark .label, .card-dark .sub { color: var(--side-text); }
.live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--lime); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }

/* ---------- Pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; }
.pill-on { background: var(--lime-soft); color: var(--lime-ink); }
.pill-on i { background: var(--ok); }
.pill-off { background: var(--ground); color: var(--muted); }
.pill-off i { background: #9AA3B5; }
.pill-wait { background: #FFF2D6; color: #6B4500; }
.pill-wait i { background: var(--warn); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--card); font-size: 13px; text-decoration: none; color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.table th { text-align: left; color: var(--muted); font-size: 12px; letter-spacing: 0.06em; font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 12px; border-bottom: 1px solid #EEF1F5; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.row-actions form { margin: 0; }
.cell-title { display: flex; align-items: center; gap: 12px; }
.cell-title b { display: block; }
.cell-title small { color: var(--muted); font-size: 12px; }
.thumb { width: 52px; height: 32px; border-radius: 5px; background: var(--line-2); flex: none; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty h3 { color: var(--ink); font-size: 17px; }

/* ---------- Flash ---------- */
.flash { padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 700; }
.flash-success { background: var(--lime-soft); color: var(--lime-ink); }
.flash-error { background: #FDECEA; color: var(--danger); }
.flash-info { background: #E8EEFC; color: #1D3D8F; }

/* ---------- Pair panel ---------- */
.pair-panel { background: var(--ink); color: #fff; border-radius: 18px; padding: 28px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.pair-panel h2 { font-family: var(--display); font-size: 22px; }
.pair-panel p { color: var(--side-text); margin: 10px 0; }
.pair-panel .grow { flex: 1 1 300px; min-width: 0; }
.pair-steps { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--side-text); }
.pair-steps span { display: flex; align-items: center; gap: 8px; }
.pair-steps b { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--lime); color: var(--lime); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.code-input { flex: 1 1 200px; min-width: 0; height: 56px; border-radius: 12px; border: 2px solid var(--lime); background: var(--night-2); color: #fff; padding: 0 18px; font-family: var(--mono); font-size: 24px; letter-spacing: 0.3em; text-transform: uppercase; }
.code-input::placeholder { color: #4A5266; }
.pair-panel .field { color: var(--side-text); }
.pair-panel .select, .pair-panel .input { background: var(--night-2); border-color: var(--night-line); color: #fff; }
.pair-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Media ---------- */
.dropzone { border: 2px dashed #B9C0CE; border-radius: var(--radius); background: var(--card); padding: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.dropzone.is-over { border-color: var(--ink); background: var(--lime-soft); }
.dz-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--lime); color: var(--night); display: flex; align-items: center; justify-content: center; flex: none; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.tile { background: var(--card); border: 2px solid var(--card); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.tile:has(input:checked) { border-color: var(--ink); }
.tile-media { position: relative; height: 150px; border-radius: 10px; background: var(--ground); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tile-media img, .tile-media video { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.vthumb { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--night); }
.vthumb video { position: relative; max-width: 100%; max-height: 100%; }
.vthumb-icon { position: absolute; width: 34px; height: 34px; border-radius: 50%; background: var(--lime); color: var(--night); display: flex; align-items: center; justify-content: center; }
.vthumb-icon svg { fill: currentColor; }
.thumb .vthumb-icon { width: 22px; height: 22px; }
.thumb .vthumb-icon svg { width: 12px; height: 12px; }
.tile-tag { position: absolute; left: 8px; bottom: 8px; font-family: var(--mono); font-size: 10px; font-weight: 700; padding: 3px 6px; border-radius: 4px; background: var(--ink); color: #fff; }
.tile-check { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.tile-check input { width: 18px; height: 18px; accent-color: var(--ink); }
.tile-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.tile-meta { font-size: 12px; color: var(--muted); padding: 0 4px 4px; }
.bulkbar { position: sticky; bottom: 16px; background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; z-index: 4; }
.bulkbar[hidden] { display: none; }
.bulkbar .select { height: 36px; width: auto; background: var(--night-2); border-color: var(--night-line); color: #fff; font-size: 13px; }

/* ---------- Playlists ---------- */
.split { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.split-side { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; padding: 10px; }
.split-main { flex: 999 1 520px; min-width: 0; }
.pl-link { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-radius: 10px; padding: 12px 14px; min-height: 60px; text-decoration: none; }
.pl-link small { display: block; font-size: 12px; color: var(--muted); }
.pl-link.is-active { background: var(--ink); color: #fff; }
.pl-link.is-active small, .pl-link.is-active .mono { color: var(--side-text); }
.pl-link:hover:not(.is-active) { background: var(--ground); }
.pl-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pl-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); flex-wrap: wrap; }
.pl-item .n { font-family: var(--mono); font-size: 13px; color: var(--muted); width: 22px; }
.pl-item .name { flex: 1 1 160px; min-width: 0; }
.pl-item .name b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-item .name small { font-size: 12px; color: var(--muted); }
.dur { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 400; }
.dur input { width: 64px; height: 36px; border: 1px solid var(--line-2); border-radius: 8px; text-align: center; font-family: var(--mono); font-size: 13px; }
.picker { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pick { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 10px; border: 2px solid transparent; font-size: 12px; cursor: pointer; }
.pick:has(input:checked) { border-color: var(--ink); background: var(--ground); }
.pick .thumb { width: 100%; height: 80px; }
.pick input { position: absolute; opacity: 0; }
.pick span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
details.panel > summary { list-style: none; cursor: pointer; }
details.panel > summary::-webkit-details-marker { display: none; }

/* ---------- Layout previews ---------- */
.lay-preview { height: 170px; border-radius: 10px; background: var(--ground); display: flex; align-items: center; justify-content: center; }
.lay-frame { border: 3px solid var(--ink); border-radius: 6px; display: flex; overflow: hidden; font-family: var(--mono); font-size: 10px; font-weight: 700; }
.lay-frame .z-main { flex: 7; background: var(--lime); color: var(--night); display: flex; align-items: center; justify-content: center; }
.lay-frame .z-side { flex: 3; background: #3A4256; color: #fff; display: flex; align-items: center; justify-content: center; }
.lay-frame .z-tick { height: 20px; background: var(--ink); color: var(--lime); display: flex; align-items: center; padding: 0 6px; font-size: 9px; flex: none; }
.lay-col { display: flex; flex-direction: column; flex: 1; }
.lay-row { display: flex; flex: 1; }

/* ---------- Charts ---------- */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 190px; border-bottom: 1px solid var(--line-2); }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.bars .bar i { display: block; width: 100%; max-width: 40px; background: var(--ink); border-radius: 6px 6px 0 0; min-height: 2px; }
.bars .bar.is-last i { background: var(--lime); border: 1.5px solid var(--ink); border-bottom: 0; }
.bars .bar span { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.bar-labels { display: flex; gap: 8px; }
.bar-labels span { flex: 1; text-align: center; font-size: 12px; color: var(--muted); }
.hbar { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.hbar .top { display: flex; justify-content: space-between; font-size: 14px; gap: 10px; }
.hbar .track { height: 10px; border-radius: 5px; background: var(--ground); }
.hbar .track div { height: 10px; border-radius: 5px; background: var(--ink); }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth-hero { flex: 1 1 480px; background: var(--night); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.hero-screens { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 16px; max-width: 520px; align-items: center; }
.auth-hero { overflow: hidden; }
.hs-tall { width: 100%; }
.hs-wide { aspect-ratio: 16 / 9; border-radius: 14px; border: 2px solid var(--night-line); background: var(--night-2); padding: 14px; display: flex; flex-direction: column; justify-content: space-between; }
.hs-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted-2); }
.hs-title { font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1.05; }
.hs-bar { height: 6px; border-radius: 3px; background: var(--night-line); }
.hs-bar div { width: 62%; height: 6px; border-radius: 3px; background: var(--lime); }
.hs-tall { aspect-ratio: 9 / 16; border-radius: 14px; background: var(--lime); color: var(--night); padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; font-size: 10px; }
.hs-tall b { font-family: var(--display); font-size: 18px; line-height: 1.05; }
.hero-copy h1 { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1.08; letter-spacing: -0.03em; }
.hero-copy p { margin: 16px 0 0; font-size: 17px; color: var(--side-text); max-width: 520px; }
.auth-main { flex: 999 1 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 48px 24px; }
.auth-form { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 20px; }
.auth-form h2 { font-family: var(--display); font-size: 30px; letter-spacing: -0.02em; }
.auth-form .eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--muted); }
.pw { display: flex; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; overflow: hidden; }
.pw input { flex: 1; min-width: 0; height: 43px; border: 0; padding: 0 12px; font: inherit; font-size: 15px; outline: none; }
.pw button { width: 46px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pw:focus-within { outline: 2px solid var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 20; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 0 100vmax rgba(0,0,0,0); }
  .sidebar.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); }
  .shell { background: var(--ground); }
  .only-mobile { display: inline-flex; }
  .pair-panel { padding: 20px; }
  .pair-panel .grow { flex-basis: 100%; }
  .hide-mobile { display: none; }
  .topbar { padding: 12px 16px; }
  .page { padding: 20px 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .auth-hero { padding: 32px 24px; gap: 32px; }
  .hero-screens { display: none; }
  .hero-copy h1 { font-size: 32px; }
}

/* ---------- Billing & alerts ---------- */
.pill-bad { background: #FDECEA; color: var(--danger); }
.pill-bad i { background: var(--danger); }
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 14px; background: #FFF2D6; border: 1px solid #F2D089; color: #3D2800; }
.banner.is-bad { background: #FDECEA; border-color: #F1C9C4; color: #5C1410; }
.banner-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--warn); color: #3D2800; display: flex; align-items: center; justify-content: center; flex: none; }
.banner.is-bad .banner-icon { background: var(--danger); color: #fff; }
.banner .grow { flex: 1 1 320px; display: flex; flex-direction: column; gap: 2px; }
.choice { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 2px solid var(--line); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--ink); }
.choice input { width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.choice-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.choice-body small { color: var(--muted); font-size: 13px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.plan { position: relative; cursor: pointer; }
.plan input { position: absolute; opacity: 0; }
.plan span { min-height: 64px; border-radius: 12px; border: 2px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px; text-align: center; }
.plan small { font-size: 12px; color: var(--muted); }
.plan input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.plan input:checked + span small { color: var(--side-text); }
.plan input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.sum { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 14px 0; border-top: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); font-size: 14px; }
.sum dt { color: var(--side-text); }
.sum dd { margin: 0; text-align: right; }
.switch { position: relative; display: inline-flex; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span[aria-hidden] { width: 52px; height: 30px; border-radius: 15px; background: #B9C0CE; position: relative; transition: background .15s; }
.switch span[aria-hidden]::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + span[aria-hidden] { background: var(--ok); }
.switch input:checked + span[aria-hidden]::after { transform: translateX(22px); }
.switch input:focus-visible + span[aria-hidden] { outline: 2px solid var(--ink); outline-offset: 2px; }
.ch-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.ch-email { background: #E8EEFC; color: #1D3D8F; }
.ch-wa { background: var(--lime-soft); color: var(--lime-ink); }
.ch-tag { width: 82px; height: 26px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; font-weight: 700; flex: none; }
.ch-tag-email { background: #E8EEFC; color: #1D3D8F; }
.ch-tag-whatsapp { background: var(--lime-soft); color: var(--lime-ink); }
.big-check { width: 20px; height: 20px; accent-color: var(--ink); }
.bar6 { height: 6px; border-radius: 3px; background: #EEF1F5; overflow: hidden; }
.bar6 div { height: 6px; border-radius: 3px; }

/* ---------- Roles: screen booking, users ---------- */
.screen-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; max-height: 340px; overflow-y: auto; }
.sp { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; }
.sp:has(input:checked) { border-color: var(--ink); background: var(--ground); }
.sp input { width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.sp input:disabled + span { opacity: 0.7; }
.sp span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sp b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp small { font-size: 12px; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #9AA3B5; flex: none; }
.dot-on { background: var(--ok); }
.pill-blue { background: #E8EEFC; color: #1D3D8F; }
.pill-dark { background: var(--ink); color: var(--lime); }
.user-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 18px 22px; }
.user-main { display: flex; gap: 14px; align-items: center; flex: 1 1 360px; min-width: 0; }
.user-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; justify-content: flex-end; flex: 1 1 360px; margin: 0; }
.acting-bar { background: var(--lime); color: var(--night); padding: 10px 32px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.acting-bar form { margin: 0 0 0 auto; }
.role-tag { display: inline-block; margin: 0 10px 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--lime); border: 1px solid #3A4256; border-radius: 6px; padding: 4px 8px; }
@media (max-width: 900px) { .acting-bar { padding: 10px 16px; } }
