:root {
  --bg: #f4f3ef;
  --panel: #ffffff;
  --ink: #17171c;
  --ink-2: #55555f;
  --ink-3: #8b8b95;
  --line: #e4e2dc;
  --side: #141418;
  --side-ink: #c9c9d1;
  --accent: #4a6cd0;
  --accent-ink: #ffffff;
  --accent-soft: #edf2fd;
  --accent-grad: linear-gradient(135deg, #2f84d4 0%, #5a5fbb 100%);
  --accent-grad-light: linear-gradient(90deg, #62b0ec 0%, #8b88dc 100%);
  --ok: #12a150;
  --warn: #d48a00;
  --bad: #d92d20;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20,20,30,.06), 0 4px 16px rgba(20,20,30,.05);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 15px/1.45 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.015em; }
h1 { font-size: 26px; font-weight: 750; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 650; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.tiny { font-size: 12px; color: var(--ink-3); }
.hidden { display: none !important; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: #fff; font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.wordmark { letter-spacing: .04em; font-size: 15px; white-space: nowrap; }
.wordmark b { font-weight: 850; }
.wordmark span { font-weight: 500; background: var(--accent-grad-light); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-mark { width: 36px; height: 26px; flex: none; background: url(../logo.png) center / contain no-repeat; }
.client-pick { margin: 0 4px 14px; }
.client-pick select { width: 100%; background: #23232a; color: #fff; border: 1px solid #33333c; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--side-ink); font-weight: 550; }
.nav a:hover { background: #1f1f25; color: #fff; }
.nav a.active { background: #26262e; color: #fff; }
.nav a.active svg { color: var(--accent); }
.nav svg { width: 18px; height: 18px; flex: none; }
.nav-sep { margin: 14px 12px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6e6e78; }
.side-foot { margin-top: auto; padding: 10px 12px; font-size: 13px; color: #8a8a94; border-top: 1px solid #24242b; }
.side-foot button { margin-top: 8px; }

.main { min-width: 0; padding: 28px 34px 60px; max-width: 1280px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; }
.crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--ink); }

.topbar, .tabbar { display: none; }

@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 20; background: var(--side); color: #fff; padding: 10px 14px; align-items: center; gap: 10px; }
  .topbar .brand { padding: 0; font-size: 16px; }
  .topbar select { margin-left: auto; max-width: 48%; background: #23232a; color: #fff; border: 1px solid #33333c; padding: 6px 8px; }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; text-decoration: none; color: var(--ink-3); padding: 4px 0; }
  .tabbar a.active { color: var(--accent); }
  .tabbar svg { width: 22px; height: 22px; }
  .main { padding: 18px 14px 96px; }
  h1 { font-size: 22px; }
}

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 14px var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #cfccc4; background: #fbfaf8; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--accent-grad); border-color: transparent; color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(.95); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(0,0,0,.05); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: #fdf0ef; border-color: #f3c7c3; }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn.icon { width: 34px; padding: 0; }
.side .btn { background: #23232a; color: #ddd; border-color: #33333c; }

label.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=time], input[type=date], select, textarea {
  font: 15px var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; width: 100%; min-width: 0;
}
textarea { resize: vertical; min-height: 64px; }
/* iPhone Safari zooms in on any box with text under 16px and stays zoomed: keep boxes at 16px on touch screens */
@media (hover: none) and (pointer: coarse) {
  input[type=text], input[type=email], input[type=password], input[type=number], input[type=time], input[type=date], input[type=url], input[type=search], select, textarea { font-size: 16px !important; }
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
input[type=color] { width: 44px; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
input[type=range] { width: 100%; accent-color: var(--accent); }
input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font: 600 13px var(--font); cursor: pointer; color: var(--ink-2); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.seg { display: inline-flex; background: #ebe9e3; border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font: 600 13px var(--font); color: var(--ink-2); cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

/* ---------- surfaces ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 18px; }
.card-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-body { padding: 16px 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.empty { text-align: center; padding: 48px 20px; color: var(--ink-2); }
.empty h2 { color: var(--ink); margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: #eeece6; color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge.ok { background: #e5f6ec; color: var(--ok); }
.badge.bad { background: #fdecea; color: var(--bad); }
.badge.warn { background: #fff4dc; color: #a36a00; }
.badge.plain::before { display: none; }

.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); }
.list-row:first-child { border-top: 0; }
.list-row select { width: auto; max-width: 220px; flex: none; }
.list-row .grow { min-width: 120px; }

/* screen card */
.screen-card { overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.screen-card:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(20,20,30,.1); }
.thumb { aspect-ratio: 16/9; background: #111; position: relative; overflow: hidden; }
.thumb.portrait { aspect-ratio: 9/16; max-height: 220px; margin: 0 auto; }
.thumb > .sg-host { position: absolute; inset: 0; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .tag { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; }
.thumb .blank { position: absolute; inset: 0; display: grid; place-items: center; color: #777; font-size: 13px; }
.screen-meta { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }

/* media */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.media-item { overflow: hidden; cursor: pointer; position: relative; }
.media-item .info { padding: 8px 10px; font-size: 13px; }
.media-item .info div:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.media-item.selected { outline: 3px solid var(--accent); outline-offset: -1px; }
.media-item .check { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-grad); color: #fff; display: none; place-items: center; font-weight: 800; }
.media-item.selected .check { display: grid; }
.dropzone { border: 2px dashed #d5d2c9; border-radius: var(--radius); padding: 26px; text-align: center; color: var(--ink-2); background: #faf9f6; transition: .15s; }
.dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.upload-row { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 6px 0; }
.bar { height: 6px; background: #eee; border-radius: 3px; flex: 1; overflow: hidden; }
.bar > div { height: 100%; background: var(--accent-grad); width: 0; transition: width .3s; }

/* playlist editor */
.editor { display: grid; grid-template-columns: 350px 1fr; gap: 18px; align-items: start; }
.editor > * { min-width: 0; }
.slides-list { display: flex; flex-direction: column; gap: 8px; padding: 12px; max-height: calc(100vh - 210px); overflow: auto; }
.slide-row { display: grid; grid-template-columns: 22px 96px 1fr auto; gap: 10px; align-items: center; padding: 6px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; background: #faf9f6; }
.slide-row:hover { border-color: var(--line); }
.slide-row .acts { display: grid; grid-template-columns: 30px 30px; grid-template-rows: 26px 26px; gap: 4px 6px; align-items: stretch; }
.slide-row .acts button { display: grid; place-items: center; border: 0; background: #efeee9; border-radius: 8px; cursor: pointer; color: var(--ink-2); padding: 0; transition: background .15s, color .15s; }
.slide-row .acts button:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent); }
.slide-row .acts button:disabled { opacity: .3; cursor: default; }
.slide-row .acts .del { grid-column: 2; grid-row: 1 / span 2; background: #fdeceb; color: var(--bad); }
.slide-row .acts .del:hover { background: #f9d6d3 !important; color: var(--bad) !important; }
.slide-row .acts svg { width: 15px; height: 15px; }
.slide-row.active { border-color: var(--accent); background: var(--accent-soft); }
.slide-row.dragging { opacity: .4; }
.slide-row.drop-before { box-shadow: 0 -3px 0 var(--accent); }
.slide-row .num { font-size: 12px; color: var(--ink-3); text-align: center; font-weight: 700; cursor: grab; }
.slide-row .mini { aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; position: relative; background: #000; }
.slide-row .mini > .sg-host { position: absolute; inset: 0; }
.slide-row .t { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slide-row .s { font-size: 12px; color: var(--ink-3); }
.preview-box { aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; position: relative; background: #000; }
.preview-box.portrait { aspect-ratio: 9/16; max-height: 62vh; margin: 0 auto; }
.preview-box > .sg-host { position: absolute; inset: 0; }
.inspector { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.inspector .full { grid-column: 1 / -1; }
.section-title { font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); grid-column: 1/-1; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.section-title:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.pos-grid { display: grid; grid-template-columns: repeat(3, 34px); gap: 4px; }
.pos-grid button { width: 34px; height: 24px; border-radius: 5px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.pos-grid button.on { background: var(--ink); border-color: var(--ink); }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch { width: 30px; height: 30px; border-radius: 8px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch.on { box-shadow: 0 0 0 2px var(--accent); }

@media (max-width: 980px) {
  .editor { grid-template-columns: 1fr; }
  .slides-list { flex-direction: row; overflow-x: auto; max-height: none; }
  .slide-row { grid-template-columns: 1fr; width: 150px; flex: none; }
  .slides-list > .row { order: -1; flex: none; flex-direction: column; align-items: stretch; width: 120px; }
  /* phone: picture, then the name, then a tidy button bar underneath */
  .slide-row { width: 150px; gap: 6px; padding: 7px; align-items: start; }
  .slide-row .num, .slide-row .s { display: none; }
  .slide-row .t { font-size: 12.5px; padding: 0 2px; }
  .slide-row .acts { display: flex; gap: 6px; }
  .slide-row .acts button { flex: none; width: 34px; height: 30px; }
  .slide-row .acts .del { margin-left: auto; }
  .slide-row .acts button:not(.del) svg { transform: rotate(-90deg); }   /* strip scrolls sideways: ← → */
}
@media (max-width: 560px) {
  .inspector, .grid2 { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
}

/* screen page */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 18px; align-items: start; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } }

/* schedule */
.week { display: grid; grid-template-columns: 44px 1fr; gap: 6px 10px; align-items: center; font-size: 12px; }
.week .day { font-weight: 700; color: var(--ink-2); }
.week .track { position: relative; height: 26px; background: #f0eee8; border-radius: 6px; overflow: hidden; }
.week .seg-bar { position: absolute; top: 0; bottom: 0; border-radius: 4px; color: #fff; font-size: 11px; font-weight: 700; padding: 0 6px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; }
.week .now-line { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--bad); z-index: 2; }
.week .hours { grid-column: 2; display: flex; justify-content: space-between; color: var(--ink-3); font-size: 11px; }
.rule { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); }
.rule .dot { width: 10px; height: 36px; border-radius: 4px; }
.rule.off { opacity: .5; }
.onair { background: linear-gradient(135deg, #17171c, #2a2a33); color: #fff; border-radius: var(--radius); padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.onair .live { background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 5px; letter-spacing: .06em; }

/* modal & toast */
.modal-back { position: fixed; inset: 0; background: rgba(15,15,20,.55); z-index: 50; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { background: #fff; border-radius: 16px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 24px 80px rgba(0,0,0,.3); }
.modal.wide { width: min(980px, 100%); }
.modal-head { padding: 18px 20px 0; display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { padding: 0 20px 18px; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 10px; font-weight: 550; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: up .2s; max-width: 360px; }
.toast.bad { background: var(--bad); }
@media (max-width: 820px) {
  .list-row { flex-wrap: wrap; }
  .list-row .grow { flex: 1 1 60%; }
}
@media (max-width: 820px) { .toasts { left: 14px; right: 14px; bottom: 80px; } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translateY(10px); } }

/* auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { background: var(--side); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-art h2 { font-size: 40px; line-height: 1.05; max-width: 440px; letter-spacing: -.03em; }
.auth-art .tv { position: absolute; right: -60px; bottom: 80px; width: 420px; aspect-ratio: 16/9; border-radius: 14px; background: linear-gradient(135deg, #62b0ec, #6d6fb2 55%, #3f86d6); box-shadow: 0 0 0 10px #26262e, 0 40px 80px rgba(0,0,0,.4); transform: rotate(-6deg); }
.auth-form { display: grid; place-items: center; padding: 32px 20px; }
.auth-form form { width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; }
.auth-form .btn { height: 44px; }
@media (max-width: 820px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }

.code-input { font: 700 30px ui-monospace, Menlo, monospace !important; letter-spacing: .35em; text-align: center; text-transform: uppercase; }
.notice { background: var(--accent-soft); border: 1px solid #cbd8f6; color: #213f8a; padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.notice.info { background: #eef3ff; border-color: #cfdcff; color: #213a87; }
.notice.ok { background: #ecfdf3; border-color: #b7ebc9; color: #0b6b34; }
.notice.bad { background: #fef0ef; border-color: #f7c6c2; color: #a3231a; }
.copy-box { display: flex; gap: 8px; }
.day-times { display: grid; grid-template-columns: 44px 1fr auto 1fr; gap: 8px; align-items: center; }
.day-times input { min-width: 0; }
.save-row { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; gap: 12px; }
.date-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }   /* stays side by side on phones */
.inspector label.row { flex-wrap: nowrap; }   /* keep tick boxes next to their text */
.date-pair > * { min-width: 0; }
.date-pair input[type=date] { min-width: 0; width: 100%; max-width: 100%; display: block; box-sizing: border-box; -webkit-appearance: none; appearance: none; }
/* iPhone: date boxes have a built-in minimum width and centred text */
input[type=date]::-webkit-date-and-time-value { text-align: left; min-width: 0; }
.date-pair .date-wrap { min-width: 0; overflow: hidden; border-radius: 9px; }
.date-pair input[type=date] { height: 44px; line-height: 24px; }
.date-pair input[type=date].empty:not(:focus) { color: transparent; }   /* show our own “Not set” instead */
.date-wrap:focus-within .date-ph { display: none; }
.date-ph { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 7px; color: var(--ink-3); font-size: 15px; pointer-events: none; }
.date-ph svg { width: 16px; height: 16px; }
.date-wrap { position: relative; }
.date-wrap input { padding-right: 30px; }
.date-clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: 0; border-radius: 50%; background: #efeee9; color: var(--ink-2); font-size: 16px; line-height: 1; cursor: pointer; }
.date-clear:hover { background: #e2e1db; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 34px; border: 0; background: transparent; color: var(--ink-3); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.pw-eye:hover { color: var(--ink); background: rgba(0,0,0,.05); }
.pw-eye svg { width: 18px; height: 18px; }
.pw-match { font-size: 12.5px; margin-top: 4px; }
.pw-match.ok { color: var(--ok); } .pw-match.bad { color: var(--bad); }
.copy-box input { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.spinner { width: 18px; height: 18px; border: 2px solid #ddd; border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* notifications bell */
.bell-row { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--side-ink); font-weight: 550; cursor: pointer; }
.bell-row:hover { background: #1f1f25; color: #fff; }
.bell-row svg, .bell svg { color: #62b0ec; }
.bell-row .bell-dot { margin-left: auto; }
.bell { position: relative; width: 36px; height: 36px; margin-left: 4px; }
.bell svg { width: 20px; height: 20px; }
.bell .bell-dot { position: absolute; top: 1px; right: -2px; }
.bell-dot { min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent-grad); color: #fff; font: 700 11px/18px var(--font); padding: 0 5px; text-align: center; }
.bell-dot.hidden { display: none; }
@media (max-width: 820px) { .tabbar { overflow-x: auto; } .tabbar a { min-width: 64px; } }
.quick-pl { padding: 4px 8px; font-size: 13px; border-radius: 7px; max-width: 70%; }
