/* Fame Hunger theme: navy-black + gold, taken from the logo. --brand can be changed in Settings → Branding. */
:root {
  --brand: #c29b5a;
  --bg: #f6f4ef;
  --panel: #ffffff;
  --ink: #161922;
  --muted: #6b6860;
  --line: #e6e1d6;
  --brand-ink: color-mix(in srgb, var(--brand) 58%, #000);
  --brand-soft: color-mix(in srgb, var(--brand) 14%, var(--panel));
  --on-brand: #14161e;
  --good: #137a55; --good-soft: #e2f4ec;
  --warn: #94600a; --warn-soft: #fbf0db;
  --bad: #b8323e; --bad-soft: #fbe6e8;
  --side: #12141c;
  --side-2: #1b1e29;
  --side-ink: #c9c5bb;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(18, 20, 28, .05), 0 6px 20px rgba(18, 20, 28, .05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1017; --panel: #171a24; --ink: #eeebe4; --muted: #a19c90; --line: #2a2d39;
    --brand-ink: color-mix(in srgb, var(--brand) 82%, #fff); --brand-soft: color-mix(in srgb, var(--brand) 16%, var(--panel));
    --good: #49d29e; --good-soft: #15352b; --warn: #f0b85a; --warn-soft: #3a2e15; --bad: #ff7d88; --bad-soft: #3d1b21;
    --side: #090a0f; --side-2: #14161f; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1017; --panel: #171a24; --ink: #eeebe4; --muted: #a19c90; --line: #2a2d39;
  --brand-ink: color-mix(in srgb, var(--brand) 82%, #fff); --brand-soft: color-mix(in srgb, var(--brand) 16%, var(--panel));
  --good: #49d29e; --good-soft: #15352b; --warn: #f0b85a; --warn-soft: #3a2e15; --bad: #ff7d88; --bad-soft: #3d1b21;
  --side: #090a0f; --side-2: #14161f; --shadow: none; color-scheme: dark;
}
:root[data-size="large"] body { zoom: 1.12; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: 12px ui-monospace, Menlo, monospace; background: var(--brand-soft); padding: 1px 5px; border-radius: 8px; }

/* ---- layout + sidebar */
.layout { display: flex; min-height: 100vh; }
.side { width: 232px; flex: none; background: var(--side); color: var(--side-ink); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.brandmark { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; }
.brandmark .tile { width: 42px; height: 42px; border-radius: 12px; background: #fff; display: grid; place-items: center; flex: none; overflow: hidden; }
.brandmark .tile img { width: 100%; height: 100%; object-fit: contain; }
.wordmark { font-weight: 900; font-size: 15px; letter-spacing: .09em; line-height: 1.1; background: linear-gradient(90deg, #fff 0%, #fff 30%, var(--brand) 48%, var(--brand) 62%, #fff 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { font-size: 8px; letter-spacing: .1em; white-space: nowrap; color: var(--side-ink); opacity: .7; margin-top: 3px; }
.side nav a { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 8px; color: var(--side-ink); font-weight: 500; margin-bottom: 2px; }
.side nav a:hover { background: var(--side-2); text-decoration: none; color: #fff; }
.side nav a.on { background: var(--brand); color: var(--on-brand); font-weight: 650; }
.side .navlabel { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .5; padding: 14px 12px 6px; }
.side .me { margin-top: auto; padding: 12px; border-top: 1px solid var(--side-2); font-size: 12px; }
.side .me a { color: var(--brand); }
.main { flex: 1; min-width: 0; padding: 28px 32px 60px; }

h1 { font-size: 24px; margin: 0; letter-spacing: -.4px; }
h2 { font-size: 16px; margin: 0 0 12px; }
h3 { font-size: 14px; margin: 16px 0 8px; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.head p { margin: 4px 0 0; color: var(--muted); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.right { text-align: right; }
.gold { color: var(--brand-ink); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.stat .label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.stat .value { font-size: 28px; font-weight: 750; letter-spacing: -.5px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .sub { color: var(--muted); font-size: 12px; }
.stat.accent { border-top: 3px solid var(--brand); }

.btn { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 8px; padding: 8px 14px; font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { border-color: var(--brand); text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.dark { background: var(--side); border-color: var(--side); color: #fff; }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 4px 10px; font-size: 12px; }
.btn.wa { background: #1fa855; border-color: #1fa855; color: #fff; }
.btn:disabled { opacity: .5; cursor: wait; }

input, select, textarea { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
input[type=color] { padding: 2px; height: 38px; width: 60px; }
textarea { min-height: 80px; resize: vertical; }
label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form.three { grid-template-columns: 1fr 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: end; }
.toolbar input, .toolbar select { width: auto; min-width: 140px; }
.toolbar input[type=search] { flex: 1; min-width: 200px; }
.filters-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; padding: 14px; }

.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; background: color-mix(in srgb, var(--bg) 60%, var(--panel)); position: sticky; top: 0; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td input, td select { padding: 5px 7px; font-size: 13px; }
td select { min-width: 130px; width: auto; }
td input.n { width: 90px; text-align: right; }
tr.blacklisted td { opacity: .55; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--brand-soft); color: var(--brand-ink); white-space: nowrap; }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.gold { background: color-mix(in srgb, #c29b5a 18%, transparent); color: #9c7a3f; }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.grey { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.stars { color: var(--brand); letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: var(--line); }
.star-input button { background: none; border: 0; font-size: 28px; cursor: pointer; color: var(--line); padding: 0 2px; }
.star-input button.on { color: var(--brand); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.list li:last-child { border-bottom: 0; }

.setup { display: flex; gap: 10px; flex-wrap: wrap; }
.setup .item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; border: 1px dashed var(--line); }
.pipeline { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 18px; }
.pipeline .step { padding: 6px 10px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); font-size: 12px; }
.pipeline .step b { font-size: 14px; margin-left: 4px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--brand-ink); border-color: var(--brand); }

.modal-bg { position: fixed; inset: 0; background: rgba(8, 9, 14, .55); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; z-index: 50; }
.modal { background: var(--panel); border-radius: 12px; width: 100%; max-width: 680px; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal.wide { max-width: 940px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-head h2 { margin: 0; font-size: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.x { background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--muted); line-height: 1; }

.draft { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.draft .to { font-size: 12px; color: var(--muted); margin-bottom: 6px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.draft textarea { min-height: 140px; }

.toast { position: fixed; bottom: 20px; right: 20px; background: var(--side); color: #fff; padding: 12px 16px; border-radius: 12px; z-index: 99; max-width: 440px; box-shadow: 0 8px 30px rgba(0,0,0,.25); border-left: 4px solid var(--brand); }
.toast.err { border-left-color: var(--bad); }
.help { background: var(--brand-soft); border-radius: 12px; padding: 12px 14px; font-size: 13px; margin-bottom: 14px; }
.help ol { margin: 6px 0 0; padding-left: 18px; }
.warnbox { background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: 13px; }
.warnbox a { color: inherit; text-decoration: underline; }
.section { margin-top: 26px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); font-weight: 500; }
.check input { width: auto; }
.kbd { font: 11px ui-monospace, Menlo, monospace; border: 1px solid var(--line); border-radius: 8px; padding: 1px 5px; color: var(--muted); }
.copybox { display: flex; gap: 6px; }
.copybox input { font: 12px ui-monospace, Menlo, monospace; }

/* ---- find influencers */
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--line); flex: none; display: inline-block; }
.who { display: flex; gap: 10px; align-items: center; }
.cmd { display: flex; gap: 10px; align-items: stretch; }
.cmd textarea { flex: 1; min-height: 52px; height: 52px; font-size: 17px; padding: 13px 16px; border-radius: 12px; resize: none; overflow: hidden; border: 2px solid var(--brand); }
.cmd .btn { font-size: 16px; padding: 0 22px; border-radius: 12px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.chip { border: 1px dashed var(--line); background: var(--panel); border-radius: 99px; padding: 5px 12px; font: 13px ui-monospace, Menlo, monospace; cursor: pointer; color: var(--ink); }
.chip:hover { border-color: var(--brand); color: var(--brand-ink); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; align-items: end; }
.filters > div { min-width: 130px; }
.importbar { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; flex-wrap: wrap; align-items: end; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-top: 12px; box-shadow: 0 -6px 24px rgba(18,20,28,.08); }
.importbar > div { min-width: 150px; flex: 1; }

/* ---- documents (invoice, contract) */
.doc { background: #fff; color: #161922; border: 1px solid var(--line); border-radius: 8px; padding: 40px 44px; max-width: 860px; margin: 0 auto; box-shadow: var(--shadow); }
.doc table { font-size: 13px; }
.doc th { background: #f3efe6; color: #3b3a36; position: static; }
.doc td, .doc th { border: 1px solid #d9d3c5; padding: 7px 9px; }
.doc tbody tr:hover td { background: none; }
.doc .doc-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--brand); padding-bottom: 14px; margin-bottom: 18px; }
.doc .doc-head img { height: 86px; }
.doc .doc-title { font-size: 24px; font-weight: 800; letter-spacing: .14em; }
.doc .blocks { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #d9d3c5; margin-bottom: 14px; }
.doc .blocks > div { padding: 10px 12px; }
.doc .blocks > div + div { border-left: 1px solid #d9d3c5; }
.doc .blocks h4 { margin: 0 0 6px; font-size: 11px; letter-spacing: .1em; color: #8a6a2f; }
.doc .kv { display: grid; grid-template-columns: 110px 1fr; gap: 2px 8px; font-size: 13px; }
.doc .kv b { font-weight: 600; color: #555; }
.doc .totals td { font-weight: 600; }
.doc .grand td { font-size: 16px; font-weight: 800; background: #f3efe6; }
.doc pre { white-space: pre-wrap; font: 13.5px/1.6 Georgia, "Times New Roman", serif; margin: 0; }
.doc .sign { display: flex; justify-content: flex-end; margin-top: 36px; text-align: center; font-size: 12px; }
.doc-actions { max-width: 860px; margin: 0 auto 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---- login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #1d2030, #0b0c12 65%); padding: 20px; }
.login { width: 100%; max-width: 380px; background: var(--panel); border-radius: 16px; padding: 30px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.login img { display: block; width: 190px; margin: 0 auto 18px; border-radius: 8px; }

@media (max-width: 860px) {
  .layout { flex-direction: column; }
  .side { width: 100%; height: auto; position: static; flex-direction: row; overflow-x: auto; gap: 4px; padding: 10px; align-items: center; }
  .side nav { display: flex; gap: 4px; }
  .side nav a { white-space: nowrap; }
  .side .navlabel, .tagline, .side .me { display: none; }
  .brandmark { padding: 0 8px 0 0; }
  .main { padding: 18px 16px 40px; }
  .form, .form.three, .doc .blocks { grid-template-columns: 1fr; }
  .doc { padding: 20px; }
}

@media print {
  .side, .no-print, .tabs, .doc-actions, .toast { display: none !important; }
  .main { padding: 0; }
  body { background: #fff; color: #000; zoom: 1 !important; }
  .card, .table-wrap, .doc { box-shadow: none; border: 0; }
  .doc { padding: 0; max-width: none; }
  .doc th, .doc .grand td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
#tab td:nth-child(2) { min-width: 170px; }
.nowrap { white-space: nowrap; }
.kvrow { display: grid; grid-template-columns: 170px 1fr; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.who b { white-space: nowrap; } .who > div { min-width: 130px; }
/* compact influencer list */
table.compact th, table.compact td { padding: 7px 10px; }
table.compact .avatar { width: 30px; height: 30px; }
table.compact td.fit, table.compact th.fit { width: 1%; white-space: nowrap; }
.cut { display: inline-block; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
a.handle { color: var(--muted); }
a.handle:hover { color: var(--brand-ink); text-decoration: underline; }
a:hover .pill.plat { border-color: var(--brand); color: var(--brand-ink); }

/* ---- voice assistant */
.fh-mic { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--side); color: #fff; font-size: 24px; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.3), 0 0 0 3px var(--brand); }
.fh-mic:hover { transform: scale(1.05); }
.fh-mic.on { display: none; }
.fh-mic.listening, .fh-rec.listening { animation: fh-pulse 1.1s ease-in-out infinite; }
@keyframes fh-pulse { 0%, 100% { box-shadow: 0 0 0 3px var(--brand), 0 0 0 0 color-mix(in srgb, var(--brand) 60%, transparent); } 50% { box-shadow: 0 0 0 3px var(--brand), 0 0 0 12px transparent; } }
.fh-asst { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 380px; max-width: calc(100vw - 32px); max-height: min(560px, calc(100vh - 44px)); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 70px rgba(0,0,0,.35); overflow: hidden; }
.fh-asst[hidden] { display: none; }
.fh-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 10px 16px; background: var(--side); color: #fff; }
.fh-head select { width: auto; padding: 3px 6px; font-size: 12px; background: var(--side-2); color: #fff; border-color: #333; }
.fh-head .btn { background: var(--side-2); border-color: #333; color: #fff; }
.fh-head .x { color: #fff; }
.fh-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; }
.fh-msg { max-width: 85%; padding: 8px 12px; border-radius: 12px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; }
.fh-msg.user { align-self: flex-end; background: var(--brand); color: var(--on-brand); border-bottom-right-radius: 4px; }
.fh-msg.bot { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.fh-msg.live { opacity: .65; font-style: italic; }
.fh-msg.err { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.fh-input { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); align-items: center; }
.fh-rec { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--brand); font-size: 20px; cursor: pointer; box-shadow: 0 0 0 3px transparent; }
.fh-tips { font-size: 12px; color: var(--muted); padding: 0 12px 10px; }
@media print { .fh-mic, .fh-asst { display: none !important; } }
.fh-brain { font-size: 11px; color: var(--brand); letter-spacing: .04em; margin-top: 1px; }
.fh-confirm { display: flex; gap: 6px; align-self: flex-start; }
#fh-hands.primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
/* Mac app: banner on the old Mac copy */

.relay-code { margin: 10px 0 0; padding: 10px 12px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; font-size: 12px; line-height: 1.5; overflow-x: auto; white-space: pre; }

select.sm, input.sm { padding: 4px 8px; font-size: 13px; min-height: 0; width: auto; }
/* 📈 Website page: visitors per day */
.wbars { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding-top: 6px; }
.wbar { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; min-width: 2px; }
.wbar span { display: block; width: 100%; border-radius: 8px 4px 0 0; background: var(--brand, #c29b5a); opacity: .85; }
.wbar:hover span { opacity: 1; }
/* brand pick answer in a campaign's Influencers tab */
td select.bp-yes { background: var(--good-soft); border-color: var(--good); }
td select.bp-no { background: var(--bad-soft); border-color: var(--bad); }

/* ---- 📋 Team sheet: one tab per team member (like Google Sheets tabs), and their editable sheet */
.sheet-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 2px solid var(--brand); margin: 0 0 16px; padding-top: 2px; scrollbar-width: thin; }
.sheet-tabs a { flex: none; padding: 9px 14px; min-height: 40px; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--panel); color: var(--ink); font-weight: 550; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.sheet-tabs a:hover { text-decoration: none; border-color: var(--brand); }
.sheet-tabs a.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 700; }
.sheet-tabs .cnt { min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-ink); font-size: 11px; font-weight: 700; text-align: center; }
.sheet-tabs a.on .cnt { background: rgba(0, 0, 0, .14); color: var(--on-brand); }
.tsheet-wrap { overflow: auto; max-height: calc(100vh - 300px); min-height: 160px; border: 1px solid var(--line); border-radius: var(--radius); }
.tsheet { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; }
.tsheet th, .tsheet td { padding: 0; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.tsheet thead th { padding: 8px 10px; position: sticky; top: 0; z-index: 2; }
.tsheet th.n { padding: 0 10px; text-align: center; color: var(--muted); font-size: 12px; font-weight: 650; position: sticky; left: 0; z-index: 1; background: var(--panel); text-transform: none; letter-spacing: 0; }
.tsheet td.added { padding: 0 10px; white-space: nowrap; color: var(--muted); }
.tsheet td input, .tsheet td select { border: 0; border-radius: 0; background: transparent; padding: 9px 10px; font-size: 13px; width: 100%; min-height: 40px; }
.tsheet td input:focus, .tsheet td select:focus { outline: 2px solid var(--brand); outline-offset: -2px; background: var(--brand-soft); }
.tsheet td.bad input, .tsheet td.bad select { box-shadow: inset 0 0 0 2px var(--bad); }
.tsheet tr.flash td { background: var(--good-soft); }
.tsheet td:last-child { padding: 4px 8px; }
@media (max-width: 700px) { .tsheet-wrap { max-height: none; } .tsheet td input, .tsheet td select { font-size: 16px; } }
/* 📋 Team sheet → a member's 📥 work list (read-only for the owner), coloured by how far they got */
.tsheet tr[class^="wst-"] td.added { color: var(--ink); padding: 7px 10px; }
.tsheet tr[class^="wst-"] td.added.small { color: var(--muted); }
.tsheet tr.wst-contacted td { background: color-mix(in srgb, var(--warn-soft) 45%, var(--panel)); }
.tsheet tr.wst-replied td, .tsheet tr.wst-analytics td, .tsheet tr.wst-rate td { background: var(--brand-soft); }
.tsheet tr.wst-joined td { background: var(--good-soft); }
.tsheet tr.wst-no_reply td, .tsheet tr.wst-not_interested td { opacity: .6; }

/* 🎮 Game page: tabs with counts, one row of filters, then the table */
.gm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; }
.gm-sub { font-size: 12px; color: var(--muted); }
.gm-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.gm-seg a { padding: 8px 14px; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; text-decoration: none; border-right: 1px solid var(--line); }
.gm-seg a:last-child { border-right: 0; }
.gm-seg a:hover { background: var(--brand-soft); text-decoration: none; }
.gm-seg a.on { background: var(--ink); color: var(--panel); }
.gm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; min-height: 40px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); font-weight: 600; text-decoration: none; }
.gm-chip:hover { border-color: var(--brand); text-decoration: none; }
.gm-chip.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.gm-bulk { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 10px; border: 1px solid var(--brand); background: var(--brand-soft); border-radius: var(--radius); position: sticky; top: 8px; z-index: 5; }
.gm-table table td { vertical-align: middle; }
.gm-table tbody tr:hover { background: color-mix(in srgb, var(--brand) 5%, transparent); }
.gm-tick { width: 34px; } .gm-tick input { width: auto; margin: 0; }
.gm-who { display: flex; align-items: center; gap: 10px; min-width: 230px; }
.gm-empty { padding: 28px 10px; text-align: center; color: var(--muted); }
.gm-bars { display: grid; gap: 6px; max-width: 640px; }
.gm-bar { display: grid; grid-template-columns: 140px 1fr 48px; align-items: center; gap: 10px; font-size: 13px; }
.gm-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-bar i { display: block; height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--brand) var(--w), var(--line) var(--w)); }
.gm-bar b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .gm-bar { grid-template-columns: 100px 1fr 40px; } }
.gm-add { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gm-hint { margin: 8px 2px 10px; font-size: 13px; color: var(--muted); }
.gm-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 14px; margin-bottom: 8px; }
.gm-field { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.gm-field select { width: auto; min-height: 40px; padding: 6px 10px; border-radius: 12px; }
/* 🔎 HIPELOOK search: one field that looks exactly like the Category / Sort boxes, icon inside on the left */
.gm-search { position: relative; display: flex; align-items: center; flex: 1 1 170px; min-width: 150px; max-width: 300px; margin: 0; }
.gm-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; transition: color .16s; }
.gm-search input { width: 100%; min-height: 40px; padding: 8px 12px 8px 36px; border-radius: 12px; font-size: 14px; }
.gm-search input::placeholder { color: var(--muted); opacity: .85; }
.gm-search:focus-within svg { color: var(--brand); }
.gm-result { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 4px 2px 10px; font-size: 14px; }
.gm-name { display: flex; flex-direction: column; min-width: 0; }
.gm-name a { text-decoration: none; } .gm-name a:hover { text-decoration: underline; }
.gm-tag { display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-ink); font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.gm-tag:hover { text-decoration: none; filter: brightness(1.08); }
.gm-mail { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-sort { color: inherit; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }
.gm-sort span { opacity: .45; font-size: 11px; }
.gm-sort:hover { color: var(--brand-ink); text-decoration: none; } .gm-sort:hover span { opacity: 1; }
.gm-sort.on { color: var(--brand-ink); } .gm-sort.on span { opacity: 1; }
.gm-pick { display: grid; gap: 8px; }
.gm-opt { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 12px 14px; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); font: inherit; cursor: pointer; }
.gm-opt:hover, .gm-opt:focus-visible { border-color: var(--brand); background: var(--brand-soft); }
.gm-opt span { font-size: 12px; color: var(--muted); }
.gm-wk { margin: 0 0 12px; display: grid; gap: 8px; }
.gm-wkrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.gm-nav { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 8px; color: inherit; text-decoration: none; }
.gm-nav:hover { border-color: var(--brand); text-decoration: none; }
.gm-days { display: inline-flex; gap: 4px; flex-wrap: wrap; margin-left: 6px; }
.gm-days a { padding: 4px 9px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 12px; white-space: nowrap; }
.gm-days a b { color: var(--ink); margin-left: 2px; }
.gm-days a:hover { border-color: var(--brand); text-decoration: none; }
.gm-days a.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); } .gm-days a.on b { color: var(--on-brand); }
.gm-days a.later { opacity: .45; }
.gm-who-row { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.gm-who-row b { color: var(--ink); margin-left: 3px; }
.gm-more summary { cursor: pointer; color: var(--brand-ink); font-size: 12px; }
.gm-more table { margin-top: 6px; } .gm-more td, .gm-more th { padding: 3px 8px; font-size: 12px; }
.live-hours { display: inline-flex; align-items: flex-end; gap: 2px; height: 28px; }
.live-hours i { display: block; width: 7px; min-height: 2px; border-radius: 2px; background: var(--brand); opacity: .85; }

/* ================================================================== ✨ v2 look (2026-11-11)
   Premium black + gold, same tokens. Everything below only restyles: delete this block to go back to the old look. */
@font-face { font-family: "Saira"; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/fonts/saira-latin.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/inter-latin.woff2) format("woff2"); }
:root {
  --display: "Saira", "Inter", system-ui, sans-serif;
  --radius: 16px;
  --bg: #f5f2ec; --panel: #ffffff; --line: #e8e2d6;
  --gold-grad: linear-gradient(135deg, #e3c48a 0%, var(--brand) 45%, #9c7638 100%);
  --shadow: 0 1px 2px rgba(18, 20, 28, .04), 0 10px 30px rgba(18, 20, 28, .06);
  --lift: 0 2px 4px rgba(18, 20, 28, .05), 0 18px 40px rgba(18, 20, 28, .10);
  --glow: 0 0 0 1px color-mix(in srgb, var(--brand) 40%, transparent), 0 12px 34px color-mix(in srgb, var(--brand) 22%, transparent);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0a0c12; --panel: #12151e; --line: rgba(255, 255, 255, .075); --side: #07080d; --side-2: #151925;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 30px rgba(0, 0, 0, .35); --lift: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 20px 44px rgba(0, 0, 0, .5); }
}
:root[data-theme="dark"] { --bg: #0a0c12; --panel: #12151e; --line: rgba(255, 255, 255, .075); --side: #07080d; --side-2: #151925;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 30px rgba(0, 0, 0, .35); --lift: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 20px 44px rgba(0, 0, 0, .5); }

body { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased;
  background: radial-gradient(1100px 520px at 100% -10%, color-mix(in srgb, var(--brand) 11%, transparent), transparent 60%), var(--bg); background-attachment: fixed; }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.01em; line-height: 1.15; }
h1 em, .login-brand h1 em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: 16px; font-weight: 700; letter-spacing: -.005em; }
.eyebrow { margin: 0 0 6px !important; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink) !important; display: flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--brand) 35%, transparent); }
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--muted) 45%, transparent) transparent; }

/* sidebar */
.side { width: 248px; padding: 20px 14px; background: linear-gradient(180deg, #0d0f17 0%, var(--side) 55%); border-right: 1px solid rgba(255, 255, 255, .06);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .02); }
.side::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 220px; pointer-events: none;
  background: radial-gradient(240px 160px at 20% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%); }
.brandmark { position: relative; padding: 4px 8px 20px; margin-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.brandmark .tile { box-shadow: 0 6px 18px rgba(0, 0, 0, .4), 0 0 0 1px color-mix(in srgb, var(--brand) 45%, transparent); }
.wordmark { font-family: var(--display); font-size: 16px; letter-spacing: .08em; }
.side nav a { position: relative; gap: 11px; padding: 9px 12px; border-radius: 12px; font-weight: 520; font-size: 14px; color: #b9b5ac;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease); }
.side nav a .ic { width: 18px; height: 18px; flex: none; opacity: .8; transition: opacity .18s, color .18s; }
.side nav a:hover { background: rgba(255, 255, 255, .055); color: #fff; transform: translateX(2px); }
.side nav a:hover .ic { opacity: 1; color: var(--brand); }
.side nav a.on { background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 26%, transparent), color-mix(in srgb, var(--brand) 6%, transparent));
  color: #fff; font-weight: 650; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 30%, transparent); }
.side nav a.on::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold-grad); box-shadow: 0 0 12px var(--brand); }
.side nav a.on .ic { color: var(--brand); opacity: 1; }
.side .navlabel { font-size: 11px; font-weight: 700; letter-spacing: .16em; opacity: .42; padding: 16px 12px 6px; }
.side .navgrp:hover { opacity: .8; }
.side .me { display: flex; align-items: center; gap: 10px; margin: 12px -2px 0; padding: 12px 10px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.me-av { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 700 12.5px var(--display); letter-spacing: .04em;
  color: #0a0c12; background: var(--gold-grad); box-shadow: 0 0 0 2px rgba(255, 255, 255, .08); }
.me-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.me-who b { color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-who span { color: #8f8b82; font-size: 12px; }
.side .me a.me-out { margin-left: auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: #b9b5ac; flex: none; }
.side .me a.me-out:hover { background: rgba(255, 255, 255, .07); color: var(--brand); text-decoration: none; }
.me-out .ic { width: 17px; height: 17px; }
.main { padding: 30px 36px 70px; animation: fh-in .35s var(--ease) both; }
@keyframes fh-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* cards, stats */
.card { border-radius: var(--radius); padding: 20px; transition: box-shadow .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease); }
.grid > .card:hover, .card.stat:hover { box-shadow: var(--lift); border-color: color-mix(in srgb, var(--brand) 28%, var(--line)); }
.card h2 { display: flex; align-items: center; gap: 8px; }
.stat { position: relative; overflow: hidden; padding: 20px 20px 18px; }
.stat:hover { transform: translateY(-2px); }
.stat .label { font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.stat .value { font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -.01em; margin-top: 6px; line-height: 1.1; }
.stat-ic { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--brand-ink);
  background: var(--brand-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 25%, transparent); }
.stat-ic .ic { width: 19px; height: 19px; }
.stat.accent { border-top: 1px solid var(--line); background: radial-gradient(260px 140px at 100% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%), var(--panel);
  border-color: color-mix(in srgb, var(--brand) 38%, var(--line)); }
.stat.accent .value { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat.accent .stat-ic { background: var(--gold-grad); color: #0a0c12; box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 35%, transparent); }
.dash-hero { padding: 6px 0 8px; margin-bottom: 22px; }
.dash-hero h1 { font-size: clamp(26px, 3vw, 36px); }
.list li { padding: 10px 2px; transition: background .15s; }

/* buttons */
.btn { border-radius: 99px; padding: 9px 16px; font-weight: 600; transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s, background .16s, filter .16s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, .10); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn.primary { background: var(--gold-grad); border-color: transparent; color: #0a0c12; box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 30%, transparent); }
.btn.primary:hover { filter: brightness(1.07); box-shadow: var(--glow); }
.btn.sm { padding: 5px 12px; }
.btn:disabled, .btn:disabled:hover { transform: none; box-shadow: none; }

/* inputs */
input, select, textarea { border-radius: 12px; padding: 9px 12px; transition: border-color .16s, box-shadow .16s; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
label { font-size: 12px; letter-spacing: .01em; }
/* dark: fields need a visible edge (they sat on the same colour as the card) */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) input:not([type=checkbox]):not([type=radio]):not([type=color]), :root:not([data-theme="light"]) select, :root:not([data-theme="light"]) textarea {
  background: rgba(255, 255, 255, .035); border-color: rgba(255, 255, 255, .16); } }
:root[data-theme="dark"] input:not([type=checkbox]):not([type=radio]):not([type=color]), :root[data-theme="dark"] select, :root[data-theme="dark"] textarea { background: rgba(255, 255, 255, .035); border-color: rgba(255, 255, 255, .16); }
/* light: the gold big number needs a deeper gold to stay readable on white */
.stat.accent .value { background: linear-gradient(135deg, #b08a46 0%, #8a6528 100%); -webkit-background-clip: text; background-clip: text; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stat.accent .value { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; } }
:root[data-theme="dark"] .stat.accent .value { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; }

/* tables, pills, tabs, modals, toast */
.table-wrap { border-radius: var(--radius); }
th { font-size: 11px; letter-spacing: .1em; }
tbody tr { transition: background .12s; }
.pill { padding: 3px 10px; font-weight: 650; letter-spacing: .01em; }
.tabs { gap: 6px; border-bottom: 1px solid var(--line); }
.tabs button { border-radius: 12px 10px 0 0; transition: color .15s, background .15s; }
.tabs button:hover { color: var(--ink); background: color-mix(in srgb, var(--brand-soft) 60%, transparent); }
.modal-bg { background: rgba(6, 7, 11, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal { border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .4); animation: fh-pop .22s var(--ease) both; }
@keyframes fh-pop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-head h2 { font-family: var(--display); font-size: 20px; }
.toast { border-radius: 12px; border: 1px solid rgba(255, 255, 255, .08); border-left: 4px solid var(--brand); backdrop-filter: blur(8px); animation: fh-pop .22s var(--ease) both; }
.setup .item { border-radius: 99px; padding: 7px 14px; }

/* login */
.login-wrap { position: relative; overflow: hidden; background: radial-gradient(900px 600px at 15% 10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%),
  radial-gradient(700px 500px at 100% 100%, rgba(80, 90, 140, .18), transparent 60%), #07080d; color: #eeebe4; }
.login-wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px); background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%); -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%); }
.login-split { position: relative; z-index: 1; width: min(1040px, 100%); display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.login-brand h1 { font-size: clamp(32px, 4vw, 50px); line-height: 1.08; color: #fff; margin: 26px 0 26px; }
.lb-mark { display: flex; align-items: center; gap: 12px; font: 800 17px var(--display); letter-spacing: .1em; color: #fff; }
.lb-mark img { width: 46px; height: 46px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 50%, transparent), 0 10px 30px rgba(0, 0, 0, .5); }
.lb-points { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.lb-points li { display: flex; align-items: center; gap: 14px; color: rgba(238, 235, 228, .82); font-size: 16px; }
.lb-points .ic { width: 40px; height: 40px; padding: 10px; flex: none; border-radius: 12px; color: var(--brand); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.lb-safe { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border-radius: 99px; font-size: 13px; color: #d8c49a;
  background: color-mix(in srgb, var(--brand) 12%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }
.lb-safe .ic { width: 16px; height: 16px; }
.login { max-width: 400px; justify-self: center; padding: 34px 32px 26px; border-radius: 22px; color: var(--ink);
  background: color-mix(in srgb, var(--panel) 94%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  box-shadow: 0 40px 100px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .03) inset; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: fh-pop .4s var(--ease) both; }
.login img { width: 150px; margin-bottom: 16px; border-radius: 12px; }
.login-title { font: 800 24px var(--display); text-align: center; margin: 0 0 4px; }
.login-sub { text-align: center; color: var(--muted); margin: 0 0 20px; font-size: 14px; }
.login input { padding: 12px 14px; font-size: 16px; }
.login .btn.primary { border-radius: 12px; font-size: 16px; }
.login-wrap > .login { margin: 0 auto; }
@media (min-width: 861px) { .login-split .login img { display: none; } .login-split .login { padding-top: 38px; } }

@media (max-width: 860px) {
  .side::before, .side nav a.on::before { display: none; }
  .side { width: 100%; padding: 10px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .brandmark { border-bottom: 0; margin: 0; }
  .side nav a:hover { transform: none; }
  .side nav { align-items: center; }
  .side nav [data-grpbody] { display: flex !important; gap: 4px; }
  .side nav .navgrp, .side nav .navlabel, #menu-switch { display: none !important; }
  .side nav a { padding: 8px 12px; }
  .wordmark { white-space: nowrap; font-size: 14px; }
  .side .me { display: flex; margin: 0 0 0 6px; padding: 0; border: 0; background: none; }
  .me-who, .me-av { display: none; }
  .main { padding: 20px 16px 50px; }
  .login-split { grid-template-columns: 1fr; gap: 26px; }
  .login-brand { text-align: center; }
  .login-brand h1 { margin: 16px 0 0; font-size: 28px; }
  .lb-mark { justify-content: center; }
  .lb-points, .lb-safe { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .main, .modal, .toast, .login { animation: none; }
  .btn, .card, .side nav a { transition: none; }
}

/* ✨ v2: icons inside pages, the 14-day chart, the "All clear" card */
.ic-in { width: 1.05em; height: 1.05em; flex: none; vertical-align: -.16em; margin-right: .42em; }
h1 .ic-in { width: .9em; height: .9em; color: var(--brand-ink); vertical-align: -.08em; }
.card > h2 .ic-in { color: var(--brand-ink); margin-right: 0; }
.btn .ic-in { margin-right: 0; width: 16px; height: 16px; }
.tabs > button .ic-in, .sheet-tabs > a .ic-in { width: 15px; height: 15px; }
.all-clear { background: radial-gradient(260px 120px at 0% 0%, color-mix(in srgb, var(--good) 10%, transparent), transparent 70%), var(--panel); }
.all-clear .pill { padding: 5px 12px; }
.trend-card { padding-bottom: 14px; }
.trend-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.trend-head h2 { margin: 0; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend b { color: var(--ink); }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
:root { --s1: #a47a34; --s2: #3b6fd4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --s1: #b08433; --s2: #5b88e6; } }
:root[data-theme="dark"] { --s1: #b08433; --s2: #5b88e6; }
.sw.s1 { background: var(--s1); } .sw.s2 { background: var(--s2); }
.trend-plot { position: relative; }
.trend { width: 100%; height: auto; display: block; overflow: visible; }
.trend .tg { stroke: var(--line); stroke-width: 1; }
.trend .tl { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.trend .tln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.trend .tln.s1 { stroke: var(--s1); } .trend .tln.s2 { stroke: var(--s2); }
.trend .tdot { stroke: var(--panel); stroke-width: 2; }
.trend .tdot.s1 { fill: var(--s1); } .trend .tdot.s2 { fill: var(--s2); }
.trend .tdl { fill: var(--ink); font-size: 12px; font-weight: 650; }
.trend .tx { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.ttip { position: absolute; top: 0; transform: translateX(-50%); pointer-events: none; display: flex; flex-direction: column; gap: 3px; min-width: 120px;
  padding: 8px 10px; border-radius: 12px; font-size: 12px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--lift); }
.ttip span { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.ttip span b { color: var(--ink); margin-left: auto; padding-left: 8px; }
.trend-card details summary { cursor: pointer; color: var(--muted); margin-top: 6px; }
.ttip[hidden] { display: none; }
@media (max-width: 600px) { .trend-plot { overflow-x: auto; } .trend { min-width: 560px; } }
.trend-head > h2 .ic-in { color: var(--brand-ink); }
.side .me a.me-out + a.me-out { margin-left: 2px; }

/* ✨ AI assistant button: a dark orb with a gold ring and gold sparkles (was a mic emoji) */
.fh-mic { display: grid; place-items: center; width: 60px; height: 60px; font-size: 0; color: #e8cf9c; border: 2px solid transparent;
  background: radial-gradient(circle at 32% 26%, #2b3042, #0b0d13 72%) padding-box, conic-gradient(from 210deg, #f0d9a8, #c29b5a, #6d5226, #c29b5a, #f0d9a8) border-box;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45), 0 0 22px rgba(194, 155, 90, .28); transition: transform .2s cubic-bezier(.2, .7, .2, 1), box-shadow .2s; }
.fh-mic:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 16px 36px rgba(0, 0, 0, .5), 0 0 30px rgba(194, 155, 90, .42); }
.fh-mic .fh-orb { width: 28px; height: 28px; stroke-width: 1.6; filter: drop-shadow(0 0 6px rgba(232, 207, 156, .45)); }
.fh-title { display: inline-flex; align-items: center; gap: 8px; }
.fh-title .fh-orb { width: 18px; height: 18px; color: #e8cf9c; }
.fh-rec { display: grid; place-items: center; color: #0a0c12; background: var(--gold-grad, var(--brand)); }
.fh-rec .ic { width: 19px; height: 19px; }
@media (prefers-reduced-motion: reduce) { .fh-mic { transition: none; } }

/* 📞 HIPELOOK Qualified / Fresh: With number / No number tabs, a second row under the main tabs */
.gm-numtabs { margin-top: -4px; }
.gm-numtabs a { font-size: 14px; }

/* ☑️ "Tick all N" inside the HIPELOOK bulk bar */
.gm-linkbtn { background: none; border: 0; padding: 4px 6px; min-height: 32px; color: var(--brand); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gm-linkbtn:hover { color: var(--ink); }
.gm-linkbtn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }

/* ⚙️ Settings: names on the left, one section on the right */
.set-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; align-items: start; }
.set-nav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); max-height: calc(100vh - 40px); overflow: auto; }
.set-grp { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 10px 4px; }
.set-grp:first-child { padding-top: 4px; }
.set-nav button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 9px 10px; min-height: 40px; color: var(--ink); font: inherit; font-size: 14px; font-weight: 550; cursor: pointer; transition: background .15s, color .15s; }
.set-nav button svg { width: 16px; height: 16px; flex: none; }
.set-nav button:hover { background: var(--brand-soft); }
.set-nav button.on { background: var(--brand); color: var(--on-brand); font-weight: 700; }
.set-nav button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.set-body .grid.g2 { grid-template-columns: 1fr; }
.set-body .card.set-off { display: none !important; }
.set-body .card { max-width: 860px; }
@media (max-width: 860px) { .set-layout { grid-template-columns: 1fr; } .set-nav { position: static; max-height: none; } }

/* 📜 Activity log */
.act-team { margin: 0 0 12px; padding: 12px 14px; }
.act-team > summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; list-style: none; min-height: 32px; }
.act-team > summary::-webkit-details-marker { display: none; }
.act-team > summary::before { content: "▸"; color: var(--muted); }
.act-team[open] > summary::before { content: "▾"; }
.act-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin: 12px 0 0; }
.act-person { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .15s ease; }
.act-person:hover { text-decoration: none; border-color: var(--brand); }
.act-person.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.act-person:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.act-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.act-num { font-size: 14px; }
.act-last { color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.act-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; margin: 0 0 12px; padding: 12px 14px; }
.act-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.act-filters select, .act-filters input { min-width: 150px; }
.act-filters .act-q input { min-width: 240px; }
tr.act-fail td { background: var(--bad-soft); }
@media (prefers-reduced-motion: reduce) { .act-person { transition: none; } }
.act-recover { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 0 0 12px; padding: 14px 16px; border-color: var(--brand); background: var(--brand-soft); }
.act-recover .small { margin-top: 4px; color: var(--ink); }
.filters-panel[hidden] { display: none; }
.filters-panel .gm-chip { white-space: nowrap; }
.gm-toolbar input[type=search] { min-width: 200px; }

/* 🎮 HIPELOOK, simple: Number + Platform as two small button groups on one line (wraps on small screens) */
.gm-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 2px 0 10px; }
.gm-chipgrp { display: flex; align-items: center; gap: 8px; }
.gm-chiplbl { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gm-chips .gm-seg a { min-height: 36px; padding: 6px 10px; font-size: 13px; gap: 5px; }
.gm-chips .gm-seg a.on { background: var(--brand); color: var(--on-brand); }
.gm-chips .gm-seg a.on .cnt { background: rgba(0, 0, 0, .14); color: var(--on-brand); }
.gm-chips .gm-seg a:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.gm-chips .cnt { min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-ink); font-size: 11px; font-weight: 700; text-align: center; }

/* 🎮 HIPELOOK, settled: light underline tabs for the lists + ONE toolbar line (search · number · platform · filters) */
.sheet-tabs.gm-lists { border-bottom: 1px solid var(--line); gap: 2px; margin-bottom: 14px; }
.sheet-tabs.gm-lists a { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--muted); padding: 10px 14px; margin-bottom: -1px; }
.sheet-tabs.gm-lists a svg { width: 16px; height: 16px; }
.sheet-tabs.gm-lists a:hover { color: var(--ink); border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.sheet-tabs.gm-lists a.on { background: none; color: var(--ink); border-color: var(--brand); font-weight: 700; }
.sheet-tabs.gm-lists a.on .cnt { background: var(--brand); color: var(--on-brand); }
.gm-one { align-items: center; flex-wrap: wrap; }
.gm-one input[type=search] { flex: 1 1 220px; min-width: 200px; }
.gm-one .gm-chipgrp { flex: none; }
.gm-one .gm-seg a { min-height: 40px; padding: 6px 10px; font-size: 13px; gap: 5px; }
.gm-one .gm-seg a.on { background: var(--brand); color: var(--on-brand); }
.gm-one input[type=search] { flex-basis: 180px; }
.gm-clear { margin-left: 10px; font-size: 13px; font-weight: 600; color: var(--brand); }
.gm-clear:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }

/* 🎮 HIPELOOK, owner's order: [All · Instagram · YouTube] [With number · No number · Not interested] · Filters · Search */
.gm-order { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gm-order .gm-seg a { min-height: 40px; padding: 6px 10px; font-size: 13px; gap: 6px; white-space: nowrap; }
.gm-order .gm-seg a.on { background: var(--brand); color: var(--on-brand); }
.gm-order .gm-seg a.on .cnt { background: rgba(0, 0, 0, .14); color: var(--on-brand); }
.gm-order .gm-seg a:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.gm-order .cnt { min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-ink); font-size: 11px; font-weight: 700; text-align: center; }
.gm-one { gap: 8px; }
.gm-one input[type=search] { flex: 1 1 160px; min-width: 160px; order: 9; }
.inf-more { display: flex; justify-content: center; min-height: 8px; margin: 12px 0 24px; }

/* 🔒 anything told to hide really hides (a display rule can't keep it on screen) */
[hidden] { display: none !important; }

/* ⭐ Onboarded: how a creator gets ready (3 steps), per-row steps, settings tucked away */
.ob-explain { list-style: none; counter-reset: ob; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 4px 0 10px; padding: 0; }
.ob-explain li { counter-increment: ob; position: relative; padding: 12px 14px 12px 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.ob-explain li::before { content: counter(ob); position: absolute; left: 14px; top: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--brand-soft); color: var(--brand-ink); }
.ob-explain li.go { border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.ob-explain b { display: block; font-size: 14px; }
.ob-explain span { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.ob-steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.ob-step { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.ob-step.ok { background: var(--good-soft); color: var(--good); }
.ob-step.miss { background: var(--warn-soft); color: var(--warn); }
.ob-fill { white-space: nowrap; }
.ob-settings { margin-top: 18px; }
.ob-settings > summary { cursor: pointer; font-weight: 600; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); list-style-position: inside; }
.ob-settings[open] > summary { margin-bottom: 10px; }
@media (max-width: 900px) { .ob-explain { grid-template-columns: 1fr; } }

/* ✨ polish pass (2026-11-11): readable table headings, clear setup steps, friendlier empty states, icons everywhere */
th { font-size: 12px; letter-spacing: .08em; }
.setup .item.done { border-style: solid; border-color: color-mix(in srgb, var(--good) 40%, transparent); background: var(--good-soft); color: var(--good); font-weight: 600; }
.setup .item.done span { font-weight: 800; }
.setup a.item.todo { color: var(--ink); text-decoration: none; border-color: color-mix(in srgb, var(--brand) 45%, transparent); transition: background .15s, border-color .15s; }
.setup a.item.todo span:first-child { color: var(--brand); font-weight: 800; }
.setup a.item.todo .go { color: var(--brand); font-size: 12px; font-weight: 700; margin-left: 4px; }
.setup a.item.todo:hover, .setup a.item.todo:focus-visible { background: var(--brand-soft); border-color: var(--brand); }
td.empty, .empty { padding: 44px 20px; font-size: 14px; line-height: 1.6; }
td.empty b, .empty b { color: var(--brand); }
.btn, button, a, summary, select, [role="tab"] { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .setup a.item.todo { transition: none; } }
h2 .ic-in { color: var(--brand-ink); }
.ic-only .ic-in { margin-right: 0; }

/* 🧭 TL tools on the team sheet: Reply % / Join %, note + report, stuck creators, change one creator */
.pctc { display: inline-block; min-width: 42px; padding: 1px 8px; border-radius: 99px; font-weight: 700; font-size: 13px; text-align: center; }
.pctc.good { background: var(--good-soft); color: var(--good); }
.pctc.ok { background: var(--warn-soft); color: var(--warn); }
.pctc.low { background: var(--bad-soft); color: var(--bad); }
.tl-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; margin: 12px 0 0; }
.tl-rep { margin: 0; white-space: pre-wrap; font: inherit; font-size: 13px; line-height: 1.55; max-height: 260px; overflow: auto; }
.chg { display: flex; gap: 6px; flex-wrap: wrap; }
.chg select { width: auto; min-width: 120px; min-height: 32px; padding: 2px 8px; font-size: 13px; }

/* ================= FAME HUNGER design system v3 (2026-11-12, from the A-Z audit) =================
   One scale for the whole app. Text: 11 (uppercase labels) · 12 · 13 · 14 (body) · 16 · 20 · 24 (page title) · 28 (big numbers).
   Corners: 8 (small) · 12 (inputs, boxes) · 16 (cards) · 99 (buttons, pills). Heights: button 40 / small 32, input 40 / in a table 32.
   Icons: 16 in text and buttons, 20 in headings. */
:root { --fs-label: 11px; --fs-xs: 12px; --fs-sm: 13px; --fs-body: 14px; --fs-md: 16px; --fs-lg: 20px; --fs-h1: 24px; --fs-num: 28px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 99px; --h-btn: 40px; --h-btn-sm: 32px; --h-in: 40px; --h-in-sm: 32px; }
body { font-size: var(--fs-body); }
.head h1, h1 { font-size: var(--fs-h1); }
.card > h2, h2 { font-size: var(--fs-md); }
.modal-head h2 { font-size: var(--fs-lg); }
.btn { min-height: var(--h-btn); padding: 0 16px; font-size: var(--fs-body); line-height: 1.2; border-radius: var(--r-pill); justify-content: center; }
.btn.sm { min-height: var(--h-btn-sm); padding: 0 12px; font-size: var(--fs-sm); }
.btn.ic-only { padding: 0; width: var(--h-btn); }
.btn.sm.ic-only { width: var(--h-btn-sm); }
input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]):not([type=file]), select { min-height: var(--h-in); font-size: var(--fs-body); border-radius: var(--r-md); }
textarea { font-size: var(--fs-body); border-radius: var(--r-md); }
table td input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]):not([type=file]), table td select, select.sm, input.sm:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]):not([type=file]) { min-height: var(--h-in-sm); padding-block: 4px; font-size: var(--fs-sm); border-radius: var(--r-sm); }
th { font-size: var(--fs-xs); letter-spacing: .07em; }
td { font-size: var(--fs-body); }
.small { font-size: var(--fs-xs); }
.card { border-radius: var(--r-lg); }
.pill { border-radius: var(--r-pill); font-size: var(--fs-xs); }
.stat .value { font-size: var(--fs-num); }
.ic-in { width: 16px; height: 16px; }
h1 .ic-in, h2 .ic-in { width: 20px; height: 20px; }
.side .navlabel { font-size: var(--fs-label); }
/* platform chip: real Instagram / YouTube line icon instead of a tiny emoji */
.plat-ic { display: inline-flex; align-items: center; gap: 5px; }
.plat-ic svg { width: 14px; height: 14px; flex: none; }
.plat-ig svg { color: #e1306c; } .plat-yt svg { color: #ff3b3b; }
.dot-ok { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); margin-right: 6px; vertical-align: 1px; }
.intro-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 90ch; }
.intro-clamp.open { display: block; -webkit-line-clamp: unset; }
.intro-more { background: none; border: 0; padding: 2px 0; color: var(--brand); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.intro-more:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
#go.btn { align-self: end; height: var(--h-btn); }
a.stat-link { color: inherit; text-decoration: none; transition: border-color .15s; } a.stat-link:hover, a.stat-link:focus-visible { border-color: var(--brand); text-decoration: none; }

/* 💸 creator payout popup (12 Nov 2026) */
button.pay-pill { border: 0; cursor: pointer; min-height: 32px; padding: 4px 12px; font: inherit; font-size: 12px; font-weight: 600; }
button.pay-pill:hover { filter: brightness(1.1); }
button.pay-pill:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pay-box { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; display: grid; gap: 6px; font-size: 13px; }
.pay-box .btn.sm { min-height: 24px; padding: 0 8px; font-size: 11px; margin-left: 4px; }
.pay-warn { background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 10px 12px; font-size: 13px; margin: 0 0 12px; }

/* 🧹 Safai (12 Nov 2026): emoji in text → line icons, folded help text, the Our team Edit popup */
.ic-t { width: 1.1em; height: 1.1em; vertical-align: -.18em; flex: none; }
.ic-good { color: var(--good); }
.ic-warn { color: var(--warn); }
.ic-bad { color: var(--bad); }
.dot-ic { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); vertical-align: .05em; margin: 0 2px; }
.dot-ic.dot-good { background: var(--good); }
.dot-ic.dot-warn { background: var(--warn); }
.dot-ic.dot-bad { background: var(--bad); }
.dot-ic.dot-grey { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.help-clamp { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0; }
.help-clamp.open { display: block; -webkit-line-clamp: unset; }
.help-clamp + .intro-more { display: block; margin: 2px 0 8px; }
.md-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.people-t td { white-space: nowrap; vertical-align: middle; }
.people-t td .muted { font-size: 12px; }
.people-t td.wrap { white-space: normal; min-width: 96px; }

/* 👥 Creators in one place: one row of tabs on top of the 7 creator pages */
.ctabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 20px; }
.ctabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; font-size: 13px; font-weight: 600; color: var(--muted);
  text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; border-radius: 8px 8px 0 0; }
.ctabs a:hover { color: var(--ink); background: var(--brand-soft); }
.ctabs a.on { color: var(--ink); border-bottom-color: var(--brand); }
.ctabs a:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

/* 🧹 code safai (12 Nov 2026): repeated inline styles as small utilities (!important = as strong as the inline style was) */
.u-m0 { margin:0 !important; }
.u-nowrap { white-space:nowrap !important; }
.u-ov { overflow:auto !important; }
.u-bad { color:var(--bad) !important; }
.u-good { color:var(--good) !important; }
.u-warn { color:var(--warn) !important; }
.u-mt8x { margin:8px 0 0 !important; }
.u-wauto { width:auto !important; }
.u-mt6x { margin:6px 0 0 !important; }
.u-mb8 { margin-bottom:8px !important; }
.u-mb12 { margin-bottom:12px !important; }
.u-mt10x { margin:10px 0 0 !important; }
.u-mt10 { margin-top:10px !important; }
.u-mt0 { margin-top:0 !important; }
.u-mb10 { margin-bottom:10px !important; }
.u-pre { white-space:pre-wrap !important; }
.u-mt8 { margin-top:8px !important; }
.u-pl26 { padding-left:26px !important; }
.u-mt4x { margin:4px 0 0 !important; }
.u-mb8x { margin:0 0 8px !important; }
.u-mb10x { margin:0 0 10px !important; }
.u-mt6 { margin-top:6px !important; }
.u-mt12 { margin-top:12px !important; }
.u-mrauto { margin-right:auto !important; }
.u-flex1 { flex:1 !important; }
.u-selfend { align-self:end !important; }
.u-mt14 { margin-top:14px !important; }
.u-mb14 { margin-bottom:14px !important; }
.u-span { grid-column:1/-1 !important; }
.u-center { text-align:center !important; }

/* 🎨 audit part 3 (12 Nov 2026): tables that fit the screen, popups, one tab look, one control height, contrast */
/* D1: a table scrolls inside the screen: its header and the sideways bar are always in view */
.table-wrap { overflow: auto; max-height: calc(100vh - 140px); }
.table-wrap thead th { position: sticky; top: 0; z-index: 3; }
.table-wrap td { padding-top: 8px; padding-bottom: 8px; }
#th th:first-child, #tb td:first-child { position: sticky; left: 0; z-index: 2; background: var(--panel); box-shadow: 1px 0 0 var(--line); }
#th th:first-child { z-index: 4; background: color-mix(in srgb, var(--bg) 60%, var(--panel)); }
#th th:last-child, #tb td:last-child { position: sticky; right: 0; z-index: 2; background: var(--panel); box-shadow: -1px 0 0 var(--line); }
#th th:last-child { z-index: 4; background: color-mix(in srgb, var(--bg) 60%, var(--panel)); }
@media (max-width: 1560px) { .hide-md { display: none; } }
/* D6: the less-used buttons live in one "More" menu */
.more-menu { position: relative; }
.more-menu > summary { list-style: none; cursor: pointer; }
.more-menu > summary::-webkit-details-marker { display: none; }
.more-menu .menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 230px; display: grid; gap: 2px; padding: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .32); }
.more-menu .menu-pop .btn { justify-content: flex-start; width: 100%; border-color: transparent; background: none; border-radius: 8px; box-shadow: none; }
.more-menu .menu-pop .btn:hover { background: var(--brand-soft); }
/* D2: popups fit the screen, the buttons stay in view */
.modal-bg { padding: 24px 16px; align-items: center; }
.modal { border-radius: 16px; padding: 0; max-height: calc(100vh - 48px); display: flex; flex-direction: column; overflow: hidden; }
.modal:focus { outline: none; }
.modal-head { padding: 18px 22px 12px; margin: 0; flex: none; }
.modal-body { padding: 4px 22px 22px; overflow: auto; overscroll-behavior: contain; }
.modal-foot { position: sticky; bottom: -22px; z-index: 2; background: var(--panel); margin: 16px -22px -22px; padding: 12px 22px 18px; border-top: 1px solid var(--line); }
.modal .x { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 8px; font-size: 22px; }
.modal .x:hover { background: var(--brand-soft); color: var(--ink); }
.modal .x:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* D4: two patterns only: underline tabs for the parts of a page, pill chips for filters */
.sheet-tabs { border-bottom: 1px solid var(--line); gap: 2px; padding-top: 0; }
.sheet-tabs a { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--muted); padding: 8px 14px; margin-bottom: -1px; min-height: 40px; font-weight: 600; }
.sheet-tabs a:hover { color: var(--ink); border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.sheet-tabs a.on { background: none; color: var(--ink); border-color: var(--brand); font-weight: 700; }
.sheet-tabs a.on .cnt { background: var(--brand); color: var(--on-brand); }
.tabs button { min-height: 40px; padding: 8px 14px; border-radius: 8px 8px 0 0; }
.tabs:has([data-ptab]) { border-bottom: 0; gap: 6px; margin: 0 0 12px; flex-wrap: wrap; }
.tabs [data-ptab], .gm-seg a { min-height: 32px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; background: none; }
.tabs [data-ptab].on, .gm-seg a.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.gm-seg { border: 0; border-radius: 0; overflow: visible; gap: 6px; flex-wrap: wrap; }
.gm-seg a:last-child { border-right: 1px solid var(--line); }
.gm-seg a.on:last-child { border-color: var(--brand); }
/* D7: the assistant button is smaller and never sits on a popup or the last column */
.fh-mic { width: 44px; height: 44px; right: 20px; bottom: 20px; font-size: 20px; z-index: 40; }
.fh-asst { z-index: 45; }
.main { padding-bottom: 96px; }
/* D8 / D23: stat tiles */
.stat .label { padding-right: 44px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1200px) { .grid:has(> .stat:nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* D9: one control height */
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]), select { height: 40px; line-height: 20px; box-sizing: border-box; }
select.sm, input.sm:not([type=checkbox]), td input:not([type=checkbox]):not([type=radio]), td select { height: 32px; }
.tsheet td input:not([type=checkbox]), .tsheet td select, .sheet td input:not([type=checkbox]), .sheet td select { height: 40px; }
/* D12: contrast */
.side .navlabel { opacity: .74; }
::placeholder { color: var(--muted); opacity: .85; }
.btn.wa { background: #128a45; border-color: #128a45; }
:root[data-theme="light"] .intro-more, :root[data-theme="light"] .setup .go, :root[data-theme="light"] .ctabs a.on { color: var(--brand-ink); }
.tagline { font-size: 11px; letter-spacing: .06em; }
/* D17 / D19: icon sizes 16 / 20, comfortable tick boxes and links */
.side nav a .ic { width: 20px; height: 20px; }
.ic-t { width: 16px; height: 16px; }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; accent-color: var(--brand); flex: none; }
.intro-more { min-height: 32px; }
/* D20: the browser's file button looks like ours */
input[type=file] { height: auto; padding: 6px; }
input[type=file]::file-selector-button { font: inherit; font-size: 13px; font-weight: 600; min-height: 32px; padding: 4px 12px; margin-right: 10px; border: 1px solid var(--line);
  border-radius: 99px; background: var(--panel); color: var(--ink); cursor: pointer; }
/* D15: one empty / error look */
.card.empty h2 { font-size: var(--fs-lg, 20px); }
/* D5: the team panel uses the same shapes */
.sheet td.act, .sheet thead th:last-child { position: sticky; right: 0; z-index: 2; background: var(--panel); box-shadow: -1px 0 0 var(--line); }
.sheet thead th:last-child { z-index: 3; background: color-mix(in srgb, var(--bg) 60%, var(--panel)); }
/* D1: the creators table fits a 1280 laptop: tighter cells, long names / emails cut with … (full text on hover) */
#th th, #tb td { padding-left: 8px; padding-right: 8px; }
#tb td:first-child { max-width: 250px; }
#tb td:first-child .who > div { min-width: 0; overflow-wrap: anywhere; }
#tb td.fit { max-width: 176px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tb td:not([class]):not(:first-child), #tb td[class=""]:not(:first-child) { max-width: 150px; overflow-wrap: anywhere; }
/* D6: search + filters + More filters on one line */
.toolbar > input[type=search] { flex: 1 1 200px; min-width: 160px; width: auto; }
.toolbar > select { flex: 0 1 172px; width: auto; }
/* D1: on every wide table the last column (the action buttons / status) stays in view */
.table-wrap tbody td:last-child, .table-wrap thead th:last-child { position: sticky; right: 0; background: var(--panel); }
.table-wrap thead th:last-child { z-index: 4; background: color-mix(in srgb, var(--bg) 60%, var(--panel)); }
@media (max-width: 1440px) { .table-wrap th, .table-wrap td { padding-left: 8px; padding-right: 8px; } }

/* ---- audit leftovers (12 Nov): campaign stages in one row, team tables line up */
.pipeline { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.pipeline .step { flex: 0 0 auto; white-space: nowrap; }
.people-s { table-layout: fixed; width: 100%; }
.people-s th:nth-child(1), .people-s td:nth-child(1) { width: 40%; }
.people-s th:nth-child(2), .people-s td:nth-child(2) { width: 22%; }
.people-s th:nth-child(3), .people-s td:nth-child(3) { width: 26%; }
.people-s th:nth-child(4), .people-s td:nth-child(4) { width: 12%; }
.people-s td { overflow: hidden; text-overflow: ellipsis; }
#tb .form textarea { width: 100%; }

/* 📸 Instagram DM robot card (Settings) — design system v3 tokens only */
.igr-h { margin: 20px 0 4px; font-size: var(--fs-md); }
.igr-copy { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 14px; }
.igr-copyrow { display: flex; align-items: center; gap: 8px; min-height: var(--h-in); padding: 4px 6px 4px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); }
.igr-copyrow code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: var(--fs-xs); user-select: all; }
.igr-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.igr-kw input:not([type=checkbox]), .igr-kw textarea { width: 100%; min-width: 120px; font-size: var(--fs-sm); }
.igr-kw textarea { min-height: 56px; resize: vertical; }
.igr-kw td { vertical-align: top; }
.igr-kw input[type=checkbox] { width: 18px; height: 18px; margin-top: 10px; }
.igr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.igr-stat { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); }
.igr-stat b { font-size: var(--fs-lg); font-variant-numeric: tabular-nums; line-height: 1.2; }
.igr-stat span { font-size: var(--fs-label); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.igr-log { display: flex; flex-direction: column; gap: 6px; max-width: 480px; max-height: 420px; overflow-y: auto; }
.igr-b { align-self: flex-start; max-width: 85%; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 4px; background: var(--bg); white-space: pre-wrap; font-size: var(--fs-body); line-height: 1.45; }
.igr-b.me { align-self: flex-end; border-radius: var(--r-lg) var(--r-lg) 4px var(--r-lg); background: var(--brand-soft); border-color: transparent; }
.igr-b.card-b { font-weight: 600; }
.igr-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; font-weight: 400; }
.igr-q { display: flex; gap: 6px; flex-wrap: wrap; }
.igr-q .chip { font: inherit; font-size: var(--fs-sm); border-style: solid; min-height: var(--h-btn-sm); }
.igr-send { display: flex; gap: 8px; margin-top: 8px; max-width: 480px; }
.igr-send input { flex: 1; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* 🎛 Hand-out control */
.hc-flow { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.hc-flow .stat { padding: 16px; }
.hc-flow .stat .value { font-size: 24px; }
.hc-flow .stat .label { white-space: normal; overflow: visible; }
.hc-table th { white-space: normal; vertical-align: bottom; }
.hc-table td:first-child { min-width: 140px; }
th.hc-why { min-width: 240px; }
.live-hours i.ot { background: var(--good); opacity: .9; }
/* ✏️ 📅 Weekly: a compact sheet you edit in place */
.wk-grid { table-layout: fixed; width: 100%; min-width: 860px; }
.wk-grid th { font-size: 11px; padding: 8px 6px; white-space: normal; line-height: 1.25; vertical-align: bottom; }
.wk-grid td.wk-c { padding: 3px 4px; font-size: 13px; height: 36px; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-grid th.w-name { width: 18%; } .wk-grid th.w-user { width: 14%; } .wk-grid th.w-num { width: 8%; } .wk-grid th.w-av { width: 8%; }
.wk-grid th.w-poc { width: 10%; } .wk-grid th.w-pack { width: 16%; } .wk-grid th.w-x { width: 32px; } .wk-grid th.gm-tick { width: 32px; }
.wk-in { width: 100%; height: 28px; box-sizing: border-box; padding: 0 6px; border: 1px solid transparent; border-radius: 6px; background: transparent;
  color: inherit; font: inherit; font-size: 13px; text-align: inherit; min-height: 0; box-shadow: none; }
.wk-grid td.num, .wk-grid td.num .wk-in { text-align: right; font-variant-numeric: tabular-nums; }
table.wk-grid input.wk-in, #gamesec table.wk-grid input.wk-in { background: transparent; border: 1px solid transparent; box-shadow: none; min-height: 0; height: 28px; padding: 0 6px; border-radius: 6px; font-size: 13px; }
table.wk-grid input.wk-in:hover, #gamesec table.wk-grid input.wk-in:hover { border-color: var(--line); }
table.wk-grid input.wk-in:focus, #gamesec table.wk-grid input.wk-in:focus { border-color: var(--brand); background: var(--bg); outline: none; }
table.wk-grid input.wk-in.ok { border-color: var(--good); } table.wk-grid input.wk-in.bad { border-color: var(--bad); }
.wk-ro { display: block; padding: 0 7px; overflow: hidden; text-overflow: ellipsis; } .wk-ro:empty::before { content: '—'; color: var(--muted); }
.wk-in:hover { border-color: var(--line); }
.wk-in:focus { outline: none; border-color: var(--brand); background: var(--bg); }
.wk-in.busy { opacity: .6; } .wk-in.ok { border-color: var(--good); } .wk-in.bad { border-color: var(--bad); }
.wk-in::placeholder { color: var(--muted); opacity: .6; }
.wk-link { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: var(--muted); text-decoration: none; padding-left: 6px; }
.wk-link:hover { color: var(--ink); }
.wk-poc { color: var(--muted); padding-left: 11px !important; }
.wk-x { width: 24px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; }
.wk-x:hover { background: var(--line); color: var(--bad); }
.wk-grid .btn.sm { min-height: 26px; padding: 2px 10px; font-size: 12px; }
#gamesec .wk-grid td.wk-c { vertical-align: middle; } #gamesec .wk-grid td.num, #gamesec .wk-grid th.num { text-align: right; }
.wk-grid td.num .wk-ro { text-align: right; }
/* ✏️ Weekly cells must beat the app's general input styles (dark theme, 40px fields) */
:root table.wk-grid td input.wk-in:not([type=checkbox]) { height: 28px !important; min-height: 0 !important; padding: 0 6px !important; line-height: 26px; background: transparent !important; border: 1px solid transparent !important; border-radius: 6px !important; box-shadow: none !important; font-size: 13px !important; }
:root table.wk-grid td input.wk-in:not([type=checkbox]):hover { border-color: var(--line) !important; }
:root table.wk-grid td input.wk-in:not([type=checkbox]):focus { border-color: var(--brand) !important; background: var(--bg) !important; outline: none; }
:root table.wk-grid td input.wk-in.ok:not([type=checkbox]) { border-color: var(--good) !important; }
:root table.wk-grid td input.wk-in.bad:not([type=checkbox]) { border-color: var(--bad) !important; }
.wk-grid th.w-name { width: 17%; } .wk-grid th.w-user { width: 13%; } .wk-grid th.w-num { width: 8.5%; } .wk-grid th.w-av { width: 8.5%; } .wk-grid th.w-pack { width: 14%; }
:root table.wk-grid th { letter-spacing: .02em !important; overflow: visible !important; text-overflow: clip !important; white-space: normal !important; }
.wk-grid th.w-num { width: 9%; } .wk-grid th.w-av { width: 9%; } .wk-grid th.w-poc { width: 9%; } .wk-grid th.w-name { width: 16%; }
.wk-mini { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 6px; font-size: 12px; padding: 2px 8px; height: 24px; cursor: pointer; margin-right: 4px; }
.wk-mini:hover { border-color: var(--brand); color: var(--brand); }
.wk-grid td.wk-av { white-space: nowrap; }
.wk-grid th.w-av { width: 12%; } .wk-grid th.w-name { width: 15%; } .wk-grid th.w-user { width: 12%; }
/* 🤖 / ✍️ where a creator in My list came from */
.srcp { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; font-size: 11px; font-weight: 600; white-space: nowrap; vertical-align: 1px; border: 1px solid var(--line); color: var(--muted); }
.srcp.mine { color: var(--brand-ink, var(--brand)); border-color: color-mix(in srgb, var(--brand) 45%, transparent); background: color-mix(in srgb, var(--brand) 10%, transparent); }
/* ⬇ lists load by themselves: the old "Show more" button is now a quiet line (still clickable) */
/* 14 Nov: the end-of-list marker is invisible: the next rows come quietly long before you reach it */
.automore { display: block; width: 100%; height: 1px; margin: 0; padding: 0; border: 0; background: none; color: transparent; font-size: 0; min-height: 0; box-shadow: none; overflow: hidden; opacity: 0; pointer-events: none; }
.srcp.rep { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
/* 🎛 Creator hand-out: next time + one line ① → ② → ③ → ④ */
.hc-next { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; margin-bottom: 12px; border-left: 3px solid var(--brand); }
.hc-when { font-size: 20px; font-weight: 750; margin: 2px 0; }
.hc-line { display: flex; align-items: stretch; gap: 8px; }
.hc-step { flex: 1; min-width: 0; position: relative; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: inherit; text-decoration: none; }
a.hc-step:hover { border-color: var(--brand); }
.hc-no { position: absolute; top: 10px; right: 12px; width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--brand-soft, var(--line)); color: var(--brand-ink, var(--ink)); }
.hc-lab { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hc-val { font-size: 26px; font-weight: 750; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.hc-sub { font-size: 12px; color: var(--muted); }
.hc-arrow { align-self: center; color: var(--muted); font-size: 18px; }
.hc-also { margin: 8px 0 0; }

/* 14 Nov: grey placeholder lines while the first page of a list comes (instead of "Loading…" text) */
.skel { display: inline-block; height: 12px; max-width: 100%; border-radius: 6px; vertical-align: middle;
  background: linear-gradient(90deg, var(--line) 25%, color-mix(in srgb, var(--line) 45%, transparent) 50%, var(--line) 75%);
  background-size: 200% 100%; animation: skel 1.2s ease-in-out infinite; }
@keyframes skel { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }

/* 14 Nov: smooth refresh — the grey lines have the page's shape, then the real page fades in */
.skel-bar { display: flex; gap: 10px; margin: 0 0 14px; }
.skel.pill { height: 32px; border-radius: 99px; }
.skel.box { height: 40px; border-radius: 8px; }
.main.fh-fade { animation: fh-fade .25s var(--ease) both; }
#tb.rows-in > tr { animation: fh-fade .2s var(--ease) both; }
@keyframes fh-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .main.fh-fade, #tb.rows-in > tr { animation: none; } }

/* ---- 📥 Enquiries: simple CRM list (owner 17 Nov: "simple, sweet, easy") — design system v3 tokens only */
.eq-stats { display: flex; gap: 10px; margin: 2px 0 14px; flex-wrap: wrap; }
.eq-stats > button { display: flex; align-items: baseline; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); min-width: 120px; min-height: 44px; color: var(--ink); font: inherit; cursor: pointer; text-align: left; transition: border-color .15s, background .15s, transform .15s; }
.eq-stats > button:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); transform: translateY(-1px); }
.eq-stats > button.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand) inset; }
.eq-stats > button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.eq-showing { margin: -6px 0 10px; }
@media (prefers-reduced-motion: reduce) { .eq-stats > button { transition: none; } .eq-stats > button:hover { transform: none; } }
.eq-stats b { font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.eq-stats span { font-size: 13px; color: var(--muted); }
.eq-stats .hot b { color: var(--brand-ink); }
.eq-stats .due b { color: var(--bad); }
.eq-count { display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 6px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); font-size: 11px; color: var(--muted); text-align: center; }
.eq-wrap { border-radius: 16px; }
.eq-table { border-collapse: separate; border-spacing: 0; }
.eq-table td { padding: 14px 14px; vertical-align: middle; border-bottom: 1px solid var(--line); }
.eq-table tr:last-child td { border-bottom: 0; }
.eq-row { transition: background .15s; }
.eq-row:hover > td, .eq-row.open > td { background: color-mix(in srgb, var(--brand) 5%, transparent); }
.eq-row.open > td { border-bottom-color: transparent; }
.eq-row.done { opacity: .65; }
.eq-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.eq-who .avatar { width: 38px; height: 38px; font-size: 15px; }
.eq-id { min-width: 0; }
.eq-name { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eq-kind { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 99px; }
.eq-kind.brand { background: var(--brand-soft); color: var(--brand-ink); }
.eq-kind.creator { background: var(--good-soft); color: var(--good); }
.eq-sub { font-size: 13px; color: var(--ink); opacity: .85; margin-top: 2px; }
.eq-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.eq-temp { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.eq-temp::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--line); }
.eq-temp.hot { color: var(--bad); } .eq-temp.hot::before { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.eq-temp.warm { color: var(--warn); } .eq-temp.warm::before { background: var(--warn); }
.eq-next-cell { min-width: 160px; }
.eq-next { font-size: 13px; color: var(--ink); }
.eq-next.urgent { color: var(--brand-ink); font-weight: 600; }
.eq-stage { font-size: 13px; padding: 6px 10px; border-radius: 99px; min-width: 130px; }
.eq-acts { white-space: nowrap; }
.eq-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-left: 4px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; padding: 0; vertical-align: middle; transition: border-color .15s, color .15s, background .15s; }
.eq-btn:hover { border-color: var(--brand); color: var(--brand-ink); }
.eq-btn.wa:hover { border-color: var(--good); color: var(--good); }
.eq-btn.ghost { border-color: transparent; background: none; }
.eq-btn.off { opacity: .25; cursor: default; }
.eq-btn:focus-visible, .eq-stage:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.eq-btn .ic { width: 17px; height: 17px; }
.eq-chev { transition: transform .2s; }
.eq-row.open .eq-chev { transform: rotate(180deg); }
.eq-detail > td { padding: 0 14px 18px 64px; background: color-mix(in srgb, var(--brand) 5%, transparent); }
.eq-pane { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; padding-top: 4px; }
.eq-side { display: grid; gap: 12px; align-content: start; }
.eq-field label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 3px; text-transform: uppercase; letter-spacing: .04em; }
.eq-field { font-size: 13px; overflow-wrap: anywhere; }
.eq-field input, .eq-field select { width: 100%; box-sizing: border-box; font-size: 13px; }
.eq-main { min-width: 0; }
.eq-note { display: flex; gap: 8px; margin-bottom: 14px; }
.eq-note input { flex: 1; min-width: 0; }
.eq-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.eq-steps li { display: flex; gap: 10px; font-size: 13px; }
.eq-dot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 99px; background: var(--brand); }
.eq-steps li.came .eq-dot { background: var(--good); }
.eq-steps small { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; }
.eq-wrote { margin-top: 14px; font-size: 13px; color: var(--muted); }
.eq-wrote summary { cursor: pointer; color: var(--ink); }
.eq-wrote > div { margin-top: 8px; max-height: 160px; overflow-y: auto; }
@media (max-width: 1000px) { .eq-pane { grid-template-columns: 1fr; } .eq-detail > td { padding-left: 14px; } }
@media (prefers-reduced-motion: reduce) { .eq-row, .eq-btn, .eq-chev { transition: none; } }

/* ============================================================ 🌙 17 Nov night build
   💬 Team chat, 🌴 leave, 🧑‍💼 HR, 🧮 Ledger, 🖼 Logo promotion, 📁 Team files. Same tokens as the rest of the app
   (text 11–28, radius 8/12/16/99, buttons 40/32); used by /app and by the team panel /find. */
.eq-stats > div, .eq-stats > a { display: flex; align-items: baseline; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); min-width: 120px; min-height: 44px; color: var(--ink); text-decoration: none; }
.eq-stats > a:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); text-decoration: none; }
.eq-stats > a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.eq-stats .in b { color: var(--good); }
.eq-stats .lg-due b { font-size: 18px; }
.wk-in.num { text-align: right; font-variant-numeric: tabular-nums; }
.th-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; position: relative; font-size: 12px; font-weight: 700; letter-spacing: .02em; background: var(--brand-soft); color: var(--brand-ink); }
.th-av.all { background: var(--brand); color: var(--on-brand); }
.th-av.on::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--good); border: 2px solid var(--panel); }
td .who .th-av { width: 32px; height: 32px; }
.th-rt { min-width: 0; flex: 1; display: block; }
.th-rt b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 650; }
.th-rt > span { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.th-chat { position: relative; display: grid; grid-template-columns: 312px minmax(0, 1fr); height: calc(100vh - 170px); min-height: 440px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel); box-shadow: var(--shadow); }
.th-side { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--line); }
.th-side-head { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); align-items: center; }
.th-side-head input { flex: 1; min-width: 0; }
.th-side-head [data-all].on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.th-rooms { flex: 1; overflow: auto; min-height: 0; }
.th-room { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 60px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background .15s; }
.th-room:hover { background: color-mix(in srgb, var(--brand) 7%, transparent); }
.th-room:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.th-room.on { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.th-room[hidden] { display: none; }
.th-n { min-width: 20px; padding: 1px 6px; border-radius: 99px; background: var(--brand); color: var(--on-brand); font-size: 11px; font-weight: 700; text-align: center; flex: none; }
.th-when { font-size: 11px; color: var(--muted); flex: none; white-space: nowrap; }
.th-peek { color: var(--muted); font-style: normal; vertical-align: -2px; }
.th-none { margin: 0; padding: 28px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.th-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.th-head { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.th-back { display: none; }
.th-peekbar { display: flex; gap: 8px; align-items: center; margin: 0; padding: 8px 16px; font-size: 12px; color: var(--warn); background: var(--warn-soft); }
.th-msgs { flex: 1; min-height: 0; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; background: color-mix(in srgb, var(--bg) 70%, var(--panel)); }
.th-msg { max-width: min(74%, 580px); padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; background: var(--panel); align-self: flex-start; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.45; }
.th-msg.me { align-self: flex-end; border-radius: 14px 4px 14px 14px; background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 38%, var(--line)); }
.th-msg .who { display: block; font-size: 12px; font-weight: 700; color: var(--brand-ink); margin-bottom: 2px; }
.th-msg time { float: right; margin: 5px 0 0 12px; font-size: 11px; color: var(--muted); }
.th-msg a { text-decoration: underline; }
.th-meet { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; white-space: normal; }
.th-meet b { display: inline-flex; align-items: center; gap: 6px; }
.th-meet .who { flex-basis: 100%; margin: 0; }
.th-note, .th-day { align-self: center; margin: 6px 0; font-size: 12px; color: var(--muted); text-align: center; }
.th-day span { padding: 2px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); }
.th-send { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--line); }
.th-send textarea { flex: 1; min-height: 40px; max-height: 132px; resize: none; line-height: 20px; padding: 9px 12px; border-radius: 12px; }
.th-hello { margin: auto; padding: 24px; text-align: center; color: var(--muted); max-width: 360px; }
.th-hello svg { color: var(--brand); }
.th-hello b { display: block; margin: 8px 0 4px; font-size: 16px; color: var(--ink); }
.th-hello p { margin: 0; font-size: 13px; line-height: 1.6; }
.th-pop { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 16px; background: rgba(8, 9, 13, .55); }
.th-popbox { width: min(420px, 100%); max-height: 100%; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.th-popbox header { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 16px; }
.th-pick { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.th-pick .th-room:last-child { border-bottom: 0; }
.th-lbl { margin: 4px 0 0; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.th-ticks { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.th-ticks label { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px; border-bottom: 1px solid var(--line); cursor: pointer; margin: 0; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink); }
.th-ticks label:last-child { border-bottom: 0; }
.th-ticks .th-av { width: 30px; height: 30px; font-size: 11px; }
@media (max-width: 760px) {
  .th-chat { grid-template-columns: 1fr; height: calc(100vh - 150px); }
  .th-chat .th-main { display: none; }
  .th-chat.th-open .th-side { display: none; }
  .th-chat.th-open .th-main { display: flex; }
  .th-back { display: inline-flex; }
  .th-msg { max-width: 88%; }
}
.th-leave-wrap { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 16px; align-items: start; }
.th-leave-form { display: grid; gap: 12px; }
.th-leave-form h2 { margin: 0; }
.th-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 900px) { .th-leave-wrap { grid-template-columns: 1fr; } }

/* 🧑‍💼 HR: the month grid (one small box a day) */
.th-key { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.th-key .at { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-left: 10px; border: 1px solid var(--line); }
.at.full, .th-att td.full { background: var(--good-soft); color: var(--good); }
.at.part, .th-att td.part { background: var(--warn-soft); color: var(--warn); }
.at.off, .th-att td.off { background: var(--brand-soft); color: var(--brand-ink); }
.at.none, .th-att td.none { background: color-mix(in srgb, var(--bad-soft) 45%, transparent); }
.th-att { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; }
.th-att th, .th-att td { padding: 4px 2px; text-align: center; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 12px; font-variant-numeric: tabular-nums; }
.th-att thead th { min-width: 30px; text-transform: none; letter-spacing: 0; }
.th-att thead th span { display: block; font-size: 10px; font-weight: 500; opacity: .75; }
.th-att thead th.now { color: var(--brand-ink); box-shadow: inset 0 -2px 0 var(--brand); }
.th-att th.sun, .th-att td.sun { background: color-mix(in srgb, var(--bg) 70%, var(--panel)); color: var(--muted); }
.th-att th[scope=row], .th-att thead th:first-child { position: sticky; left: 0; z-index: 2; background: var(--panel); text-align: left; padding: 6px 12px; min-width: 170px; font-size: 13px; font-weight: 650; text-transform: none; letter-spacing: 0; color: var(--ink); }
.th-att thead th:first-child { z-index: 5; background: color-mix(in srgb, var(--bg) 60%, var(--panel)); }
.th-att td.num { padding: 4px 10px; }
.table-wrap .th-att tbody td:last-child, .table-wrap .th-att thead th:last-child { position: static; }
.hr-team td, .lg-table td { vertical-align: middle; }

/* 🧮 Ledger */
.lg-by { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0 0 12px; }
.lg-table tfoot td { position: sticky; bottom: 0; background: color-mix(in srgb, var(--bg) 60%, var(--panel)); border-top: 1px solid var(--line); border-bottom: 0; }

/* 🖼 Logo promotion: the add line and the sheet */
.mm-add { display: grid; grid-template-columns: minmax(180px, 1.5fr) repeat(5, minmax(96px, 1fr)) auto; gap: 8px; margin: 0 0 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.mm-add input { min-width: 0; }
@media (max-width: 1100px) { .mm-add { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mm-page { display: flex; align-items: center; gap: 4px; }
.mm-page a { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); text-decoration: none; }
.mm-page a:hover { background: var(--brand-soft); color: var(--brand-ink); }
.mm-table td { padding-top: 4px; padding-bottom: 4px; }
.mm-st.st-approved, .mm-st.st-onboarded { border-color: var(--good); color: var(--good); }
.mm-st.st-rejected { border-color: var(--bad); color: var(--bad); }
.mm-st.st-paid { border-color: var(--brand); color: var(--brand-ink); }

/* 📁 Team files */
.fl-up { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; border-style: dashed; }
.fl-up > div:first-child { width: 200px; }
.fl-up.over { border-color: var(--brand); background: var(--brand-soft); }
.fl-prog { flex-basis: 100%; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.fl-prog[hidden] { display: none; }
.fl-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.fl-bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.fl-connect { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.fl-folders > button b { font-size: 16px; }

/* 🔑 login: show / hide the password, and "Forgot password?" */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.pw-eye:hover { color: var(--ink); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.pw-eye:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.pw-eye svg { width: 18px; height: 18px; }
.login .lf-forgot { display: block; margin: -8px 0 14px; text-align: right; font-size: 13px; background: none; border: 0; padding: 0; color: var(--brand-ink); cursor: pointer; font: inherit; font-size: 13px; width: 100%; }
.login .lf-forgot:hover { text-decoration: underline; }

/* 📋 Marketing Head / SMM: nothing on the page can be selected or printed */
.no-copy body { -webkit-user-select: none; user-select: none; }
.no-copy input, .no-copy textarea { -webkit-user-select: text; user-select: text; }
@media print { .no-copy body { display: none; } }
@media (prefers-reduced-motion: reduce) { .th-room, .fl-bar i { transition: none; } }
table.wk-grid input.wk-in[type=date] { padding-right: 2px; }
table.wk-grid input.wk-in::placeholder { color: var(--muted); opacity: .55; }
.hr-team .pill, .mm-table .pill { max-width: 190px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.hr-role { color: var(--muted); max-width: 170px; }
.hr-role.gold { color: var(--brand-ink); font-weight: 650; }
.hr-team .who { min-width: 190px; }
.hr-team .who > div { min-width: 0; }
.hr-team .who .small { max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-table th, .mm-table td { padding-left: 8px; padding-right: 8px; }
.mm-table td select.mm-st { min-width: 112px; }

/* 🧑‍💼 HR + 🧮 Ledger (owner 17 Nov: "name and mail overlap", "the numbers on top don't look good"):
   the numbers are the Dashboard's own cards, and the team table has fixed column widths so nothing can run into its neighbour */
.kpis { margin: 0 0 16px; gap: 12px; }
.kpis .kpi { display: block; min-width: 0; padding: 16px 18px 14px; color: var(--ink); text-decoration: none; }
.kpis .kpi .label { padding-right: 46px; }
.kpis .kpi .value { font-size: 28px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpis .kpi .sub { margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpis a.kpi:hover { text-decoration: none; border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.kpis a.kpi:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.kpis a.kpi .sub { color: var(--brand-ink); font-weight: 600; }
.kpis .kpi.good:not(.accent) .value { color: var(--good); }
.kpis .kpi.bad .value { color: var(--bad); background: none; -webkit-background-clip: border-box; background-clip: border-box; }
.hr-team { table-layout: fixed; min-width: 940px; }
.hr-team th, .hr-team td { padding-left: 10px; padding-right: 10px; overflow: hidden; }
.hr-team td:first-child, .hr-team th:first-child { padding-left: 14px; }
.hr-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hr-who .th-av { width: 34px; height: 34px; }
.hr-who > div { min-width: 0; flex: 1; }
.hr-who b, .hr-who span:not(.th-av), .hr-two > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-who b { font-size: 14px; font-weight: 650; line-height: 1.3; }
.hr-who span:not(.th-av) { font-size: 12px; color: var(--muted); line-height: 1.35; }
.hr-who span.gold { color: var(--brand-ink); font-weight: 650; }
.hr-two { min-width: 0; font-size: 13px; line-height: 1.4; }
.hr-two .muted { font-size: 12px; }
.hr-team input.wk-in { width: 100%; }
.hr-team td.num .btn + .btn { margin-left: 2px; }

/* 📹 video meeting inside the app (teamhub.js): a full-screen room over the page */
.th-livebar { display: flex; gap: 8px; align-items: center; margin: 0; padding: 8px 16px; font-size: 13px; color: var(--good); background: var(--good-soft); }
.th-livebar[hidden] { display: none; }
.th-livebar .btn { margin-left: auto; }
.th-call { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; background: #07080c; color: #f2efe8; }
.th-call header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; font-size: 16px; }
.th-call header b { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-call-n { font-size: 13px; color: #a9a59b; white-space: nowrap; }
.th-tiles { display: grid; gap: 12px; padding: 0 20px; min-height: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); grid-auto-rows: minmax(0, 1fr); align-content: stretch; }
.th-tiles[data-n="1"] { grid-template-columns: minmax(0, 900px); justify-content: center; }
.th-tile { position: relative; min-height: 0; border-radius: 16px; overflow: hidden; background: #151821; border: 1px solid #2a2d39; display: grid; place-items: center; }
.th-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #151821; opacity: 0; }
.th-tile.has-video video { opacity: 1; }
.th-tile.me:not(.sharing) video { transform: scaleX(-1); }
.th-tile.sharing video { object-fit: contain; }
.th-tile-av { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 700; background: #2b2416; color: #c9a35f; }
.th-tile.has-video .th-tile-av { display: none; }
.th-tile-name { position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: 99px; background: rgba(7, 8, 12, .72); font-size: 13px; font-weight: 600; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-tile-note { position: absolute; left: 10px; right: 10px; top: 10px; padding: 6px 10px; border-radius: 10px; background: rgba(7, 8, 12, .78); font-size: 12px; line-height: 1.4; text-align: center; display: none; }
.th-tile.has-note .th-tile-note { display: block; }
.th-call-alone { margin: 10px 20px 0; text-align: center; font-size: 13px; color: #a9a59b; }
.th-call footer { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px)); }
.th-cbtn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 96px; min-height: 60px; padding: 8px 12px; border-radius: 14px; border: 1px solid #2a2d39; background: #151821; color: #f2efe8; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
.th-cbtn:hover { border-color: #c9a35f; }
.th-cbtn:focus-visible { outline: 2px solid #c9a35f; outline-offset: 2px; }
.th-cbtn.on { background: #20232e; }
.th-cbtn:not(.on):not(.end):not([data-c="screen"])[aria-pressed="false"] { color: #ff9aa3; }
.th-cbtn[data-c="screen"][aria-pressed="true"] { background: #2b2416; border-color: #c9a35f; color: #e7c98c; }
.th-cbtn.end { background: #b8323e; border-color: #b8323e; color: #fff; }
.th-cbtn.end:hover { background: #cf3b48; }
.th-cbtn:disabled { opacity: .45; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .th-cbtn { transition: none; } }
.celeb-note { margin: -4px 0 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .celeb-note[hidden] { display: none; }
.mm-add.mm-post { grid-template-columns: minmax(170px, 1.4fr) minmax(120px, 1fr) minmax(90px, .7fr) minmax(130px, .8fr) minmax(150px, 1.3fr) auto; }
@media (max-width: 1100px) { .mm-add.mm-post { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mt-tick { display: inline-flex; align-items: center; gap: 8px; margin: 0; min-height: 32px; cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ink); }
.th-meme .th-h { margin: 0 0 4px; font-size: 20px; }
.th-sub { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.th-meme .table-wrap + .th-sub { margin-top: 8px; }
.mm-table { min-width: 1010px; }
.mm-table .mm-page b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.mm-table td select.mm-st { min-width: 128px; }
.mm-table td:nth-child(2), .mm-table th:nth-child(2) { min-width: 190px; }
.hc-n { width: 72px !important; text-align: right; }
.mc-table .mc-what { max-width: 360px; }
.mc-table .mc-what b, .mc-table .mc-what .small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-set textarea { font: 13px/1.5 ui-monospace, Menlo, monospace; }

/* ---- Stat cards: the number is never hidden behind the icon or cut off (owner 21 Nov) */
.stat { container-type: inline-size; }
.stat .label { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; min-height: 2.6em; padding-right: 44px; }
.stat .value { font-size: clamp(18px, 15cqi, var(--fs-num)); white-space: nowrap; overflow-wrap: normal; }
.hc-flow .stat .value { font-size: clamp(18px, 15cqi, 24px); }
