:root {
  /* surfaces, darkest -> lightest (dark skins) */
  --bg: #1d1d1f;
  --sunken: #141416;
  --panel: #171718;
  --list: #19191a;
  --field: #1a1a1c;
  --raised: #232326;
  --card: #262628;
  --card-hover: #2e2e31;
  --hover: #2e2e32;
  --line: #303033;
  --list-border: #2a2a2c;
  --border: #3a3a3f;
  --border-strong: #4a4a50;
  --text: #ececee;
  --muted: #8b8b92;
  --faint: #5e5e66;
  --accent: #16a34a;
  --accent-hover: #15803d;
  --accent-rgb: 34, 197, 94;
  --accent-2: #22c55e;
  --on-accent: #fff;
  --glow: rgba(34, 197, 94, .25);
  --hero-a: #16a34a;
  --hero-b: #0d9488;
  --hero-c: #2563eb;
  --green: #22c55e;
  --green-bg: rgba(var(--accent-rgb), .12);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, .14);
  --blue: #3b82f6;
  --blue-bg: rgba(59, 130, 246, .14);
  --amber: #f59e0b;
  --amber-bg: rgba(245, 158, 11, .14);
  --purple: #a855f7;
  --purple-bg: rgba(168, 85, 247, .14);
  --radius: 8px;
  --col-w: 272px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-size: 13px; line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
::-webkit-scrollbar { width: 8px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-rows: 52px 1fr; height: 100vh; }
.topbar {
  display: flex; align-items: center; gap: 6px; padding: 0 14px;
  border-bottom: 1px solid var(--line); background: var(--panel);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin-right: 18px; text-decoration: none; }
.brand-mark { width: 24px; height: 24px; }
.nav { display: flex; gap: 2px; }
.nav a {
  padding: 6px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 500;
}
.nav a:hover { color: var(--text); background: var(--raised); }
.nav a.active { color: var(--text); background: var(--hover); }
.topbar .spacer { flex: 1; }
.menu-toggle { display: none; background: none; border: 0; padding: 6px; color: var(--muted); }

.body { display: grid; grid-template-columns: 232px 1fr; min-height: 0; }
.sidebar {
  background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column;
  min-height: 0; overflow: hidden;
}
.sidebar-scroll { flex: 1; overflow-y: auto; padding: 10px; }
.sidebar-foot { border-top: 1px solid var(--line); padding: 8px 10px; }
.main { min-width: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }

.search { position: relative; margin-bottom: 12px; }
.search input {
  width: 100%; background: var(--raised); border: 1px solid var(--line); border-radius: 7px;
  padding: 7px 10px 7px 30px; outline: none;
}
.search input:focus { border-color: var(--border-strong); }
.search svg { position: absolute; left: 9px; top: 8px; color: var(--faint); }
.search-results {
  position: absolute; z-index: 30; top: 36px; left: 0; right: 0; background: var(--raised);
  border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.45);
  max-height: 320px; overflow-y: auto; padding: 4px;
}
.search-results .res { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 6px; cursor: pointer; }
.search-results .res:hover { background: var(--hover); }
.search-results .res small { color: var(--muted); display: block; }

.group-head {
  display: flex; align-items: center; justify-content: space-between; margin: 14px 4px 4px;
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600;
}
.group-head .tools { opacity: 0; display: flex; gap: 2px; }
.group-head:hover .tools { opacity: 1; }
.side-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; cursor: pointer;
  color: var(--text); text-decoration: none; position: relative;
}
.side-item:hover { background: var(--raised); }
.side-item.active { background: var(--hover); box-shadow: inset 0 0 0 1px var(--border); }
.side-item .count { margin-left: auto; color: var(--faint); font-size: 11px; }
.side-item .more { opacity: 0; }
.side-item:hover .more { opacity: 1; }
.side-item:hover .count { display: none; }
.side-item.subtle { color: var(--muted); }
.side-item .ok { margin-left: auto; color: var(--green); }
.side-item .missing { margin-left: auto; color: var(--faint); }
.side-section {
  margin: 16px 4px 6px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px;
}
.side-channel { display: flex; align-items: center; gap: 8px; padding: 6px 4px 10px; }
.side-channel b { display: block; font-size: 13px; }
.side-channel small { color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 12px 0; }

.icon-btn {
  background: none; border: 0; color: var(--muted); padding: 3px; border-radius: 5px; display: inline-grid;
  place-items: center; line-height: 0;
}
.icon-btn:hover { color: var(--text); background: var(--hover); }

/* ---------- board ---------- */
.board-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line);
  min-height: 50px;
}
.board-head h1 { font-size: 15px; margin: 0; font-weight: 650; }
.board-head .meta { color: var(--muted); }
.board-head .spacer { flex: 1; }
.board {
  flex: 1; display: flex; gap: 8px; padding: 10px; overflow-x: auto; overflow-y: hidden; min-height: 0;
  align-items: stretch;
}
.column { width: var(--col-w); flex: none; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.list {
  flex: 1 1 0; min-height: 120px; display: flex; flex-direction: column; background: var(--list);
  border: 1px solid var(--list-border); border-radius: var(--radius);
}
.list-head {
  display: flex; align-items: center; gap: 6px; padding: 8px 8px 6px; font-size: 12px; font-weight: 600;
}
.list-head .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-head .n { color: var(--faint); font-weight: 500; }
.cards { flex: 1; overflow-y: auto; padding: 2px 6px 6px; display: flex; flex-direction: column; gap: 6px; min-height: 40px; }
.cards.drop-files { outline: 2px dashed var(--green); outline-offset: -4px; border-radius: 8px; }
.add-card {
  margin: 0 6px 6px; padding: 6px 8px; border-radius: 6px; color: var(--muted); background: none; border: 0;
  text-align: left;
}
.add-card:hover { background: var(--raised); color: var(--text); }
.add-column {
  width: var(--col-w); flex: none; align-self: flex-start; background: rgba(255,255,255,.03);
  border: 1px dashed var(--border); border-radius: var(--radius); padding: 10px; color: var(--muted);
}
.add-column:hover { color: var(--text); border-color: var(--border-strong); }

.card {
  background: var(--card); border: 1px solid var(--hover); border-radius: 7px; padding: 8px; cursor: pointer;
  position: relative; flex: none;
}
.card:hover { background: var(--card-hover); border-color: var(--border); }
.card.dragging { opacity: .35; }
.card .menu-btn { position: absolute; right: 4px; top: 4px; opacity: 0; }
.card:hover .menu-btn { opacity: 1; }
.placeholder { border: 1px dashed var(--border-strong); border-radius: 7px; background: rgba(255,255,255,.03); flex: none; }

.ch-top { display: flex; gap: 8px; align-items: flex-start; padding-right: 18px; }
.ch-name { font-weight: 600; font-size: 12px; line-height: 1.3; }
.ch-sub { color: var(--muted); font-size: 11px; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-weight: 700; font-size: 12px; color: #fff; overflow: hidden; background: var(--border-strong);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 20px; height: 20px; font-size: 10px; }
.avatar.lg { width: 40px; height: 40px; font-size: 16px; }
.avatar.xl { width: 64px; height: 64px; font-size: 24px; }
.members { display: flex; }
.members .avatar { box-shadow: 0 0 0 2px var(--card); margin-right: -5px; }
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin: 7px 0; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 4px; font-size: 10.5px;
  font-weight: 600; background: var(--blue-bg); color: #8ab4ff; border: 1px solid rgba(59,130,246,.3);
}
.badge.green { background: rgba(var(--accent-rgb), .12); color: #6ee7a0; border-color: rgba(var(--accent-rgb), .3); }
.badge.red { background: var(--red-bg); color: #fca5a5; border-color: rgba(239,68,68,.3); }
.badge.amber { background: var(--amber-bg); color: #fcd34d; border-color: rgba(245,158,11,.3); }
.badge.purple { background: var(--purple-bg); color: #d8b4fe; border-color: rgba(168,85,247,.3); }
.badge.gray { background: var(--hover); color: var(--muted); border-color: var(--border); }
.row { display: flex; align-items: center; gap: 6px; }
.row .spacer { flex: 1; }
.pill-count { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: rgba(var(--accent-rgb), .12); color: var(--green); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 8px; text-align: center; }
.stats small { display: block; color: var(--faint); font-size: 9px; letter-spacing: .05em; }
.stats b { font-size: 12px; color: var(--green); font-weight: 700; }
.stats b.neg { color: var(--red); }
.stats b.none { color: var(--faint); }
.stats b.total { color: var(--text); }

.vcard .thumb { margin: -8px -8px 8px; border-radius: 6px 6px 0 0; overflow: hidden; aspect-ratio: 16/9; background: var(--sunken); }
.vcard .thumb img, .vcard .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vcard .title { font-size: 12px; font-weight: 500; padding-right: 16px; word-break: break-word; }
.vcard .desc {
  color: var(--muted); font-size: 11px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.vcard .foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--muted); font-size: 11px; }
.vcard .foot:empty { display: none; }

.empty-state { margin: auto; text-align: center; color: var(--muted); padding: 40px; }
.empty-state h2 { color: var(--text); font-size: 16px; font-weight: 500; margin: 0 0 6px; }

/* ---------- pages ---------- */
.page { overflow-y: auto; padding: 24px; }
.page-inner { max-width: 760px; }
.page h1 { font-size: 20px; margin: 0 0 4px; }
.page p.lead { color: var(--muted); margin: 0 0 20px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.panel h2 { font-size: 14px; margin: 0 0 12px; }
.user-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.user-row:first-of-type { border-top: 0; }
.user-row .who { flex: 1; }
.user-row small { color: var(--muted); display: block; }
.tpl-cols { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.tpl-col { background: var(--list); border: 1px solid var(--list-border); border-radius: 6px; padding: 6px; min-width: 130px; }
.tpl-col div { font-size: 11px; padding: 4px 6px; background: var(--card); border-radius: 4px; margin-bottom: 4px; }
.tpl-col div:last-child { margin-bottom: 0; }

/* ---------- forms ---------- */
label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.input, textarea.input, select.input {
  width: 100%; background: var(--field); border: 1px solid var(--border); border-radius: 7px; padding: 8px 10px; outline: none;
}
.input:focus { border-color: var(--border-strong); }
textarea.input { resize: vertical; min-height: 90px; }
.btn {
  border: 1px solid var(--border); background: var(--hover); padding: 7px 12px; border-radius: 7px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.danger { color: #fca5a5; }
.btn.danger:hover { background: var(--red-bg); border-color: rgba(239,68,68,.4); }
.btn.sm { padding: 4px 9px; font-size: 12px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--raised); cursor: pointer; user-select: none;
}
.chip.on { border-color: var(--green); background: rgba(var(--accent-rgb), .12); }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.swatch.on { border-color: #fff; }
.hint { color: var(--muted); font-size: 12px; }
.err { color: #fca5a5; font-size: 12px; min-height: 16px; margin-top: 6px; }

/* ---------- modal / menu / toast ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 50; display: flex; align-items: flex-start;
  justify-content: center; padding: 6vh 16px; overflow-y: auto;
}
.modal {
  background: var(--raised); border: 1px solid var(--border); border-radius: 12px; width: 100%; max-width: 440px;
  padding: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.modal.wide { max-width: 760px; }
.modal h2 { margin: 0 0 14px; font-size: 16px; }
.modal-close { float: right; margin: -6px -6px 0 0; }
.menu {
  position: fixed; z-index: 60; min-width: 190px; background: var(--raised); border: 1px solid var(--border); border-radius: 9px;
  padding: 4px; box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.menu button {
  display: flex; width: 100%; text-align: left; background: none; border: 0; padding: 7px 9px; border-radius: 6px; gap: 8px;
}
.menu button:hover { background: var(--hover); }
.menu button.danger { color: #fca5a5; }
.menu .sep { height: 1px; background: var(--border); margin: 4px; }
.menu .label { padding: 6px 9px 2px; font-size: 11px; color: var(--muted); }
#toasts { position: fixed; bottom: 16px; right: 16px; z-index: 70; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--hover); border: 1px solid var(--border); padding: 10px 14px; border-radius: 8px; max-width: 360px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.toast.error { border-color: rgba(239,68,68,.5); }

/* card modal */
.cm-grid { display: grid; grid-template-columns: 1fr 220px; gap: 20px; }
.cm-thumb {
  aspect-ratio: 16/9; border-radius: 8px; background: var(--sunken); border: 1px dashed var(--border); display: grid; place-items: center;
  color: var(--muted); cursor: pointer; overflow: hidden; margin-bottom: 14px; position: relative;
}
.cm-thumb img, .cm-thumb video { width: 100%; height: 100%; object-fit: cover; }
.cm-thumb.drag { border-color: var(--green); }
.cm-title { font-size: 17px; font-weight: 650; background: transparent; border: 1px solid transparent; width: 100%; padding: 4px 6px; margin-left: -6px; border-radius: 6px; resize: none; }
.cm-title:hover, .cm-title:focus { border-color: var(--border); background: var(--field); outline: none; }
.cm-side h4 { margin: 14px 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cm-side h4:first-child { margin-top: 0; }
.comment { display: flex; gap: 8px; margin-top: 12px; }
.comment .bubble { background: var(--field); border: 1px solid var(--hover); border-radius: 8px; padding: 8px 10px; flex: 1; white-space: pre-wrap; word-break: break-word; }
.comment small { color: var(--muted); }

/* auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.auth .modal { max-width: 380px; }
.auth .brand { margin: 0 0 18px; font-size: 18px; }

@media (max-width: 760px) {
  .body { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: 52px; bottom: 0; left: 0; width: 260px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: 20px 0 40px rgba(0,0,0,.5); }
  .menu-toggle { display: inline-grid; }
  .nav a { padding: 6px 8px; }
  .brand span { display: none; }
  .cm-grid { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .page { padding: 16px; }
}

/* ---------- compact 2-up cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 5px; padding: 2px 5px 5px; }
.card { padding: 6px; border-radius: 6px; }
.card .menu-btn { right: 1px; top: 1px; padding: 2px; }
.ch-top { gap: 5px; padding-right: 12px; }
.ch-name { font-size: 10.5px; line-height: 1.25; word-break: break-word; }
.ch-sub { font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .avatar { width: 20px; height: 20px; font-size: 9px; }
.card .members .avatar { width: 15px; height: 15px; font-size: 7px; margin-right: -4px; box-shadow: 0 0 0 1.5px var(--card); }
.card .badges { margin: 5px 0; gap: 3px; }
.card .badge { font-size: 9px; padding: 1px 4px; }
.card .pill-count { font-size: 9px; padding: 0 4px; }
.card .stats { grid-template-columns: repeat(2, 1fr); row-gap: 3px; margin-top: 5px; }
.card .stats small { font-size: 8px; }
.card .stats b { font-size: 10.5px; }
.vcard .thumb { margin: -6px -6px 6px; border-radius: 5px 5px 0 0; }
.vcard .title { font-size: 10.5px; line-height: 1.3; padding-right: 12px; }
.vcard .desc { font-size: 9.5px; margin-top: 3px; }
.vcard .foot { font-size: 9.5px; gap: 5px; margin-top: 4px; }
.placeholder { min-height: 60px; }

/* smooth drag */
.cards { position: relative; }
.card { touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.card.drag-src { display: none; }
.drag-ghost {
  position: fixed; z-index: 100; pointer-events: none; margin: 0; will-change: transform;
  box-shadow: 0 18px 40px rgba(0,0,0,.55), 0 0 0 1px var(--border-strong); opacity: .97; cursor: grabbing;
}
.drag-ghost .menu-btn { display: none; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; }
.placeholder { background: rgba(var(--accent-rgb), .06); border: 1.5px dashed rgba(var(--accent-rgb), .45); transition: height .15s; }

/* channel card extras */
.card .avatar.ch-pfp { width: 30px; height: 30px; font-size: 11px; box-shadow: 0 0 0 1.5px var(--border); }
.yt-link { display: inline-grid; place-items: center; vertical-align: -2px; color: #f87171; background: rgba(239,68,68,.16); border-radius: 3px; padding: 0 2px; }
.yt-link:hover { background: rgba(239,68,68,.3); }
.badge.uploads { cursor: pointer; background: rgba(234,179,8,.13); color: #fcd34d; border-color: rgba(234,179,8,.35); font: inherit; font-size: 9px; font-weight: 600; }
.badge.uploads:hover { background: rgba(234,179,8,.22); }
.badge.uploads.unset { background: transparent; color: var(--faint); border-style: dashed; border-color: var(--border-strong); }
.badge.uploads.overdue .next { color: #fca5a5; }
.badge.uploads .next { font-weight: 500; opacity: .9; }
.board-head .badge.uploads { font-size: 11px; padding: 3px 7px; }
.add-member {
  width: 15px; height: 15px; border-radius: 50%; border: 1px dashed var(--faint); background: transparent; color: var(--muted);
  display: inline-grid; place-items: center; padding: 0; margin-left: 7px; flex: none;
}
.add-member:hover { color: var(--text); border-color: var(--text); }
.board-head .add-member { width: 22px; height: 22px; }
.popover { width: 250px; padding: 10px; }
.popover .field { margin-bottom: 9px; }
.popover .input { padding: 6px 8px; }
.pop-title { font-weight: 600; margin-bottom: 8px; }
.day-row { display: flex; gap: 3px; }
.day { flex: 1; padding: 4px 0; border-radius: 5px; border: 1px solid var(--border); background: var(--field); font-size: 11px; color: var(--muted); }
.day.on { background: rgba(234,179,8,.18); border-color: rgba(234,179,8,.5); color: #fcd34d; }
.pick-list { max-height: 220px; overflow-y: auto; margin-top: 6px; display: flex; flex-direction: column; gap: 2px; }
.menu .pick { display: flex; align-items: center; gap: 8px; padding: 5px 6px; }
.menu .pick.on { background: rgba(var(--accent-rgb), .12); }
.menu .pick svg { color: var(--green); margin-left: auto; }
.pick-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-name small { color: var(--faint); }

/* zoom */
.zoom { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; margin-right: 6px; }
.zbtn { background: var(--raised); border: 0; padding: 4px 9px; color: var(--muted); font-size: 12px; min-width: 28px; }
.zbtn + .zbtn { border-left: 1px solid var(--border); }
.zbtn:hover { background: var(--hover); color: var(--text); }
.zoom-pct { min-width: 48px; font-variant-numeric: tabular-nums; }
.badge.uploads { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* full list names: wrap instead of truncating */
.list-head { align-items: flex-start; }
.list-head .name { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; padding-top: 2px; overflow-wrap: anywhere; }
.list-head .n { padding-top: 2px; }

/* templates */
.tpl-section { font-size: 15px; margin: 0 0 4px; }
.tpl-card.starred { border-color: rgba(234,179,8,.45); box-shadow: inset 0 0 0 1px rgba(234,179,8,.15); }
.star { background: none; border: 0; font-size: 20px; line-height: 1; padding: 0 2px; color: var(--faint); }
.star:hover { color: #fcd34d; transform: scale(1.1); }
.star.on { color: #facc15; cursor: default; }
.board-head .btn.sm { white-space: nowrap; }

/* rich menu */
.menu button.with-icon { align-items: center; gap: 10px; padding: 8px 10px; font-size: 13.5px; }
.menu button.with-icon svg { color: var(--muted); flex: none; }
.menu .mi-text { flex: 1; }
.menu .mi-right { color: var(--muted); font-size: 12px; }
.menu .mi-chev { color: var(--muted); font-size: 16px; line-height: 1; }
.menu button.danger.with-icon { background: rgba(239,68,68,.16); color: #fca5a5; margin-top: 2px; }
.menu button.danger.with-icon svg { color: #fca5a5; }
.menu button.danger.with-icon:hover { background: rgba(239,68,68,.26); }

/* board access */
.access-head { margin: -4px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--hover); }
.access-role { margin-bottom: 14px; }
.access-title { font-weight: 600; font-size: 13.5px; margin-bottom: 7px; }
.access-people { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.person { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 6px; background: var(--hover); border-radius: 999px; font-size: 13px; }
.person .avatar { width: 24px; height: 24px; font-size: 10px; }
.person-x { background: none; border: 0; color: var(--faint); font-size: 15px; line-height: 1; padding: 0 4px; border-radius: 50%; }
.person-x:hover { color: #fca5a5; }
.person-add { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(59,130,246,.18); color: #93c5fd; font-size: 18px; line-height: 1; }
.person-add:hover { background: rgba(59,130,246,.3); }
.more-members { font-size: 9px; color: var(--muted); margin-left: 8px; }

/* thumbnail / products / tracking */
.avatar.xxl { width: 96px; height: 96px; font-size: 34px; }
.drop-area { flex: 1; border: 1.5px dashed var(--border-strong); border-radius: 10px; padding: 26px 12px; text-align: center; color: var(--muted); cursor: pointer; display: grid; gap: 6px; justify-items: center; }
.drop-area:hover, .drop-area.on { border-color: var(--green); color: var(--text); }
.product-rows { display: flex; flex-direction: column; gap: 6px; }
.product-row { display: grid; grid-template-columns: 1.4fr .5fr 1.6fr auto; gap: 6px; align-items: center; }
.note { background: var(--amber-bg); border: 1px solid rgba(245,158,11,.35); color: #fcd34d; padding: 8px 10px; border-radius: 8px; margin-bottom: 12px; font-size: 12.5px; }
.note a { color: inherit; font-weight: 600; }
.tracking-stats { background: var(--field); border: 1px solid var(--hover); border-radius: 8px; padding: 10px 0; }
.tracking-stats b { font-size: 15px !important; }
.snap-list { max-height: 180px; overflow-y: auto; }
.snap { display: grid; grid-template-columns: 2fr 1fr 1fr; padding: 3px 0; border-bottom: 1px solid var(--hover); font-size: 12px; color: var(--text); }
.snap.head { color: var(--muted); font-size: 11px; }
@media (max-width: 760px) { .product-row { grid-template-columns: 1fr 1fr; } }
.list-head .name { cursor: default; user-select: none; }
.list-rename {
  flex: 1; min-width: 0; resize: none; overflow: hidden; font: inherit; font-weight: 600; line-height: 1.3;
  background: var(--sunken); border: 1px solid var(--green); border-radius: 5px; padding: 1px 5px; margin: 0 0 0 -6px; outline: none;
}

/* =====================================================================
   HOME
   ===================================================================== */
.home { overflow-y: auto; padding: 22px 26px 40px; }
.home-inner { max-width: 1320px; margin: 0 auto; display: grid; gap: 16px; }

.hero {
  position: relative; overflow: hidden; border-radius: 20px; padding: 30px 32px; min-height: 210px;
  background: var(--panel); border: 1px solid var(--border); isolation: isolate;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end;
}
.hero .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .32; z-index: -1; will-change: transform; }
.hero .b1 { width: 420px; height: 420px; background: var(--hero-a); top: -200px; left: -80px; animation: drift1 16s ease-in-out infinite alternate; }
.hero .b2 { width: 360px; height: 360px; background: var(--hero-b); top: -120px; right: 10%; animation: drift2 19s ease-in-out infinite alternate; }
.hero .b3 { width: 300px; height: 300px; background: var(--hero-c); bottom: -220px; left: 40%; animation: drift3 22s ease-in-out infinite alternate; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
html[data-skin="paper"] .hero .blob { opacity: .28; }
html[data-skin="paper"] .hero::after { background-image: radial-gradient(rgba(0,0,0,.06) 1px, transparent 1px); }
@keyframes drift1 { to { transform: translate(120px, 60px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-90px, 70px) scale(.9); } }
@keyframes drift3 { to { transform: translate(-140px, -40px) scale(1.2); } }
.eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.team-name {
  font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; margin: 6px 0 18px;
  background: linear-gradient(100deg, var(--text) 30%, var(--accent-2) 60%, var(--hero-b));
  -webkit-background-clip: text; background-clip: text; color: transparent; word-break: break-word;
}
.team-name[contenteditable="true"] { outline: 2px dashed var(--border-strong); outline-offset: 6px; border-radius: 6px; -webkit-text-fill-color: var(--text); }
.edit-pen { opacity: 0; transition: opacity .2s; }
.hero:hover .edit-pen { opacity: 1; }
.you { display: flex; align-items: center; gap: 12px; }
.you .avatar { width: 46px; height: 46px; font-size: 17px; box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .3); }
.you-name { font-size: 20px; font-weight: 700; }
.greeting { color: var(--muted); margin-top: 2px; }
.hero-side { text-align: right; display: grid; gap: 10px; justify-items: end; }
.hero-date { font-size: 13px; color: var(--muted); }
.hero-date b { display: block; font-size: 30px; color: var(--text); font-weight: 750; letter-spacing: -.02em; }
.skin-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; font-weight: 600;
  background: rgba(var(--accent-rgb), .14); border: 1px solid rgba(var(--accent-rgb), .4); color: var(--text);
  backdrop-filter: blur(8px);
}
.skin-btn:hover { background: rgba(var(--accent-rgb), .24); }
.skin-dot { width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(var(--hero-a), var(--hero-b), var(--hero-c), var(--hero-a)); }

.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.kpi {
  position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 16px 16px 14px;
  overflow: hidden; transition: transform .2s ease, border-color .2s, box-shadow .2s;
}
.kpi:hover { transform: translateY(-2px); border-color: rgba(var(--accent-rgb), .5); box-shadow: 0 10px 30px -10px var(--glow); }
.kpi::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent); opacity: .7;
}
.kpi .k-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 650; display: flex; align-items: center; gap: 6px; }
.kpi .k-label svg { color: var(--accent-2); }
.kpi .k-value { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.kpi .k-sub { font-size: 12px; color: var(--muted); }
.kpi .k-sub b { color: var(--text); font-weight: 650; }
.kpi .k-sub .up { color: var(--green); }
html[data-skin="paper"] .kpi .k-sub .up { color: #15803d; }

.grid-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.grid-eq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 18px; min-width: 0; }
.tile-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.tile-head h3 { margin: 0; font-size: 14px; font-weight: 700; }
.tile-head .sub { color: var(--muted); font-size: 12px; }
.tile-head .spacer { flex: 1; }
.tile-head a { color: var(--muted); font-size: 12px; text-decoration: none; }
.tile-head a:hover { color: var(--text); }
.tile-empty { color: var(--muted); font-size: 12.5px; padding: 18px 4px; text-align: center; }
.tile-empty a { color: var(--accent-2); }

/* views chart */
.chart-wrap { position: relative; }
.chart-wrap svg { display: block; width: 100%; height: 220px; overflow: visible; }
.chart-big { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.chart-tip {
  position: absolute; pointer-events: none; background: var(--raised); border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 9px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -110%); box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.chart-tip b { display: block; font-size: 13px; }
.chart-tip span { color: var(--muted); }

/* pipeline */
.pipe-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; margin-bottom: 10px; text-decoration: none; color: inherit; }
.pipe-row .pname { font-size: 12.5px; }
.pipe-row .pname small { color: var(--faint); margin-left: 4px; }
.pipe-row .pcount { font-weight: 700; font-variant-numeric: tabular-nums; }
.pipe-bar { grid-column: 1 / -1; height: 8px; background: var(--hover); border-radius: 999px; overflow: hidden; }
.pipe-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); width: 0; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.pipe-row:hover .pname { color: var(--accent-2); }

/* leaderboard / lists */
.lead-row { display: grid; grid-template-columns: 18px 30px 1fr auto; gap: 10px; align-items: center; padding: 7px 6px; border-radius: 10px; text-decoration: none; color: inherit; }
.lead-row:hover { background: var(--hover); }
.lead-row .rank { color: var(--faint); font-weight: 700; font-size: 12px; text-align: center; }
.lead-row .avatar { width: 30px; height: 30px; }
.lead-row .nm { min-width: 0; }
.lead-row .nm div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 12.5px; }
.lead-row .nm small { color: var(--muted); font-size: 11px; }
.lead-row .gain { text-align: right; font-weight: 750; color: var(--green); font-variant-numeric: tabular-nums; }
html[data-skin="paper"] .lead-row .gain { color: #15803d; }
.lead-row .gain small { display: block; color: var(--faint); font-weight: 500; font-size: 10.5px; }
.minibar { grid-column: 3 / -1; height: 3px; background: var(--hover); border-radius: 3px; margin-top: -3px; }
.minibar i { display: block; height: 100%; border-radius: 3px; background: var(--accent-2); width: 0; transition: width 1s cubic-bezier(.2,.8,.2,1); }

.up-row { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 10px; text-decoration: none; color: inherit; }
.up-row:hover { background: var(--hover); }
.datechip { width: 42px; flex: none; text-align: center; border-radius: 10px; background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .3); padding: 4px 0; }
.datechip small { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.datechip b { font-size: 16px; }
.datechip.today { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.datechip.today small { color: inherit; opacity: .8; }
.up-row .nm { flex: 1; min-width: 0; }
.up-row .nm div { font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-row .nm small { color: var(--muted); font-size: 11px; }
.role-chip { font-size: 10px; padding: 1px 6px; border-radius: 999px; background: var(--hover); color: var(--muted); margin-right: 3px; white-space: nowrap; }

.thumb-row { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 10px; text-decoration: none; color: inherit; }
.thumb-row:hover { background: var(--hover); }
.thumb-row .tthumb { width: 64px; aspect-ratio: 16/9; border-radius: 6px; background: var(--hover); overflow: hidden; flex: none; display: grid; place-items: center; color: var(--faint); }
.thumb-row .tthumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-row .nm { min-width: 0; flex: 1; }
.thumb-row .nm div { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb-row .nm small { color: var(--muted); font-size: 11px; }

.team-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.team-member { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--hover); font-size: 12.5px; }
.team-member .avatar { width: 28px; height: 28px; }

/* skins gallery */
.skins { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.skin-card {
  text-align: left; padding: 0; border-radius: 14px; overflow: hidden; border: 2px solid var(--border); background: var(--raised);
  transition: transform .18s ease, border-color .18s;
}
.skin-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.skin-card.on { border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18); }
.skin-card[disabled] { cursor: default; }
.skin-prev { height: 82px; padding: 10px; display: grid; grid-template-columns: 22px 1fr 1fr; gap: 6px; position: relative; }
.skin-prev .sb { border-radius: 4px; }
.skin-prev .col { border-radius: 5px; padding: 4px; display: grid; gap: 4px; align-content: start; }
.skin-prev .cd { height: 14px; border-radius: 3px; }
.skin-prev .ac { height: 5px; width: 60%; border-radius: 3px; }
.skin-meta { padding: 9px 11px 10px; display: flex; align-items: center; gap: 6px; }
.skin-meta b { font-size: 13px; }
.skin-meta small { color: var(--muted); display: block; font-size: 11px; }
.skin-meta .chk { margin-left: auto; color: var(--accent-2); }

.fade-up { opacity: 0; transform: translateY(10px); animation: fadeUp .6s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero .blob, .fade-up { animation: none !important; opacity: 1; transform: none; }
  .pipe-bar i, .minibar i { transition: none; }
}
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-eq { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .home { padding: 14px 16px 30px; }
  .hero { grid-template-columns: 1fr; padding: 22px; }
  .hero-side { justify-items: start; text-align: left; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .grid-eq { grid-template-columns: 1fr; }
}
.chart-wrap svg { height: auto; }
.home.calm .fade-up { animation: none; opacity: 1; transform: none; }
.home.calm .pipe-bar i, .home.calm .minibar i { transition: none; }

/* =====================================================================
   SKINS — <html data-skin="…" data-ornate>, chosen per workspace.
   Each skin = palette + display font + frame gradient + background art
   (+ particles drawn by app.js on #fx).
   ===================================================================== */
:root {
  --font-body: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-body);
  --font-head: var(--font-body);
  --display-weight: 800;
  --display-tracking: -.03em;
  --display-case: none;
  --frame: linear-gradient(var(--border), var(--border));
  --frame-strong: linear-gradient(var(--border-strong), var(--border-strong));
  --btn-grad: linear-gradient(180deg, var(--accent-2), var(--accent));
  --orn: var(--accent-2);
  --app-bg: radial-gradient(1100px 600px at 85% -15%, rgba(var(--accent-rgb), .07), transparent 70%), var(--bg);
  --glass: color-mix(in srgb, var(--panel) 84%, transparent);
  --list-glass: color-mix(in srgb, var(--list) 92%, transparent);
  --title-grad: linear-gradient(100deg, var(--text) 30%, var(--accent-2) 60%, var(--hero-b));
}

/* ---- Crimson: near-black with a red accent ---- */
html[data-skin="crimson"] {
  --bg: #0f0b0b; --sunken: #0a0707; --panel: #151010; --list: #171111; --field: #140f0f; --raised: #1c1414;
  --card: #1f1616; --card-hover: #261b1b; --hover: #281c1c; --line: #2a1e1e; --list-border: #2a1e1e;
  --border: #3a2828; --border-strong: #5a3434; --text: #f6eeee; --muted: #b39d9d; --faint: #735e5e;
  --accent: #dc2626; --accent-hover: #b91c1c; --accent-rgb: 239, 68, 68; --accent-2: #f87171; --on-accent: #fff;
  --glow: rgba(239, 68, 68, .22); --hero-a: #dc2626; --hero-b: #7f1d1d; --hero-c: #ea580c;
  --frame: linear-gradient(#3a2828, #3a2828); --frame-strong: linear-gradient(#5a3434, #5a3434);
  --btn-grad: linear-gradient(180deg, #ef4444, #dc2626);
  --card-outline: rgba(239, 68, 68, .28); --card-outline-hover: #ef4444;
  --app-bg: radial-gradient(1000px 520px at 85% -15%, rgba(220, 38, 38, .12), transparent 70%), #0f0b0b;
  --title-grad: linear-gradient(100deg, #ffffff 30%, #f87171 75%);
}
/* ---- Cobalt: deep navy with a blue accent ---- */
html[data-skin="cobalt"] {
  --bg: #0a0e17; --sunken: #070a11; --panel: #0d1220; --list: #0f1424; --field: #0c111d; --raised: #121a2c;
  --card: #141b2e; --card-hover: #1a2238; --hover: #1a2238; --line: #1c243a; --list-border: #1c243a;
  --border: #28324d; --border-strong: #3b4a70; --text: #eef2ff; --muted: #9aa6c4; --faint: #5b6683;
  --accent: #2563eb; --accent-hover: #1d4ed8; --accent-rgb: 96, 165, 250; --accent-2: #60a5fa; --on-accent: #fff;
  --glow: rgba(96, 165, 250, .22); --hero-a: #3b82f6; --hero-b: #1e3a8a; --hero-c: #06b6d4;
  --frame: linear-gradient(#28324d, #28324d); --frame-strong: linear-gradient(#3b4a70, #3b4a70);
  --btn-grad: linear-gradient(180deg, #3b82f6, #2563eb);
  --card-outline: rgba(96, 165, 250, .28); --card-outline-hover: #60a5fa;
  --app-bg: radial-gradient(1000px 520px at 85% -15%, rgba(59, 130, 246, .12), transparent 70%), #0a0e17;
  --title-grad: linear-gradient(100deg, #ffffff 30%, #93c5fd 75%);
}
/* ---- Pixel Arcade (Epic): CRT cabinet ---- */
html[data-skin="arcade"] {
  --bg: #0a0a12; --sunken: #05050a; --panel: #10101c; --list: #121220; --field: #0f0f1b; --raised: #171728;
  --card: #1a1a2e; --card-hover: #22223b; --hover: #23233d; --line: #22223a; --list-border: #202036;
  --border: #34345a; --border-strong: #facc15; --text: #f5f5ff; --muted: #a3a3c8; --faint: #5f5f86;
  --accent: #16a34a; --accent-hover: #15803d; --accent-rgb: 74, 222, 128; --accent-2: #4ade80; --on-accent: #031207;
  --glow: rgba(74, 222, 128, .2); --hero-a: #16a34a; --hero-b: #1e1e3a; --hero-c: #0e7490;
  --font-display: "Press Start 2P", monospace; --font-head: "VT323", monospace; --display-weight: 400; --display-tracking: 0; --display-case: uppercase;
  --frame: linear-gradient(#34345a, #34345a);
  --frame-strong: linear-gradient(#4ade80, #4ade80);
  --btn-grad: linear-gradient(180deg, #86efac, #4ade80 50%, #16a34a);
  --orn: #facc15;
  --app-bg: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px),
            #0a0a12;
  --title-grad: linear-gradient(180deg, #ffffff, #4ade80);
}
/* ---- Daybreak (Base): light mode ---- */
html[data-skin="paper"] {
  color-scheme: light;
  --bg: #f4f4f5; --sunken: #e7e7ea; --panel: #ffffff; --list: #ececef; --field: #ffffff; --raised: #ffffff;
  --card: #ffffff; --card-hover: #fafafa; --hover: #e9e9ec; --line: #e2e2e6; --list-border: #dfdfe4;
  --border: #d4d4d8; --border-strong: #b4b4bb; --text: #18181b; --muted: #5f5f68; --faint: #9a9aa3;
  --accent: #16a34a; --accent-hover: #15803d; --accent-rgb: 22, 163, 74; --accent-2: #16a34a; --on-accent: #fff;
  --glow: rgba(22, 163, 74, .18); --hero-a: #22c55e; --hero-b: #06b6d4; --hero-c: #6366f1;
  --app-bg: radial-gradient(900px 500px at 85% -10%, rgba(34, 197, 94, .1), transparent 70%), #f4f4f5;
  --title-grad: linear-gradient(100deg, #18181b 30%, #16a34a 65%, #0891b2);
}
html[data-skin="paper"] .badge { color: #1d4ed8; }
html[data-skin="paper"] .badge.green { color: #15803d; }
html[data-skin="paper"] .badge.red, html[data-skin="paper"] .btn.danger, html[data-skin="paper"] .menu button.danger { color: #b91c1c; }
html[data-skin="paper"] .badge.amber, html[data-skin="paper"] .badge.uploads, html[data-skin="paper"] .day.on, html[data-skin="paper"] .note { color: #a16207; }
html[data-skin="paper"] .badge.purple { color: #7e22ce; }
html[data-skin="paper"] .stats b { color: #15803d; }
html[data-skin="paper"] .stats b.neg { color: #b91c1c; }
html[data-skin="paper"] .stats b.total { color: var(--text); }
html[data-skin="paper"] .overlay { background: rgba(24,24,27,.35); }
html[data-skin="paper"] .modal, html[data-skin="paper"] .menu, html[data-skin="paper"] .drag-ghost { box-shadow: 0 20px 50px rgba(0,0,0,.18); }

/* ---- skin plumbing shared by every skin ---- */
body { background: var(--app-bg); background-attachment: fixed; font-family: var(--font-body); }
#fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 0; }
#app { position: relative; z-index: 1; }
.shell { background: transparent; }
.topbar { background: var(--glass); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); position: relative; border-bottom-color: transparent; }
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--frame); opacity: .8; }
.sidebar { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.main, .board { background: transparent; }
.brand { font-family: var(--font-display); letter-spacing: var(--display-tracking); text-transform: var(--display-case); }
.nav a.active { background: rgba(var(--accent-rgb), .16); color: var(--text); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .35); }
.list-head .name, .tile-head h3, .panel h2, .page h1, .modal h2, .board-head h1, .group-head, .side-section, .access-title, .pop-title {
  font-family: var(--font-head);
}
html[data-skin="arcade"] .list-head .name, html[data-skin="arcade"] .tile-head h3, html[data-skin="arcade"] .access-title { font-size: 17px; font-weight: 400; letter-spacing: .02em; }
html[data-skin="arcade"] .board-head h1, html[data-skin="arcade"] .page h1, html[data-skin="arcade"] .modal h2 { font-family: var(--font-display); font-size: 13px; line-height: 1.6; }

/* gradient frames: works for every skin (plain border by default) */
.list { background: linear-gradient(var(--list-glass), var(--list-glass)) padding-box, var(--frame) border-box; border: 1px solid transparent; }
.tile, .kpi, .panel { background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--frame) border-box; border: 1px solid transparent; }
.modal { background: linear-gradient(var(--raised), var(--raised)) padding-box, var(--frame-strong) border-box; border: 1.5px solid transparent; }
.menu { background: linear-gradient(var(--raised), var(--raised)) padding-box, var(--frame) border-box; border: 1px solid transparent; }
.hero { background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--frame-strong) border-box; border: 1.5px solid transparent; }

.btn.primary { background: var(--btn-grad); border-color: transparent; color: var(--on-accent); font-weight: 700; text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.btn.primary:hover { filter: brightness(1.08); background: var(--btn-grad); }
.team-name { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); text-transform: var(--display-case);
  background: var(--title-grad); -webkit-background-clip: text; background-clip: text; }
html[data-skin="arcade"] .team-name { font-size: clamp(22px, 3.4vw, 40px); line-height: 1.35; }
.kpi .k-value { font-family: var(--font-display); letter-spacing: var(--display-tracking); }
html[data-skin="arcade"] .kpi .k-value { font-size: 20px; }

/* per-skin hero textures */
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 4px); background-size: auto; opacity: .7;
  mask-image: none; animation: scan 8s linear infinite;
}

html { transition: background-color .3s; }
body, .topbar, .sidebar, .list, .card, .panel, .tile, .kpi { transition: background-color .35s ease, border-color .35s ease, color .35s ease, box-shadow .2s; }

/* =====================================================================
   SKIN COLLECTION (champion-select style)
   ===================================================================== */
.collection-ov { position: fixed; inset: 0; z-index: 80; background: radial-gradient(1200px 700px at 50% 0%, rgba(var(--accent-rgb), .18), transparent 70%), rgba(3, 3, 6, .82);
  backdrop-filter: blur(6px); display: flex; flex-direction: column; padding: 28px 32px 22px; overflow-y: auto; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.coll-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; color: #fff; }
.coll-head h1 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: .04em; font-size: 26px;
  background: var(--title-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.coll-head p { margin: 0 0 4px; color: rgba(255,255,255,.6); }
.coll-head .spacer { flex: 1; }
.coll-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; max-width: 1200px; }
.splash {
  position: relative; aspect-ratio: 3 / 4.4; border-radius: 14px; overflow: hidden; cursor: pointer; padding: 0; border: 0; color: #fff; text-align: left;
  background: var(--sp-bg); isolation: isolate; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.12), 0 18px 40px -18px rgba(0,0,0,.8);
}
.splash:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 0 0 2px var(--sp-a), 0 26px 50px -18px var(--sp-a); }
.splash.sel { transform: translateY(-6px); box-shadow: 0 0 0 3px var(--sp-a), 0 0 40px -6px var(--sp-a); }
.splash .sp-art { position: absolute; inset: 0; z-index: -1; transition: transform .6s cubic-bezier(.2,.8,.2,1); background: var(--sp-art); }
.splash:hover .sp-art { transform: scale(1.08); }
.splash .sp-emblem { position: absolute; top: 18%; left: 50%; width: 46%; transform: translateX(-50%); filter: drop-shadow(0 0 18px var(--sp-a)); color: var(--sp-a); opacity: .95; transition: transform .5s; }
.splash:hover .sp-emblem { transform: translateX(-50%) translateY(-6px) scale(1.06); }
.splash .sp-shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.28) 48%, transparent 60%); transform: translateX(-120%); transition: transform .9s ease; }
.splash:hover .sp-shine { transform: translateX(120%); }
.splash .sp-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.splash .sp-name { font-family: var(--sp-font); font-size: 19px; font-weight: 700; line-height: 1.15; text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.splash .sp-desc { font-size: 11.5px; color: rgba(255,255,255,.72); margin-top: 3px; }
.coll-foot { display: flex; align-items: center; gap: 12px; margin-top: 22px; color: rgba(255,255,255,.7); }
.coll-foot .spacer { flex: 1; }
.equip-btn { font-family: var(--font-display); letter-spacing: .1em; text-transform: uppercase; padding: 12px 34px; font-size: 14px; border-radius: 10px; }
.skin-chip { display: inline-flex; align-items: center; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .splash, .splash .sp-art, .splash .sp-emblem, .splash .sp-shine { transition: none; } }
@media (max-width: 760px) { .collection-ov { padding: 18px 16px; } .coll-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .coll-head h1 { font-size: 22px; } }


.sp-current { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700;
  padding: 3px 8px 3px 6px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; border: 1px solid var(--sp-a); backdrop-filter: blur(4px); }
.sp-current svg { color: var(--sp-a); }
.splash .sp-desc { font-size: 11.5px; }
@media (max-width: 1000px) { .coll-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- clear outlines on every list and card, in every skin ---- */
:root { --card-outline: #4a4a52; --card-outline-hover: #6a6a74; --list-outline-w: 1.5px; }
html[data-skin="arcade"] { --card-outline: #4d4d80; --card-outline-hover: #4ade80; }
html[data-skin="paper"] { --card-outline: #cfcfd6; --card-outline-hover: #9a9aa3; --frame: linear-gradient(#cfcfd6, #cfcfd6); }
html[data-skin="midnight"] { --frame: linear-gradient(#3f3f46, #3f3f46); }
.list { border-width: var(--list-outline-w); }
.card { border: 1px solid var(--card-outline); }
.card:hover { border-color: var(--card-outline-hover); }
html[data-skin="arcade"] .card { border-width: 2px; border-radius: 4px; box-shadow: 3px 3px 0 rgba(0, 0, 0, .45); }
html[data-skin="arcade"] .card:hover { box-shadow: 3px 3px 0 rgba(74, 222, 128, .35); }
html[data-skin="arcade"] .list { border-radius: 4px; }

/* backend / api keys */
.key-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.key-row:first-of-type { border-top: 0; }
.key-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(var(--accent-rgb), .14); color: var(--accent-2); }
.key-main { flex: 1; min-width: 0; }
.key-main .row { flex-wrap: wrap; }
.key-mask { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; padding: 2px 7px; border-radius: 6px; background: var(--sunken); border: 1px solid var(--border); color: var(--muted); }
.key-actions { display: flex; gap: 6px; align-items: center; flex: none; }
.credit { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--sunken); border: 1px solid var(--border); display: grid; gap: 6px; max-width: 420px; }
.credit b { font-size: 18px; font-family: var(--font-display); }
@media (max-width: 760px) { .key-row { flex-wrap: wrap; } .key-actions { width: 100%; justify-content: flex-end; } }

/* clean skin preview tiles */
.splash { aspect-ratio: auto; background: var(--raised); box-shadow: 0 0 0 1px var(--border); border-radius: 12px; }
.splash:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--border-strong); }
.splash.sel { transform: none; box-shadow: 0 0 0 2px var(--sp-a); }
.sp-mock { display: grid; grid-template-columns: 18% 1fr 1fr 1fr; gap: 5px; height: 110px; padding: 10px; }
.sp-mock .side { border-radius: 4px; }
.sp-mock .col { border-radius: 5px; padding: 5px; display: grid; gap: 5px; align-content: start; }
.sp-mock .c { height: 16px; border-radius: 3px; }
.sp-mock .c.ac { height: 5px; width: 55%; }
.splash .sp-info { position: static; background: none; padding: 10px 12px 12px; color: var(--text); }
.splash .sp-name { text-shadow: none; font-size: 14px; }
.splash .sp-desc { color: var(--muted); }
.sp-current { top: 8px; left: auto; right: 8px; background: var(--sp-a); color: #fff; border: 0; }
.sp-current svg { color: #fff; }

/* finance sheet */
.finance .fin-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.finance .fin-v { font-size: 20px !important; font-family: var(--font-body) !important; letter-spacing: -.01em !important; }
.fin-cats { display: grid; gap: 3px; margin-top: 8px; font-size: 12px; }
.fin-cats b { font-variant-numeric: tabular-nums; }
.sheet-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 10px 10px 0 0; background: var(--panel); max-height: calc(100vh - 360px); }
.sheet { border-collapse: separate; border-spacing: 0; table-layout: fixed; width: max-content; min-width: 100%; font-size: 12.5px; }
.sheet th { position: sticky; top: 0; z-index: 2; background: var(--raised); color: var(--muted); font-weight: 600; text-align: left; padding: 7px 8px;
  border-bottom: 1px solid var(--border-strong); border-right: 1px solid var(--line); font-size: 11.5px; }
.sheet th.num { text-align: right; }
.sheet td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0; height: 32px; }
.sheet td.rn, .sheet th.rn { width: 38px; text-align: center; color: var(--faint); background: var(--raised); font-size: 11px; position: sticky; left: 0; z-index: 1; }
.sheet th.rn { z-index: 3; }
.sheet .cell { width: 100%; height: 31px; border: 0; background: transparent; padding: 0 8px; outline: none; border-radius: 0; font-size: 12.5px; color: var(--text); }
.sheet select.cell { padding-right: 4px; cursor: pointer; }
.sheet .cell.num { text-align: right; font-variant-numeric: tabular-nums; }
.sheet .cell:focus { box-shadow: inset 0 0 0 2px var(--accent-2); background: var(--field); position: relative; z-index: 1; }
.sheet tbody tr:hover td:not(.rn) { background: rgba(var(--accent-rgb), .04); }
.sheet tr.pending .cell { color: var(--muted); }
.sheet tr.pending td:nth-child(9) .cell { color: var(--amber); font-weight: 600; }
.sheet .rowx { text-align: center; }
.sheet .rowx .icon-btn { opacity: 0; }
.sheet tr:hover .rowx .icon-btn { opacity: 1; }
.sheet .add-row td { border-bottom: 0; }
.add-line { background: none; border: 0; color: var(--muted); padding: 0 8px; height: 31px; width: 100%; text-align: left; }
.add-line:hover { color: var(--text); background: rgba(var(--accent-rgb), .06); }
.sheet tfoot td { position: sticky; bottom: 0; background: var(--raised); border-top: 1px solid var(--border-strong); font-weight: 700; padding: 0 8px; height: 34px; }
.sheet tfoot td.tot { text-align: right; font-variant-numeric: tabular-nums; }
.month-tabs { display: flex; gap: 2px; overflow-x: auto; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 10px 10px; background: var(--raised); padding: 4px; }
.mtab { padding: 6px 14px; border-radius: 6px; color: var(--muted); text-decoration: none; white-space: nowrap; font-size: 12.5px; }
.mtab:hover { background: var(--hover); color: var(--text); }
.mtab.on { background: var(--panel); color: var(--text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent-2); }
.mtab.add { font-weight: 700; }
html[data-skin="paper"] .sheet tr.pending td:nth-child(9) .cell { color: #a16207; }
@media (max-width: 900px) { .finance .fin-kpis { grid-template-columns: 1fr 1fr; } }

/* Philippines clock */
.ph-clock { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; margin-right: 8px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--raised); font-size: 12px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ph-flag { width: 20px; height: 10px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.25); object-fit: cover; }
.ph-label { color: var(--muted); font-weight: 700; font-size: 11px; letter-spacing: .04em; }
@media (max-width: 760px) { .ph-label { display: none; } }

/* upload order */
.vcard .order-badge {
  position: absolute; z-index: 2; top: 6px; left: 6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; font-weight: 800;
  background: var(--raised); color: var(--text); border: 1px solid var(--border-strong); box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.vcard.next-up { border-color: var(--accent-2); box-shadow: 0 0 0 1px var(--accent-2); }
.vcard.next-up .order-badge { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.vcard .order-badge span { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.vcard:not(:has(.thumb)) .order-badge { position: static; margin: 0 0 6px; }
.reorder-list { display: flex; flex-direction: column; gap: 6px; max-height: 56vh; overflow-y: auto; padding: 2px; }
.reorder-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--field); text-align: left; }
.reorder-row:hover { border-color: var(--border-strong); }
.reorder-row.on { border-color: rgba(var(--accent-rgb), .55); background: rgba(var(--accent-rgb), .08); }
.reorder-row.first { border-color: var(--accent-2); }
.reorder-num { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 13px;
  border: 1.5px dashed var(--border-strong); color: var(--faint); }
.reorder-row.on .reorder-num { border: 0; background: var(--accent); color: var(--on-accent); }
.reorder-thumb { width: 64px; aspect-ratio: 16/9; object-fit: cover; border-radius: 5px; flex: none; background: var(--hover); display: grid; place-items: center; color: var(--faint); }
.reorder-title { flex: 1; min-width: 0; font-weight: 600; font-size: 13px; }
.reorder-title small { display: block; color: var(--muted); font-weight: 500; font-size: 11px; margin-top: 2px; }

/* ---------- login screen ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); padding: 0; place-items: stretch; }
.auth-showcase { position: relative; overflow: hidden; padding: 44px 52px; display: flex; flex-direction: column; gap: 34px;
  background: radial-gradient(900px 600px at 0% 0%, rgba(var(--accent-rgb), .16), transparent 60%), var(--panel); border-right: 1px solid var(--border); }
.auth-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -180px; bottom: -200px; background: var(--hero-c, #2563eb);
  filter: blur(90px); opacity: .18; pointer-events: none; }
.auth-brand { font-size: 18px; margin: 0; }
.auth-pitch h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 800; }
.auth-pitch h2 span { color: var(--accent-2); }
.auth-pitch p { color: var(--muted); font-size: 15px; max-width: 440px; margin: 0; line-height: 1.55; }
.mini-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 560px; transform: perspective(1200px) rotateX(8deg) rotateZ(-2deg);
  transform-origin: left top; animation: floaty 7s ease-in-out infinite alternate; }
@keyframes floaty { to { transform: perspective(1200px) rotateX(6deg) rotateZ(-1deg) translateY(-6px); } }
.mini-list { background: var(--list); border: 1px solid var(--border); border-radius: 10px; padding: 8px; display: grid; gap: 6px; align-content: start; min-height: 150px;
  box-shadow: 0 18px 40px -20px rgba(0,0,0,.6); }
.mini-head { font-size: 10px; font-weight: 700; color: var(--muted); padding: 0 2px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-card { background: var(--card); border: 1px solid var(--card-outline, var(--border)); border-radius: 6px; padding: 6px; display: grid; gap: 5px; }
.mini-card i { display: block; height: 26px; border-radius: 4px; background: linear-gradient(135deg, var(--hover), var(--raised)); }
.mini-card b { display: block; height: 5px; border-radius: 3px; background: var(--border-strong); }
.mini-card.acc { border-color: var(--accent-2); box-shadow: 0 0 0 1px var(--accent-2); }
.mini-card.acc i { background: linear-gradient(135deg, rgba(var(--accent-rgb), .55), rgba(var(--accent-rgb), .15)); }
.auth-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: auto; color: var(--muted); font-size: 13px; }
.auth-points span { display: inline-flex; align-items: center; gap: 6px; }
.auth-points svg { color: var(--accent-2); }
.auth-side { display: grid; place-items: center; padding: 32px 24px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-brand-sm { display: none; margin: 0 0 22px; font-size: 17px; }
.auth-title { font-size: 26px; letter-spacing: -.02em; margin: 0 0 6px; }
.auth-sub { color: var(--muted); margin: 0 0 24px; }
.auth-card .field { margin-bottom: 14px; }
.auth-card .input { padding: 11px 12px; font-size: 14px; border-radius: 9px; }
.auth-card .input:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 42px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--faint); padding: 6px; border-radius: 6px; line-height: 0; }
.pw-eye:hover, .pw-eye.on { color: var(--text); }
.auth-btn { width: 100%; justify-content: center; padding: 11px 12px; font-size: 14px; border-radius: 9px; position: relative; margin-top: 6px; }
.auth-btn .spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.auth-btn.loading .spinner { display: inline-block; }
.auth-btn.loading .auth-btn-label { opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-foot { color: var(--faint); font-size: 12px; text-align: center; margin: 18px 0 0; }
.auth .err { min-height: 18px; margin: -4px 0 4px; }
.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .mini-board, .shake { animation: none; } }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-showcase { display: none; }
  .auth-brand-sm { display: flex; }
}

/* uploads-per-week presets */
.uploads-pop { width: 270px; padding: 8px; }
.preset-list { display: flex; flex-direction: column; }
.menu .preset { display: flex; align-items: center; gap: 14px; padding: 9px 10px; border-radius: 8px; }
.preset-n { width: 18px; font-size: 17px; font-weight: 800; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.preset-days { flex: 1; color: var(--muted); font-size: 14px; }
.menu .preset:hover .preset-days, .menu .preset:hover .preset-n { color: var(--text); }
.menu .preset.on .preset-n, .menu .preset.on .preset-days { color: var(--text); font-weight: 700; }
.preset-check { color: var(--green); line-height: 0; }
.menu .preset-clear { margin-top: 4px; justify-content: center; color: var(--faint); font-size: 12px; border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; padding-top: 9px; }
.menu .preset-clear:hover { color: var(--red); background: none; }

/* one colour per uploads-per-week count (1-7) */
.u1 { --u: 148, 163, 184; --u-text: #cbd5e1; }
.u2 { --u: 96, 165, 250; --u-text: #93c5fd; }
.u3 { --u: 45, 212, 191; --u-text: #5eead4; }
.u4 { --u: 74, 222, 128; --u-text: #86efac; }
.u5 { --u: 250, 204, 21; --u-text: #fde047; }
.u6 { --u: 251, 146, 60; --u-text: #fdba74; }
.u7 { --u: 244, 114, 182; --u-text: #f9a8d4; }
html[data-skin="paper"] .u1 { --u-text: #475569; } html[data-skin="paper"] .u2 { --u-text: #1d4ed8; }
html[data-skin="paper"] .u3 { --u-text: #0f766e; } html[data-skin="paper"] .u4 { --u-text: #15803d; }
html[data-skin="paper"] .u5 { --u-text: #a16207; } html[data-skin="paper"] .u6 { --u-text: #c2410c; }
html[data-skin="paper"] .u7 { --u-text: #be185d; }
.badge.uploads[class*=" u"]:not(.unset) { background: rgba(var(--u), .14); color: var(--u-text); border-color: rgba(var(--u), .42); }
.badge.uploads[class*=" u"]:not(.unset):hover { background: rgba(var(--u), .24); }
.menu .preset[class*=" u"] .preset-n { color: var(--u-text); }
.menu .preset.on[class*=" u"] { background: rgba(var(--u), .1); }

/* ---------- per-skin typography ---------- */
html[data-skin="midnight"] { --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif; --font-display: "Inter", sans-serif; --font-head: "Inter", sans-serif;
  --display-weight: 800; --display-tracking: -.035em; }
html[data-skin="crimson"] { --font-body: "Barlow", -apple-system, sans-serif; --font-display: "Oswald", "Barlow", sans-serif; --font-head: "Oswald", sans-serif;
  --display-weight: 700; --display-tracking: .01em; --display-case: uppercase; }
html[data-skin="crimson"] .list-head .name, html[data-skin="crimson"] .tile-head h3, html[data-skin="crimson"] .nav a,
html[data-skin="crimson"] .board-head h1, html[data-skin="crimson"] .page h1, html[data-skin="crimson"] .modal h2, html[data-skin="crimson"] .k-label {
  text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
html[data-skin="crimson"] .list-head .name { font-size: 13px; }
html[data-skin="crimson"] .nav a { font-family: "Oswald", sans-serif; font-size: 13.5px; }
html[data-skin="cobalt"] { --font-body: "DM Sans", -apple-system, sans-serif; --font-display: "Space Grotesk", sans-serif; --font-head: "Space Grotesk", sans-serif;
  --display-weight: 700; --display-tracking: -.025em; }
html[data-skin="cobalt"] .list-head .name, html[data-skin="cobalt"] .tile-head h3 { font-weight: 700; letter-spacing: -.01em; }
html[data-skin="arcade"] { --font-body: "IBM Plex Mono", ui-monospace, monospace; }
html[data-skin="arcade"] body { font-size: 12.5px; }
html[data-skin="arcade"] .nav a, html[data-skin="arcade"] .btn { font-family: "VT323", monospace; font-size: 17px; letter-spacing: .02em; }
html[data-skin="paper"] { --font-body: "DM Sans", -apple-system, sans-serif; --font-display: "Fraunces", Georgia, serif; --font-head: "Fraunces", Georgia, serif;
  --display-weight: 700; --display-tracking: -.02em; }
html[data-skin="paper"] .list-head .name, html[data-skin="paper"] .tile-head h3 { font-weight: 700; letter-spacing: -.005em; }
.sp-name { font-family: var(--sp-font) !important; }

/* Home follows the skin's type too */
.eyebrow, .kpi .k-label, .tile-head h3, .hero-date, .skin-btn, .pipe-row .pname, .lead-row .nm div, .up-row .nm div { font-family: var(--font-head); }
.you-name, .hero-date b, .kpi .k-value, .chart-big, .datechip b, .lead-row .gain { font-family: var(--font-display); letter-spacing: var(--display-tracking); }
html[data-skin="crimson"] .you-name, html[data-skin="crimson"] .hero-date b { text-transform: uppercase; }
html[data-skin="crimson"] .eyebrow { letter-spacing: .18em; }
html[data-skin="arcade"] .you-name, html[data-skin="arcade"] .hero-date b { font-size: 14px; line-height: 1.6; }
html[data-skin="arcade"] .chart-big, html[data-skin="arcade"] .kpi .k-value { font-size: 18px; }
html[data-skin="arcade"] .eyebrow, html[data-skin="arcade"] .kpi .k-label, html[data-skin="arcade"] .tile-head h3 { font-size: 15px; letter-spacing: .04em; }
html[data-skin="paper"] .you-name { font-weight: 700; }

/* gradient picker in the Skins screen */
.grad-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; max-width: 1200px; }
.grad-label { color: rgba(255,255,255,.7); font-weight: 600; margin-right: 6px; }
.grad { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.12); color: #fff; }
.grad:hover { background: rgba(255,255,255,.1); }
.grad.on { border-color: #fff; background: rgba(255,255,255,.14); }
.grad-dot { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.grad-name { font-size: 13px; font-weight: 600; }
.skin-dot { background: conic-gradient(var(--hero-a), var(--hero-b), var(--hero-c), var(--hero-a)) !important; }
.staging-banner { position: relative; z-index: 2; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .12em; padding: 4px;
  background: repeating-linear-gradient(135deg, #facc15 0 14px, #eab308 14px 28px); color: #1a1300; }

/* Home: Upcoming row */
.up-row { padding-bottom: 14px; }
.up-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 232px; gap: 14px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.up-card { display: flex; flex-direction: column; border-radius: 12px; background: var(--card); border: 1px solid var(--card-outline, var(--border)); text-decoration: none; color: inherit;
  overflow: hidden; scroll-snap-align: start; transition: transform .18s ease, border-color .18s, box-shadow .18s; }
.up-card:hover { transform: translateY(-3px); border-color: var(--accent-2); box-shadow: 0 12px 28px -14px var(--glow); }
.up-card.tonight.next { border-color: var(--accent-2); box-shadow: 0 0 0 1px var(--accent-2), 0 10px 30px -12px var(--glow); }
.up-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--hover); display: grid; place-items: center; }
.up-thumb img, .up-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-thumb-ph { color: rgba(255,255,255,.75); }
.up-when { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800;
  background: rgba(0,0,0,.62); color: #fff; backdrop-filter: blur(6px); }
.up-when.tonight { background: var(--btn-grad); color: var(--on-accent); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }
.up-next, .up-order { position: absolute; right: 8px; top: 8px; padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; background: rgba(0,0,0,.62); color: #fff; }
.up-next { background: #fff; color: #111; text-transform: uppercase; letter-spacing: .06em; }
.up-body { padding: 10px 11px 12px; display: grid; gap: 7px; }
.up-title { font-weight: 650; font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px; }
.up-ch { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11.5px; min-width: 0; }
.up-ch span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid-eq:has(> .tile:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* inline reorder mode */
.reorder-hint { font-size: 12px; font-weight: 600; color: var(--accent-2); padding: 0 6px; white-space: nowrap; }
.card.orderable { cursor: copy; }
.card.orderable:hover { border-color: var(--accent-2); box-shadow: 0 0 0 1px var(--accent-2); }
.card.ordered { border-color: var(--accent-2); }
.card.order-off { opacity: .4; cursor: not-allowed; }
.card.orderable:not(.ordered)::after { content: '+'; position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; border: 1.5px dashed var(--border-strong); color: var(--muted); font-weight: 800; background: var(--raised); z-index: 2; }
.vcard.orderable:not(.ordered):not(:has(.thumb)) { padding-top: 34px; }

/* ---------- card window (3 columns) ---------- */
.modal.card-modal { position: relative; max-width: 1400px; width: 96vw; padding: 0; overflow: hidden; }
.modal.card-modal > .modal-close { position: absolute; right: 14px; top: 14px; margin: 0; z-index: 2; }
.cm-head { display: flex; align-items: center; gap: 10px; padding: 14px 56px 14px 20px; border-bottom: 1px solid var(--line); }
.cm-title2 { flex: 1; min-width: 0; font: inherit; font-family: var(--font-head); font-size: 18px; font-weight: 700; background: transparent; border: 1px solid transparent;
  border-radius: 7px; padding: 5px 8px; margin-left: -8px; color: var(--text); outline: none; }
.cm-title2:hover, .cm-title2:focus { border-color: var(--border); background: var(--field); }
.cm-in { color: var(--muted); font-size: 12.5px; }
.cm-list { background: transparent; border: 1px solid var(--border); border-radius: 7px; padding: 4px 8px; font-weight: 600; font-size: 12.5px; color: var(--text); max-width: 220px; }
.cm-id { font-size: 11.5px; color: var(--muted); background: var(--hover); padding: 3px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.cm-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; height: min(78vh, 860px); }
.cm-col { padding: 16px 20px; overflow-y: auto; border-right: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; }
.cm-col:last-child { border-right: 0; }
.cm-label { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.cm-sub { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.cm-desc { min-height: 150px; resize: vertical; }
.cm-row { display: flex; gap: 14px; margin-top: 16px; align-items: flex-start; }
.mz { position: relative; border-radius: 12px; border: 1.5px dashed var(--border-strong); background: var(--sunken); aspect-ratio: 16 / 9; display: grid; place-items: center;
  cursor: pointer; overflow: hidden; transition: border-color .15s, background .15s; text-decoration: none; color: inherit; }
.mz:hover, .mz.drag { border-color: var(--accent-2); background: rgba(var(--accent-rgb), .06); }
.mz.has { border-style: solid; border-color: var(--border); background: #000; }
.mz img, .mz video { width: 100%; height: 100%; object-fit: contain; display: block; }
.mz-empty { display: grid; justify-items: center; gap: 6px; color: var(--muted); text-align: center; padding: 10px; }
.mz-empty b { color: var(--text); font-weight: 600; }
.mz-empty small { font-size: 11.5px; }
.mz-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--hover); color: var(--muted); }
.mz-progress { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 26px; border-radius: 8px; background: rgba(0,0,0,.7); overflow: hidden; }
.mz-progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--btn-grad); transition: width .2s; }
.mz-progress span { position: relative; display: block; text-align: center; line-height: 26px; font-size: 12px; font-weight: 700; color: #fff; }
.mz.busy { cursor: progress; }
.mz-tools { display: flex; gap: 6px; margin-top: 8px; }
.mz-link { display: grid; place-items: center; gap: 4px; background: var(--sunken) !important; padding: 12px; text-align: center; }
.mz-link small { color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mz-audio { display: grid; justify-items: center; gap: 12px; width: 100%; padding: 16px; color: var(--accent-2); }
.mz-audio audio { width: 100%; }
.cm-feed { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.cm-empty { display: grid; justify-items: center; gap: 5px; color: var(--muted); padding: 26px 10px; border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.cm-empty b { color: var(--text); font-weight: 600; }
.act { display: flex; gap: 9px; font-size: 12.5px; line-height: 1.4; }
.act b { font-weight: 650; }
.act small { display: block; color: var(--faint); font-size: 11px; }
.act .bubble { margin-top: 5px; background: var(--field); border: 1px solid var(--border); border-radius: 9px; padding: 7px 10px; white-space: pre-wrap; word-break: break-word; }
.cm-out { background: rgba(0,0,0,.08); }
.cm-tabs { display: flex; align-items: center; gap: 4px; margin-bottom: 14px; }
.cm-tab { background: none; border: 0; padding: 6px 12px; border-radius: 7px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cm-tab.on { background: var(--hover); color: var(--text); }
.cm-saved { font-size: 11.5px; color: var(--muted); }
.cm-out-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.cm-script { flex: 1; min-height: 300px; resize: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.6; }
@media (max-width: 1000px) { .cm-grid3 { grid-template-columns: 1fr; height: auto; max-height: 80vh; overflow-y: auto; } .cm-col { border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; } }

/* Upcoming: compact cards for a better overview */
.upnext .up-scroller { grid-auto-columns: 158px; gap: 10px; }
.upnext .up-card { border-radius: 9px; }
.upnext .up-when, .upnext .up-next, .upnext .up-order { top: 5px; font-size: 9.5px; padding: 2px 6px; }
.upnext .up-when { left: 5px; gap: 4px; } .upnext .up-next, .upnext .up-order { right: 5px; }
.upnext .live-dot { width: 5px; height: 5px; }
.upnext .up-body { padding: 7px 8px 8px; gap: 5px; }
.upnext .up-title { font-size: 11.5px; min-height: 30px; }
.upnext .up-ch { font-size: 10.5px; gap: 5px; }
.upnext .up-ch .avatar { width: 16px; height: 16px; font-size: 8px; }
.upnext .up-thumb-ph svg { width: 16px; height: 16px; }

/* hourly views graphs + headline 24H/48H tiles */
.kpis { grid-template-columns: 1.5fr 1.5fr 1fr 1fr 1fr; }
.kpi.kpi-main { border-color: transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--frame-strong) border-box; }
.kpi.kpi-main .k-value { font-size: 38px; color: var(--text); }
.kpi.kpi-main .k-label { color: var(--accent-2); }
.hg .tile-head { align-items: center; }
.hg-total { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--accent-2); letter-spacing: var(--display-tracking); }
.hg-wrap { position: relative; height: 250px; padding: 0 0 22px 0; }
.hg-svg { position: absolute; inset: 0 0 22px 0; width: 100%; height: calc(100% - 22px); overflow: visible; }
.hg-y { position: absolute; left: 0; top: 6px; bottom: 34px; width: 44px; display: flex; flex-direction: column; justify-content: space-between; font-size: 10.5px; color: var(--faint); text-align: right; pointer-events: none; }
.hg-x { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; pointer-events: none; }
.hg-x span { position: absolute; transform: translateX(-50%); font-size: 10.5px; color: var(--faint); white-space: nowrap; }
.hg-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 3px var(--panel), 0 0 14px var(--glow); transform: translate(-50%, -50%); pointer-events: none; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hg-x span:nth-child(even) { display: none; } }

/* ---------- custom dropdowns ---------- */
.fs-btn { display: inline-flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; color: var(--text);
  background: var(--field); border: 1px solid var(--border); border-radius: 9px; padding: 8px 10px 8px 12px; font: inherit; transition: border-color .15s, box-shadow .15s, background .15s; }
.fs-btn.fs-input { width: 100%; padding: 10px 12px; }
.fs-btn:hover { border-color: var(--border-strong); background: var(--raised); }
.fs-btn:focus-visible, .fs-btn.open { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); }
.fs-btn[disabled] { opacity: .55; cursor: not-allowed; }
.fs-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.fs-chev { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: var(--accent-2); background: rgba(var(--accent-rgb), .12); transition: transform .18s ease; flex: none; }
.fs-btn.open .fs-chev { transform: rotate(180deg); }
.fs-btn.cm-list { padding: 4px 6px 4px 10px; font-size: 12.5px; font-weight: 600; max-width: 240px; }
.fs-btn.cm-list .fs-chev { width: 18px; height: 18px; }
.fs-menu { position: fixed; z-index: 120; max-height: 300px; overflow-y: auto; padding: 5px; border-radius: 12px; display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(var(--raised), var(--raised)) padding-box, var(--frame) border-box; border: 1px solid transparent;
  box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.2); animation: fsIn .14s ease-out; }
@keyframes fsIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.fs-opt { display: flex; align-items: center; gap: 10px; justify-content: space-between; text-align: left; background: none; border: 0; border-radius: 8px;
  padding: 9px 11px; color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.fs-opt:hover, .fs-opt:focus-visible { outline: none; background: rgba(var(--accent-rgb), .14); }
.fs-opt.on { color: var(--accent-2); font-weight: 650; background: rgba(var(--accent-rgb), .08); }
.fs-opt svg { color: var(--accent-2); flex: none; }
html[data-skin="paper"] .fs-menu { box-shadow: 0 16px 40px rgba(0,0,0,.14); }
@media (prefers-reduced-motion: reduce) { .fs-menu { animation: none; } .fs-chev { transition: none; } }

/* ---------- channel boards fill the whole column (video cards stay 2 per row) ---------- */
.cards.ch-cards { grid-template-columns: minmax(0, 1fr); }
.ch-cards .card .stats { grid-template-columns: repeat(4, 1fr); }

/* ---------- Move to bin: a thin red strip that only grows while you drag a board ---------- */
.bin-bar { display: flex; align-items: center; gap: 7px; margin: 6px 8px 0; padding: 0 10px; height: 24px; border-radius: 7px;
  border: 1px dashed rgba(239, 68, 68, .45); background: rgba(220, 38, 38, .08); color: #fca5a5; font-size: 11.5px;
  transition: height .15s, background .15s, border-color .15s, box-shadow .15s; flex: none; }
.bin-bar svg { width: 13px; height: 13px; }
.bin-bar b { color: #fecaca; font-weight: 650; }
.bin-bar .spacer { flex: 1; }
.bin-bar .bin-hint { color: rgba(252, 165, 165, .6); font-size: 11px; }
.bin-bar .bin-open { color: #fca5a5; font-size: 11px; text-decoration: none; padding: 1px 7px; border-radius: 5px; }
.bin-bar .bin-open:hover { background: rgba(239, 68, 68, .18); color: #fff; }
.is-dragging .bin-bar { height: 40px; font-size: 13px; background: rgba(220, 38, 38, .2); border-color: rgba(239, 68, 68, .85); }
.bin-bar.hot { background: linear-gradient(90deg, #dc2626, #ef4444); border-style: solid; border-color: #fca5a5; color: #fff;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .22), 0 6px 20px rgba(220, 38, 38, .35); }
.bin-bar.hot b, .bin-bar.hot .bin-hint, .bin-bar.hot .bin-open { color: #fff; }
.drag-ghost.to-bin { opacity: .6; filter: saturate(.3); }
[data-skin="paper"] .bin-bar { color: #b91c1c; } [data-skin="paper"] .bin-bar b { color: #991b1b; }
[data-skin="paper"] .bin-bar .bin-hint, [data-skin="paper"] .bin-bar .bin-open { color: #b91c1c; }

.bin-page .board-head { padding-left: 0; }
.bin-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.bin-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: var(--panel, var(--card)); border: 1px solid var(--border); }
.bin-row .spacer { flex: 1; }
.bin-row .nm small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.bin-row .nm > div { font-weight: 600; }

/* ---------- compact boards ---------- */
.board-head { min-height: 40px; padding: 6px 12px; gap: 8px; }
.board { padding: 6px 8px 8px; gap: 6px; }
.column { gap: 6px; }
.list-head { padding: 6px 6px 4px; gap: 4px; }
.cards { gap: 4px; padding: 1px 4px 4px; }
.ch-cards .card { padding: 6px 7px; }
.ch-cards .card .badges, .ch-cards .card .row { margin-top: 4px; }
.ch-cards .card .stats { margin-top: 4px; padding-top: 4px; }

/* YouTube link: on boards without one, and the live views pill on a channel board */
.yt-add { display: flex; align-items: center; gap: 5px; width: 100%; margin-top: 5px; padding: 4px 7px; border-radius: 6px;
  border: 1px dashed rgba(248, 113, 113, .45); background: rgba(239, 68, 68, .06); color: #fca5a5; font-size: 11px; cursor: pointer; }
.yt-add:hover { background: rgba(239, 68, 68, .16); color: #fff; border-style: solid; }
.yt-add-btn { color: #fca5a5; border-color: rgba(248, 113, 113, .45); }
.live-pill { display: flex; align-items: center; gap: 10px; padding: 3px 6px 3px 10px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--raised, var(--hover)); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.live-pill small { color: var(--muted); font-size: 10.5px; letter-spacing: .04em; }
.live-pill .lp-total { color: var(--text); font-weight: 600; }
.live-pill .muted { color: var(--muted); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); animation: livepulse 2s infinite; }
.live-dot.off { background: var(--faint); animation: none; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); } 70% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
.lp-yt, .lp-btn { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--muted); background: none; border: 0; cursor: pointer; }
.lp-yt { color: #f87171; }
.lp-yt:hover, .lp-btn:hover { background: var(--hover); color: var(--text); }
.lp-btn.spin svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* add column: 1 / 2 / 3 stack picker */
.stack-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stack-opt { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 8px 9px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--border); background: var(--raised, var(--hover)); color: var(--muted); font-size: 12px; font-weight: 600; }
.stack-opt:hover { color: var(--text); }
.stack-opt.on { border-color: var(--accent); color: var(--text); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
.stack-mini { display: flex; flex-direction: column; gap: 3px; width: 26px; height: 38px; }
.stack-mini i { flex: 1; border-radius: 3px; background: var(--faint); }
.stack-opt.on .stack-mini i { background: var(--accent); }
.stack-names .field { margin-top: 10px; }
.side-item.side-bin > span:first-child { display: inline-flex; align-items: center; gap: 6px; color: #f87171; }
.side-item.side-bin.active > span:first-child { color: #fca5a5; }
