/* =====================================================================
   HERETICS HUB — IDENTIDAD D (sept 2026)
   Capa estructural que se carga después de styles.css.
   Principios: negro cálido, tipografía del sistema, el color lo ponen los
   juegos, serif solo en titulares protagonistas, sin brillos ni barridos.
   ===================================================================== */

/* ---------- self-hosted fonts (no Google Fonts dependency) ---------- */
@font-face { font-family: 'Bricolage Grotesque'; src: url('fonts/bricolage-grotesque-wght.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('fonts/instrument-serif.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('fonts/instrument-serif-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- status palette (workflow) — hues kept clear of the game colours ---------- */
:root { --st-idea: #8c867e; --st-draft: #a996f0; --st-review: #e6c34a; --st-sched: #54cdbf; --st-pub: #5bbf8a; }
:root[data-theme="light"] { --st-idea: #6e6a63; --st-draft: #6d56d6; --st-review: #a8820f; --st-sched: #13877b; --st-pub: #2e8a57; }

/* ---------- base ---------- */
body { font-family: var(--f-body); letter-spacing: 0; font-variant-numeric: tabular-nums; }
body::before { display: none; }
h1, h2, h3, h4 { font-family: var(--f-body); font-weight: 600; letter-spacing: -0.01em; }
::selection { background: var(--val); color: #0a0a09; }
:focus-visible { outline-color: var(--ink); }

/* ---------- shell: sidebar as frame, content as an inset panel ---------- */
.sidebar { background: var(--bg); border-right: 0; padding: 16px 12px; }
.main {
  margin: 8px 8px 8px 0; height: calc(100vh - 16px);
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.main::after { background: linear-gradient(to top, var(--panel) 0%, transparent 100%); }
.topbar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0 18px 0 24px; gap: 10px; }
.topbar h1 { font-size: 15px; letter-spacing: -0.01em; }
.topbar .crumb { color: var(--ink-4); }
.topbar .crumb b { color: var(--ink-3); font-weight: 500; }

.brand-mark { width: 30px; height: 30px; background: transparent; border: 0; box-shadow: none; }
.brand-text .name { font-family: var(--f-body); font-weight: 600; font-size: 13.5px; letter-spacing: -0.01em; }
.brand-text .sub { font-size: 11.5px; color: var(--ink-4); letter-spacing: 0; }

.nav-sec { margin-top: 20px; }
.nav-label { font-size: 11.5px; font-weight: 500; color: var(--ink-4); letter-spacing: 0; padding: 0 10px 6px; }
.nav-item { padding: 8px 10px; font-size: 13.5px; color: var(--ink-2); gap: 10px; }
.nav-item svg { width: 16px; height: 16px; stroke-width: 1.8; color: var(--ink-4); }
.nav-item:hover { color: var(--ink); background: rgba(255,245,230,.03); }
.nav-item.active, .nav-item.active svg { color: var(--ink); }
.nav-pill { background: var(--elevated); border: 0; box-shadow: none; height: 36px; }
.nav-pill::before { display: none; }
.nav-item .nav-badge { background: transparent; color: var(--ink-4); font-family: var(--f-body); font-weight: 500; font-size: 11.5px; padding: 0; }

.team-presence { background: transparent; }
.tp-title { font-family: var(--f-body); font-size: 11.5px; font-weight: 500; letter-spacing: 0; }
.profile:hover { background: rgba(255,245,230,.03); }

.icon-btn, .topbar-hud, .searchbar { height: 34px; background: var(--card); border-color: var(--line); }
.icon-btn { width: 34px; }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn .bell-count { background: var(--val); color: #0a0a09; box-shadow: 0 0 0 2px var(--panel); }
.icon-btn .dot { background: var(--val); }
.topbar-hud { font-family: var(--f-mono); letter-spacing: 0; }
.searchbar kbd { font-family: var(--f-mono); }

/* ---------- controls ---------- */
.btn { font-weight: 500; height: 36px; border-color: var(--line-2); }
.btn.sm { height: 32px; }
.btn.gold { background: var(--gold); color: var(--on-accent); box-shadow: none; font-weight: 600; }
.btn.gold:hover { background: var(--gold-soft); box-shadow: none; }
.btn.gold::after { display: none; }
.hoverable:hover { transform: none; border-color: var(--line-strong); box-shadow: none; }
.chip { background: var(--card); }

/* game colour classes for the three main titles */
.c-val { color: var(--val); } .bg-val { background: var(--val-bg); color: var(--val); }
.c-lol { color: var(--lol); } .bg-lol { background: var(--lol-bg); color: var(--lol); }
.c-cod { color: var(--cod); } .bg-cod { background: var(--cod-bg); color: var(--cod); }
.game-badge { font-family: var(--f-body); font-size: 11px; font-weight: 600; letter-spacing: 0; border-radius: 6px; }

/* ---------- Overview · match hero ---------- */
.om {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 290px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line);
  display: flex;
}
.om-disc {
  position: absolute; z-index: 0; right: -70px; bottom: -190px;
  width: 440px; height: 440px; border-radius: 50%; background: var(--gc);
}
.om-player {
  position: absolute; z-index: 1; right: 10px; bottom: 0;
  height: calc(100% - 20px); max-height: 340px; width: auto; object-fit: contain; object-position: bottom; pointer-events: none;
}
.om-caption {
  position: absolute; z-index: 2; right: 18px; top: 18px;
  font-size: 12px; color: var(--ink-3);
}
.om-body { position: relative; z-index: 2; flex: 1; padding: 20px 22px; display: flex; flex-direction: column; max-width: 68%; }
.om-top { display: flex; align-items: center; gap: 12px; }
.om-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 11px;
  border-radius: 999px; background: rgba(255,245,230,.06); font-size: 12.5px; font-weight: 500; color: var(--ink);
}
.om-live { width: 7px; height: 7px; border-radius: 50%; background: var(--gc); color: var(--gc); flex: none; }
.om-live.is-live { animation: omLive 1.8s ease-out infinite; }
@keyframes omLive { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.om-crests { display: inline-flex; align-items: center; gap: 6px; }
.om-crests img { width: 26px; height: 26px; object-fit: contain; }
.om-crest-ini { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; background: var(--elevated); color: var(--ink-2); }
.om-greet { margin-top: 18px; font-size: 13px; color: var(--ink-3); }
.om-greet::first-letter { text-transform: uppercase; }
.om-title {
  margin-top: 6px; font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-size: clamp(40px, 4.2vw, 56px); line-height: .98; letter-spacing: -0.01em; color: var(--ink);
  text-wrap: balance;
}
.om-vs { color: var(--ink-4); }
.om-foot { margin-top: auto; padding-top: 22px; display: flex; align-items: flex-end; gap: 26px; }
.om-cd { display: flex; flex-direction: column; gap: 3px; }
.om-cd-v { font-family: var(--f-display); font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.om-cd-l, .om-prog-l { font-size: 12px; color: var(--ink-3); }
.om-prog { display: flex; flex-direction: column; gap: 8px; padding-bottom: 3px; }
.om-segs { display: flex; gap: 4px; }
.om-seg { width: 24px; height: 7px; border-radius: 4px; background: var(--elevated); padding: 0; transition: background .2s var(--ease); }
.om-seg.on { background: var(--gc); }
.om-seg:hover { background: var(--line-strong); }
.om-seg.on:hover { opacity: .8; background: var(--gc); }
.om-watch { background: rgba(255,245,230,.06); border-color: transparent; }

/* first paint: one calm entrance */
.om-enter .om-disc { animation: omDisc .9s var(--ease-out) both; }
.om-enter .om-player { animation: omRise .8s .1s var(--ease-out) both; }
.om-enter .om-body > * { animation: omFade .6s var(--ease-out) both; }
.om-enter .om-body > *:nth-child(2) { animation-delay: .05s; }
.om-enter .om-body > *:nth-child(3) { animation-delay: .1s; }
.om-enter .om-body > *:nth-child(4) { animation-delay: .15s; }
@keyframes omDisc { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes omRise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes omFade { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 900px) {
  .om { min-height: 0; }
  .om-body { max-width: none; }
  .om-player, .om-caption { display: none; }
  .om-disc { width: 240px; height: 240px; right: -90px; bottom: auto; top: -110px; opacity: .9; }
  .om-foot { flex-wrap: wrap; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .om-live.is-live, .om-enter .om-disc, .om-enter .om-player, .om-enter .om-body > * { animation: none; }
}

/* ---------- mobile shell ---------- */
@media (max-width: 768px) {
  .main { margin: 0; height: 100vh; border-radius: 0; border: 0; }
}

/* ---------- light theme ---------- */
:root[data-theme="light"] {
  --bg: #f4f2ee; --bg-2: #efece7; --panel: #fbfaf8;
  --card: #ffffff; --card-2: #f7f5f1; --elevated: #efece6; --hover: #e9e6df;
  --line: rgba(20,18,10,.09); --line-2: rgba(20,18,10,.13); --line-strong: rgba(20,18,10,.2);
  --ink: #141413; --ink-2: #3d3b37; --ink-3: #5c5953; --ink-4: #6e6a63;
  --gold: #141413; --gold-soft: #2a2926; --gold-deep: #3d3b37; --gold-ink: #141413; --gold-bg: rgba(20,18,10,.06);
  --on-accent: #ffffff;
  --val: #c95a2e; --lol: #2f67d8; --cod: #5b8a12;
  --val-bg: rgba(201,90,46,.12); --lol-bg: rgba(47,103,216,.12); --cod-bg: rgba(91,138,18,.12);
}
:root[data-theme="light"] .sidebar { background: var(--bg); }
:root[data-theme="light"] .topbar { background: transparent; }
:root[data-theme="light"] .om-chip,
:root[data-theme="light"] .om-watch { background: rgba(20,18,10,.05); }

/* ---------- Brand Guides: the club's brand book keeps the club's own system ---------- */
.brand-type-spec { font-family: 'Neue Haas Unica W1G', 'Neue Haas Unica', 'Inter', var(--f-body); }
.logo-stage.gold { background: linear-gradient(135deg, #d6c58f, #94814a); }

/* ---------- Overview · Pulso del día ---------- */
.pl-card { padding: 16px 20px 18px; }
.pl-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.pl-head h3 { font-size: 14px; }
.pl-key { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.pl-key i { display: inline-block; }
.pl-key .k-match { width: 10px; height: 10px; border-radius: 3px; background: var(--val-bg); border: 1px solid var(--val); }
.pl-key .k-pend { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.pl-key .k-done { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink-4); box-sizing: border-box; }
.pl-key .k-now { width: 2px; height: 12px; background: var(--ink); }
.pl-track { position: relative; height: 128px; }
.pl-hour { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.pl-hour em { position: absolute; bottom: -2px; left: 5px; font: 10.5px/1 var(--f-mono); font-style: normal; color: var(--ink-4); white-space: nowrap; }
.pl-match {
  position: absolute; top: 0; height: 26px; box-sizing: border-box; padding: 0 9px; overflow: hidden;
  display: flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 12px;
  background: var(--gc-bg); border: 1px solid var(--gc); border-radius: 7px; color: var(--ink); min-width: max-content;
}
.pl-match span { color: var(--ink-3); }
.pl-post {
  position: absolute; display: flex; align-items: center; gap: 7px; white-space: nowrap;
  margin-left: -4px; padding: 2px 6px 2px 0; border-radius: 6px; font-size: 12px; font-weight: 500; color: var(--ink);
}
.pl-post i { width: 9px; height: 9px; border-radius: 50%; background: var(--pc); flex: none; }
.pl-post.done { color: var(--ink-4); font-weight: 400; }
.pl-post.done i { background: transparent; border: 2px solid var(--pc); box-sizing: border-box; opacity: .7; }
.pl-post:hover span { text-decoration: underline; text-underline-offset: 3px; }
.pl-now { position: absolute; top: -6px; bottom: 16px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 2px; animation: plNow 2.4s ease-in-out infinite; }
.pl-now em { position: absolute; top: -4px; left: 6px; font: 10.5px/1 var(--f-mono); font-style: normal; color: var(--ink); }
@keyframes plNow { 50% { opacity: .5; } }

/* ---------- Overview · Cola de publicación ---------- */
.q-list { display: flex; flex-direction: column; margin: 0 -18px -18px; }
.q-row {
  display: grid; grid-template-columns: 36px 50px minmax(0,1fr) 120px 112px; gap: 12px; align-items: center;
  min-height: 52px; padding: 7px 18px; border-top: 1px solid var(--line); text-align: left; font-size: 13px; color: var(--ink);
  transition: background .15s var(--ease);
}
.q-row:hover { background: rgba(255,245,230,.025); }
.q-thumb {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: var(--pc);
  background: color-mix(in srgb, var(--pc) 15%, transparent);
}
.q-thumb svg { width: 16px; height: 16px; }
.q-time { font: 12px/1 var(--f-mono); color: var(--ink-3); }
.q-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.q-title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-acc, .q-ch { font-size: 12px; color: var(--ink-3); }
.q-ch { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-st { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.q-st i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.q-sched i { background: var(--st-sched); }
.q-review i { background: var(--st-review); }
.q-draft i { background: var(--st-draft); }
:root[data-theme="light"] .pl-key .k-match { background: var(--val-bg); }
:root[data-theme="light"] .q-row:hover { background: rgba(20,18,10,.03); }

@media (max-width: 900px) {
  .pl-key { display: none; }
  .pl-post span { display: none; }
  .pl-track { height: 96px; }
  .q-row { grid-template-columns: 36px minmax(0,1fr) auto; }
  .q-time, .q-ch { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pl-now { animation: none; } }

/* =====================================================================
   GAME CALENDAR
   ===================================================================== */
.next-match { border: 0; background: none; padding: 0; display: block; border-radius: 0; }
.nxm {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; padding: 22px 24px;
}
.nxm-disc { display: none; }
.nxm-main, .nxm-side { position: relative; z-index: 1; }
.nxm-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nxm-comp { font-size: 12.5px; color: var(--ink-3); }
.nxm-teams { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.nxm-x { color: var(--ink-4); font-size: 13px; }
.gc-crest { width: 36px; height: 36px; display: grid; place-items: center; flex: none; grid-template: 100% / 100%; }   /* fixed cell: tall and wide crests fit the same square */
.gc-crest img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gc-crest.ini { border-radius: 10px; background: var(--elevated); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.gc-crest.sm { width: 26px; height: 26px; }
.gc-crest.sm.ini { border-radius: 7px; font-size: 10px; }
.nxm-title { margin-top: 10px; font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(34px, 3.4vw, 46px); line-height: 1; letter-spacing: -0.01em; }
.nxm-meta { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.nxm-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.nxm-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 10px; text-align: right; }
.nxm-cd-l { font-size: 12px; color: var(--ink-3); }
.nxm-cd { display: flex; gap: 10px; align-items: baseline; }
.nxm-u { display: inline-flex; align-items: baseline; gap: 2px; }
.nxm-u[hidden] { display: none; }
.nxm-u b { font-family: var(--f-display); font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.nxm-u i { font-style: normal; font-size: 15px; font-weight: 600; color: var(--gc); margin-left: 2px; }
.nxm-prog { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.nxm-pills, .content-pills { display: flex; gap: 5px; }

/* content toggles (shared by next match + agenda) */
.cpill { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-4); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.cpill svg { width: 13px; height: 13px; color: currentColor; }
.cpill.todo { background: transparent; border-color: var(--line-2); }
.cpill.todo svg { color: var(--ink-4); }
.cpill.done { background: var(--gc, var(--st-pub)); border-color: transparent; color: #0a0a09; }
.cpill.done svg { color: #0a0a09; }
.cpill:hover { border-color: var(--line-strong); color: var(--ink); }
.cpill.todo:hover svg { color: var(--ink); }

/* filter chips */
#gameFilter .chip.active, .chip.active { background: var(--ink); color: var(--on-accent); border-color: transparent; }
#gameFilter .chip.active .gdot { box-shadow: 0 0 0 2px var(--ink); }

/* agenda */
#matchList { display: flex; flex-direction: column; gap: 18px; }
.ag-day { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.ag-day-h { display: flex; align-items: baseline; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.ag-day-h b { font-size: 14px; font-weight: 600; }
.ag-day-h span { font-size: 12px; color: var(--ink-4); }
.ag-day.is-today .ag-day-h b::after { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); margin-left: 8px; vertical-align: middle; }
.ag-row {
  display: grid; grid-template-columns: 54px 3px minmax(0,1.4fr) minmax(0,1.1fr) 96px auto; gap: 16px; align-items: center;
  min-height: 60px; padding: 8px 18px; border-top: 1px solid var(--line);
}
.ag-day-h + .ag-row { border-top: 0; }
.ag-row:hover { background: rgba(255,245,230,.02); }
.ag-time { font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ag-bar { width: 3px; height: 30px; border-radius: 3px; background: var(--gc); }
.ag-teams { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ag-teams .gc-crest + .gc-crest { margin-left: -2px; }
.ag-opp { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: 4px; }
.ag-vs { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--ink-4); margin-right: 2px; }
.ag-comp { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; color: var(--ink-3); }
.ag-comp > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-cast { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.ag-cast svg { width: 14px; height: 14px; }
.ag-prog { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.ag-count { font-family: var(--f-mono); font-size: 12px; color: var(--ink-4); min-width: 26px; text-align: right; }
.ag-count.full { color: var(--st-pub); }

/* results */
#resultsList { gap: 10px; }
.rs-row { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 14px; align-items: center;
  padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.rs-res { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 14px; }
.rs-res.w { background: var(--gc); color: #0a0a09; }
.rs-res.l { background: var(--elevated); color: var(--ink-3); }
.rs-opp { font-size: 14px; font-weight: 600; }
.rs-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; color: var(--ink-4); }
.rs-score { font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--ink-3); }
.rs-score.w { color: var(--ink); }

@media (max-width: 1100px) {
  .ag-row { grid-template-columns: 50px 3px minmax(0,1fr) auto; }
  .ag-comp, .ag-cast { display: none; }
}
@media (max-width: 760px) {
  .nxm { grid-template-columns: 1fr; }
  .nxm-side { align-items: flex-start; text-align: left; }
  .nxm-prog { align-items: flex-start; }
  .nxm-u b { font-size: 34px; }
  .ag-row { grid-template-columns: 46px 3px minmax(0,1fr); row-gap: 8px; }
  .ag-prog { grid-column: 3; justify-content: flex-start; }
}

/* =====================================================================
   OVERVIEW · MATCH-DAY BRIEF (compact)
   ===================================================================== */
.mdb { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 18px; overflow: hidden; }
.mdb-h { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.mdb-h h3 { font-size: 14px; }
.mdb-sub { font-size: 12.5px; color: var(--ink-3); }
.mdb-count { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.mdb-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.5fr) minmax(0,1fr); }
.mdb-col { padding: 16px 20px 18px; min-width: 0; }
.mdb-col + .mdb-col { border-left: 1px solid var(--line); }
.mdb-t { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.mdb-warnct { font-size: 11px; font-weight: 600; color: var(--st-review); background: color-mix(in srgb, var(--st-review) 14%, transparent); padding: 2px 7px; border-radius: 999px; }
.mdb-task { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 0; font-size: 13.5px; color: var(--ink); text-align: left; }
.mdb-box { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--ink-4); display: grid; place-items: center; flex: none; transition: background .15s, border-color .15s; }
.mdb-box svg { width: 11px; height: 11px; stroke-width: 3; color: #0a0a09; }
.mdb-task.done .mdb-box { background: var(--gc); border-color: var(--gc); }
.mdb-task.done > span:last-child { color: var(--ink-4); text-decoration: line-through; text-decoration-color: var(--ink-4); }
.mdb-task:hover .mdb-box { border-color: var(--ink-2); }
.mdb-players { list-style: none; display: flex; flex-direction: column; }
.mdb-p { display: grid; grid-template-columns: 8px auto minmax(0,1fr); gap: 4px 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line); cursor: pointer; font-size: 13px; }
.mdb-p:first-child { border-top: 0; padding-top: 0; }
.mdb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--st-pub); align-self: center; }
.mdb-p.warn .mdb-dot { background: var(--st-review); }
.mdb-p b { font-weight: 600; }
.mdb-note { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mdb-p.open .mdb-note { white-space: normal; color: var(--ink-2); line-height: 1.5; }
.mdb-p:hover .mdb-note { color: var(--ink-2); }
.mdb-sponsors { display: flex; flex-wrap: wrap; gap: 6px; }
.mdb-sp { height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-2); }
.mdb-sp:hover { color: var(--ink); border-color: var(--line-strong); }
.mdb-ai { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 1100px) {
  .mdb-grid { grid-template-columns: 1fr 1fr; }
  .mdb-col:nth-child(2) { grid-column: 1 / -1; grid-row: 2; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 700px) {
  .mdb-grid { grid-template-columns: 1fr; }
  .mdb-col + .mdb-col { border-left: 0; border-top: 1px solid var(--line); }
  .mdb-sub { display: none; }
}

/* ---------- Overview · up next + metrics ---------- */
.un-list { display: flex; flex-direction: column; margin: 0 -18px; }
.un-row { display: grid; grid-template-columns: 3px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line); text-align: left; width: 100%; }
.un-row:hover { background: rgba(255,245,230,.025); }
.un-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.un-opp { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.un-meta { font-size: 12px; color: var(--ink-3); }
.un-todo { color: var(--st-review); } .un-ok { color: var(--st-pub); }
.un-when { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.un-when b { font-family: var(--f-display); font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.un-when span { font-size: 11.5px; color: var(--ink-4); }
.un-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.metric .label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric .m-spark { flex: none; width: 76px; overflow: hidden; opacity: .9; }
.metric .num { font-weight: 700; letter-spacing: -0.02em; }
.metric-link:hover { background: rgba(255,245,230,.02); }
.delta { font-family: var(--f-body); font-weight: 600; }

/* =====================================================================
   PLANNER
   ===================================================================== */
.planner-legend { background: transparent; border: 0; padding: 0 2px; gap: 14px; font-size: 12.5px; color: var(--ink-3); }
.planner-legend-section { font-size: 12px; font-weight: 500; color: var(--ink-4); }
.planner-legend .d { border-radius: 50% !important; width: 8px !important; height: 8px !important; }

/* channel glyphs: quiet, monochrome — the account colour carries identity */
.ch { width: 20px; height: 20px; border-radius: 6px; background: transparent !important; color: var(--ink-3) !important; }
.ch svg { width: 13px; height: 13px; }
.ev-chs { display: inline-flex; gap: 0; }

/* shared bits */
.ev-acc { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-acc i { width: 8px; height: 8px; border-radius: 3px; background: var(--pc); flex: none; }
.ev-com { font-size: 10.5px; font-weight: 600; color: var(--ink-2); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-2); }
.ev-st { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); }
.ev-st i { width: 7px; height: 7px; border-radius: 50%; background: var(--st-idea); flex: none; }
.st-draft .ev-st i { background: var(--st-draft); } .st-review .ev-st i { background: var(--st-review); }
.st-sched .ev-st i { background: var(--st-sched); } .st-pub .ev-st i { background: var(--st-pub); }
.ev-mdot { width: 8px; height: 8px; border-radius: 50%; background: var(--gc); flex: none; }

/* week view */
.cw-head { border-bottom: 1px solid var(--line); }
.cw-dh { padding: 12px 14px; }
.cw-dh .dow { font-size: 12px; font-weight: 500; color: var(--ink-4); }
.cw-dh .dnum { font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; margin-top: 2px; }
.cw-dh.today { background: transparent; }
.cw-dh.today .dow { color: var(--ink-2); }
.cw-dh.today .dnum { color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.cw-dh.today .dnum::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.cw-col { padding: 10px; gap: 8px; }
.cw-col.today { background: rgba(255,245,230,.025); }
.cw-col:hover { background: rgba(255,245,230,.015); }
.cw-ev { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; box-shadow: none; }
.cw-ev:hover { transform: none; border-color: var(--line-strong); box-shadow: none; }
.cw-ev .ev-top { margin-bottom: 6px; gap: 6px; }
.cw-ev .ev-time { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); }
.cw-ev .ev-ttl { font-size: 12.5px; font-weight: 500; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cw-ev .ev-foot { margin-top: 8px; gap: 6px; flex-wrap: wrap; row-gap: 4px; }
.cw-ev .ev-foot .ev-chs { display: none; }
.cw-ev.post-ev:hover .ev-foot .ev-chs { display: inline-flex; }
.cw-ev.st-pub .ev-ttl { color: var(--ink-3); }
.cw-ev.match { display: flex; align-items: center; gap: 8px; background: var(--gc-bg); border: 1px solid color-mix(in srgb, var(--gc) 45%, transparent); border-style: solid; opacity: 1; padding: 8px 10px; }
.cw-ev.match .ev-ttl { font-weight: 600; font-size: 12.5px; }
.cw-ev.match:hover { border-color: var(--gc); }
.cw-add { border: 1px dashed var(--line-2); color: var(--ink-4); font-size: 12px; }
.cw-add:hover { color: var(--ink); border-color: var(--line-strong); background: transparent; }

/* board view */
.col-h .t { font-family: var(--f-body); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.col-h .ct { font-family: var(--f-body); background: transparent; color: var(--ink-4); }
.post { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: none; }
.post:hover { transform: none; box-shadow: none; border-color: var(--line-strong); }
.post .ph { margin-bottom: 8px; gap: 8px; }
.post .ttl { font-size: 13px; font-weight: 500; line-height: 1.4; margin-bottom: 0; }
.post .pf { margin-top: 10px; }
.post .pf .when { font-size: 11.5px; }
.col-empty { font-size: 12.5px; color: var(--ink-4); padding: 18px 8px; text-align: center; line-height: 1.5; border: 1px dashed var(--line-2); border-radius: 10px; }

/* month view */
.cal-dow div { font-size: 12px; font-weight: 500; }
.cal-cell { min-height: 112px; }
.cal-cell .dn { font-family: var(--f-display); font-weight: 700; font-size: 14px; }
.cal-cell.today .dn { background: var(--ink); color: var(--on-accent); }
.cal-cell.dim { background: rgba(0,0,0,.15); }
.cal-ev { display: flex; align-items: center; gap: 6px; background: transparent !important; border: 0 !important; padding: 2px 4px; font-size: 11.5px; color: var(--ink-2) !important; }
.cal-ev .d { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.cal-ev.match { background: var(--gc-bg) !important; color: var(--ink) !important; font-weight: 600; border-radius: 6px; padding: 3px 6px; }
:root[data-theme="light"] .cal-cell.dim { background: rgba(20,18,10,.03); }

/* =====================================================================
   SIDEBAR · TEAM PRESENCE (quieter)
   ===================================================================== */
.team-presence { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; padding: 12px 6px 4px; margin-bottom: 6px; }
.tp-head { margin-bottom: 6px; padding: 0 4px; }
.tp-title { color: var(--ink-4); }
.tp-count { color: var(--ink-4); font-size: 11.5px; }
.tp-member { padding: 5px 4px; gap: 10px; }
.tp-member .avatar { width: 24px; height: 24px; font-size: 9.5px; filter: saturate(.55) brightness(.95); }
.tp-member:hover .avatar { filter: none; }
.tp-member .nm { font-size: 12.5px; color: var(--ink-2); }
.tp-member .act, .tp-member .act.live { color: var(--ink-4); font-size: 11px; }
.tp-status { width: 8px; height: 8px; border-color: var(--bg); }
.profile .avatar { filter: saturate(.7); }
:root[data-theme="light"] .tp-status { border-color: var(--bg); }

/* =====================================================================
   CPP TRACKER — folded into the Hub's system
   ===================================================================== */
:root { --urgent: #f26d6d; --color-gold: var(--ink); --bg-card: var(--card); --border-subtle: var(--line); --text-muted: var(--ink-3); --text-primary: var(--ink); }
:root[data-theme="light"] { --urgent: #c73e3e; }
.cpp-header { border-bottom-color: var(--line); }
.cpp-title { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 32px; letter-spacing: -0.01em; }
.cpp-subtitle { font-family: var(--f-body); font-size: 13px; color: var(--ink-3); }
.cpp-stats { gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cpp-stat { background: transparent; border: 0; border-radius: 0; padding: 16px 20px; }
.cpp-stat + .cpp-stat { border-left: 1px solid var(--line); }
.cpp-stat-label { font-family: var(--f-body); font-size: 12px; color: var(--ink-3); letter-spacing: 0; text-transform: none; }
.cpp-stat-val { font-family: var(--f-display); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; }
.cpp-stat-val.cpp-green { color: var(--st-pub); } .cpp-stat-val.cpp-red { color: var(--urgent); } .cpp-stat-val.cpp-amber { color: var(--st-review); }
.cpp-tabs { gap: 0; padding: 3px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; display: inline-flex; }
.cpp-tab { border: 0; border-radius: 7px; font-size: 13px; color: var(--ink-3); padding: 6px 14px; }
.cpp-tab:hover { color: var(--ink); border: 0; }
.cpp-tab.active { background: var(--elevated); color: var(--ink); border: 0; }
.cpp-grid { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cpp-card { border-left-width: 1px !important; border-left-color: var(--line) !important; background: var(--card); border-radius: 12px; padding: 14px 16px; }
.cpp-card:hover { background: var(--card); border-color: var(--line-strong) !important; }
.cpp-status-skip { opacity: .45; }
.cpp-code { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-4); }
.cpp-card-title { font-family: var(--f-body); font-size: 14px; font-weight: 600; letter-spacing: -0.005em; }
.cpp-card-summary { color: var(--ink-3); font-size: 12.5px; line-height: 1.5; }
.cpp-badge { display: inline-flex; align-items: center; gap: 6px; background: transparent !important; padding: 0; font-family: var(--f-body); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.cpp-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.cpp-badge-done { color: var(--st-pub); } .cpp-badge-urgent { color: var(--urgent); font-weight: 600; }
.cpp-badge-active { color: var(--st-sched); } .cpp-badge-pending { color: var(--ink-3); } .cpp-badge-optin { color: var(--st-draft); } .cpp-badge-skip { color: var(--ink-4); }
.cpp-brief-pill { font-family: var(--f-body); font-size: 11.5px; border-radius: 6px; background: transparent !important; border: 1px solid var(--line-2); }
.cpp-brief-available { color: var(--st-pub); } .cpp-brief-requested { color: var(--st-review); } .cpp-brief-tbc { color: var(--st-draft); } .cpp-brief-none { color: var(--ink-4); }
.cpp-progress-bar { background: var(--elevated); height: 4px; border-radius: 4px; }
.cpp-progress-fill { background: var(--ink); border-radius: 4px; }
.cpp-status-done .cpp-progress-fill { background: var(--st-pub); }
.cpp-status-urgent .cpp-progress-fill { background: var(--urgent); }
.cpp-meta { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-4); }
.cpp-mandatories { background: var(--card); border-color: var(--line); border-radius: var(--r); }
.cpp-mandatory-label { font-family: var(--f-body); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); }
.cpp-detail { background: var(--card); border-color: var(--line); border-radius: var(--r-lg); }
.cpp-detail-title-text { font-family: var(--f-body); font-weight: 600; letter-spacing: -0.01em; }
.cpp-dlv-check.checked { background: var(--st-pub); border-color: var(--st-pub); }
.cpp-dlv-check:hover { border-color: var(--ink-2); }
.cpp-brief-link:hover { border-color: var(--line-strong); }
.cpp-section-label { font-family: var(--f-body); letter-spacing: 0; text-transform: none; font-size: 12px; color: var(--ink-3); }

/* =====================================================================
   SHARED CONTROLS — forms, segmented, tags, toggles, sliders
   ===================================================================== */
.field > label { font-size: 12.5px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.seg { background: var(--card-2); border-color: var(--line); border-radius: 10px; }
.seg button { border-radius: 7px; font-size: 12.5px; color: var(--ink-3); }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--elevated); color: var(--ink); box-shadow: none; font-weight: 600; }
textarea.input, input.input, .fi { background: var(--card-2); border-color: var(--line-2); border-radius: 10px; }
textarea.input:focus, input.input:focus, .fi:focus { border-color: rgba(255,245,230,.32); box-shadow: 0 0 0 3px rgba(255,245,230,.06); }
.slider { height: 4px; background: linear-gradient(90deg, var(--ink-4), var(--ink)); }
.slider::-webkit-slider-thumb { width: 16px; height: 16px; background: var(--ink); border: 0; box-shadow: 0 0 0 4px rgba(255,245,230,.08); }
.slider::-moz-range-thumb { width: 16px; height: 16px; background: var(--ink); border: 0; }
.toggle { background: var(--elevated); }
.tag { background: transparent; border-color: var(--line-2); color: var(--ink-2); border-radius: 6px; }
.badge { font-family: var(--f-body); letter-spacing: 0; }
.bg-gold { background: var(--gold-bg); color: var(--ink); }
.eyebrow { font-family: var(--f-body); font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.section-h h2 { font-size: 17px; letter-spacing: -0.01em; }
.mh-ico { background: var(--elevated) !important; color: var(--ink) !important; border: 0 !important; box-shadow: none !important; }
[style*="border: 1px dashed"], .ai-empty { border-style: solid !important; }
.rm-date--overdue { color: var(--urgent); }
.rm-card.is-overdue { border-color: color-mix(in srgb, var(--urgent) 22%, transparent); }
.rd-card.is-overdue .rd-card-title { color: var(--urgent); }
.toast { background: var(--elevated); border-color: var(--line-2); box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.cmdk, .popover, .pop { background: var(--card); border-color: var(--line-2); }
:root[data-theme="light"] .slider { background: linear-gradient(90deg, #c9c4bb, var(--ink)); }
@media (min-width: 1200px) {
  .board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; overflow: visible; }
  .board .col { min-width: 0; width: auto; }
}
.post .ph .ev-acc, .cw-ev .ev-top .ev-acc { flex: 0 0 auto; }

/* =====================================================================
   OVERLAYS — composer, modals, palette, popovers, prefs, tour
   ===================================================================== */
#scrim, .scrim { background: rgba(5,5,4,.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal { background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.modal-h { padding: 16px 20px; }
.modal-h h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.modal-h .mh-ico { width: 32px; height: 32px; border-radius: 9px; }
.modal-b label, .modal-b .field > label { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-3); margin-bottom: 8px; letter-spacing: 0; }
.modal-b .field { margin-bottom: 18px; }
.modal-f { border-top: 1px solid var(--line); background: transparent; }
.modal .seg button, #cTypeSeg button { padding: 0 14px; }
.modal .input, .modal select.input { height: 40px; }
.modal textarea.input { height: auto; line-height: 1.5; }
.acct-pick { font-size: 12.5px; padding: 5px 12px; border-color: var(--line-2); color: var(--ink-2); }
.acct-pick.on { background: color-mix(in srgb, var(--acol) 16%, transparent); border-color: color-mix(in srgb, var(--acol) 55%, transparent); color: var(--ink); }
.acct-pick.on::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--acol); margin-right: 7px; }
.icon-btn#mClose, .ct-modal-close { border-color: transparent; background: transparent; }
.icon-btn#mClose:hover, .ct-modal-close:hover { background: var(--elevated); }

/* contacts + vacation modal (ct-modal) */
.ct-modal-hd { border-bottom-color: var(--line); }
.ct-modal-title { font-family: var(--f-body); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.ct-form-stitle { font-family: var(--f-body); font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; text-transform: none; }
.ct-form-group label { font-size: 12px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; text-transform: none; }
.fi { height: 38px; padding: 0 12px; font-size: 13px; }
.photo-upload-wrap { border-style: solid; background: var(--card-2); }

/* command palette */
.cmdk { border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.cmdk .top { border-bottom-color: var(--line); }
.cmdk input { font-size: 15px; }

/* popovers (profile / notifications) */
.popover, .pop, .menu, .pp { background: var(--panel); border-color: var(--line-2); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.menu-item { border-radius: 8px; font-size: 13px; color: var(--ink-2); }
.menu-item:hover { background: var(--elevated); color: var(--ink); }
.menu-item svg { color: var(--ink-4); }

/* preferences */
.prefs-nav button, .pf-nav button { border-radius: 8px; }
.prefs-nav button.on, .prefs-nav button.active, .pf-nav button.on, .pf-nav button.active { background: var(--elevated); color: var(--ink); }

/* light theme */
:root[data-theme="light"] #scrim, :root[data-theme="light"] .scrim { background: rgba(20,18,10,.28); }
:root[data-theme="light"] .modal, :root[data-theme="light"] .cmdk, :root[data-theme="light"] .popover, :root[data-theme="light"] .pop { box-shadow: 0 30px 80px rgba(30,26,14,.18); }

/* #####################################################################
   PRIMITIVES v2 — one system for every control in the Hub
   Sizes: 30 (sm) · 36 (md) · 40 (field). Radius 9 (7 inside groups).
   Resting = quiet border; hover = stronger border; focus = light ring.
   Primary = warm white; secondary = outlined; ghost = text only.
   ##################################################################### */
:root { color-scheme: dark;
  --ctl-bg: #131210; --ctl-bg-hover: #181715; --ctl-line: rgba(255,245,230,.11); --ctl-line-hover: rgba(255,245,230,.2);
  --ctl-focus: rgba(255,245,230,.42); --ctl-ring: 0 0 0 3px rgba(255,245,230,.07);
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a39d95' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230a0a09' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
:root[data-theme="light"] { color-scheme: light;
  --ctl-bg: #ffffff; --ctl-bg-hover: #faf9f7; --ctl-line: rgba(20,18,10,.14); --ctl-line-hover: rgba(20,18,10,.26);
  --ctl-focus: rgba(20,18,10,.5); --ctl-ring: 0 0 0 3px rgba(20,18,10,.07);
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235c5953' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  height: 36px; padding: 0 14px; gap: 7px; border-radius: 9px;
  background: transparent; border: 1px solid var(--ctl-line); color: var(--ink);
  font: 500 13px/1 var(--f-body); letter-spacing: 0; box-shadow: none;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .1s;
}
.btn:hover { background: var(--elevated); border-color: var(--ctl-line-hover); color: var(--ink); box-shadow: none; transform: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; stroke-width: 2; }
.btn.sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn.sm svg { width: 13px; height: 13px; }
.btn.gold, .btn.primary { background: var(--gold); border-color: transparent; color: var(--on-accent); font-weight: 600; }
.btn.gold svg, .btn.primary svg { color: var(--on-accent); }
.btn.gold:hover, .btn.primary:hover { background: var(--gold-soft); border-color: transparent; color: var(--on-accent); }
.btn.ghost { border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--elevated); border-color: transparent; color: var(--ink); }
.btn.danger, .btn.del, .btn.red { color: var(--urgent); border-color: color-mix(in srgb, var(--urgent) 35%, transparent); background: transparent; }
.btn.danger:hover, .btn.del:hover, .btn.red:hover { background: color-mix(in srgb, var(--urgent) 10%, transparent); }
.btn:disabled, .btn[disabled] { opacity: .45; pointer-events: none; }
.btn:focus-visible, .icon-btn:focus-visible, .chip:focus-visible { outline: 2px solid var(--ctl-focus); outline-offset: 2px; }
.icon-btn { border-radius: 9px; border: 1px solid var(--ctl-line); background: transparent; color: var(--ink-2); }
.icon-btn:hover { background: var(--elevated); border-color: var(--ctl-line-hover); color: var(--ink); }
.pressable:active { transform: translateY(1px) scale(1); }

/* ---------- Text fields ---------- */
.input, .fi, .ba-input, .om-name-input, .cpp-brief-input, .cpp-new-dlv-input, .bulk-field-select, .bulk-select, .pref-select,
.ct-filter-selects select, .modal-b select, .ct-modal select, .ct-modal input:not([type=checkbox]):not([type=color]):not([type=file]),
.modal-b input:not([type=checkbox]):not([type=color]):not([type=file]):not([type=range]) {
  height: 38px; padding: 0 12px; border-radius: 9px;
  background: var(--ctl-bg); border: 1px solid var(--ctl-line); color: var(--ink);
  font: 400 13.5px/1.2 var(--f-body); letter-spacing: 0; box-shadow: none; outline: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
}
textarea.input, .modal-b textarea, .ct-modal textarea, textarea.fi {
  height: auto; min-height: 88px; padding: 10px 12px; line-height: 1.55; resize: vertical;
  background: var(--ctl-bg); border: 1px solid var(--ctl-line); border-radius: 9px; color: var(--ink); font: 400 13.5px/1.55 var(--f-body);
}
.input:hover, .fi:hover, .pref-select:hover, .ct-filter-selects select:hover, .modal-b select:hover, textarea.input:hover { border-color: var(--ctl-line-hover); }
.input:focus, .fi:focus, .ba-input:focus, .pref-select:focus, .ct-filter-selects select:focus, .modal-b select:focus, .modal-b input:focus,
.ct-modal input:focus, .ct-modal select:focus, textarea.input:focus, .modal-b textarea:focus, .ct-modal textarea:focus, .cpp-brief-input:focus, .cpp-new-dlv-input:focus {
  border-color: var(--ctl-focus); box-shadow: var(--ctl-ring); background: var(--ctl-bg);
}
.input::placeholder, .fi::placeholder, textarea::placeholder, input::placeholder { color: var(--ink-4); opacity: 1; }
input[type=date].input, input[type=time].input, .modal-b input[type=date], .modal-b input[type=time] { font-variant-numeric: tabular-nums; }
::-webkit-calendar-picker-indicator { opacity: .6; cursor: pointer; }
::-webkit-calendar-picker-indicator:hover { opacity: 1; }

/* selects: one chevron everywhere */
select.input, .v-sel, .pref-select, .ct-filter-selects select, .modal-b select, .ct-modal select, .bulk-field-select, .bulk-select {
  -webkit-appearance: none; appearance: none; padding-right: 34px; cursor: pointer;
  background-image: var(--chev); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px;
}
.v-sel-wrap::after, .v-sel-wrap svg { display: none !important; }
select option { background: var(--panel); color: var(--ink); }
.ct-filter-selects select { height: 32px; font-size: 12.5px; padding-left: 10px; }

/* search fields */
.searchbar, .ct-search-wrap, .lk-search-wrap {
  background: var(--ctl-bg); border: 1px solid var(--ctl-line); border-radius: 9px; transition: border-color .15s, box-shadow .15s;
}
.searchbar:hover, .ct-search-wrap:hover, .lk-search-wrap:hover { border-color: var(--ctl-line-hover); }
.searchbar:focus-within, .ct-search-wrap:focus-within, .lk-search-wrap:focus-within { border-color: var(--ctl-focus); box-shadow: var(--ctl-ring); }
.ct-search-wrap input, .lk-search-wrap input, .searchbar input { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.searchbar kbd, .pp-kbd, kbd { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); background: transparent; border: 1px solid var(--ctl-line); border-radius: 5px; padding: 1px 6px; box-shadow: none; }

/* labels */
.field-lbl, .modal-b label.field-lbl { display: block; font: 500 12.5px/1.2 var(--f-body); color: var(--ink-3); margin-bottom: 8px; letter-spacing: 0; text-transform: none; }

/* ---------- Checkbox · colour ---------- */
input[type=checkbox]:not(.sr-only):not([hidden]) {
  -webkit-appearance: none; appearance: none; width: 17px; height: 17px; flex: none; margin: 0; cursor: pointer;
  border: 1.5px solid var(--ink-4); border-radius: 5px; background: transparent; display: inline-grid; place-content: center; vertical-align: middle;
  transition: background .15s, border-color .15s;
}
input[type=checkbox]:not(.sr-only):hover { border-color: var(--ink-2); }
input[type=checkbox]:not(.sr-only):checked { background: var(--ink) var(--tick) center / 11px no-repeat; border-color: var(--ink); }
input[type=checkbox]:not(.sr-only):focus-visible { outline: 2px solid var(--ctl-focus); outline-offset: 2px; }
.rm-notify-lbl { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 12px; border: 1px solid var(--ctl-line); border-radius: 9px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
input[type=color], .om-color { -webkit-appearance: none; appearance: none; width: 40px; height: 38px !important; padding: 4px !important; border: 1px solid var(--ctl-line); border-radius: 9px; background: var(--ctl-bg); cursor: pointer; }
input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
input[type=color]::-webkit-color-swatch { border: 0; border-radius: 6px; }

/* ---------- Segmented controls ---------- */
.seg, .pref-seg, .rm-tabs, .tr-acct-tabs, .cpp-tabs, .ct-view-toggle, #plannerToggle, .view-toggle {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  background: var(--ctl-bg); border: 1px solid var(--ctl-line); border-radius: 10px; box-shadow: none;
}
.seg { display: flex; }
.seg button, .pref-seg-btn, .rm-tab, .tr-acct-tab, .cpp-tab, .ct-view-btn, #plannerToggle button {
  height: 30px; padding: 0 12px; border-radius: 7px; border: 0; background: transparent; box-shadow: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: 500 12.5px/1 var(--f-body); letter-spacing: 0; color: var(--ink-3); white-space: nowrap;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.seg button svg, .rm-tab svg, #plannerToggle button svg { width: 14px; height: 14px; }
.seg button:hover, .pref-seg-btn:hover, .rm-tab:hover, .tr-acct-tab:hover, .ct-view-btn:hover, #plannerToggle button:hover { color: var(--ink); background: transparent; }
.seg button.on, .seg button.active, .pref-seg-btn.active, .rm-tab.active, .rm-tab.on, .tr-acct-tab.active, .tr-acct-tab.on,
.cpp-tab.active, .ct-view-btn.active, .ct-view-btn.on, #plannerToggle button.on, #plannerToggle button.active {
  background: var(--elevated); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
:root[data-theme="light"] .seg button.on, :root[data-theme="light"] .pref-seg-btn.active, :root[data-theme="light"] #plannerToggle button.on,
:root[data-theme="light"] .rm-tab.active, :root[data-theme="light"] .cpp-tab.active { background: #fff; box-shadow: 0 1px 2px rgba(20,18,10,.12); }
:root[data-theme="light"] .seg, :root[data-theme="light"] .pref-seg, :root[data-theme="light"] #plannerToggle, :root[data-theme="light"] .rm-tabs { background: var(--elevated); border-color: transparent; }

/* ---------- Chips (filters) ---------- */
.chip, .suggest-chip, .rm-chip, .org-chip, .tool-cat, .tl-cat {
  height: 30px; padding: 0 12px; border-radius: 999px; gap: 6px;
  background: transparent; border: 1px solid var(--ctl-line); color: var(--ink-2);
  font: 500 12.5px/1 var(--f-body); letter-spacing: 0; box-shadow: none; transition: background .15s, border-color .15s, color .15s;
}
.chip:hover, .suggest-chip:hover, .org-chip:hover { border-color: var(--ctl-line-hover); color: var(--ink); background: transparent; }
.chip.active, .chip.on, .suggest-chip.active, .org-chip.active, .org-chip.on { background: var(--ink); border-color: var(--ink); color: var(--on-accent); }
.chip.active svg, .chip.on svg { color: var(--on-accent); }
.chip svg { width: 13px; height: 13px; }
.suggest-chip { font-family: var(--f-body); height: 28px; }
.rm-chip { height: 22px; padding: 0 8px; font-size: 11.5px; border-radius: 6px; }
.rm-chip--task { color: var(--st-pub); } .rm-chip--deadline { color: var(--urgent); } .rm-chip--link { color: var(--ink-3); }

/* ---------- Toggles ---------- */
.toggle, .pref-toggle {
  width: 36px; height: 20px; border-radius: 999px; background: var(--elevated); border: 1px solid var(--ctl-line); position: relative; cursor: pointer; flex: none;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.toggle::after, .pref-toggle-thumb {
  content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-3);
  transition: transform .2s var(--ease), background .2s var(--ease); box-shadow: none;
}
.toggle.on, .pref-toggle.on { background: var(--ink); border-color: var(--ink); }
.toggle.on::after, .pref-toggle.on .pref-toggle-thumb { transform: translateX(16px); background: var(--panel); }

/* ---------- Swatches · misc ---------- */
.pref-accent-swatch.active, .pref-grad-swatch.active { border-color: var(--ink); box-shadow: 0 0 0 2px var(--panel); }
.pp-status-btn, .pp-so-btn { border-radius: 8px; font-family: var(--f-body); }
.pp-status-btn.active, .pp-so-btn.active { background: var(--elevated); color: var(--ink); }
.tbadge, .badge { font-family: var(--f-body); letter-spacing: 0; text-transform: none; border-radius: 6px; }
.ct-stat-chip { background: transparent; border: 0; }
.ct-chip-num { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; }
.ct-chip-lbl { font-size: 11.5px; color: var(--ink-4); letter-spacing: 0; text-transform: none; }
.cpp-brief-save-btn, .cpp-add-dlv-btn { border-radius: 8px; font-family: var(--f-body); }
.collapse-btn { border-radius: 8px; border-color: var(--ctl-line); background: transparent; }
.collapse-btn:hover { background: var(--elevated); }
[data-tip]::after, .tooltip { font-family: var(--f-body) !important; letter-spacing: 0 !important; text-transform: none !important; background: var(--elevated) !important; color: var(--ink) !important; border: 1px solid var(--line-2) !important; border-radius: 7px !important; }
.ct-filter-selects select { height: 36px; font-size: 13px; }
.ct-more-menu, .sort-dd, .dd-menu, .dropdown-menu { background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.5); padding: 4px; }
.ct-more-menu button, .dd-menu button, .dropdown-menu button { border-radius: 8px; font-size: 13px; color: var(--ink-2); }
.ct-more-menu button:hover, .dd-menu button:hover, .dropdown-menu button:hover { background: var(--elevated); color: var(--ink); }
.ct-stats-bar { gap: 6px; }
.ct-stat-sep { background: var(--line); }

/* =====================================================================
   PLANNER · READABILITY PASS
   ===================================================================== */
#plannerToggle { width: auto; }
.pl-acct-sel { width: auto; min-width: 150px; height: 30px !important; font-size: 12.5px !important; border-radius: 999px !important; padding-left: 12px !important; }
.pl-acct-sel.on { background-color: var(--ink); color: var(--on-accent); border-color: var(--ink); }

/* week: time first, calmer meta, state hierarchy */
.cw-ev .ev-top { display: flex; align-items: center; gap: 7px; }
.cw-ev .ev-time { order: -1; font: 600 11.5px/1 var(--f-mono); color: var(--ink); }
.cw-ev .ev-ttl { font-size: 13px; }
.cw-sep { font-size: 11px; font-weight: 500; color: var(--ink-4); padding: 6px 2px 0; }
.cw-ev.st-pub, .post.st-pub { background: transparent; }
.cw-ev.st-pub .ev-ttl, .cw-ev.st-idea .ev-ttl { color: var(--ink-3); font-weight: 400; }
.cw-ev.st-pub .ev-time { color: var(--ink-4); }
.cw-ev.st-review { border-color: color-mix(in srgb, var(--st-review) 35%, var(--line)); }
.cw-ev.soon, .pll-row.soon { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 55%, transparent); }
.cw-ev.soon .ev-time::after, .pll-row.soon .pll-time::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--ink); vertical-align: middle; animation: omLive 1.8s ease-out infinite; color: var(--ink); }

/* compact density (Preferences › Density) */
body.density-compact .cw-ev.post-ev { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 6px; align-items: center; padding: 6px 8px; }
body.density-compact .cw-ev.post-ev .ev-top { margin: 0; }
body.density-compact .cw-ev.post-ev .ev-top .ev-acc { width: 8px; overflow: hidden; gap: 0; font-size: 0; }
body.density-compact .cw-ev.post-ev .ev-ttl { -webkit-line-clamp: 1; font-size: 12.5px; }
body.density-compact .cw-ev.post-ev .ev-foot { display: none; }
body.density-compact .pll-row { min-height: 38px; padding-top: 4px; padding-bottom: 4px; }

/* list view */
.pll { display: flex; flex-direction: column; gap: 14px; }
.pll-day { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; scroll-margin-top: 12px; }
.pll-h { display: flex; align-items: baseline; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.pll-h b { font-size: 14px; font-weight: 600; }
.pll-h span { font-size: 12px; color: var(--ink-4); }
.pll-day.is-today .pll-h b::after { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); margin-left: 8px; vertical-align: middle; }
.pll-row {
  display: grid; grid-template-columns: 58px 130px minmax(0,1fr) 84px 118px 22px; gap: 14px; align-items: center;
  width: 100%; min-height: 48px; padding: 6px 18px; border-top: 1px solid var(--line); text-align: left; font-size: 13.5px; color: var(--ink);
}
.pll-h + .pll-row { border-top: 0; }
button.pll-row:hover { background: rgba(255,245,230,.025); }
.pll-time { font: 600 12.5px/1 var(--f-mono); color: var(--ink); }
.pll-title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pll-row .ev-chs { justify-content: flex-start; }
.pll-row.st-pub .pll-title, .pll-row.st-idea .pll-title { color: var(--ink-3); font-weight: 400; }
.pll-row.st-pub .pll-time { color: var(--ink-4); }
.pll-match { grid-template-columns: 58px 8px minmax(0,1fr); background: var(--gc-bg); }
.pll-match .pll-title { font-weight: 600; }
.pll-empty { padding: 14px 18px; font-size: 12.5px; color: var(--ink-4); }
.pll-empty.big { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; text-align: center; }
:root[data-theme="light"] button.pll-row:hover { background: rgba(20,18,10,.03); }

/* hover preview */
#plPeek {
  position: fixed; z-index: 400; width: 320px; padding: 14px 16px; pointer-events: none;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease;
}
#plPeek.on { opacity: 1; transform: none; }
#plPeek .pk-top { display: flex; align-items: center; gap: 8px; }
#plPeek .pk-when { font: 11.5px/1 var(--f-mono); color: var(--ink-3); }
#plPeek .pk-title { margin-top: 10px; font-size: 14.5px; font-weight: 600; line-height: 1.35; letter-spacing: -0.005em; }
#plPeek .pk-body { margin-top: 8px; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
#plPeek .pk-body.muted { color: var(--ink-4); font-style: italic; }
#plPeek .pk-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
#plPeek .pk-who { font-size: 12px; color: var(--ink-3); }
#plPeek .ev-st i { background: var(--st-idea); }
#plPeek.st-draft .ev-st i { background: var(--st-draft); } #plPeek.st-review .ev-st i { background: var(--st-review); }
#plPeek.st-sched .ev-st i { background: var(--st-sched); } #plPeek.st-pub .ev-st i { background: var(--st-pub); }
:root[data-theme="light"] #plPeek { box-shadow: 0 20px 50px rgba(30,26,14,.18); }

/* month: matches + counts per status */
button.cal-cell { display: flex; flex-direction: column; gap: 5px; align-items: stretch; text-align: left; font: inherit; color: inherit; cursor: pointer; }
button.cal-cell:hover { background: rgba(255,245,230,.025); }
button.cal-cell:not(.has) { cursor: default; }
.cal-counts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding: 2px 4px; }
.cal-counts .cc { display: inline-flex; align-items: center; gap: 5px; font: 600 12px/1 var(--f-body); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cal-counts .cc i { width: 7px; height: 7px; border-radius: 50%; background: var(--st-idea); }
.cc.st-draft i { background: var(--st-draft); } .cc.st-review i { background: var(--st-review); }
.cc.st-sched i { background: var(--st-sched); } .cc.st-pub i { background: var(--st-pub); }
.cal-ev.match { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.planner-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 16px; }
.pl-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pl-filters #channelFilter { gap: 6px; }
.cw-ev .ev-top { justify-content: flex-start; }
.cw-ev .ev-top > * { margin-left: 0 !important; margin-right: 0 !important; } .cw-ev .ev-top .ev-acc { flex: 0 1 auto; min-width: 0; }

/* #####################################################################
   IDENTIDAD D · v2 — shell, page headers, Resumen, Partidos, Contactos, Marca
   ##################################################################### */
/* shell */
.team-presence { display: none !important; }
.topbar .titles, .topbar-hud { display: none !important; }
.topbar { height: 56px; padding: 0 20px 0 32px; }
.topbar .searchbar { order: -1; width: 360px; margin-right: auto; }
.tb-presence { display: flex; align-items: center; gap: 8px; margin-right: 4px; }
.tbp-avs { display: flex; padding-left: 7px; }
.tbp-av { width: 24px; height: 24px; border-radius: 50%; margin-left: -7px; border: 2px solid var(--panel); display: grid; place-items: center; font-size: 9px; font-weight: 700; color: #0a0a09; filter: saturate(.7); }
.tbp-n { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.sb-match { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 0; width: 100%; margin-bottom: 12px; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-align: left; color: var(--ink); cursor: pointer; }
.sb-match:hover { border-color: var(--line-strong); }
.sbm-disc { position: absolute; right: -34px; bottom: -44px; width: 104px; height: 104px; border-radius: 50%; background: var(--gc); }
.sbm-top { position: relative; display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ink-3); }
.sbm-top .om-live { width: 6px; height: 6px; }
.sbm-opp { position: relative; margin-top: 6px; font-family: var(--f-serif); font-style: italic; font-size: 21px; line-height: 1.05; }
.sbm-cd { position: relative; margin-top: 10px; font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sbm-cd b { font-weight: 700; }
body[data-view="overview"] .sb-match { display: none; }
.profile .avatar { width: 30px; height: 30px; }

/* page header */
.ph { display: flex; align-items: flex-end; gap: 28px; padding: 4px 0 22px; }
.ph:empty { display: none; }
.ph-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ph-eyebrow { font-size: 12.5px; color: var(--ink-4); }
.ph-title { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(44px, 4.4vw, 60px); line-height: .95; letter-spacing: -0.01em; }
.ph-sub { font-size: 13.5px; color: var(--ink-3); }
.ph .btn.gold { height: 38px; padding: 0 16px; font-size: 13.5px; border-radius: 10px; margin-bottom: 2px; }
.ph-cd { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ph-cd-l { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-3); }
.ph-cd-l .om-live { width: 7px; height: 7px; }
.ph-cd-v { display: flex; align-items: baseline; font-family: var(--f-display); font-weight: 700; font-size: 56px; line-height: .9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ph-cd-v b { font-weight: 700; }
.ph-cd-v > i { font-style: normal; color: var(--gc); }
.ph-cd-v .nxm-u i { font-style: normal; font-size: 20px; color: var(--gc); margin: 0 10px 0 2px; }
.ph-nums { display: flex; gap: 30px; align-items: flex-end; }
.ph-nums > div { display: flex; flex-direction: column; gap: 5px; }
.ph-nums b { font-family: var(--f-display); font-weight: 700; font-size: 46px; line-height: .9; letter-spacing: -0.035em; }
.ph-nums span { font-size: 12px; color: var(--ink-3); }
.ph-nums .warn b { color: var(--st-review); }

/* Resumen */
.ov-top { display: grid; grid-template-columns: minmax(0,1fr) minmax(420px, 540px); gap: 22px; align-items: stretch; margin-bottom: 30px; }
.ov-greet { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 6px; }
.og-title { margin-top: 10px; font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(48px, 5vw, 68px); line-height: .95; letter-spacing: -0.01em; }
.og-sub { margin-top: 18px; font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 48ch; }
.og-sub b { color: var(--ink); font-weight: 600; }
.og-date::first-letter { text-transform: uppercase; }
.om-card { min-height: 300px; border-radius: 18px; }
.om-card .om-body { max-width: 62%; padding: 20px 22px; }
.om-card .om-greet, .om-card .om-prog, .om-card .om-caption, .om-card .om-crests, .om-card .om-watch, .om-card .spacer { display: none; }
.om-card .om-title { font-size: 42px; margin-top: 22px; }
.om-card .om-cd-v { font-size: 36px; }
.om-card .om-disc { width: 380px; height: 380px; right: -60px; bottom: -150px; }
.om-card .om-player { height: 285px; max-height: none; }
#ovPulse.pl-card { background: transparent; border: 0; padding: 0; margin-bottom: 30px; }
#ovPulse .pl-head h3 { font-size: 15px; }
.ov-mid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 44px; margin-bottom: 34px; }
.ov-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.ov-h h2 { font-size: 15px; font-weight: 600; letter-spacing: -0.005em; }
.ov-h > span { font-size: 12.5px; color: var(--ink-4); }
.att-row { display: grid; grid-template-columns: 10px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.att-dot { width: 7px; height: 7px; border-radius: 50%; }
.att-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.att-t { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-s { font-size: 12px; color: var(--ink-3); }
.wk-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.wk-main { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.wk-num { display: flex; align-items: baseline; gap: 10px; }
.wk-num b { font-family: var(--f-display); font-weight: 700; font-size: 32px; line-height: 1; letter-spacing: -0.03em; }
.wk-num em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.wk-num em.up { color: var(--st-pub); }
.wk-l { font-size: 12px; color: var(--ink-3); }
#view-overview #ovMetrics { display: none; }

/* Partidos */
#view-games #nextMatch { display: none; }
#view-games #addGameBtn { display: none; }
#view-games > .row { padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 0 !important; }
.gc-body { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 44px; }
.gc-main > .section-h { display: none; }
.gc-rail { padding-top: 22px; }
#matchList { gap: 0; }
.ag-day { background: transparent; border: 0; border-radius: 0; overflow: visible; }
.ag-day-h { border: 0; padding: 20px 0 8px; }
.ag-day-h b { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 26px; letter-spacing: 0; }
.ag-day-h span { font-size: 12.5px; }
.ag-day.is-today .ag-day-h b::after { display: none; }
.ag-row { padding: 12px 0; grid-template-columns: 70px 4px minmax(0,1.3fr) minmax(0,1fr) 90px auto; gap: 18px; }
.ag-day-h + .ag-row { border-top: 1px solid var(--line); }
.ag-row:hover { background: transparent; }
.ag-time { font-size: 24px; letter-spacing: -0.03em; }
.ag-bar { width: 4px; height: 38px; border-radius: 4px; }
.ag-opp { font-size: 16px; }
.ag-teams .gc-crest { display: none; }
#resultsList { display: flex; flex-direction: column; gap: 0; }
.rs-row { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 11px 0; grid-template-columns: 30px minmax(0,1fr) auto; gap: 12px; }
.rs-res { width: 30px; height: 30px; border-radius: 8px; font-size: 13px; }
.rs-score { font-size: 20px; }

/* Contactos */
#view-contacts .ct-stats-bar { display: none; }
#view-contacts .ct-table-wrap, #view-contacts .ct-table-card { background: transparent; border: 0; }
#view-contacts table thead th, #view-contacts .ct-th { background: transparent !important; border-bottom: 1px solid var(--line) !important; font-size: 12px; font-weight: 500; color: var(--ink-4); letter-spacing: 0; text-transform: none; }
#view-contacts table tbody tr { border-bottom: 1px solid var(--line); }
#view-contacts table tbody tr:hover { background: rgba(255,245,230,.025); }

/* Marca */
#view-brand #brandTabs + .spacer + #brandBookBtn { }
#view-brand .brand-assistant { background: transparent; border: 0; padding: 0; box-shadow: none; }
#view-brand .brand-assistant > .row:first-child { display: none; }
#view-brand .ba-input { height: 64px; padding: 0 10px 0 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--ctl-line); }
#view-brand .ba-input > svg { display: none; }
#view-brand .ba-input input { font-family: var(--f-serif) !important; font-style: italic; font-size: 23px !important; color: var(--ink); background: transparent !important; border: 0 !important; box-shadow: none !important; height: auto !important; padding: 0 !important; }
#view-brand .ba-input input::placeholder { color: var(--ink-4); }
#view-brand .ba-input .btn { height: 42px; padding: 0 18px; font-size: 13.5px; border-radius: 11px; }
#view-brand .ba-suggest { margin-top: 12px; }

@media (max-width: 1100px) {
  .ov-top { grid-template-columns: 1fr; }
  .ov-mid, .gc-body { grid-template-columns: 1fr; }
  .ph { flex-wrap: wrap; }
}

#view-contacts .ct-toolbar .btn.gold, #view-contacts [onclick*="openContactModal"].btn.gold:not(#phAddContact) { display: none; }
#view-contacts [data-action="openContactModal"].btn.gold { display: none; }

/* ---------- Marca · assistant answer ---------- */
#baAnswer { margin-top: 28px; }
.ba-h { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 13px; color: var(--ink-3); }
.ba-h b { color: var(--ink); font-weight: 600; font-size: 14px; }
.ba-empty { padding: 20px 0; font-size: 13.5px; color: var(--ink-3); }
.ba-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.ba-game { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: transparent; text-align: left; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.ba-game:hover { border-color: var(--line-strong); background: rgba(255,245,230,.02); }
.ba-game-dot { position: absolute; right: -22px; top: -22px; width: 64px; height: 64px; border-radius: 50%; background: var(--gc); opacity: .9; }
.ba-game-n { font-family: var(--f-serif); font-style: italic; font-size: 24px; line-height: 1; }
.ba-game-m { font-size: 12px; color: var(--ink-3); }
.ba-game-m b { color: var(--st-review); font-weight: 600; }
.ba-cols { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.25fr) minmax(0,1fr); gap: 40px; }
.ba-sp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.ba-sp { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 9px; font-size: 12.5px; font-weight: 500; }
.ba-sp i { width: 8px; height: 8px; border-radius: 2px; background: var(--sc); }
.ba-rules { list-style: none; display: flex; flex-direction: column; }
.ba-rules li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.ba-rules li b { display: block; color: var(--ink); font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.ba-p { display: grid; grid-template-columns: 10px minmax(0,1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ba-p-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st-pub); margin-top: 6px; }
.ba-p.warn .ba-p-dot { background: var(--st-review); }
.ba-p-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ba-p-n { font-size: 14.5px; font-weight: 600; }
.ba-p-n em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--ink-4); margin-left: 8px; }
.ba-p-note { font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.ba-p-sp { font-size: 11.5px; color: var(--ink-4); }
.ba-checks { list-style: none; display: flex; flex-direction: column; }
.ba-chk { display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 11px; align-items: start; width: 100%; padding: 11px 0; border-top: 1px solid var(--line); text-align: left; font-size: 13px; line-height: 1.5; color: var(--ink); }
.ba-checks li:first-child .ba-chk { border-top: 0; }
.ba-box { width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--ink-4); box-sizing: border-box; margin-top: 1px; }
.ba-chk.on .ba-box { background: var(--ink) var(--tick) center / 11px no-repeat; border-color: var(--ink); }
.ba-chk.on > span:last-child { color: var(--ink-4); text-decoration: line-through; }
/* other brand panes: calmer */
#brandMatrix { background: transparent; }
#brandMatrix th { background: transparent !important; font-size: 12px; font-weight: 500; color: var(--ink-4); text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--line); }
#brandMatrix td { border-bottom: 1px solid var(--line); }
.player-card { background: transparent; border: 1px solid var(--line); border-radius: 14px; box-shadow: none; }
.player-card:hover { border-color: var(--line-strong); transform: none; }
.player-card .avatar.lg { box-shadow: none !important; }
@media (max-width: 1100px) { .ba-cols { grid-template-columns: 1fr; } }
#view-brand .ba-suggest { display: none; }

/* #####################################################################
   GRAFISMO (preview) — finalistas: disco | marco | nivel   (body[data-graphic])
   ##################################################################### */
@property --lvl { syntax: '<percentage>'; inherits: true; initial-value: 0%; }
.gx, .gx-dark { display: none; }
.gx { position: absolute; pointer-events: none; }
body:not([data-graphic="disco"]) :is(.om-disc, .sbm-disc, .ba-game-dot) { display: none; }
/* content wrappers for small cards */
.sb-match { padding: 0; }
.sbm-c { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; padding: 14px; }
.ba-game { padding: 0; }
.bag-c { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 18px; }

/* ── MARCO · the frame draws itself, a LED runs the perimeter while it's match day,
      the chip hangs from the top edge and the countdown sits in a broadcast "bug" ── */
body[data-graphic="marco"] .gx-frame { display: block; inset: 0; z-index: 2; }
.gx-frame svg { width: 100%; height: 100%; overflow: visible; }
.gx-frame rect { x: 4px; y: 4px; width: calc(100% - 8px); height: calc(100% - 8px); rx: 14px; fill: none; stroke-dasharray: 1; }
.gx-f { stroke: var(--gc); stroke-width: 8; }
.gx-led { stroke: #fff; stroke-width: 3; stroke-dasharray: .07 .93; opacity: .9; mix-blend-mode: soft-light; }
.sb-match .gx-frame rect, .ba-game .gx-frame rect { x: 2.5px; y: 2.5px; width: calc(100% - 5px); height: calc(100% - 5px); rx: 12px; }
.sb-match .gx-f, .ba-game .gx-f { stroke-width: 5; }
.sb-match .gx-led, .ba-game .gx-led { stroke-width: 2; }
body[data-graphic="marco"] :is(.om-enter, .gx-anim, .ba-game) .gx-f { animation: gxDraw 1.2s cubic-bezier(.6,0,.2,1) both; }
body[data-graphic="marco"] .gx-led { animation: gxRun 4.2s 1.2s linear infinite both; }
body[data-graphic="marco"] .ba-game .gx-led { display: none; }
@keyframes gxDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes gxRun { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
body[data-graphic="marco"] .om-card .om-body { z-index: 3; }
body[data-graphic="marco"] .om-card .om-chip { position: absolute; top: 0; left: 26px; height: 32px; padding: 0 14px; border-radius: 0 0 12px 12px; background: var(--gc); color: #140a04; font-weight: 600; }
body[data-graphic="marco"] .om-card .om-chip .om-live { background: #140a04 !important; color: #140a04 !important; }
body[data-graphic="marco"] .om-card .om-title { margin-top: 40px; }
body[data-graphic="marco"] .om-card .om-cd { position: absolute; left: 0; bottom: 0; padding: 12px 20px 14px 22px; background: var(--gc); color: #140a04; border-radius: 0 16px 0 14px; }
body[data-graphic="marco"] .om-card .om-cd-l { color: rgba(20,10,4,.7); }
body[data-graphic="marco"] .om-enter .om-chip { animation: gxDrop .6s .9s cubic-bezier(.2,.8,.2,1) both; }
body[data-graphic="marco"] .om-enter .om-cd { animation: gxBug .6s 1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes gxDrop { from { transform: translateY(-100%); } }
@keyframes gxBug { from { transform: translateY(100%); } }
body[data-graphic="marco"] .sbm-c .sbm-cd { color: var(--gc); }

/* ── NIVEL · liquid level = % of match content ready. Text is rendered twice and split
      at the waterline: light above, dark below, so it always reads. The surface ripples. ── */
body[data-graphic="nivel"] .gx-level { display: block; left: 0; right: 0; bottom: 0; height: var(--lvl); background: var(--gc); z-index: 0; }
.gx-wave { position: absolute; left: 0; bottom: calc(100% - 1px); width: 200%; height: 9px; fill: var(--gc); animation: gxWave 5s linear infinite; }   /* overlaps 1 px: no hairline between wave and fill */
@keyframes gxWave { to { transform: translateX(-50%); } }
.gx-level-l { position: absolute; left: 22px; top: 10px; font: 600 11.5px/1 var(--f-body); color: #140a04; white-space: nowrap; z-index: 3; }
body[data-graphic="nivel"] .gx-dark { display: flex; position: absolute; inset: 0; color: #140a04; clip-path: inset(calc(100% - var(--lvl)) 0 0 0); pointer-events: none; }
body[data-graphic="nivel"] .gx-lite { clip-path: inset(0 0 var(--lvl) 0); }
body[data-graphic="nivel"] .gx-dark :is(.om-cd-l, .om-vs, .ba-game-m, .sbm-top) { color: rgba(20,10,4,.7) !important; }
body[data-graphic="nivel"] .gx-dark .om-chip { background: rgba(20,10,4,.12); color: #140a04; }
body[data-graphic="nivel"] .gx-dark .ba-game-m b { color: #140a04; }
body[data-graphic="nivel"] .om-card .om-body.gx-dark { max-width: 62%; }
body[data-graphic="nivel"] :is(.om-enter, .gx-anim, .ba-game) { animation: gxLvl 1.5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes gxLvl { from { --lvl: 0%; } }
.om-card { transition: --lvl .8s cubic-bezier(.2,.8,.2,1); }
body[data-graphic="nivel"] .om-card .om-player { z-index: 1; }

/* switcher (preview only) */
#gxSwitch { position: fixed; z-index: 600; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 4px 4px 4px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0,0,0,.45); font-size: 12px; color: var(--ink-3); }
#gxSwitch > span { margin-right: 8px; }
#gxSwitch button { height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; color: var(--ink-2); }
#gxSwitch button:hover { color: var(--ink); background: var(--elevated); }
#gxSwitch button[aria-pressed="true"] { background: var(--ink); color: var(--on-accent); font-weight: 600; }
#gxSwitch .gx-x { width: 30px; padding: 0; color: var(--ink-4); }
@media (prefers-reduced-motion: reduce) { .gx, .gx *, .om-card, .gx-anim, .ba-game, .om-chip, .om-cd { animation: none !important; } }
body:not([data-graphic="nivel"]) .gx-dark { display: none !important; }
.om-card .om-chip { white-space: nowrap; max-width: calc(100% - 40px); overflow: hidden; text-overflow: ellipsis; }

/* competition icons (restored) */
.gico { width: 16px; height: 16px; object-fit: contain; flex: none; display: inline-block; vertical-align: -3px; }
.gico.sm { width: 14px; height: 14px; }
.gico-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gc); vertical-align: 1px; }
.cw-ev.match .gico { width: 18px; height: 18px; }
.un-opp .gico { margin-right: 8px; }
.chip .gico { margin-right: 2px; }
.ag-teams .gc-crest { display: grid !important; }
body:not([data-graphic="marco"]) .om-card .om-crests { display: inline-flex; }
.om-card .om-crests img:first-child { display: none; }
.om-card .om-crests img, .om-card .om-crests .om-crest-ini { width: 24px; height: 24px; }

/* Matches agenda: give team and competition room instead of truncating at desktop widths */
@media (min-width: 1101px) {
  .ag-row { grid-template-columns: 64px 4px minmax(170px,1.2fr) minmax(0,1fr) auto auto; gap: 14px; }
  .ag-comp .game-badge { white-space: nowrap; flex: none; }
  .ag-comp > span:last-child { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
}

/* Icons: Lucide set, one stroke weight everywhere (tiny glyphs get a touch more so they don't fade) */
svg:has(> use[href^="#i-"]) { stroke-width: 1.75 !important; }
.delta svg:has(> use[href^="#i-"]), svg[style*="width:12px"]:has(> use[href^="#i-"]) { stroke-width: 2.25 !important; }
svg[viewBox="0 0 24 24"][stroke="currentColor"] { stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Reminders: agenda rows (same language as Matches) ---------- */
.rm-section { margin-bottom: 8px; }
.rm-sec-h { display: flex; align-items: baseline; gap: 10px; padding: 20px 0 8px; margin: 0; color: var(--ink); font-size: 12.5px; }
.rm-sec-h b { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 26px; letter-spacing: 0; color: var(--ink); }
.rm-sec-count, .rm-section--rose .rm-sec-count, .rm-section--gold .rm-sec-count { background: transparent; border: 0; padding: 0; font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.rm-section--rose .rm-sec-h b { color: var(--urgent); }
.rm-section--rose .rm-sec-h, .rm-section--gold .rm-sec-h { color: var(--ink); }
.rm-list { gap: 0; border-bottom: 1px solid var(--line); }
.rm-card, .rm-card--high, .rm-card--medium, .rm-card.is-overdue {
  background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0;
  padding: 12px 4px 12px 0; gap: 14px;
}
.rm-card:hover { background: transparent; border-color: var(--line); }
.rm-card:hover .rm-title { color: var(--ink); }
.rm-toggle { margin-left: 0; width: 22px; height: 22px; border-color: var(--line-strong); }
.rm-toggle:hover { border-color: var(--ink); color: var(--ink); }
.rm-circle { display: none; }
.rm-title { font-size: 14.5px; margin-bottom: 6px; }
.rm-chip { background: transparent; border: 1px solid var(--line-2); color: var(--ink-3); }
.rm-chip--task, .rm-chip--deadline, .rm-chip--link { color: var(--ink-3); background: transparent; border-color: var(--line-2); }
.rm-chip--high { color: var(--urgent); border-color: color-mix(in srgb, var(--urgent) 35%, transparent); }
.rm-gdot { width: 7px; height: 7px; border-radius: 50%; background: var(--gc); display: inline-block; margin-right: 2px; }
.rm-date { font-size: 13px; color: var(--ink-2); padding-right: 0; min-width: 132px; text-align: right; }
.rm-date--overdue { color: var(--urgent); font-weight: 500; }

/* CPP Tracker: the page header carries the title; keep only the sync status from the module header */
.cpp-header .cpp-header-left { display: none; }
.cpp-header { justify-content: flex-end; border-bottom: 0; padding: 0; margin: -8px 0 12px; min-height: 0; }

/* ---------- Tools: grid of launch cards, monochrome brand marks ---------- */
.links-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; background: transparent; border: 0; }
.tool-card, .tool-card:last-child {
  display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 16px; min-height: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.tool-card:hover { background: var(--card); border-color: var(--line-2); }
.tool-card-hd { display: flex; align-items: center; gap: 12px; padding: 0; flex: none; }
.tool-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--elevated) !important; color: var(--ink); }
.tool-mark { width: 20px; height: 20px; }
.tool-favicon { width: 20px; height: 20px; filter: grayscale(1) contrast(1.1); opacity: .9; }
.tool-ico-init { font: 600 16px/1 var(--f-display); color: var(--ink-2) !important; }
.tool-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.tool-name { font-size: 14.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-cat-l { font-size: 12px; color: var(--ink-4); }
.tool-hd-acts { margin-left: auto; }
.tool-shortcuts { display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 2px; padding: 0; margin: 0 -8px; flex: 1; }
.tool-shortcut { border-radius: 8px; padding: 0 4px 0 0; height: auto; background: transparent; }
.tool-shortcut:hover { background: var(--hover); }
.shortcut-link { color: var(--ink-2); font-size: 13px; gap: 8px; padding: 7px 8px; }
.shortcut-link:hover { color: var(--ink); }
.sc-dot { display: none; }
.tool-add-sc { align-self: flex-start; margin: 0 -2px; border: 0; background: transparent; padding: 4px 2px; font-size: 12.5px; color: var(--ink-4); }
.tool-add-sc:hover { background: transparent; border: 0; color: var(--ink); }
.tool-card[data-drop="before"] { box-shadow: -3px 0 0 0 var(--ink); }
.tool-card[data-drop="after"]  { box-shadow: 3px 0 0 0 var(--ink); }
:root[data-theme="light"] .tool-ico { background: var(--card-2) !important; }
.tool-card { position: relative; }
.tool-hd-acts { position: absolute; top: 12px; right: 12px; padding-left: 8px; background: var(--card); }

/* ---------- Contacts: one toolbar row — search, filters, view, Manage menu ---------- */
.ct-controls { gap: 8px; margin-bottom: 16px; }
.ct-search-wrap { flex: 1 1 260px; max-width: 360px; height: 36px; }
.ct-filter-selects { display: flex; gap: 8px; }
.ct-org-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ct-org-btn { height: 36px; padding: 0 12px; gap: 7px; font-size: 13px; color: var(--ink-2); border-color: var(--ctl-line); border-radius: 9px; background: var(--ctl-bg); }
.ct-org-btn:hover { color: var(--ink); border-color: var(--ctl-line-hover); }
.ct-manage-btn { list-style: none; cursor: pointer; }
.ct-manage-btn::-webkit-details-marker { display: none; }
.ct-more-wrap { position: relative; }
.ct-more-menu { right: 0; left: auto; min-width: 210px; padding: 6px; border-radius: 12px; background: var(--elevated); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.ct-more-item { width: 100%; height: 34px; padding: 0 10px; gap: 10px; border-radius: 8px; font-size: 13px; color: var(--ink-2); }
.ct-more-item svg { width: 15px !important; height: 15px !important; opacity: .85; }
.ct-more-sep { height: 1px; background: var(--line); margin: 5px 4px; }
.ct-bulk-exit { display: none; }
#view-contacts.ct-bulk-on .ct-bulk-exit { display: inline-flex; color: var(--ink); border-color: var(--ink-4); }
.ct-view-btn { color: var(--ink-3); }
.ct-td-area { font-size: 13px; color: var(--ink-2); }
.ct-td-country { font-size: 13px; color: var(--ink-3); }
.ct-type-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; color: var(--ink-2); border: 1px solid var(--line-2); background: transparent; }

/* ---------- Brand Guides: neutral chrome, colour only where it carries meaning ---------- */
.sp-mark { width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; flex: none;
  font: 600 11px/1 var(--f-body); color: var(--ink-2); background: var(--elevated); position: relative; }
.sp-mark::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 8px; height: 8px; border-radius: 50%; background: var(--sp); box-shadow: 0 0 0 2px var(--card); }
.matrix-dot { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; background: transparent !important; color: var(--gc); }
.matrix-dot svg { width: 16px; height: 16px; stroke-width: 2.25 !important; }
.matrix-none { color: var(--ink-4); }
#brandMatrix th { font-size: 12px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; text-transform: none; }
#brandMatrix td { border-color: var(--line); }
.sp-chip { color: var(--ink-2) !important; background: transparent; border: 1px solid var(--line-2); gap: 6px; display: inline-flex; align-items: center; }
.sp-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--sp); flex: none; }
.player-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.player-card:hover { border-color: var(--line-2); }
.kit-ico { background: var(--elevated) !important; color: var(--ink-2) !important; }

/* ---------- AI Studio ---------- */
.gen-var { font-size: 13px; font-weight: 600; color: var(--ink); }
.gen-ch { display: inline-flex; align-items: center; color: var(--ink-3); }
.gen-card .cc { font-family: var(--f-body); color: var(--ink-4); }

/* ---------- Contacts managers: flat editable rows instead of a wall of boxes ---------- */
#areaList > div, #relacionList > div { margin-bottom: 0 !important; border-top: 1px solid var(--line); padding: 4px 0; }
#areaList > div:first-child, #relacionList > div:first-child { border-top: 0; }
#areaList .fi, #relacionList .fi { background: transparent !important; border-color: transparent !important; height: 34px; padding-left: 8px; }
#areaList .fi:hover, #relacionList .fi:hover { border-color: var(--ctl-line) !important; }
#areaList .fi:focus, #relacionList .fi:focus { border-color: var(--ctl-focus) !important; background: var(--ctl-bg) !important; }
#areaList button, #relacionList button { opacity: .55; border-radius: 6px; }
#areaList > div:hover button, #relacionList > div:hover button { opacity: 1; }
#areaList button:hover, #relacionList button:hover { color: var(--urgent) !important; }

/* Contacts quick filters (email / LinkedIn / Discord / X) on the legend row */
.ct-legend-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ct-quick { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.ct-quick .ct-stat-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-3); }
.ct-quick .ct-stat-chip:hover { color: var(--ink); border-color: var(--line-strong); background: transparent; }
.ct-quick .ct-stat-chip.active { color: var(--on-accent); background: var(--ink); border-color: var(--ink); }
.ct-quick .ct-stat-chip.active .ct-chip-ico, .ct-quick .ct-stat-chip.active .ct-chip-num { color: inherit; }
.ct-quick .ct-chip-num { font: 600 12.5px/1 var(--f-body); color: var(--ink-2); order: 2; }
.ct-quick .ct-chip-lbl { font-size: 12.5px; order: 1; }
.ct-quick .ct-chip-ico { order: 0; color: currentColor; }
.ct-quick .ct-stat-chip { flex-direction: row; min-width: 0; }
.ct-quick .ct-chip-ico { display: block; margin: 0; }
.ct-quick .ct-chip-lbl { margin: 0; color: inherit; }
.ct-quick .ct-stat-chip.active .ct-chip-lbl { color: inherit; }

/* ---------- Planner week: legibility pass ---------- */
/* today stands out; past days recede */
.cw-dh.today { background: var(--card); box-shadow: inset 0 -2px 0 var(--ink); }
.cw-col.today { background: var(--card); }
.cw-col.past .cw-ev.post-ev:not(.pub-mini), .cw-col.past .cw-ev.match { opacity: .72; }
.cw-col.past .cw-ev:hover { opacity: 1; }
/* card: time · account … status icon · owner on one line, title max 2 lines */
.cw-ev .ev-top { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.cw-ev .ev-top .spacer { flex: 1; }
.cw-ev .ev-top .avatar.xs { width: 18px; height: 18px; font-size: 8px; flex: none; }
.ev-sti { display: inline-grid; place-items: center; flex: none; color: var(--st-idea); }
.ev-sti svg { width: 13px; height: 13px; stroke-width: 2.1 !important; }
.st-draft .ev-sti { color: var(--st-draft); } .st-review .ev-sti { color: var(--st-review); }
.st-sched .ev-sti { color: var(--st-sched); } .st-pub .ev-sti { color: var(--st-pub); }
.cw-ev .ev-ttl { -webkit-line-clamp: 2; font-size: 13px; }
.cw-ev .ev-foot { margin-top: 6px; }
/* published: one quiet line each, grouped at the bottom of the day */
.cw-pubs { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; padding-top: 6px; border-top: 1px dashed var(--line-2); }
.cw-ev.pub-mini { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border: 0; background: transparent !important; border-radius: 6px; cursor: pointer; }
.cw-ev.pub-mini:hover { background: var(--hover) !important; }
.cw-ev.pub-mini svg { width: 12px; height: 12px; flex: none; color: var(--st-pub); stroke-width: 2.4 !important; }
.cw-ev.pub-mini .ev-ttl { -webkit-line-clamp: 1; font-size: 12px; color: var(--ink-3); font-weight: 400; }
/* now marker in today's column */
.cw-now { position: relative; height: 0; margin: 4px 0; border-top: 1.5px solid var(--urgent); }
.cw-now::before { content: ""; position: absolute; left: -4px; top: -4.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--urgent); }
.cw-now span { position: absolute; right: 0; top: -8px; font: 600 10px/1 var(--f-body); color: var(--urgent); background: var(--card); padding: 2px 4px; border-radius: 4px; }
.cw-ev .ev-time { white-space: nowrap; display: inline-flex; align-items: center; flex: none; }
.cw-ev .ev-top .ev-acc { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Planner month: real titles instead of bare counts */
.cal-cell { align-content: start; }
.cal-post { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 11.5px; line-height: 1.3; color: var(--ink-2); padding: 1px 0; }
.cal-post span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cal-post b { font-weight: 600; color: var(--ink); }
.cal-post svg { width: 11px; height: 11px; flex: none; color: var(--st-idea); stroke-width: 2.2 !important; }
.cal-post.st-draft svg { color: var(--st-draft); } .cal-post.st-review svg { color: var(--st-review); } .cal-post.st-sched svg { color: var(--st-sched); }
.cal-post.st-review span { color: var(--ink); }
.cal-more { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-4); margin-top: 1px; }
.cal-more svg { width: 11px; height: 11px; color: var(--st-pub); stroke-width: 2.4 !important; }

/* Planner list: status as icon + label, untimed says so, published sinks */
.pll-time.none { color: var(--ink-4); font-weight: 400; font-size: 11.5px; }
.pll-st { gap: 6px; }
.pll-st svg { width: 13px; height: 13px; color: var(--st-idea); stroke-width: 2.1 !important; }
.pll-row.st-draft .pll-st svg { color: var(--st-draft); } .pll-row.st-review .pll-st svg { color: var(--st-review); }
.pll-row.st-sched .pll-st svg { color: var(--st-sched); } .pll-row.st-pub .pll-st svg { color: var(--st-pub); }
.pll-row.st-pub .pll-title { color: var(--ink-3); }
.cal-grid, .cal-dow { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; }
.cal-cell { min-width: 0; overflow: hidden; }
.post .pf .when.overdue { color: var(--urgent); font-weight: 500; }

/* Planner toolbar: density toggle + status legend on demand */
.pl-density button { height: 30px; font-size: 12.5px; }
.pl-st-help { position: relative; }
.pl-st-help summary { list-style: none; cursor: pointer; gap: 6px; }
.pl-st-help summary::-webkit-details-marker { display: none; }
.pl-st-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 170px; padding: 8px; display: flex; flex-direction: column; gap: 2px;
  background: var(--elevated); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-lg); }
.pl-st-row { display: flex; align-items: center; gap: 9px; padding: 6px 8px; font-size: 13px; color: var(--ink-2); }
.pl-st-row svg { width: 14px; height: 14px; color: var(--st-idea); }
.pl-st-row.st-draft svg { color: var(--st-draft); } .pl-st-row.st-review svg { color: var(--st-review); }
.pl-st-row.st-sched svg { color: var(--st-sched); } .pl-st-row.st-pub svg { color: var(--st-pub); }
.planner-legend { position: relative; z-index: 20; }
/* compact week cards: time · account dot · status icon · title on one line */
body.density-compact .cw-ev.post-ev { display: flex; align-items: center; gap: 6px; padding: 6px 8px; }
body.density-compact .cw-ev.post-ev .ev-top { flex: none; gap: 5px; margin: 0; }
body.density-compact .cw-ev.post-ev .ev-top .spacer { display: none; }
body.density-compact .cw-ev.post-ev .ev-ttl { flex: 1; min-width: 0; -webkit-line-clamp: 1; font-size: 12.5px; }
body.density-compact .cw-ev.post-ev .ev-foot { display: none; }

/* ---------- Composer: two columns — writing on the left, scheduling on the right ---------- */
.modal.cp-modal { width: min(920px, calc(100vw - 32px)); max-width: none; }
.cp-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.cp-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cp-side { display: flex; flex-direction: column; gap: 2px; padding-left: 24px; border-left: 1px solid var(--line); }
.cp-side .field { margin-bottom: 12px; }
.cp-title-in { width: 100%; border: 0; background: transparent; color: var(--ink); font: 400 italic 28px/1.15 var(--f-serif); padding: 2px 0 6px; outline: none; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.cp-title-in::placeholder { color: var(--ink-4); }
.cp-title-in:focus { border-bottom-color: var(--ctl-focus); }
.cp-caption { border: 1px solid var(--ctl-line); border-radius: 12px; background: var(--ctl-bg); transition: border-color .15s; margin-bottom: 14px; }
.cp-caption:focus-within { border-color: var(--ctl-focus); box-shadow: var(--ctl-ring); }
.cp-caption textarea { display: block; width: 100%; border: 0; background: transparent; color: var(--ink); font: 400 14px/1.55 var(--f-body); padding: 14px 14px 8px; resize: vertical; min-height: 140px; outline: none; }
.cp-cap-foot { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); }
.cp-cap-foot .spacer { flex: 1; }
.cp-chs { display: flex; gap: 4px; }
.cp-ch { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-4); border: 1px solid transparent; background: transparent; cursor: pointer; }
.cp-ch svg { width: 15px; height: 15px; }
.cp-ch:hover { color: var(--ink-2); background: var(--hover); }
.cp-ch.on { color: var(--ink); background: var(--elevated); border-color: var(--line-2); }
.cp-count { font-size: 12px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.cp-count.over { color: var(--urgent); font-weight: 600; }
.cp-when { display: grid; grid-template-columns: 1fr 104px; gap: 8px; }
.cp-accts { display: flex; flex-wrap: wrap; gap: 5px; }
.cp-acct { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; color: var(--ink-3); background: transparent; border: 1px solid var(--line-2); cursor: pointer; }
.cp-acct i { width: 6px; height: 6px; border-radius: 50%; background: var(--acol); opacity: .5; }
.cp-acct:hover { color: var(--ink); border-color: var(--line-strong); }
.cp-acct.on { color: var(--on-accent); background: var(--ink); border-color: var(--ink); }
.cp-acct.on i { opacity: 1; box-shadow: 0 0 0 1.5px var(--ink); }
.cp-side .seg { display: flex; } .cp-side .seg button { flex: 1; }
.cp-ai { align-self: flex-start; }
.cp-del { color: var(--urgent) !important; }
@media (max-width: 760px) { .cp-body { grid-template-columns: 1fr; } .cp-side { padding-left: 0; border-left: 0; } }

/* ---------- Ideas ---------- */
.ideas-bar { display: flex; gap: 8px; margin-bottom: 18px; }
.ideas-bar .ct-search-wrap { flex: 0 1 360px; height: 36px; }
.ideas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; align-items: start; }
.idea-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); cursor: pointer; }
.idea-card:hover { border-color: var(--line-2); }
.idea-top { display: flex; align-items: center; gap: 8px; }
.idea-top .spacer, .idea-foot .spacer { flex: 1; }
.idea-title { font: 600 15px/1.35 var(--f-body); color: var(--ink); margin: 0; }
.idea-body { font-size: 13px; line-height: 1.5; color: var(--ink-3); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.idea-foot { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.idea-act { width: 30px; height: 30px; opacity: 0; transition: opacity .15s; }
.idea-card:hover .idea-act, .idea-act:focus-visible { opacity: 1; }
.ideas-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px 20px; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: var(--r-lg); text-align: center; }
.ideas-empty > svg { width: 26px; height: 26px; color: var(--ink-4); }
.modal .cp-title-in, .modal .cp-title-in:hover, .modal .cp-title-in:focus { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; box-shadow: none !important; height: auto !important; padding: 2px 0 8px !important; font: 400 italic 28px/1.15 var(--f-serif) !important; }
.modal .cp-title-in:focus { border-bottom-color: var(--ctl-focus) !important; }
.modal .cp-caption textarea, .modal .cp-caption textarea:focus { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.cp-when { grid-template-columns: minmax(0,1fr) 118px; }


/* ---------- Game palette v2: one distinct hue per title (VAL / LoL / CoD keep --val --lol --cod) ---------- */
:root { --g-les: #4fc8e8; --g-les-bg: rgba(79,200,232,.14); --g-les-glow: rgba(79,200,232,.22); --g-brawl: #f2cc4a; --g-brawl-bg: rgba(242,204,74,.14); --g-brawl-glow: rgba(242,204,74,.22); --g-marvel: #e5484d; --g-marvel-bg: rgba(229,72,77,.14); --g-marvel-glow: rgba(229,72,77,.22); --g-r6: #4cc38a; --g-r6-bg: rgba(76,195,138,.14); --g-r6-glow: rgba(76,195,138,.22); --g-eva: #f06bb4; --g-eva-bg: rgba(240,107,180,.14); --g-eva-glow: rgba(240,107,180,.22); --g-apex: #a57cf2; --g-apex-bg: rgba(165,124,242,.14); --g-apex-glow: rgba(165,124,242,.22); --g-wz: #8fa3b8; --g-wz-bg: rgba(143,163,184,.14); --g-wz-glow: rgba(143,163,184,.22); --g-tm: #2fc4b2; --g-tm-bg: rgba(47,196,178,.14); --g-tm-glow: rgba(47,196,178,.22); }
:root[data-theme="light"] { --g-les: #0e8fb0; --g-les-bg: rgba(14,143,176,.12); --g-brawl: #a07800; --g-brawl-bg: rgba(160,120,0,.12); --g-marvel: #c7353a; --g-marvel-bg: rgba(199,53,58,.12); --g-r6: #1f8a57; --g-r6-bg: rgba(31,138,87,.12); --g-eva: #c43a86; --g-eva-bg: rgba(196,58,134,.12); --g-apex: #6d4fd0; --g-apex-bg: rgba(109,79,208,.12); --g-wz: #5d7185; --g-wz-bg: rgba(93,113,133,.12); --g-tm: #0f8f80; --g-tm-bg: rgba(15,143,128,.12); }
.c-g-les { color: var(--g-les); } .bg-g-les { background: var(--g-les-bg); color: var(--g-les); }
.c-g-brawl { color: var(--g-brawl); } .bg-g-brawl { background: var(--g-brawl-bg); color: var(--g-brawl); }
.c-g-marvel { color: var(--g-marvel); } .bg-g-marvel { background: var(--g-marvel-bg); color: var(--g-marvel); }
.c-g-r6 { color: var(--g-r6); } .bg-g-r6 { background: var(--g-r6-bg); color: var(--g-r6); }
.c-g-eva { color: var(--g-eva); } .bg-g-eva { background: var(--g-eva-bg); color: var(--g-eva); }
.c-g-apex { color: var(--g-apex); } .bg-g-apex { background: var(--g-apex-bg); color: var(--g-apex); }
.c-g-wz { color: var(--g-wz); } .bg-g-wz { background: var(--g-wz-bg); color: var(--g-wz); }
.c-g-tm { color: var(--g-tm); } .bg-g-tm { background: var(--g-tm-bg); color: var(--g-tm); }
.idea-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--ink-2); font-size: 12.5px; text-decoration: none; max-width: 100%; }
.idea-link > svg:first-child { width: 14px; height: 14px; flex: none; }
.idea-link > svg:last-child { width: 12px; height: 12px; color: var(--ink-4); flex: none; }
.idea-link span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idea-link:hover { color: var(--ink); border-color: var(--line-strong); background: var(--hover); }

/* ---------- Commercial posts: outlined in the sponsor's colour + megaphone tag ---------- */
.cw-ev.post-ev.is-com, .post.is-com { border: 1.5px solid color-mix(in srgb, var(--sp) 75%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sp) 18%, transparent); }
.cw-ev.post-ev.is-com:hover, .post.is-com:hover { border-color: var(--sp); }
.pll-row.is-com { box-shadow: inset 2px 0 0 color-mix(in srgb, var(--sp) 80%, transparent); }
.ev-com { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px 0 6px; border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--ink); background: color-mix(in srgb, var(--sp, var(--ink-3)) 16%, transparent); border: 0; white-space: nowrap; }
.ev-com svg { width: 12px; height: 12px; color: var(--sp, var(--ink-2)); stroke-width: 2.1 !important; }
.post .ph { min-width: 0; }
.post .ph .avatar, .post .ph > .avatar { flex: none; }
.ev-com { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
.post .pf-com { margin: 8px 0 -2px; }

/* ---------- Sidebar brand: wordmark with the serif 'Hub', quiet collapse control ---------- */
.brand { gap: 10px; padding: 2px 4px 2px 6px; }
.brand-mark { width: 28px; height: 28px; }
.brand-text { gap: 1px; }
.brand-text .name { font: 600 15px/1.1 var(--f-body); letter-spacing: -0.01em; color: var(--ink); }
.brand-text .name em { font: 400 italic 19px/1 var(--f-serif); letter-spacing: 0; margin-left: 1px; }
.brand-text .sub { font-size: 11.5px; color: var(--ink-4); letter-spacing: 0; }
.collapse-btn { width: 30px; height: 30px; border: 0 !important; background: transparent !important; color: var(--ink-4); border-radius: 8px; }
.collapse-btn:hover { background: var(--hover) !important; color: var(--ink); }

/* ---------- Profile menu ---------- */
.pp-identity { gap: 12px; align-items: center; }
.pp-av { width: 40px; height: 40px; font-size: 14px; font-weight: 600; flex: none; position: relative; box-shadow: none !important; }
.pp-av-dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 2.5px var(--elevated); }
.pp-id-name { font: 600 14px/1.25 var(--f-body); letter-spacing: -0.005em; }
.pp-id-role { font-size: 12.5px; color: var(--ink-3); }
.pp-id-email, .pp-version { font-family: var(--f-body) !important; font-size: 12px !important; color: var(--ink-4); }

/* ---------- Preferences + reminder modal leftovers ---------- */
.pref-overlay .mono, .pref-card .mono, [class*="pref-"] .mono, .pref-member-email, .pref-row code { font-family: var(--f-body) !important; font-size: 12.5px !important; background: transparent !important; border: 0 !important; color: var(--ink-3); }
.rm-notify-lbl { position: static !important; height: 36px; border-radius: 9px; color: var(--ink-2); }
.rm-notify-lbl:has(input:checked) { border-color: var(--ink-4); color: var(--ink); background: var(--elevated); }
.rm-notify-lbl input { accent-color: var(--ink); }

/* ---------- Sidebar brand v2: single-line wordmark, logo tinted by today's match ---------- */
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; background: transparent !important; border: 0 !important; box-shadow: none !important; }
.brand-mark img { height: 26px; width: auto; }
.brand-text .name { font: 600 15px/1.2 var(--f-body); letter-spacing: -0.01em; color: var(--ink); }
.brand-text .name .hub { font-weight: 500; color: var(--ink-3); }
.md-preview { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; margin-right: 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--on-accent); background: var(--ink); text-decoration: none; }
.md-preview svg { width: 13px; height: 13px; }
.md-preview svg:last-child { opacity: .6; }
.md-preview:hover svg:last-child { opacity: 1; }

/* Overview: no fixtures on the calendar */
.om-empty { min-height: 300px; border-radius: 18px; border: 1px dashed var(--line-2); display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 10px; padding: 28px; background: var(--card); }
.om-empty-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--elevated); color: var(--ink-3); margin-bottom: auto; }
.om-empty-ico svg { width: 20px; height: 20px; }
.om-empty-t { font: 400 italic 34px/1.05 var(--f-serif); color: var(--ink); }
.om-empty-s { margin: 0; max-width: 420px; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }

/* day without a match */
.om-nextm { position: absolute; left: 22px; bottom: 16px; display: none; }
.om-content .om-body { position: relative; }
.om-content .om-nextm { display: flex; align-items: center; gap: 7px; position: static; margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }
.om-content .om-foot { margin-top: auto; }
.sbm-when { font-size: 16px !important; letter-spacing: -0.01em !important; }
.sb-match[hidden] { display: none !important; }
body[data-graphic="marco"] :not(.is-matchday) > .gx-frame .gx-led, body[data-graphic="marco"] .om-content .gx-led { display: none; }
#gxSwitch .gx-sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 8px; }
#gxSwitch button[data-sc][aria-pressed="true"] { background: var(--elevated); color: var(--ink); font-weight: 600; }

/* ======================= GAME CALENDAR v2 ======================= */
/* filters: every title (empty ones dimmed) + 'content pending' */
#gameFilter .chip-n { font-size: 11px; font-weight: 600; color: var(--ink-4); margin-left: 2px; }
#gameFilter .chip.active .chip-n { color: inherit; opacity: .7; }
#gameFilter .chip.is-empty { opacity: .45; }
#gameFilter .gc-f-sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 4px; align-self: center; }
#gameFilter .gc-pending svg { width: 13px; height: 13px; }
/* rows are clickable; progress bar replaces the icon pills */
.ag-row[data-mid] { cursor: pointer; border-radius: 10px; }
.ag-row[data-mid]:hover .ag-opp { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.ag-row[data-mid]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ag-prog2 { display: flex; align-items: center; gap: 10px; justify-self: end; }
.ag-bar2 { width: 72px; height: 5px; border-radius: 3px; background: var(--elevated); overflow: hidden; }
.ag-bar2 i { display: block; height: 100%; background: var(--gc); border-radius: 3px; }
.ag-prog2 .ag-count { display: inline-flex; align-items: center; gap: 4px; min-width: 38px; font: 600 12.5px/1 var(--f-body); color: var(--ink-3); }
.ag-prog2 .ag-count.full { color: var(--st-pub); }
.ag-prog2 .ag-count svg { width: 12px; height: 12px; }
/* crests without a logo: calm initials */
.gc-crest.ini { font: 600 10.5px/1 var(--f-body); color: var(--ink-2); background: var(--elevated); border-color: var(--line-2); }
/* recent results: crest, score, result in words */
.rs-row { grid-template-columns: 30px minmax(0,1fr) auto !important; }
.rs-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rs-score { font: 700 18px/1 var(--f-display); letter-spacing: -0.02em; color: var(--ink); }
.rs-res2 { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.rs-res2 svg { width: 11px; height: 11px; }
.rs-res2.w { color: var(--st-pub); } .rs-res2.l { color: var(--urgent); }
/* month view */
.gcm-bar { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; }
.gcm-bar b { font: 400 italic 26px/1 var(--f-serif); min-width: 200px; text-align: center; text-transform: capitalize; }
.gcm-dow, .gcm-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); }
.gcm-dow div { padding: 8px 10px; font-size: 12px; color: var(--ink-4); text-transform: capitalize; }
.gcm-grid { border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.gcm-cell { min-height: 104px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gcm-cell.dim { background: rgba(255,245,230,.012); }
.gcm-cell.today { background: var(--card); }
.gcm-cell.today .gcm-dn { color: var(--on-accent); background: var(--ink); }
.gcm-dn { align-self: flex-start; font: 600 12.5px/1 var(--f-body); color: var(--ink-3); padding: 4px 6px; border-radius: 6px; }
.gcm-ev { display: flex; align-items: center; gap: 5px; min-width: 0; padding: 4px 6px; border-radius: 7px; border: 1px solid color-mix(in srgb, var(--gc) 40%, transparent); background: var(--gc-bg); color: var(--ink); font-size: 11.5px; cursor: pointer; text-align: left; }
.gcm-ev b { font-weight: 600; flex: none; }
.gcm-ev span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gcm-ev .gico { width: 13px; height: 13px; flex: none; }
.gcm-ev.pending::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--st-review); margin-left: auto; flex: none; }
.gcm-ev:hover { border-color: var(--gc); }
/* match detail panel */
.mp-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 80; }
.mp-scrim.open { opacity: 1; pointer-events: auto; }
.mp { position: fixed; top: 8px; right: 8px; bottom: 8px; width: min(440px, calc(100vw - 16px)); z-index: 81; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-lg);
  transform: translateX(calc(100% + 24px)); transition: transform .28s cubic-bezier(.2,.8,.2,1); overflow-y: auto; display: flex; flex-direction: column; }
.mp.open { transform: none; }
@media (prefers-reduced-motion: reduce) { .mp { transition: none; } }
.mp-h { display: flex; align-items: center; gap: 8px; padding: 14px 14px 0 18px; }
.mp-h .spacer, .mp-item .spacer { flex: 1; }
.mp-comp { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-hero { padding: 18px 18px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--gc-bg), transparent); }
.mp-crests { display: flex; gap: 6px; margin-bottom: 12px; }
.mp-crests .gc-crest { width: 40px; height: 40px; display: grid !important; }
.mp-title { margin: 0; font: 400 italic 38px/1 var(--f-serif); color: var(--ink); }
.mp-when { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.mp-when svg { width: 14px; height: 14px; color: var(--ink-3); }
.mp-dot { color: var(--ink-4); }
.mp-sec { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.mp-sec-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.mp-sec-h b { font-size: 13.5px; font-weight: 600; } .mp-sec-h span { font-size: 12.5px; color: var(--ink-4); }
.mp-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.mp-item:first-of-type { border-top: 0; }
.mp-check { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: var(--on-accent); flex: none; cursor: pointer; background: transparent; }
.mp-check svg { width: 13px; height: 13px; stroke-width: 2.6 !important; }
.mp-item.done .mp-check { background: var(--st-pub); border-color: var(--st-pub); }
.mp-item.done .mp-name { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-4); }
.mp-ico svg { width: 15px; height: 15px; color: var(--ink-3); display: block; }
.mp-name { font-size: 13.5px; color: var(--ink); }
.mp-post { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line-2); background: transparent; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.mp-post svg { width: 12px; height: 12px; color: var(--st-idea); }
.mp-post.st-draft svg { color: var(--st-draft); } .mp-post.st-review svg { color: var(--st-review); } .mp-post.st-sched svg { color: var(--st-sched); } .mp-post.st-pub svg { color: var(--st-pub); }
.mp-lp { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 6px; border-radius: 8px; background: transparent; border: 0; text-align: left; cursor: pointer; color: var(--ink); }
.mp-lp:hover { background: var(--hover); }
.mp-lp-t { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-lp-w { font-size: 12px; color: var(--ink-4); white-space: nowrap; }
.mp-empty { margin: 0; font-size: 13px; color: var(--ink-4); }
#view-games.gc-month .gc-rail { display: none; }
#view-games.gc-month .gc-body { grid-template-columns: 1fr !important; display: block; }
/* match already under way: countdowns become a 'Live now' label */
body.match-live .ph-cd-v > *, body.match-live .sbm-cd:not(.sbm-when) > * { display: none; }
body.match-live .ph-cd-v::after, body.match-live .sbm-cd:not(.sbm-when)::after { content: var(--live-txt); display: inline-flex; align-items: center; }
body.match-live .ph-cd-v::after { font: 400 italic 52px/1 var(--f-serif); color: var(--gc, var(--ink)); }
body.match-live .ph-cd-v::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--urgent); margin-right: 14px; display: inline-block; vertical-align: middle; animation: omLive 1.6s ease-in-out infinite; }
body.match-live .sbm-cd:not(.sbm-when) { font-size: 0 !important; }
body.match-live .sbm-cd:not(.sbm-when)::after { font: 400 italic 24px/1 var(--f-serif); letter-spacing: 0; }
/* graphics-request deadline */
.mp-due { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.mp-due svg { width: 13px; height: 13px; }
.mp-due.over { color: var(--urgent); font-weight: 600; }
.ag-prog2 .ag-due { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--urgent); }
.ag-prog2 .ag-due svg { width: 12px; height: 12px; }
.ag-prog2.over .ag-bar2 i { background: var(--urgent); }
.mp-item { flex-wrap: wrap; row-gap: 2px; }
.mp-item .mp-due { flex-basis: 100%; order: 5; padding-left: 55px; }

/* ======================= AVATARS v2: palette fills ======================= */
.avatar { color: #0b0b0a !important; font-family: var(--f-body) !important; font-weight: 650; letter-spacing: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), inset 0 -8px 14px rgba(0,0,0,.10); text-shadow: none; }
:root[data-theme="light"] .avatar { box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }

/* ======================= PROFILE MENU v2 ======================= */
#profilePop { width: 272px; padding: 6px; border-radius: 14px; background: var(--elevated); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.pp-identity { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; }
.pp-av { width: 40px; height: 40px; font-size: 14px; }
.pp-id-name { font: 600 14px/1.25 var(--f-body); color: var(--ink); }
.pp-id-role { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.pp-status-area { padding: 0 4px 4px; }
.pp-status-trigger { width: 100%; display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font-size: 13px; cursor: pointer; }
.pp-status-trigger:hover { border-color: var(--line-strong); }
.pp-status-trigger > svg { width: 14px; height: 14px; margin-left: auto; color: var(--ink-4); }
.pp-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.pp-status-opts { margin-top: 4px; }
.pp-so-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; background: transparent; border: 0; color: var(--ink-2); text-align: left; cursor: pointer; }
.pp-so-btn:hover { background: var(--hover); color: var(--ink); }
.pp-so-btn > svg { width: 14px; height: 14px; margin-left: auto; color: var(--ink); }
.pp-so-label { font-size: 13px; } .pp-so-sub { font-size: 11.5px; color: var(--ink-4); }
#profilePop .pop-sep { height: 1px; background: var(--line); margin: 6px 4px; }
#profilePop .menu-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); }
#profilePop .menu-item:hover { background: var(--hover); color: var(--ink); }
#profilePop .menu-item > svg { width: 16px; height: 16px; color: var(--ink-3); }
.pp-kbd { margin-left: auto; font: 500 11px/1 var(--f-body); color: var(--ink-4); border: 1px solid var(--line-2); border-radius: 5px; padding: 3px 5px; background: transparent; }
.pp-theme .pref-toggle { margin-left: auto; pointer-events: none; transform: scale(.85); transform-origin: right center; }
.pp-logout:hover { color: var(--urgent) !important; } .pp-logout:hover svg { color: var(--urgent) !important; }
.sc-list { display: flex; flex-direction: column; }
.sc-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.sc-row:first-child { border-top: 0; }
.sc-keys { display: flex; gap: 4px; }
.sc-keys kbd { font: 600 11.5px/1 var(--f-body); color: var(--ink); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; padding: 5px 7px; background: var(--card); }

/* ======================= SETTINGS v2 ======================= */
.pref-sheet-title { font: 400 italic 22px/1 var(--f-serif) !important; }
.pref-rail-item { height: 34px; border-radius: 8px; font-size: 13.5px; }
.pref-id-card { display: flex; align-items: center; gap: 16px; padding: 16px; margin: 4px 0 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.pref-id-av { width: 56px; height: 56px; font-size: 19px; flex: none; }
.pref-id-name { font: 400 italic 26px/1.05 var(--f-serif); color: var(--ink); }
.pref-id-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.pref-av-row { display: flex; flex-wrap: wrap; gap: 7px; max-width: 250px; justify-content: flex-end; }
.pref-av-swatch { width: 24px; height: 24px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.pref-av-swatch.active { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--ink); }
.pref-st-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: 1px; }
.pref-block { padding: 16px 0; border-top: 1px solid var(--line); }
.pref-block .pref-desc { margin-bottom: 12px; }
.pref-gx { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.pref-gx-card { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); text-align: left; cursor: pointer; color: var(--ink); }
.pref-gx-card:hover { border-color: var(--line-strong); }
.pref-gx-card.active { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pref-gx-name { font-size: 13.5px; font-weight: 600; margin-top: 6px; display: flex; align-items: baseline; gap: 6px; }
.pref-gx-name small { font-size: 11px; font-weight: 500; color: var(--ink-4); }
.pref-gx-desc { font-size: 12px; line-height: 1.4; color: var(--ink-3); }
/* mini previews of the three graphic styles */
.gxp { position: relative; height: 70px; border-radius: 9px; overflow: hidden; background: var(--bg-2); --c: var(--val); display: block; }
.gxp b { position: absolute; left: 9px; top: 9px; font: 400 italic 15px/1 var(--f-serif); color: var(--ink); z-index: 2; }
.gxp em { position: absolute; left: 9px; bottom: 8px; font: 700 13px/1 var(--f-display); font-style: normal; color: var(--ink); z-index: 2; }
.gxp i { position: absolute; display: block; }
.gxp-nivel i { left: 0; right: 0; bottom: 0; height: 58%; background: var(--c); }
.gxp-nivel i::before { content: ""; position: absolute; left: 0; right: 0; top: -5px; height: 10px; background: radial-gradient(circle at 10px -2px, transparent 8px, var(--c) 8.5px) 0 0 / 20px 10px repeat-x; }
.gxp-nivel em { color: #0b0b0a; }
.gxp-disco i { right: -14px; top: 50%; width: 64px; height: 64px; border-radius: 50%; transform: translateY(-50%); background: var(--c); }
.gxp-marco { box-shadow: inset 0 0 0 1.5px var(--c); }
.gxp-marco i { top: 0; left: 50%; width: 30px; height: 5px; transform: translateX(-50%); background: var(--c); border-radius: 0 0 4px 4px; }
.pref-sc { display: grid; gap: 8px; }
.pref-sc-opt { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); text-align: left; cursor: pointer; color: var(--ink); }
.pref-sc-opt b { font-size: 13.5px; font-weight: 600; } .pref-sc-opt span { font-size: 12.5px; color: var(--ink-3); }
.pref-sc-opt:hover { border-color: var(--line-strong); }
.pref-sc-opt.active { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pref-note { font-size: 12px; color: var(--ink-4); margin-top: 12px; }
/* My disciplines */
.pref-dis { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 4px; }
.pref-dis-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--card); }
.pref-dis-row:first-child { border-top: 0; }
.pref-dis-row.off { background: transparent; }
.pref-dis-row.off .pref-dis-name, .pref-dis-row.off .gico { opacity: .45; }
.pref-dis-rank { width: 20px; font: 700 13px/1 var(--f-display); color: var(--gc); text-align: center; }
.pref-dis-row.off .pref-dis-rank { color: var(--ink-4); }
.pref-dis-row .gico { width: 18px; height: 18px; }
.pref-dis-name { flex: 1; font-size: 13.5px; color: var(--ink); }
.pref-dis-move { display: flex; gap: 2px; }
.pref-dis-move .icon-btn { width: 28px; height: 28px; border: 0; background: transparent; }
.pref-dis-move .icon-btn:disabled { opacity: .2; pointer-events: none; }
.pref-dis-move .icon-btn svg { width: 14px; height: 14px; }

/* ── Content-day hero v2 (Nivel-first): the day's queue sits beside the headline ── */
.om-content .om-body { max-width: none !important; }
.om-cgrid { flex: 1; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,46%); gap: 20px; align-items: start; }
.om-cmain { display: flex; flex-direction: column; height: 100%; min-width: 0; }
.om-content .om-title { font-size: 40px; }
.om-q { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.om-q-row { display: grid; grid-template-columns: 38px 34px minmax(0,1fr) 14px; align-items: center; gap: 8px; min-height: 28px; font-size: 12.5px; color: var(--ink); border-top: 1px solid var(--line); }
.om-q-row:first-child { border-top: 0; }
.om-q-t { font: 500 11.5px/1 var(--f-mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.om-q-a { font-size: 10.5px; font-weight: 600; letter-spacing: .02em; color: var(--ac); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.om-q-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.om-q-s { width: 14px; height: 14px; color: var(--ink-3); }
.om-q-row.is-done { color: var(--ink-3); }
.om-q-row.is-done .om-q-n { text-decoration: line-through; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.om-q-row.is-done .om-q-a { color: inherit; }
.om-q-row.is-next .om-q-n { font-weight: 600; }
.om-q-row.is-next .om-q-s { color: var(--gc); }
.om-q-more { font-size: 11.5px; color: var(--ink-3); padding-top: 6px; }
.om-content .om-nextm b { font-weight: 600; color: var(--ink-2); }
.om-content .om-nextm .gico { width: 14px; height: 14px; }
/* Filled (Nivel) half: everything in ink-on-colour */
body[data-graphic="nivel"] .om-content .om-body.gx-dark { max-width: none; }
body[data-graphic="nivel"] .gx-dark :is(.om-nextm, .om-nextm b, .om-q-row, .om-q-t, .om-q-a, .om-q-s, .om-q-more) { color: #140a04 !important; }
body[data-graphic="nivel"] .gx-dark .om-q-row { border-top-color: rgba(20,10,4,.14); }
body[data-graphic="nivel"] .gx-dark .om-q-row.is-done { color: rgba(20,10,4,.6) !important; }
body[data-graphic="nivel"] .gx-dark .om-q-row.is-done :is(.om-q-t, .om-q-a, .om-q-s) { color: rgba(20,10,4,.55) !important; }
/* The level's own label would sit on top of the queue; the headline already says it */
.om-content .gx-level-l { display: none; }
.om-q-row { grid-template-columns: 38px 44px minmax(0,1fr) 14px; }
.om-q-row.is-todo .om-q-s { color: var(--st-review); }
.om-content .om-cd-l { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body[data-graphic="nivel"] .gx-dark .om-nextm :is(.gico, svg, img) { color: #140a04; filter: brightness(0) saturate(0); opacity: .8; }
body:not([data-graphic="nivel"]) .om-cd-lv { display: none; }

/* ── Day accent: neutral by default; on a match day every UI accent takes the game's colour ── */
:root { --day: var(--ink); --day-ink: var(--bg); --day-bg: var(--gold-bg, rgba(255,245,230,.06)); }
:root[data-day] {
  --day-ink: #0a0a09;
  --gold: var(--day); --gold-ink: var(--day); --gold-bg: var(--day-bg);
  --gold-soft: color-mix(in srgb, var(--day) 82%, #fff); --gold-deep: color-mix(in srgb, var(--day) 78%, #000);
  --on-accent: #0a0a09;
  --ctl-focus: color-mix(in srgb, var(--day) 75%, transparent);
  --ctl-ring: 0 0 0 3px color-mix(in srgb, var(--day) 18%, transparent);
}
:root[data-theme="light"][data-day] { --day-ink: #ffffff; --on-accent: #ffffff; }
::selection { background: var(--day); color: var(--day-ink); }
:focus-visible { outline-color: var(--day); }
input, textarea, [contenteditable] { caret-color: var(--day); }
.icon-btn .bell-count { background: var(--day); color: var(--day-ink); }
.icon-btn .dot { background: var(--day); }
.pl-key .k-match, :root[data-theme="light"] .pl-key .k-match { background: var(--day-bg); border-color: var(--day); }

/* ── bloop signature (Settings rail foot) ── */
bloop-signature { --bloop-muted: var(--ink-4); }
.pref-rail { display: flex; flex-direction: column; }
.pref-rail-sign { margin-top: auto; padding: 16px 10px 4px; display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: var(--ink-4); }
.pref-rail-sign bloop-signature { --bloop-size: 11.5px; }
:root[data-day] .gxp { --c: var(--day); }

/* ── Overview quick links v2: same language as Tools (monochrome marks, quiet rows) ── */
#ovQuickLinks.qlinks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.ql2 { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px 8px 8px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); text-decoration: none; font: inherit; text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
.ql2:hover { background: var(--hover); border-color: var(--line-2); }
.ql2-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--elevated); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--qc, transparent) 55%, transparent); }
.ql2-ico .tool-mark, .ql2-ico .gico { width: 16px; height: 16px; }
.ql2-ico .tool-favicon { width: 16px; height: 16px; }
.ql2-ico b { font: 600 13px/1 var(--f-display); color: var(--ink-2); }
.ql2-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ql2-l { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ql2-s { font-size: 11.5px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ql2-go { width: 13px; height: 13px; color: var(--ink-4); opacity: 0; transition: opacity .15s; flex: none; }
.ql2:hover .ql2-go { opacity: 1; }
.ql2-manage { border-style: dashed; color: var(--ink-3); }
.ql2-manage .ql2-ico { background: transparent; color: var(--ink-3); }
#ovQuickLinks.qlinks { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
.ql2 { padding: 6px 8px 6px 6px; gap: 9px; }
.ql2-ico { width: 28px; height: 28px; border-radius: 8px; }
.ql2-l { font-size: 12.5px; }
.ql2-s { font-size: 11px; }
.ql2-go { display: none; }

/* ── Planner v3: the grid is the protagonist ──
   Page header collapses into the toolbar (serif title inline), filters sit on one quiet line,
   the week grid fills the viewport and cards read at a comfortable size. */
#view-planner > .ph { display: none; }
.pl-bar1 { align-items: center; margin-bottom: 12px !important; }
.pl-title { margin: 0 10px 0 0; font: italic 400 34px/1 var(--f-serif); letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
#plannerLegend { margin-bottom: 12px; padding: 0; gap: 8px; }
#plannerLegend .pl-filters { gap: 8px; }
#channelFilter .chip { padding: 0 9px; }
#view-planner .cal-week { min-height: calc(100vh - 230px); }
#view-planner .cw-col { padding: 8px; gap: 7px; }
.cw-ev { padding: 10px 11px; }
.cw-ev .ev-time { font-size: 12px; }
.cw-ev .ev-ttl { font-size: 14px; line-height: 1.38; }
.cw-ev.match .ev-ttl { font-size: 13.5px; }
.cw-ev .ev-foot { font-size: 12px; }
body.density-compact .cw-ev.post-ev .ev-ttl { font-size: 13px; }
#view-planner .cw-dh { padding: 9px 12px; display: flex; align-items: baseline; gap: 7px; }
#view-planner .cw-dh .dnum { font-size: 19px; margin-top: 0; }
#view-planner .board > .col { flex: 1 1 0; min-width: 220px; }

/* ── Game Calendar v3 ── */
/* Agenda rows: fixed columns so competition chips line up whatever the text length */
.ag-row { grid-template-columns: 64px 4px minmax(200px,1.1fr) minmax(0,1fr) 170px 190px !important; gap: 16px; }
.ag-comp { justify-content: flex-start; }
.ag-comp .game-badge { flex: none; }
.ag-comp > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ag-cast { display: flex; align-items: center; gap: 4px; min-width: 0; }
.ag-cast-l, .mp-cast { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 7px; font-size: 12px; color: var(--ink-3); text-decoration: none; white-space: nowrap; }
.ag-cast-l:hover, .mp-cast:hover { background: var(--hover); color: var(--ink); }
.ag-cast-l svg, .mp-cast svg { width: 13px; height: 13px; flex: none; }
.ag-cast:has(.ag-cast-l + .ag-cast-l) .ag-cast-l span { display: none; }
.ag-prog2 { justify-self: end; }
@media (max-width: 1280px) { .ag-row { grid-template-columns: 58px 4px minmax(170px,1.1fr) minmax(0,1fr) 90px 170px !important; gap: 12px; } .ag-cast-l span { display: none; } }

/* Match panel: one continuous game-tinted field from the top edge, no seam under the header */
.mp { background: linear-gradient(180deg, var(--gc-bg) 0, color-mix(in srgb, var(--gc-bg) 40%, transparent) 150px, transparent 260px), var(--panel); }
.mp-h { padding: 16px 16px 0 20px; background: transparent; }
.mp-hero { background: none; padding: 16px 20px 22px; }
.mp-when { flex-wrap: wrap; row-gap: 4px; }
.mp-cast { margin-left: -2px; }

/* Match form */
.mf .seg.mf-fmt { display: grid; grid-template-columns: repeat(5, 1fr); }
.mf-comp-new { margin-top: 8px; }
.mf-casts { display: flex; flex-direction: column; gap: 8px; }
.mf-cast { display: grid; grid-template-columns: 132px minmax(0,1fr); gap: 8px; align-items: center; }
.mf-cast-t { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-3); font: inherit; font-size: 13px; cursor: pointer; }
.mf-cast-t svg { width: 15px; height: 15px; }
.mf-cast-ck { margin-left: auto; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; }
.mf-cast-ck svg { width: 11px; height: 11px; opacity: 0; }
.mf-cast.on .mf-cast-t { color: var(--ink); border-color: var(--line-strong); background: var(--hover); }
.mf-cast.on .mf-cast-ck { background: var(--gold); border-color: var(--gold); color: var(--on-accent); }
.mf-cast.on .mf-cast-ck svg { opacity: 1; }
.mf-cast:not(.on) .mf-cast-url { opacity: .45; pointer-events: none; }

/* Date picker */
.dp-wrap { position: relative; }
.dp-btn { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; cursor: pointer; }
.dp-btn svg { width: 15px; height: 15px; color: var(--ink-3); flex: none; }
.dp-btn span { text-transform: capitalize; }
.dp-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: 280px; padding: 12px; border-radius: 14px; background: var(--elevated); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.dp-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-h b { font-size: 13.5px; font-weight: 600; text-transform: capitalize; }
.dp-h .icon-btn { width: 28px; height: 28px; }
.dp-dow, .dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-dow span { text-align: center; font-size: 11px; color: var(--ink-4); padding: 4px 0; text-transform: uppercase; }
.dp-grid button { height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font: 500 12.5px/1 var(--f-body); font-variant-numeric: tabular-nums; cursor: pointer; }
.dp-grid button:hover { background: var(--hover); color: var(--ink); }
.dp-grid button.today { box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); }
.dp-grid button.sel { background: var(--gold); color: var(--on-accent); font-weight: 700; }
.dp-f { display: flex; justify-content: flex-end; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.ag-row { grid-template-columns: 58px 4px minmax(170px,1.2fr) minmax(0,1fr) 96px 150px !important; gap: 14px; }
.ag-row .ag-bar2 { width: 48px; }
.dp-pop { position: fixed; }
@media (max-width: 1280px) { .ag-row { grid-template-columns: 54px 4px minmax(150px,1.2fr) minmax(0,1fr) 60px 140px !important; gap: 12px; } }
.dp-pop { z-index: 2000; }

/* ── Reminders v2 ── */
.rm2-add { position: relative; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 8px 0 14px; margin-bottom: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line-2); transition: border-color .15s, box-shadow .15s; }
.rm2-add:focus-within { border-color: var(--line-strong); box-shadow: var(--ctl-ring); }
.rm2-add-ico { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed var(--line-strong); color: var(--ink-3); flex: none; }
.rm2-add-ico svg { width: 12px; height: 12px; }
.rm2-add-in { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14.5px; outline: none; }
.rm2-add-in::placeholder { color: var(--ink-4); }
.rm2-add-parse { display: flex; gap: 6px; flex: none; }
.rm2-add-parse span { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 7px; background: var(--elevated); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.rm2-add-parse svg, .rm2-add-parse .gico { width: 12px; height: 12px; }
.rm2-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
#rmTabs button em { font-style: normal; font-size: 11.5px; color: var(--ink-4); margin-left: 4px; }
#rmTabs button.on em { color: var(--ink-3); }
.rm2-group { margin-top: 18px; }
.rm2-gh { display: flex; align-items: baseline; gap: 10px; padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.rm2-gh b { font: italic 400 24px/1.1 var(--f-serif); color: var(--ink); text-transform: capitalize; }
.rm2-gh span { font-size: 12.5px; color: var(--ink-4); }
.rm2-gh .spacer { flex: 1; }
.rm2-group.is-over .rm2-gh b { color: var(--urgent); }
.rm2-row { display: flex; align-items: flex-start; gap: 12px; padding: 11px 8px 11px 4px; border-bottom: 1px solid var(--line); border-radius: 0; transition: background .15s, opacity .35s, transform .35s; }
.rm2-row:hover { background: rgba(255,245,230,.02); }
.rm2-row.is-leaving { opacity: 0; transform: translateX(8px); }
.rm2-row.flash { animation: rmFlash 1.6s ease-out; }
@keyframes rmFlash { 0%,30% { background: var(--hover); } 100% { background: transparent; } }
.rm2-check { width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: transparent; display: grid; place-items: center; color: transparent; cursor: pointer; flex: none; transition: all .15s; }
.rm2-check svg { width: 12px; height: 12px; }
.rm2-check:hover { border-color: var(--ink-2); color: var(--ink-3); }
.rm2-row.is-high .rm2-check { border-color: color-mix(in srgb, var(--urgent) 70%, transparent); }
.rm2-row.is-done .rm2-check { background: var(--st-pub); border-color: var(--st-pub); color: #0a0a09; }
.rm2-main { flex: 1; min-width: 0; cursor: pointer; }
.rm2-title { font-size: 14.5px; line-height: 1.4; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.rm2-row.is-done .rm2-title { color: var(--ink-4); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.rm2-flag { color: var(--urgent); display: inline-flex; }
.rm2-flag svg { width: 13px; height: 13px; }
.rm2-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
.rm2-when, .rm2-tag { display: inline-flex; align-items: center; gap: 5px; }
.rm2-when svg, .rm2-tag svg { width: 12px; height: 12px; }
.rm2-when.over { color: var(--urgent); font-weight: 500; }
.rm2-match { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; font: inherit; color: var(--ink-2); cursor: pointer; }
.rm2-match .gico { width: 13px; height: 13px; }
.rm2-match:hover { color: var(--gc); }
.rm2-acts { display: flex; gap: 2px; opacity: 0; transition: opacity .15s; flex: none; }
.rm2-row:hover .rm2-acts, .rm2-row:focus-within .rm2-acts { opacity: 1; }
.rm2-acts .icon-btn { width: 30px; height: 30px; }
.rm2-snz { position: relative; }
.rm2-snz-m { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 170px; padding: 5px; border-radius: 11px; background: var(--elevated); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.rm2-snz-m button { text-align: left; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.rm2-snz-m button:hover { background: var(--hover); }
.rm2-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 56px 0; color: var(--ink-3); text-align: center; }
.rm2-empty svg { width: 28px; height: 28px; color: var(--ink-4); margin-bottom: 4px; }
.rm2-empty b { font: italic 400 24px/1.2 var(--f-serif); color: var(--ink); }
.rm2-empty span { font-size: 13px; }
.rm2-m-title { font-size: 16px; height: 44px; }

/* ── Notifications panel ── */
#notifPop { width: 380px; padding: 0; border-radius: 14px; background: var(--elevated); border: 1px solid var(--line-2); }
.nt-h { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px 16px; border-bottom: 1px solid var(--line); }
.nt-h b { font-size: 14px; font-weight: 600; }
.nt-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--day); color: var(--day-ink); font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; }
.nt-h .spacer { flex: 1; }
.nt-list { max-height: min(460px, 70vh); overflow-y: auto; padding: 4px; }
.nt { position: relative; display: flex; align-items: flex-start; gap: 11px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.nt:hover { background: var(--hover); }
.nt-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--card); color: var(--gc, var(--ink-2)); box-shadow: inset 0 0 0 1px var(--line); }
.nt-ico svg { width: 15px; height: 15px; }
.nt.urgent .nt-ico { color: var(--urgent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--urgent) 35%, transparent); }
.nt.warn .nt-ico { color: var(--st-review); }
.nt-check { width: 20px; height: 20px; margin: 5px 5px 0; border-radius: 50%; border: 1.5px solid var(--line-strong); background: transparent; color: transparent; display: grid; place-items: center; cursor: pointer; flex: none; }
.nt.urgent .nt-check { border-color: color-mix(in srgb, var(--urgent) 70%, transparent); }
.nt-check:hover { color: var(--ink-3); border-color: var(--ink-2); }
.nt-check svg { width: 12px; height: 12px; }
.nt-b { flex: 1; min-width: 0; }
.nt-t { font-size: 13.5px; line-height: 1.4; color: var(--ink); }
.nt-t b { font-weight: 600; }
.nt-s { margin-top: 2px; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt.urgent .nt-s { color: var(--urgent); }
.nt.read .nt-t { color: var(--ink-3); }
.nt-dot { position: absolute; right: 12px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--day); }
.nt-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 34px 16px; text-align: center; color: var(--ink-3); font-size: 13px; }
.nt-empty svg { width: 24px; height: 24px; color: var(--st-pub); margin-bottom: 4px; }
.nt-empty b { font: italic 400 22px/1.2 var(--f-serif); color: var(--ink); }
.nt-f { border-top: 1px solid var(--line); padding: 6px; }
.nt-all { width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; }
.nt-all:hover { background: var(--hover); color: var(--ink); }
.nt-all svg { width: 14px; height: 14px; }

/* Profile menu: no decorative colour bar on top */
#profilePop::before { display: none !important; }
.ba-back { margin-right: 4px; padding-left: 6px; } .ba-back svg { width: 14px; height: 14px; }

/* ── Tools: colour as a frame + swatch picker ── */
.tool-card .tool-ico { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--lk-color) 75%, transparent), 0 0 0 3px color-mix(in srgb, var(--lk-color) 12%, transparent); }
.tool-card { border-color: color-mix(in srgb, var(--lk-color) 16%, var(--line)); }
.tool-card:hover { border-color: color-mix(in srgb, var(--lk-color) 40%, var(--line)); }
.ql2-ico { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--qc, transparent) 70%, transparent); }
.sw-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.sw { width: 26px; height: 26px; border-radius: 50%; border: 0; padding: 0; background: var(--sw); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); display: grid; place-items: center; transition: transform .12s; }
.sw:hover { transform: scale(1.08); }
.sw.on { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--ink); }
.sw-custom { background: var(--sw, transparent); border: 1.5px dashed var(--line-strong); color: var(--ink-3); }
.sw-custom svg { width: 12px; height: 12px; }
.sw-custom.on { border-style: solid; color: transparent; }
input.sw-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ct-form-group { position: relative; }

/* ── Contacts v3: clean table + side panel ── */
#view-contacts .ct-legend-bar, #view-contacts .ct-view-toggle, #view-contacts #cardsWrap { display: none !important; }
#view-contacts #tableWrap { display: block !important; }
#view-contacts .ct-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
#view-contacts .ct-search-wrap { flex: 1 1 260px; max-width: 360px; }
#view-contacts .ct-filter-selects { display: flex; gap: 6px; }
#view-contacts .ct-quick { margin-left: 0; }
#view-contacts .ct-quick .ct-stat-chip { height: 32px; padding: 0 10px; border-radius: 9px; }
#view-contacts .ct-org-actions { margin-left: auto; }
/* table */
#view-contacts table { width: 100%; border-collapse: collapse; }
#view-contacts #th-area, #view-contacts #th-pais, #view-contacts .ct-td-area, #view-contacts .ct-td-country { display: none; }
#view-contacts table thead th { padding: 10px 12px; text-align: left; position: sticky; top: 0; background: var(--panel) !important; z-index: 1; }
#view-contacts table tbody td { padding: 10px 12px; font-size: 13.5px; vertical-align: middle; }
#view-contacts table tbody tr { cursor: pointer; transition: background .12s; }
#view-contacts table tbody tr:hover, #view-contacts table tbody tr.is-open { background: var(--hover); }
#view-contacts table tbody tr.is-open td:first-child { box-shadow: inset 2px 0 0 var(--ink); }
#view-contacts .ct-name-cell { display: flex; align-items: center; gap: 11px; }
#view-contacts .ct-name-cell .avatar { width: 32px; height: 32px; font-size: 12px; font-weight: 600; flex: none; color: #0a0a09; }
#view-contacts .ct-td-name { font-weight: 500; color: var(--ink); }
#view-contacts .ct-td-nick { font-size: 12px; color: var(--ink-4); }
.org-chip2 { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); white-space: nowrap; }
.org-chip2 i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.ct-dash { color: var(--ink-4); }
#view-contacts .ct-type-pill { display: inline-flex; height: 22px; align-items: center; padding: 0 8px; border-radius: 6px; font: 500 11.5px/1 var(--f-body); letter-spacing: 0; color: var(--ink-3); background: var(--elevated); border: 0; text-transform: none; }
#view-contacts .ct-links-cell { display: flex; gap: 2px; }
#view-contacts .ct-icon-link { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--ink-4); }
#view-contacts .ct-icon-link:hover { color: var(--ink); background: var(--elevated); }
#view-contacts .ct-row-actions { opacity: 0; transition: opacity .12s; justify-content: flex-end; }
#view-contacts tr:hover .ct-row-actions { opacity: 1; }
#view-contacts .ct-group-row td { padding: 18px 12px 8px; font-size: 12.5px; color: var(--ink-3); cursor: default; }
/* side panel */
.ctp { background: linear-gradient(180deg, color-mix(in srgb, var(--oc) 14%, transparent) 0, transparent 240px), var(--panel); }
.ctp-org { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-3); }
.ctp-org i { width: 8px; height: 8px; border-radius: 3px; }
.ctp-hero { padding: 14px 20px 20px; display: flex; flex-direction: column; align-items: flex-start; }
.ctp-av { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 600 22px/1 var(--f-display); color: #0a0a09; overflow: hidden; margin-bottom: 12px; }
.ctp-av img { width: 100%; height: 100%; object-fit: cover; }
.ctp-name { margin: 0; font: italic 400 32px/1.1 var(--f-serif); color: var(--ink); }
.ctp-nick { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.ctp-role { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.ctp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ctp-tags span { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 7px; background: var(--elevated); font-size: 12px; color: var(--ink-2); }
.ctp-tags svg { width: 12px; height: 12px; }
.ctp-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.ctp-act { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: inherit; font-size: 13px; text-decoration: none; cursor: pointer; }
.ctp-act:hover { border-color: var(--line-strong); background: var(--hover); }
.ctp-act svg { width: 15px; height: 15px; }
.ctp-row { display: grid; grid-template-columns: 22px 78px minmax(0,1fr) auto; align-items: center; gap: 8px; min-height: 38px; border-bottom: 1px solid var(--line); font-size: 13px; }
.ctp-row:last-child { border-bottom: 0; }
.ctp-ri { color: var(--ink-4); display: grid; place-items: center; }
.ctp-ri svg { width: 14px; height: 14px; }
.ctp-rl { color: var(--ink-4); font-size: 12.5px; }
.ctp-rv { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctp-rv a { color: inherit; text-decoration: none; }
.ctp-rv a:hover { text-decoration: underline; text-decoration-color: var(--line-strong); }
.ctp-copy { width: 28px; height: 28px; opacity: 0; }
.ctp-row:hover .ctp-copy { opacity: 1; }
.ctp-notes { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); white-space: pre-wrap; }
.ctp-f { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line); }
.ctp-f .spacer { flex: 1; }
#view-contacts .sort-btn-wrap { display: none; }
.nt-x { width: 26px; height: 26px; margin: 2px -4px 0 0; border: 0; border-radius: 7px; background: transparent; color: var(--ink-4); display: grid; place-items: center; cursor: pointer; opacity: 0; flex: none; transition: opacity .12s; }
.nt-x svg { width: 13px; height: 13px; }
.nt:hover .nt-x, .nt:focus-within .nt-x { opacity: 1; }
.nt-x:hover { background: var(--card); color: var(--ink); }
.nt { transition: opacity .2s, transform .2s; }
.nt.is-leaving { opacity: 0; transform: translateX(10px); }
.nt-h .btn svg { width: 13px; height: 13px; }

/* Time picker */
.tp-pop { width: 190px; }
.tp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tp-col { height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding-right: 2px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.tp-col button { flex: none; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font: 500 13px/1 var(--f-mono); cursor: pointer; }
.tp-col button:hover { background: var(--hover); color: var(--ink); }
.tp-col button.sel { background: var(--gold); color: var(--on-accent); font-weight: 700; }
.tp-pop .dp-f { justify-content: space-between; gap: 6px; }
.tp-pop .dp-f .spacer { flex: 1; }
.dp-btn.is-empty span { color: var(--ink-4); }
.dp-btn { min-width: 0; }
.dp-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-wrap .fi.dp-btn { height: 40px; }
.dp-btn span { text-transform: none !important; }
.ct-upd { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 200; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--elevated); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); font-size: 13px; color: var(--ink); animation: ctUpdIn .25s var(--ease-out, ease-out); }
.ct-upd > svg { width: 15px; height: 15px; color: var(--ink-3); }
.ct-upd .icon-btn { width: 28px; height: 28px; }
@keyframes ctUpdIn { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ── Contacts v4: saved views + search + dropdown filters ── */
#view-contacts .ct-controls { display: none !important; }
#view-contacts #th-pais { display: table-cell; }
#ctxBar { margin-bottom: 6px; }
.ctx-views { display: flex; align-items: center; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.ctx-view { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--ink-3); font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer; }
.ctx-view:hover { color: var(--ink); }
.ctx-view.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.ctx-view em { font-style: normal; font-size: 12px; color: var(--ink-4); font-weight: 400; }
.ctx-view-x { width: 18px; height: 18px; margin-right: -6px; border: 0; border-radius: 5px; background: none; color: var(--ink-4); display: grid; place-items: center; cursor: pointer; opacity: 0; }
.ctx-view-x svg { width: 11px; height: 11px; }
.ctx-view:hover .ctx-view-x { opacity: 1; }
.ctx-view-x:hover { background: var(--hover); color: var(--ink); }
.ctx-view-add { color: var(--ink-4); }
.ctx-view-add svg { width: 12px; height: 12px; }
.ctx-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.ctx-q { flex: 1 1 280px; max-width: 400px; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink-4); cursor: text; }
.ctx-q:focus-within { border-color: var(--line-strong); box-shadow: var(--ctl-ring); }
.ctx-q svg { width: 15px; height: 15px; flex: none; }
.ctx-q input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13.5px; outline: none; }
.ctx-q kbd { font: 11px/1 var(--f-mono); color: var(--ink-4); border: 1px solid var(--line-2); border-radius: 5px; padding: 3px 6px; }
.ctx-dd { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer; max-width: 240px; }
.ctx-dd:hover, .ctx-dd.open { border-color: var(--line-strong); color: var(--ink); background: var(--hover); }
.ctx-dd > svg { width: 13px; height: 13px; color: var(--ink-4); flex: none; }
.ctx-dd.on { background: var(--elevated); border-color: var(--line-strong); color: var(--ink); }
.ctx-dd b { font-weight: 500; color: var(--ink-3); }
.ctx-dd em { font-style: normal; color: var(--ink-3); font-size: 12px; }
.ctx-dd-x { width: 20px; height: 20px; margin-right: -4px; border-radius: 6px; display: grid; place-items: center; color: var(--ink-3); }
.ctx-dd-x:hover { background: var(--hover); color: var(--ink); }
.ctx-dd-x svg { width: 12px; height: 12px; }
.ctx-star { color: var(--ink-4); font-size: 13px; }
.ctx-favbtn.on .ctx-star { color: #f2cc4a; }
.ctx-clear { height: 36px; padding: 0 8px; border: 0; background: none; color: var(--ink-3); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.ctx-clear:hover { color: var(--ink); }
.ctx-bar .spacer { flex: 1; }
.ctx-count { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.ctx-count b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ctx-group button { font-size: 12.5px; }
.ctx-manage-slot { display: inline-flex; align-items: center; gap: 6px; }
.ctx-manage-slot .ct-more-wrap summary { height: 36px; border-radius: 10px; }
/* dropdown popover */
.ctx-pop { width: 290px; padding: 8px; }
.ctx-psearch { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; margin-bottom: 6px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--card); color: var(--ink-4); }
.ctx-psearch svg { width: 14px; height: 14px; }
.ctx-psearch input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13px; outline: none; }
.ctx-opts { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.ctx-opt { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.ctx-opt:hover { background: var(--hover); color: var(--ink); }
.ctx-opt.on { color: var(--ink); font-weight: 500; }
.ctx-opt.zero { opacity: .45; }
.ctx-ck { width: 14px; display: grid; place-items: center; color: transparent; flex: none; }
.ctx-ck svg { width: 13px; height: 13px; }
.ctx-opt.on .ctx-ck { color: var(--ink); }
.ctx-odot { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.ctx-ol { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctx-on { font-size: 12px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.ctx-more { padding: 8px; font-size: 12px; color: var(--ink-4); }
.ctx-pop .dp-f { justify-content: space-between; }
.ctx-pop .dp-f .spacer { flex: 1; }
.ctx-pop-l { display: block; font-size: 12.5px; color: var(--ink-3); margin: 2px 2px 8px; }
.ctx-savepop .input { width: 100%; }
/* table */
.ctx-star-th, .ctx-star-td { width: 34px; padding-right: 0 !important; }
.ctx-fav { width: 26px; height: 26px; border: 0; border-radius: 7px; background: none; color: var(--ink-4); font-size: 14px; cursor: pointer; opacity: .35; }
#view-contacts tr:hover .ctx-fav { opacity: .8; }
.ctx-fav:hover { background: var(--elevated); opacity: 1 !important; }
.ctx-fav.on { color: #f2cc4a; opacity: 1; }
.ctx-role { max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.ctx-fam { margin-left: 8px; font-size: 12px; color: var(--ink-4); }
.ctx-country { color: var(--ink-3); }
#view-contacts mark { background: rgba(242,204,74,.24); color: var(--ink); border-radius: 3px; padding: 0 1px; }
.ctx-more-row td { text-align: center; padding: 16px !important; border: 0 !important; cursor: default; }
.ctx-more-row:hover, .ctx-empty-row:hover { background: transparent !important; }
.ctx-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 50px 0; color: var(--ink-3); }
.ctx-empty svg { width: 24px; height: 24px; color: var(--ink-4); }
.ctx-empty b { font: italic 400 24px/1.2 var(--f-serif); color: var(--ink); }
#view-contacts .ct-group-row td { padding: 20px 12px 8px; font-size: 13px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
#view-contacts .ct-group-dot { width: 8px; height: 8px; border-radius: 3px; display: inline-block; margin-right: 8px; }
#view-contacts .ct-group-count { margin-left: 8px; font-weight: 400; color: var(--ink-4); font-size: 12px; }
#view-contacts .ct-row-btn svg { width: 13px; height: 13px; }
.ctx-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; margin-bottom: 4px; }
.ctx-q { max-width: 520px; flex: 1 1 360px; }

/* ── Contact form v2 ── */
.cm .cm-box { width: 880px; max-width: calc(100vw - 32px); max-height: min(92vh, 860px); background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; }
.cm-hd { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 22px 22px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,245,230,.03), transparent); }
.cm-av { width: 64px; height: 64px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; overflow: hidden; cursor: pointer; color: #0a0a09; font: 600 22px/1 var(--f-display); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: filter .15s; }
.cm-av:hover { filter: brightness(1.08); }
.cm-av img { width: 100%; height: 100%; object-fit: cover; }
.cm-av .gico { width: 22px; height: 22px; color: var(--ink-3); }
.cm-hd-t { min-width: 0; }
.cm-eyebrow { font-size: 12.5px; color: var(--ink-4); margin-bottom: 4px; }
.cm-name { font: italic 400 32px/1.05 var(--f-serif); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-name.empty { color: var(--ink-4); }
.cm-sub { margin-top: 5px; font-size: 13px; color: var(--ink-3); min-height: 18px; }
.cm-org { display: inline-flex; align-items: center; gap: 6px; }
.cm-org i { width: 8px; height: 8px; border-radius: 3px; }
.cm-close { align-self: start; }
.cm-photo-acts { position: absolute; left: 22px; bottom: -1px; transform: translateY(50%); display: none; }
.cm-bd { padding: 18px 22px 8px; overflow-y: auto; }
.cm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cm-sec h4 { margin: 4px 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-4); }
.cm-sec h4:not(:first-child) { margin-top: 20px; }
.cm-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cm-f { margin-bottom: 12px; min-width: 0; }
.cm-f label { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.cm-f .req { color: var(--urgent); }
.cm-f .input { width: 100%; }
.cm-in { position: relative; }
.cm-in .input { padding-left: 34px; }
.cm-ico, .cm-pre { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--ink-4); pointer-events: none; }
.cm-pre { width: auto; height: auto; font-size: 13.5px; }
.cm-hint { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--ink-4); min-height: 16px; }
.cm-hint svg { width: 12px; height: 12px; }
.cm-hint b { font-weight: 500; color: var(--ink-2); }
.cm-notes { min-height: 132px; resize: vertical; line-height: 1.5; padding-top: 10px; }
.cm-dup { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 14px; border-radius: 11px; background: color-mix(in srgb, var(--st-review) 10%, transparent); border: 1px solid color-mix(in srgb, var(--st-review) 35%, transparent); font-size: 13px; color: var(--ink); }
.cm-dup[hidden] { display: none; }
.cm-dup > svg { width: 15px; height: 15px; color: var(--st-review); flex: none; }
.cm-dup span { flex: 1; }
.cm-ft { display: flex; align-items: center; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); }
.cm-ft .spacer { flex: 1; }
.cm-kbd { font-size: 12px; color: var(--ink-4); display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; }
.cm-kbd kbd { font: 11px/1 var(--f-mono); border: 1px solid var(--line-2); border-radius: 5px; padding: 3px 5px; color: var(--ink-3); }
.cm-ft .btn .gico { width: 14px; height: 14px; }
/* show the photo actions on hover of the header */
.cm-hd:hover .cm-photo-acts, .cm-hd:focus-within .cm-photo-acts { display: inline-flex; gap: 4px; }
.cm-photo-acts .btn { background: var(--elevated); height: 26px; font-size: 12px; }
@media (max-width: 760px) { .cm-cols { grid-template-columns: 1fr; } }

/* ── Notifications: groups ── */
.nt-gl { padding: 10px 12px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-4); }
.nt-kind { display: none; }
.nt.is-task .nt-check { margin-top: 3px; }
.nt.is-task:hover .nt-check { border-color: var(--ink-2); }
.nt.warn .nt-check { border-color: color-mix(in srgb, var(--st-review) 80%, transparent); }
.nt-check:hover { background: var(--st-pub); border-color: var(--st-pub) !important; color: #0a0a09 !important; }

/* ── Hub dropdowns (replace native select popups and datalists) ── */
select.hsel-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; padding: 0 !important; border: 0 !important; }
.v-sel-wrap, .ct-form-group, .cm-f, .pref-row, .pl-filters, .ideas-bar { position: relative; }
.hsel-btn { display: flex; align-items: center; width: 100%; text-align: left; cursor: pointer; color: var(--ink); font: inherit;
  -webkit-appearance: none; appearance: none; padding-right: 34px !important;
  background-image: var(--chev) !important; background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 12px !important; }
.hsel-btn .hsel-l { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hsel-btn.is-empty .hsel-l { color: var(--ink-4); }
.hsel-btn.open, .hsel-btn:focus-visible { border-color: var(--line-strong) !important; box-shadow: var(--ctl-ring); outline: none; }
.pl-acct-sel.hsel-btn { width: auto; }
.pref-select.hsel-btn { width: auto; min-width: 180px; }
.hsel-pop { padding: 6px; width: auto; max-width: 360px; }
.hsel-pop .ctx-opts { max-height: 300px; }
.hsel-opt.kb { background: var(--hover); color: var(--ink); }
.hsel-opt .muted { color: var(--ink-4); }
.hsel-new { display: flex; align-items: center; gap: 6px; padding: 8px 10px 4px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.hsel-new[hidden] { display: none; }
.hsel-new svg { width: 12px; height: 12px; }
.hsel-new b { color: var(--ink); font-weight: 500; }
.hsel-pop:has(.hsel-opts .ctx-more):has(.hsel-new[hidden]) { display: none; }

/* ── Settings → Team (real profiles + access list) ── */
.mem-loading { padding: 14px 4px; font-size: 13px; color: var(--ink-3); }
.mem-av { overflow: hidden; color: #0a0a09; background: var(--elevated); }
.mem-av img { width: 100%; height: 100%; object-fit: cover; }
.mem-admin { margin-left: 8px; height: 18px; padding: 0 6px; border-radius: 5px; background: var(--elevated); font-size: 11px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; }
.pref-member-email small { display: block; font-size: 11.5px; color: var(--ink-4); margin-top: 2px; text-align: right; }
.mem-access-hd { margin-top: 28px; }
.mem-add { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr) 120px auto; gap: 8px; margin-bottom: 10px; }
.mem-add .btn .gico { width: 14px; height: 14px; }
.mem-role { width: 130px; flex: none; }
.mem-acc { gap: 10px; }
.mem-acc .icon-btn[disabled], .mem-acc .hsel-btn[disabled] { opacity: .35; cursor: not-allowed; }
.pref-input { min-width: 260px; height: 36px; }

/* Google photo as avatar (initials on colour stay as the fallback) */
.avatar.has-photo { background: var(--elevated) !important; }
.av-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.pref-av-photo, .av-photo { padding: 0; overflow: hidden; background: var(--elevated); }
.pref-av-photo img, .av-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
#profileRole, #profileName { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Settings → Team data (import / export) ── */
.dt-stats { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--ink-2); }
.dt-stats svg { width: 14px; height: 14px; color: var(--ink-3); }
.dt-card { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 14px; background: var(--card); }
.dt-card-hd { display: flex; gap: 14px; align-items: flex-start; }
.dt-card-hd b { display: block; font: 600 14px/1.3 var(--f-display); color: var(--ink); margin-bottom: 4px; }
.dt-card-hd p { font-size: 12.5px; line-height: 1.55; color: var(--ink-3); max-width: 62ch; }
.dt-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--elevated); color: var(--gold); }
.dt-ico svg { width: 16px; height: 16px; }
.dt-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; min-height: 108px; padding: 18px;
  border: 1.5px dashed var(--line-strong); border-radius: var(--r); color: var(--ink-3); font-size: 13px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.dt-drop svg { width: 22px; height: 22px; color: var(--ink-4); }
.dt-drop:hover, .dt-drop:focus-visible, .dt-drop.drag { border-color: var(--gold); color: var(--ink); background: color-mix(in srgb, var(--gold) 6%, transparent); outline: none; }
.dt-drop.drag svg, .dt-drop:hover svg { color: var(--gold); }
.dt-preview { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.dt-preview[hidden] { display: none; }
.dt-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 11px 14px; font-size: 13px; color: var(--ink-2); }
.dt-line + .dt-line { border-top: 1px solid var(--line); }
.dt-line svg { width: 15px; height: 15px; color: var(--ink-3); flex: none; }
.dt-line b { color: var(--ink); font-weight: 600; }
.dt-line span { color: var(--ink-3); }
.dt-line em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--ink-4); }
.dt-line.dt-err { color: var(--rose); }
.dt-line.dt-ok svg { color: var(--emerald); }
.dt-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
.dt-actions .btn[hidden] { display: none; }
.dt-actions .btn svg { width: 14px; height: 14px; }
.ctx-empty > span { font-size: 13px; color: var(--ink-3); }
/* the toolbar animates in with a transform, which traps the Manage menu under the table's sticky header */
#ctxBar { position: relative; z-index: 5; }

/* Game Calendar · a fixture in play shows its score instead of the time (phase 4) */
.ag-time.ag-live { color: var(--urgent); display: inline-flex; align-items: center; gap: 6px; }
.ag-time.ag-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: agLive 1.6s ease-in-out infinite; }
@keyframes agLive { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .ag-time.ag-live i { animation: none; } }

/* Game Calendar · nothing coming up: what the sources said and a way to act */
.gc-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 28px 2px; color: var(--ink-3); }
.gc-empty > svg { width: 20px; height: 20px; }
.gc-empty b { color: var(--ink); font-size: 15px; font-weight: 600; }
.gc-empty p { font-size: 13px; line-height: 1.5; margin: 0; max-width: 560px; }
.gc-empty-st { color: var(--ink-4); }
.gc-empty-a { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }

/* ---------- Player photos: the same headshot everywhere; the team's tweak (zoom and position) moves it ---------- */
.om-player { translate: var(--px, 0%) var(--py, 0%); scale: var(--pz, 1); transform-origin: 50% 100%;
  /* where the framing cuts the shoulders, the edge fades instead of ending in a straight line */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.pl-av { overflow: hidden; padding: 0; border: 0; cursor: pointer; font-weight: 700; }
.pl-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  transform-origin: 50% 45%; translate: var(--px, 0%) var(--py, 0%); scale: calc(var(--pz, 1) * 1.3); }
.pl-av-edit { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; border-radius: inherit;
  background: rgba(0,0,0,.5); color: #fff; opacity: 0; transition: opacity .15s; }
.pl-av-edit svg { width: 15px; height: 15px; }
.pl-av:hover .pl-av-edit, .pl-av:focus-visible .pl-av-edit { opacity: 1; }
.pl-bar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.modal.ph-modal { width: min(760px, 95vw); }
.ph-ed { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; }
.ph-ed.is-busy .ph-previews { opacity: .55; transition: opacity .2s; }
.ph-previews { display: grid; gap: 16px; justify-items: center; align-content: start; }
.ph-stage { position: relative; isolation: isolate; width: 260px; height: 290px; border-radius: 16px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); --lvl: 42%; }
.ph-stage .om-disc { width: 330px; height: 330px; right: -35px; bottom: -150px; }
.ph-stage .ph-hero { right: auto; left: 50%; width: 260px; height: 260px; margin-left: -130px; }   /* square, like the photos */
.ph-none { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; font-size: 13px; color: var(--ink-3); }
.ph-av-wrap, .ph-stage-wrap { display: grid; justify-items: center; }
.ph-av { width: 76px; height: 76px; font-size: 22px; }
.ph-cap { margin-top: 7px; font-size: 11px; color: var(--ink-4); }
.ph-controls { display: grid; gap: 12px; align-content: start; }
.modal-b .ph-range { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 10px; margin: 0; }
.ph-range input { width: 100%; accent-color: var(--gc); }
.ph-controls > .btn { justify-self: start; }
.ph-change { display: grid; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.ph-change .input { flex: 1; min-width: 0; height: 34px; }
.modal-b .ph-cut { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--ink-2); }
.modal-b .ph-file { display: inline-flex; margin: 0; cursor: pointer; }
.ph-warn { color: var(--amber, #e0a84f); }
.ph-err { margin-top: 4px; color: var(--rose); }
@media (max-width: 720px) { .ph-ed { grid-template-columns: 1fr; } }

/* ---------- Players: one card per player (the base for the player database) ---------- */
.pdb-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.pdb-games { flex-wrap: wrap; }
.pdb-search { width: 240px; max-width: 100%; margin-left: auto; height: 36px; }
.pdb-group + .pdb-group { margin-top: 26px; }
.pdb-group-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.pdb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.pdb-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
/* same proportions as the hero preview in the photo editor (260×290 with the square photo standing on the
   bottom edge), so what you frame there is what the card shows */
.pdb-photo { position: relative; aspect-ratio: 26 / 29; padding: 0; border: 0; cursor: pointer; overflow: hidden; background: var(--gc); }
.pdb-photo img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain;
  transform-origin: 50% 100%; translate: var(--px, 0%) var(--py, 0%); scale: var(--pz, 1);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.pdb-ini { position: absolute; inset: 0; display: grid; place-items: center; font: 700 34px/1 var(--f-display); color: rgba(20,10,4,.55); }
.pdb-photo:hover .pl-av-edit, .pdb-photo:focus-visible .pl-av-edit { opacity: 1; }
.pdb-photo .pl-av-edit { border-radius: 0; background: rgba(0,0,0,.35); }
.pdb-body { display: grid; gap: 4px; padding: 12px 14px 14px; }
.pdb-name { font-weight: 600; font-size: 15px; }
.pdb-meta { font-size: 12px; color: var(--ink-3); }
.pdb-sp { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.pdb-sp .tag { font-size: 11px; }
.pdb-empty { padding: 40px 0; text-align: center; }
@media (max-width: 600px) { .pdb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .pdb-search { width: 100%; margin-left: 0; } }

/* Sidebar match card: when only the level changes the card isn't redrawn, the fill glides to its height */
.sb-match .gx-level { transition: height .7s cubic-bezier(.2,.8,.2,1); }
.sb-match .gx-dark { transition: clip-path .7s cubic-bezier(.2,.8,.2,1); }

/* ---------- Players & CCs: filters, card tags, player card and form ---------- */
.pdb-bar { margin-bottom: 10px; }
.pdb-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.pdb-filters .pdb-search { width: 240px; margin: 0; }
.pdb-sel { height: 36px; padding: 0 4px 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card);
  color: var(--ink-3); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.pdb-sel select { border: 0; background: transparent; color: var(--ink); font: 600 13px/1 var(--f-body); height: 34px; padding: 0 6px; cursor: pointer; }
.pdb-sel select option { color: #111; }
.pdb-chip { height: 36px; padding: 0 12px; border-radius: 10px; border: 1px dashed var(--line-2); color: var(--ink-3); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.pdb-chip svg { width: 14px; height: 14px; }
.pdb-chip.on { border-style: solid; border-color: #e0a84f; color: #e0a84f; background: rgba(224,168,79,.1); }
.pdb-count { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.pdb-cc { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.pdb-cc svg { width: 14px; height: 14px; }
.pdb-card { cursor: pointer; transition: border-color .15s; }
.pdb-card:hover { border-color: var(--line-strong, var(--line-2)); }
.pdb-name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pdb-flag { font-size: 14px; }
.pdb-tag { font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--elevated); color: var(--ink-2); letter-spacing: .01em; white-space: nowrap; }
.pdb-tag.warn { background: rgba(224,168,79,.14); color: #e0a84f; }
.pdb-tag.ok { background: rgba(76,195,138,.16); color: var(--emerald); }
.pdb-card.is-off .pdb-photo img { filter: grayscale(1); opacity: .6; }
.modal.pfx-modal { width: min(880px, 95vw); }
.pfx { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 26px; }
.pfx-side { display: grid; gap: 10px; align-content: start; justify-items: center; }
.pfx-name { font: 400 italic 38px/1 var(--f-serif); letter-spacing: -.01em; }
.pfx-real { color: var(--ink-3); font-size: 14px; margin: 6px 0 12px; }
.pfx-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pfx-socs { display: inline-flex; gap: 4px; margin-left: 4px; }
.pfx-soc { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--elevated); color: var(--ink-2); }
.pfx-soc:hover { color: var(--ink); background: var(--line-2); }
.pfx-soc svg { width: 13px; height: 13px; }
.pfx-data { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin: 20px 0; }
.pfx-data div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.pfx-data dt { font-size: 11px; color: var(--ink-4); margin-bottom: 4px; }
.pfx-data dd { font-size: 13.5px; font-weight: 600; margin: 0; }
.pfx-data dd span { font-weight: 400; color: var(--ink-3); font-size: 12px; display: block; margin-top: 2px; }
.pfx-sec { margin-top: 18px; }
.pfx-sec h4 { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 8px; }
.pfx-off { margin-top: 8px; font-size: 12px; color: #e0a84f; }
.pfx-rule { border-left: 3px solid #e0a84f; background: rgba(224,168,79,.08); padding: 9px 12px; border-radius: 0 10px 10px 0; font-size: 13px; color: var(--ink-2); white-space: pre-line; }
.pfx-rec { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.pfx-rec b { font: 700 26px/1 var(--f-display); }
.pfx-rec em { font-style: normal; color: var(--ink-3); font-size: 12px; margin-left: 3px; }
.pfx-form { display: inline-flex; gap: 4px; margin-left: auto; }
.pfx-form i, .pfx-row .wl { font: 700 10.5px/1 var(--f-body); font-style: normal; border-radius: 5px; display: grid; place-items: center; }
.pfx-form i { width: 18px; height: 18px; }
.pfx-form i.w, .pfx-row .wl.w { background: rgba(76,195,138,.18); color: var(--emerald); }
.pfx-form i.l, .pfx-row .wl.l { background: rgba(229,72,77,.16); color: var(--rose); }
.pfx-maps { font-size: 12.5px; color: var(--ink-3); margin: -2px 0 8px; }
/* won / lost split bars (matches, maps) */
.pfx-bars { display: grid; gap: 7px; margin: 4px 0 14px; }
.pfx-bar { display: grid; grid-template-columns: 64px minmax(0,1fr) 104px; align-items: center; gap: 10px; font-size: 12px; }
.pfx-bar .k { color: var(--ink-3); }
.pfx-bar .t { height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--rose) 45%, transparent); overflow: hidden; display: flex; gap: 2px; }
.pfx-bar .t i { display: block; height: 100%; background: var(--emerald); flex: none; }
.pfx-bar .v { color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pfx-bar .v b { color: var(--ink); font-weight: 600; }
.pfx-row { display: grid; grid-template-columns: 84px 24px minmax(0,1fr) 44px 24px; align-items: center; gap: 10px; padding: 8px 0 8px 10px; border-top: 1px solid var(--line); font-size: 13px; position: relative; }
.pfx-row::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--rose); opacity: .7; }
.pfx-row.is-w::before { background: var(--emerald); }
.pfx-row img, .pfx-row .nolg { width: 22px; height: 22px; object-fit: contain; }
.pfx-row .nolg { border-radius: 6px; background: var(--elevated); }
.pfx-row .d { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.pfx-row .o { display: grid; min-width: 0; }
.pfx-row .o > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfx-row .o small { font-size: 11px; color: var(--ink-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.pfx-row .sc { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.pfx-row .wl { height: 20px; }
/* VLR stats (VALORANT): six numbers since they joined, weighted by rounds */
.pfx-vlr-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pfx-vlr-h h4 { margin: 0; }
.pfx-vlr-h a { margin-left: auto; font-size: 12px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.pfx-vlr-h a:hover { color: var(--ink); }
.pfx-vlr-h a svg { width: 12px; height: 12px; }
.pfx-vlr-btn { width: 26px; height: 26px; }
.pfx-vlr-btn svg { width: 13px; height: 13px; }
.pfx-vlr-btn[disabled] svg { animation: spin 1s linear infinite; }
/* one panel split by hairlines; Rating (the first) leads in the game colour */
.pfx-vlr-grid { display: grid; grid-template-columns: 1.3fr repeat(5, minmax(0,1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pfx-vlr-grid div { padding: 12px 12px 11px; cursor: default; border-left: 1px solid var(--line); min-width: 0; }
.pfx-vlr-grid div:first-child { border-left: 0; background: var(--gc-bg, var(--card-2)); }
.pfx-vlr-grid em { display: block; font-style: normal; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); margin-bottom: 6px; }
.pfx-vlr-grid b { display: block; font: 700 20px/1 var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pfx-vlr-grid div:first-child b { font-size: 26px; color: var(--gc, var(--ink)); }
.pfx-vlr-grid div:first-child em { color: var(--gc, var(--ink-4)); }
.pfx-vlr-sub, .pfx-vlr-msg { font-size: 12px; color: var(--ink-3); margin-top: 8px; display: flex; align-items: center; gap: 5px; }
.pfx-vlr-msg { margin-top: 0; }
.pfx-vlr-sub.is-part { color: #e0a84f; }
.pfx-vlr-sub svg, .pfx-vlr-msg svg { width: 12px; height: 12px; flex: none; animation: spin 1s linear infinite; }
@media (max-width: 720px) {
  .pfx-vlr-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .pfx-vlr-grid div:nth-child(3n+1) { border-left: 0; }
  .pfx-vlr-grid div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .pfx-bar { grid-template-columns: 56px minmax(0,1fr) auto; }
  .pfx-row { grid-template-columns: 64px 22px minmax(0,1fr) 38px 22px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .pfx-vlr-btn[disabled] svg, .pfx-vlr-sub svg, .pfx-vlr-msg svg { animation: none; } }
.pfx-lq { font-size: 11.5px; color: var(--ink-4); margin-left: 8px; display: inline-flex; align-items: center; gap: 4px; }
.pfx-lq.err { color: var(--rose); }
.pdb-lq { font-size: 12px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 5px; }
.pdb-lq[hidden] { display: none; }
.pdb-lq svg { width: 12px; height: 12px; }
.pfx-lq svg { width: 12px; height: 12px; }
.modal.pform-modal { width: min(680px, 95vw); }
.pform { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.pform .full { grid-column: 1 / -1; }
.pform .hint { font-size: 11.5px; color: var(--ink-4); margin-top: 5px; }
.pform textarea.input { height: auto; min-height: 70px; padding: 10px 12px; resize: vertical; }
.pform-state { display: flex; align-items: center; gap: 10px; height: 40px; font-size: 13px; }
.pform-socials { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.modal-b .pform-soc { display: flex; align-items: center; gap: 8px; margin: 0; }
.pform-soc svg { width: 15px; height: 15px; color: var(--ink-3); flex: none; }
.pform-sps { display: flex; flex-wrap: wrap; gap: 6px; }
.pform-sp { cursor: pointer; }
.pform-sp.off { opacity: .45; text-decoration: line-through; }
@media (max-width: 720px) { .pfx { grid-template-columns: 1fr; } .pfx-data { grid-template-columns: 1fr; } .pform { grid-template-columns: 1fr; } .pform-socials { grid-template-columns: 1fr 1fr; } }
.pdb-sel .hsel-btn { border: 0; background: transparent; color: var(--ink); font: 600 13px/1 var(--f-body); height: 34px; padding: 0 6px; box-shadow: none; min-width: 0; }
.pdb-sel .hsel-btn:hover { background: transparent; }
.pflag { display: inline-block; width: 18px; height: 13.5px; border-radius: 2px; object-fit: cover; vertical-align: -1px; margin-right: 6px; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.pfx-real .pflag { width: 16px; height: 12px; margin-right: 5px; }

/* ── Onboarding tour: the whole Hub, section by section ── */
.tour-bd { position: fixed; inset: 0; z-index: 500; background: transparent; transition: background .35s ease; }
.tour-bd.dim { background: rgba(8, 8, 10, .66); backdrop-filter: blur(3px); }
.tour-sp { position: fixed; z-index: 501; pointer-events: none; border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(8, 8, 10, .72), 0 0 0 2px rgba(255, 255, 255, .92), 0 0 28px 6px rgba(255, 255, 255, .18);
  transition: left .45s cubic-bezier(.2, .8, .2, 1), top .45s cubic-bezier(.2, .8, .2, 1), width .45s cubic-bezier(.2, .8, .2, 1), height .45s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.tour-sp::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid rgba(255, 255, 255, .7); animation: tourPulse 2s ease-out infinite; }
.tour-sp.off { opacity: 0; }
@keyframes tourPulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.06); opacity: 0; } }
.tour-tip { position: fixed; z-index: 502; width: 380px; max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); overflow: auto;
  background: var(--elevated); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 18px 20px 16px; opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .28s ease, transform .28s ease, left .45s cubic-bezier(.2, .8, .2, 1), top .45s cubic-bezier(.2, .8, .2, 1); }
.tour-tip.in { opacity: 1; transform: none; }
.tour-tip .tt-bar { height: 3px; border-radius: 3px; background: var(--line); margin: -4px 0 14px; overflow: hidden; }
.tour-tip .tt-bar i { display: block; height: 100%; background: var(--ink); border-radius: inherit; transition: width .45s ease; }
.tour-tip .tt-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tour-tip .tt-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-bg); color: var(--ink); flex: none; }
.tour-tip .tt-ico svg { width: 18px; height: 18px; }
.tour-tip .tt-kicker { font: 500 11px/1 'JetBrains Mono', monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.tour-tip .tt-wip { margin-left: auto; font: 600 10.5px/1 var(--f-body); letter-spacing: .04em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: rgba(242, 193, 78, .18); color: #b7861a; border: 1px solid rgba(242, 193, 78, .45); }
.tour-tip .tt-title { font: 400 italic 26px/1.05 var(--f-serif); margin: 0 0 8px; color: var(--ink); }
.tour-tip .tt-body { font: 400 13.5px/1.55 var(--f-body); color: var(--ink-2); margin: 0 0 12px; }
.tour-tip .tt-sec { border-top: 1px solid var(--line); padding: 10px 0 2px; }
.tour-tip .tt-lab { display: flex; align-items: center; gap: 6px; font: 600 10.5px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.tour-tip .tt-lab svg { width: 13px; height: 13px; }
.tour-tip .tt-sec.auto .tt-lab { color: #2f9e6b; }
.tour-tip .tt-sec ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.tour-tip .tt-sec li { position: relative; padding-left: 14px; font: 400 12.8px/1.45 var(--f-body); color: var(--ink-2); }
.tour-tip .tt-sec li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-4); }
.tour-tip .tt-sec.auto li::before { background: #2f9e6b; }
.tour-tip .tt-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.tour-tip .tt-foot > span { display: flex; gap: 6px; }
.tour-tip .btn svg { width: 14px; height: 14px; }
.tour-tip.wip .tt-ico { background: rgba(242, 193, 78, .18); color: #b7861a; }
/* welcome and finale */
.tour-tip.center { left: 50% !important; top: 50% !important; width: 460px; text-align: center; padding: 30px 30px 24px; transform: translate(-50%, calc(-50% + 12px)) scale(.97); }
.tour-tip.center.in { transform: translate(-50%, -50%); }
.tour-tip .tw-crest { width: 72px; height: 72px; object-fit: contain; display: block; margin: 0 auto 14px; animation: twCrest .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes twCrest { from { transform: scale(.6) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.tour-tip .tw-eyebrow { font: 500 11px/1 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.tour-tip .tw-title { font: 400 italic 34px/1.05 var(--f-serif); margin: 0 0 10px; }
.tour-tip .tw-intro { font: 400 14px/1.6 var(--f-body); color: var(--ink-2); margin: 0 auto 18px; max-width: 380px; }
.tour-tip .tw-stats { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.tour-tip .tw-stat { flex: 1; max-width: 120px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px; }
.tour-tip .tw-stat b { display: block; font: 400 italic 28px/1 var(--f-serif); color: var(--ink); }
.tour-tip .tw-stat span { font: 400 11.5px/1.3 var(--f-body); color: var(--ink-3); }
.tour-tip .tw-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tour-tip .tw-foot.one { justify-content: center; }
.tour-tip .tw-tips { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; text-align: left; }
.tour-tip .tw-tips li { display: flex; align-items: center; gap: 10px; font: 400 13px/1.4 var(--f-body); color: var(--ink-2); background: var(--gold-bg); border-radius: 10px; padding: 9px 12px; }
.tour-tip .tw-tips svg { width: 16px; height: 16px; flex: none; }
.tour-tip .tw-burst { position: absolute; left: 50%; top: 64px; width: 0; height: 0; pointer-events: none; }
.tour-tip .tw-burst i { position: absolute; width: 7px; height: 11px; border-radius: 2px; background: var(--c); opacity: 0; animation: twBurst 1.3s var(--d) cubic-bezier(.15, .7, .3, 1) forwards; }
@keyframes twBurst { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--x), 150px) rotate(540deg); opacity: 0; } }
.tour-tip.finale { overflow: hidden; }
@media (max-width: 700px) {
  .tour-tip { width: calc(100vw - 24px); }
  .tour-tip.center { width: calc(100vw - 24px); padding: 24px 18px 18px; }
  .tour-tip .tw-title { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .tour-sp, .tour-tip, .tour-tip .tt-bar i { transition: none; }
  .tour-sp::after, .tour-tip .tw-crest, .tour-tip .tw-burst i { animation: none; }
}
/* sections still being built */
.nav-item .nav-wip { margin-left: auto; font: 600 9.5px/1 var(--f-body); letter-spacing: .05em; padding: 3px 6px; border-radius: 999px; background: rgba(242, 193, 78, .18); color: #b7861a; border: 1px solid rgba(242, 193, 78, .4); }
body.sidebar-collapsed .nav-item .nav-wip { display: none; }

/* ── Brand Guides: sponsors editable from the Hub (logos, games, rules) ── */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sp-logo { width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; flex: none; overflow: hidden; }
.sp-logo img { max-width: 82%; max-height: 70%; object-fit: contain; display: block; grid-area: 1 / 1; }
.sp-logo.plate-l { background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.sp-logo.plate-d { background: #111113; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
:root[data-theme="light"] .sp-logo .sp-img-d, :root:not([data-theme="light"]) .sp-logo .sp-img-l { display: none; }
.sp-logo.lg, .sp-mark.lg { width: 44px; height: 44px; border-radius: 12px; font-size: 13px; }
.sp-logo.xs { width: 18px; height: 18px; border-radius: 5px; }
.ba-sp .sp-logo.xs { margin-left: -4px; }
#brandMatrix tbody tr { cursor: pointer; transition: background .15s; }
#brandMatrix tbody tr:hover { background: var(--card-2); }
.sp-card { cursor: pointer; position: relative; }
.sp-card.off { opacity: .55; }
.sp-card .sp-edit-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-3); opacity: 0; transition: opacity .15s; }
.sp-card:hover .sp-edit-ico, .sp-card:focus-visible .sp-edit-ico { opacity: 1; }
.sp-card .sp-edit-ico svg { width: 14px; height: 14px; }
.sp-games { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.sp-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sp-rule { display: flex; gap: 8px; align-items: flex-start; font-size: 12.8px; line-height: 1.45; color: var(--ink-2); }
.sp-rule svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.sp-rule.must svg { color: var(--emerald); }
.sp-rule.never svg { color: var(--rose); }
.sp-rule.never span { color: var(--ink); }
.sp-rule.tip svg { color: var(--ink-3); }
.sp-warn { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; padding: 10px 12px; border-radius: 10px; background: var(--gold-bg); color: var(--ink-2); }
.sp-warn svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.spf-color { display: flex; gap: 8px; align-items: center; }
.spf-color input[type=color], .bg-sw input[type=color] { width: 40px; height: 40px; padding: 0; border: 1px solid var(--line-2); border-radius: 10px; background: none; cursor: pointer; flex: none; }
.spf-color input[type=color]::-webkit-color-swatch-wrapper, .bg-sw input[type=color]::-webkit-color-swatch-wrapper { padding: 3px; }
.spf-color input[type=color]::-webkit-color-swatch, .bg-sw input[type=color]::-webkit-color-swatch { border: 0; border-radius: 7px; }
.spf-logos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spf-logo { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.spf-logo-prev { height: 96px; display: grid; place-items: center; position: relative; }
.spf-logo.on-l .spf-logo-prev { background: #fff; }
.spf-logo.on-d .spf-logo-prev { background: #111113; }
.spf-logo-prev img { max-width: 70%; max-height: 64px; object-fit: contain; }
.spf-logo-prev.busy::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(128,128,128,.25), transparent); background-size: 200% 100%; animation: spfBusy 1s linear infinite; }
@keyframes spfBusy { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.spf-logo-none { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 600 13px/1 var(--f-body); color: #fff; background: var(--sp); }
.spf-logo-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; background: var(--card); }
.spf-logo-f .btn svg { width: 13px; height: 13px; }
.spf-games { display: flex; flex-wrap: wrap; gap: 6px; }
.spf-game { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-3); font: 500 12.5px/1 var(--f-body); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.spf-game i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); transition: background .15s; }
.spf-game.on { color: var(--ink); border-color: color-mix(in srgb, var(--gc) 55%, transparent); background: color-mix(in srgb, var(--gc) 12%, transparent); }
.spf-game.on i { background: var(--gc); }
.spf-rules { display: grid; gap: 8px; }
.spf-rule { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.spf-rt button { display: inline-flex; align-items: center; gap: 5px; }
.spf-rt button:not(.on) span { display: none; }            /* only the chosen type is spelled out: the text gets the room */
.spf-rt button svg { width: 13px; height: 13px; }
.spf-rule.must .spf-rt button.on { color: var(--emerald); }
.spf-rule.never .spf-rt button.on { color: var(--rose); }
.spf-add { margin-top: 8px; }
.spf-add svg { width: 13px; height: 13px; }
@media (max-width: 720px) {
  .spf-logos { grid-template-columns: 1fr; }
  .spf-rule { grid-template-columns: 1fr auto; }
  .spf-rule .spf-rt { grid-column: 1 / -1; }
  .spf-rt button span { display: none; }
}
/* the rest of the guide's editor */
.bg-lines { display: grid; gap: 8px; }
.bg-line { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.bg-line.bg-sw { grid-template-columns: auto 1fr 120px auto; }
.bg-do svg { color: var(--emerald); } .bg-dont svg { color: var(--rose); }
.bg-do svg, .bg-dont svg { width: 13px; height: 13px; vertical-align: -2px; }
.bg-kit { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.bg-kit-ico { grid-column: 1 / -1; display: flex; gap: 4px; flex-wrap: wrap; }
.bg-kit-ico button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--ink-3); display: grid; place-items: center; cursor: pointer; }
.bg-kit-ico button.on { border-color: var(--line-strong); color: var(--ink); background: var(--elevated); }
.bg-kit-ico svg { width: 15px; height: 15px; }
.bg-kit input[data-kit-url] { grid-column: 1 / 3; }
.bg-kit .bg-kit-rm { grid-column: 3; grid-row: 2; }
.kit-row.no-link .icon-btn { opacity: .55; }
@media (max-width: 720px) { .bg-line.bg-sw { grid-template-columns: auto 1fr auto; } .bg-line.bg-sw .bg-hex { grid-column: 2; } .bg-kit { grid-template-columns: 1fr auto; } .bg-kit input[data-kit-url] { grid-column: 1; } .bg-kit .bg-kit-rm { grid-column: 2; grid-row: auto; } }
/* the brand assistant's AI answer */
.ba-ai { border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; margin: 4px 0 18px; background: linear-gradient(180deg, var(--gold-bg), transparent 70%); }
.ba-ai-h { display: flex; align-items: center; gap: 8px; font: 600 11px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.ba-ai-h svg { width: 14px; height: 14px; color: var(--ink-2); }
.ba-ai-t { font-size: 14px; line-height: 1.6; color: var(--ink); }
.ba-ai.err { background: transparent; border-style: dashed; }
.ba-ai.err .ba-ai-t, .ba-ai.busy .ba-ai-t { font-size: 13px; }
.ba-ai-w { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.ba-ai-w li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--ink); }
.ba-ai-w svg { width: 14px; height: 14px; color: var(--rose); flex: none; margin-top: 3px; }
.ba-ai-dots { display: inline-flex; gap: 3px; margin-left: 2px; }
.ba-ai-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); animation: baDot 1.1s infinite ease-in-out; }
.ba-ai-dots i:nth-child(2) { animation-delay: .15s; } .ba-ai-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes baDot { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-2px); } }
.ba-rules li b em { font-style: normal; font-weight: 500; color: var(--rose); }
@media (prefers-reduced-motion: reduce) { .ba-ai-dots i, .spf-logo-prev.busy::after { animation: none; } }
.sp-chip .sp-logo.xs { width: 16px; height: 16px; border-radius: 4px; margin-left: -3px; }
.modal-b .spf-logo-f label.btn { margin: 0; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }

/* ── Galería (WIP): the plan and where each part stands ── */
.gal-wip { max-width: 860px; }
/* Galería · first recognition test (Tracyn): KPIs, face crops by group and the photo large in a modal */
.gal-test { max-width: 1080px; margin-bottom: 18px; }
/* Galería · tabs (Fotos / Revisión / Motor) and the photos view: people cards, filters, grid, big photo */
.gal-tabs { display: flex; flex-wrap: wrap; gap: 2px; width: fit-content; max-width: 100%; margin: 0 0 16px; padding: 3px; border: 1px solid var(--line); }
.gal-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0; background: transparent; cursor: pointer; }
.gal-tabs svg { width: 14px; height: 14px; }
.gal-main { max-width: 1280px; margin-bottom: 18px; }
.gl-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.gl-person { display: grid; grid-template-columns: 40px minmax(0,1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--elevated); cursor: pointer; text-align: left; color: var(--ink); }
.gl-person.on { border-color: var(--emerald); box-shadow: 0 0 0 1px var(--emerald); background: var(--emerald-bg); }
.gl-person.is-off { opacity: .45; }
.gl-av { grid-row: 1 / 3; position: relative; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--card); }
.gl-av img { position: absolute; max-width: none; height: auto; }
.gl-pn { font-weight: 600; font-size: 13.5px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-pc { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.gl-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin: 16px 0 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.gl-f { display: grid; gap: 4px; min-width: 150px; font-size: 11.5px; color: var(--ink-3); }
.gl-f select { min-width: 0; }
.gl-count { margin-left: auto; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; align-self: center; }
.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.gl-tile { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--elevated); cursor: zoom-in; }
.gl-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gl-tile:hover img { transform: scale(1.03); }
.gl-tile:focus-visible { outline: 2px solid var(--ctl-focus, var(--ink-3)); outline-offset: 2px; }
.gl-chips { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.gl-chips span { font: 600 10.5px/1 var(--f-body); padding: 4px 7px; border-radius: 999px; background: rgba(0, 0, 0, .64); color: #fff; }
.gl-date { position: absolute; top: 6px; right: 6px; font: 600 10px/1 var(--f-body); padding: 3px 6px; border-radius: 999px; background: rgba(0, 0, 0, .5); color: #fff; opacity: 0; transition: opacity .2s; }
.gl-tile:hover .gl-date, .gl-tile:focus-visible .gl-date { opacity: 1; }
.gl-none { padding: 24px 0; text-align: center; }
.modal.gl-modal { width: min(1100px, 96vw); }
.gl-full { position: relative; }
.gl-box em { position: absolute; left: -2px; top: 100%; margin-top: 4px; font: 600 11px/1 var(--f-body); font-style: normal; white-space: nowrap; padding: 4px 7px; border-radius: 6px; background: var(--emerald); color: #08130d; }
.gl-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 56px; border: 0; border-radius: 10px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.gl-nav:hover { background: rgba(0, 0, 0, .65); }
.gl-nav.is-prev { left: 8px; } .gl-nav.is-next { right: 8px; }
@media (max-width: 720px) {
  .gl-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .gl-f { min-width: calc(50% - 6px); flex: 1 1 calc(50% - 6px); }
  .gl-count { margin-left: 0; width: 100%; }
  .gl-chips span { font-size: 9.5px; padding: 3px 5px; }
}
.gal-test:empty { display: none; }
.gt-card { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 22px 24px; }
.gt-h { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.gt-av { flex: none; width: 56px; height: 56px; border-radius: 14px; object-fit: cover; object-position: top; background: var(--elevated); }
.gt-eyebrow { font: 600 11px/1.2 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.gt-h h3 { font: 700 20px/1.2 var(--f-display); margin: 4px 0 6px; }
.gt-h p { font-size: 13.5px; color: var(--ink-3); margin: 0; line-height: 1.5; max-width: 720px; }
.gt-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 6px; }
.gt-kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--elevated); min-width: 0; }
.gt-kpi b { display: block; font: 700 26px/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.gt-kpi b small { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.gt-kpi.is-good b { color: var(--emerald); }
.gt-kpi span { display: block; margin-top: 4px; font-size: 12px; line-height: 1.35; color: var(--ink-3); }
.gt-sec { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.gt-sec-h { margin-bottom: 12px; }
.gt-sec-h h4 { display: flex; align-items: center; gap: 8px; font: 600 14.5px/1.3 var(--f-body); margin: 0; }
.gt-n { font: 600 11px/1 var(--f-body); padding: 3px 7px; border-radius: 999px; background: var(--elevated); color: var(--ink-3); }
.gt-sec-h p { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.gt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.gt-grid.is-photos { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gt-tile { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--elevated); cursor: zoom-in; }
.gt-tile.is-photo { aspect-ratio: 3 / 2; }
.gt-tile img { position: absolute; max-width: none; height: auto; display: block; }
.gt-tile.is-photo img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gt-tile:hover, .gt-tile:focus-visible { border-color: var(--line-2); }
.gt-tile:focus-visible { outline: 2px solid var(--ctl-focus, var(--ink-3)); outline-offset: 2px; }
.gt-score { position: absolute; left: 5px; bottom: 5px; font: 600 10.5px/1 var(--f-body); font-variant-numeric: tabular-nums; padding: 3px 6px; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #fff; }
.gt-found .gt-score, .gt-extra .gt-score { background: rgba(33, 120, 76, .88); }
.gt-closest img { filter: saturate(.55); }
.gt-credit { display: flex; gap: 8px; align-items: flex-start; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.gt-credit svg { flex: none; width: 14px; height: 14px; margin-top: 2px; }
.gt-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.modal.gt-modal { width: min(980px, 95vw); }
/* Galería · the whole LEC scan: progress, hits and the review queue (✓ / ✕ on each face) */
.gs-prog { display: flex; align-items: center; gap: 12px; margin: -4px 0 14px; font-size: 12px; color: var(--ink-3); }
.gs-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--elevated); overflow: hidden; }
.gs-bar i { display: block; height: 100%; border-radius: inherit; background: var(--emerald); }
.gs-cell { position: relative; }
.gs-acts { position: absolute; top: 5px; right: 5px; display: flex; gap: 4px; }
.gs-btn { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: rgba(0, 0, 0, .58); color: #fff; cursor: pointer; opacity: .85; }
.gs-btn svg { width: 14px; height: 14px; }
.gs-btn:hover, .gs-btn:focus-visible { opacity: 1; }
.gs-btn.is-yes[aria-pressed="true"] { background: #21784c; opacity: 1; }
.gs-btn.is-no[aria-pressed="true"] { background: #b3383d; opacity: 1; }
.gs-cell.is-yes .gt-tile { border-color: var(--emerald); box-shadow: 0 0 0 1px var(--emerald); }
.gs-cell.is-yes .gt-tile img { filter: none; }
.gs-cell.is-no .gt-tile { opacity: .38; }
.gs-more { margin-top: 12px; }
.gs-tabs { display: flex; flex-wrap: wrap; gap: 2px; width: fit-content; max-width: 100%; margin: 0 0 14px; padding: 3px; border: 1px solid var(--line); }
.gs-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; background: transparent; cursor: pointer; }
.gs-tabs .gt-n { padding: 2px 6px; font-size: 10.5px; }
.gs-empty { margin: 0; font-size: 13px; color: var(--ink-3); }
.gs-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.gs-foot .btn[disabled] { opacity: .5; pointer-events: none; }
@media (hover: none) { .gs-btn { opacity: 1; } }
.gt-modal-b { padding-top: 4px; }
.gt-full { position: relative; width: 100%; border-radius: 12px; overflow: hidden; background: var(--elevated); }
.gt-full img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gt-box { position: absolute; border: 2px solid rgba(255, 255, 255, .85); border-radius: 6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.gt-box.is-hit { border-color: var(--emerald); }
.gt-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }
.gt-pill { font: 600 11.5px/1 var(--f-body); padding: 5px 9px; border-radius: 999px; background: var(--elevated); color: var(--ink-2, var(--ink-3)); }
.gt-pill.is-hit { background: var(--emerald-bg); color: var(--emerald); }
@media (max-width: 720px) {
  .gt-card { padding: 18px 16px; }
  .gt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gt-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
  .gt-grid.is-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gt-h h3 { font-size: 18px; }
}
.gal-wip-card { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 22px 24px; }
.gal-wip-h { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.gal-wip-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(242, 193, 78, .14); color: #d4a132; }
.gal-wip-ico svg { width: 20px; height: 20px; }
.gal-wip-h h3 { font: 700 18px/1.2 var(--f-display); margin: 2px 0 6px; }
.gal-wip-h p { font-size: 13.5px; color: var(--ink-3); margin: 0; line-height: 1.5; }
.gal-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.gal-step { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.gal-step-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--f-body); color: var(--ink-3); border: 1px solid var(--line); }
.gal-step.is-prep .gal-step-n { background: rgba(242, 193, 78, .16); border-color: rgba(242, 193, 78, .45); color: #d4a132; }
.gal-step-t { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; flex-wrap: wrap; }
.gal-step-t svg { width: 15px; height: 15px; color: var(--ink-3); }
.gal-step-b p { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.gal-st { font: 600 10.5px/1 var(--f-body); letter-spacing: .03em; padding: 3px 7px; border-radius: 999px; background: var(--elevated); color: var(--ink-3); }
.gal-step.is-prep .gal-st { background: rgba(242, 193, 78, .18); color: #b7861a; }
.gal-step.is-wait .gal-st { background: rgba(229, 72, 77, .12); color: var(--rose); }
@media (max-width: 720px) { .gal-wip-card { padding: 18px 16px; } }

/* ── Planner · legibility (comfortable density, the default) ────────────────────────────────────
   More air between rows and cards, bigger titles, the status always in words, and fewer details on
   screen: channels and the full title (hashtags, emoji) are in the hover preview and in the piece. */
.cw-ev .ev-stline { display: none; }
@media (min-width: 721px) {   /* the week on a phone is 3 narrow columns: it keeps the icon */
  body:not(.density-compact) #view-planner .cw-col { padding: 10px; gap: 10px; }
  body:not(.density-compact) .cw-ev.post-ev:not(.pub-mini) { padding: 11px 12px; }
  body:not(.density-compact) .cw-ev.post-ev:not(.pub-mini) .ev-top { margin-bottom: 7px; }
  body:not(.density-compact) .cw-ev.post-ev:not(.pub-mini) .ev-ttl { font-size: 14px; line-height: 1.4; -webkit-line-clamp: 3; }
  body:not(.density-compact) .cw-ev.post-ev:not(.pub-mini) .ev-sti { display: none; }
  body:not(.density-compact) .cw-ev.post-ev:not(.pub-mini) .ev-stline { display: flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 11.5px; font-weight: 600; color: var(--st-idea); min-width: 0; }
  .ev-stline span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.ev-stline svg { width: 12px; height: 12px; flex: none; stroke-width: 2.2 !important; }
.st-draft .ev-stline { color: var(--st-draft); } .st-review .ev-stline { color: var(--st-review); }
.st-sched .ev-stline { color: var(--st-sched); } .st-pub .ev-stline { color: var(--st-pub); }
body:not(.density-compact) .pll { gap: 18px; }
body:not(.density-compact) .pll-row { min-height: 60px; padding-top: 10px; padding-bottom: 10px; font-size: 14px; }
body:not(.density-compact) .pll-row .pll-title { font-size: 15px; }
body:not(.density-compact) .pll-row .ev-chs { display: none; }
@media (min-width: 721px) {
  body:not(.density-compact) .pll-row:not(.pll-match) { grid-template-columns: 58px 130px minmax(0,1fr) 124px 22px; }
}
body:not(.density-compact) #plannerBoard .post { padding: 14px; }
body:not(.density-compact) #plannerBoard .post .ttl { font-size: 14.5px; line-height: 1.45; margin: 4px 0 2px; }
body:not(.density-compact) #plannerBoard .post .pf .ev-chs { display: none; }
/* ── Modo claro · colores del sistema de diseño «Heretics Hub»: tarjetas grises sobre panel blanco,
   tinta más oscura y colores de juego y estado oscurecidos para que se lean sobre claro. Solo colores. ── */
:root[data-theme="light"] {
  --bg: #f6f4f0; --bg-2: #f6f4f0; --panel: #fbfaf7; --card: #f1eee9; --card-2: #ece8e2; --elevated: #e8e4dd; --hover: #e1ddd5;
  --line: #dcd7ce; --line-2: #d2ccc2; --line-strong: #b3ab9f;
  --ink: #16140f; --ink-2: #4a453e; --ink-3: #5f5951; --ink-4: #5f5951;
  --val: #a8431b; --lol: #2f5fc4; --cod: #4f680c;
  --val-bg: rgba(178,74,32,.10); --lol-bg: rgba(47,95,196,.10); --cod-bg: rgba(85,112,16,.10);
  --st-idea: #625d55; --st-draft: #6a50c8; --st-review: #775d00; --st-sched: #0f6e64; --st-pub: #1f6f45;
  --ctl-bg: #fbfaf7; --ctl-bg-hover: #f1eee9; --ctl-line: #857e73; --ctl-line-hover: #6b655b; --ctl-focus: #16140f;
  --ctl-ring: 0 0 0 2px #fbfaf7, 0 0 0 4px #16140f;
}
