/* Motion OS. Neutral, quiet surfaces and soft motion, after beautifului.dev and beui.dev,
   with Motion's sky blue as the accent. Light and dark themes share every token below. */
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-tight-latin-v1.woff2') format('woff2'); }

:root {
  --bg: #f4f4f5;
  --sheet: #ffffff;
  --panel: #fafafa;
  --raised: #ffffff;
  --hover: rgba(24, 24, 27, 0.045);
  --press: rgba(24, 24, 27, 0.07);
  --ink: #18181b;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --faint: #a1a1aa;
  --line: rgba(24, 24, 27, 0.075);
  --line-2: rgba(24, 24, 27, 0.12);
  --accent: #2f7fc1;
  --accent-ink: #1d5d8c;
  --accent-soft: rgba(47, 127, 193, 0.1);
  --sky: #b5dff5;
  --good: #16a34a;
  --warn: #d97706;
  --bad: #dc2626;
  --violet: #7c3aed;
  --pink: #db2777;
  --teal: #0d9488;
  --btn: #18181b;
  --btn-ink: #fff;
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, 0.05);
  --shadow: 0 1px 2px rgba(24, 24, 27, 0.04), 0 4px 14px -6px rgba(24, 24, 27, 0.08);
  --shadow-lg: 0 24px 60px -18px rgba(24, 24, 27, 0.28), 0 2px 8px rgba(24, 24, 27, 0.06);
  --ring: 0 0 0 3px rgba(47, 127, 193, 0.22);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --sans: 'Inter Tight', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --spring: cubic-bezier(0.22, 1.2, 0.36, 1);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --side: 236px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0c0c0e; --sheet: #141416; --panel: #18181b; --raised: #1c1c1f; --hover: rgba(255, 255, 255, 0.05); --press: rgba(255, 255, 255, 0.08);
    --ink: #f4f4f5; --ink-2: #d4d4d8; --muted: #a1a1aa; --faint: #71717a; --line: rgba(255, 255, 255, 0.07); --line-2: rgba(255, 255, 255, 0.12);
    --accent: #5aa9e6; --accent-ink: #8cc6ea; --accent-soft: rgba(90, 169, 230, 0.14);
    --good: #22c55e; --warn: #f59e0b; --bad: #f87171; --violet: #a78bfa; --pink: #f472b6; --teal: #2dd4bf;
    --btn: #f4f4f5; --btn-ink: #18181b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4); --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 18px -8px rgba(0, 0, 0, 0.6); --shadow-lg: 0 28px 70px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0c0c0e; --sheet: #141416; --panel: #18181b; --raised: #1c1c1f; --hover: rgba(255, 255, 255, 0.05); --press: rgba(255, 255, 255, 0.08);
  --ink: #f4f4f5; --ink-2: #d4d4d8; --muted: #a1a1aa; --faint: #71717a; --line: rgba(255, 255, 255, 0.07); --line-2: rgba(255, 255, 255, 0.12);
  --accent: #5aa9e6; --accent-ink: #8cc6ea; --accent-soft: rgba(90, 169, 230, 0.14);
  --good: #22c55e; --warn: #f59e0b; --bad: #f87171; --violet: #a78bfa; --pink: #f472b6; --teal: #2dd4bf;
  --btn: #f4f4f5; --btn-ink: #18181b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4); --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 18px -8px rgba(0, 0, 0, 0.6); --shadow-lg: 0 28px 70px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--sans); letter-spacing: -0.006em; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent-soft); color: var(--ink); }
a { color: inherit; text-decoration: none; }
a.link, .msg a, .facts a { color: var(--accent-ink); }
a.link:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
em { font-style: normal; color: var(--muted); font-weight: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono, .kbd { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.num, .delta { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* ── Sidebar ── */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); padding: 14px 10px 12px; display: flex; flex-direction: column; gap: 14px; z-index: 20; }
.brand { display: flex; align-items: center; gap: 9px; padding: 6px 8px 4px; }
.brand__mark { height: 24px; width: auto; }
.brand__name { display: flex; align-items: center; gap: 6px; }
.brand__name img { height: 8px; width: auto; }
:root[data-theme='dark'] .brand__name img { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .brand__name img { filter: invert(1); } }
.brand__name b { font-size: 10px; letter-spacing: 0.16em; font-weight: 600; color: var(--accent); }
.jump { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px 0 10px; border-radius: var(--r-sm); background: var(--sheet); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--faint); font-size: 13px; transition: border-color 0.2s, color 0.2s; }
.jump:hover { color: var(--muted); border-color: var(--line-2); }
.jump span { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jump .kbd { flex: none; }
.kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--panel); font-size: 10.5px; color: var(--muted); }
.side__label { padding: 6px 10px 2px; font-size: 11.5px; color: var(--faint); }
.side__nav { position: relative; display: flex; flex-direction: column; gap: 1px; }
.side__nav a { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: var(--r-sm); color: var(--muted); font-size: 13.5px; transition: color 0.15s; }
.side__nav a:hover, .side__nav a[aria-current='page'] { color: var(--ink); }
.side__nav a span:first-of-type { flex: 1; }
.glide { position: absolute; left: 0; right: 0; top: 0; height: 32px; border-radius: var(--r-sm); background: var(--hover); opacity: 0; transition: transform 0.32s var(--spring), opacity 0.2s; pointer-events: none; }
.glide--on { opacity: 1; }
.glide--active { position: absolute; left: 0; right: 0; top: 0; height: 32px; border-radius: var(--r-sm); background: var(--sheet); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); transition: transform 0.4s var(--spring); pointer-events: none; }
.count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); font: 600 11px/18px var(--sans); text-align: center; }
.count--bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.side__foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.me { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: var(--r-sm); font-size: 12.5px; color: var(--muted); min-width: 0; }
.me__mail { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 24px; height: 24px; border-radius: 7px; display: inline-grid; place-items: center; flex: none; font: 600 11px/1 var(--sans); color: #fff; background: linear-gradient(135deg, #8cc6ea, #2f7fc1); text-transform: uppercase; }
.avatar--sm { width: 20px; height: 20px; border-radius: 6px; font-size: 10px; }
.icon-btn { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: var(--r-sm); color: var(--muted); transition: background 0.15s, color 0.15s; }
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.theme { position: relative; display: inline-flex; padding: 2px; border-radius: 999px; background: var(--hover); }
.theme button { position: relative; z-index: 1; width: 28px; height: 24px; display: grid; place-items: center; border-radius: 999px; color: var(--faint); transition: color 0.2s; }
.theme button[aria-pressed='true'] { color: var(--ink); }
.theme__thumb { position: absolute; top: 2px; left: 2px; width: 28px; height: 24px; border-radius: 999px; background: var(--sheet); box-shadow: var(--shadow-sm); transition: transform 0.35s var(--spring); }
.burger { display: none; }

/* ── Sheet ── */
.main { margin-left: var(--side); min-height: 100vh; padding: 8px 8px 8px 0; }
.sheet { min-height: calc(100vh - 16px); background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 26px clamp(18px, 3vw, 36px) 64px; }
.sheet > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.enter > * { animation: rise 0.45s var(--ease) both; }
.enter > *:nth-child(2) { animation-delay: 0.04s; } .enter > *:nth-child(3) { animation-delay: 0.08s; } .enter > *:nth-child(4) { animation-delay: 0.12s; } .enter > *:nth-child(n + 5) { animation-delay: 0.16s; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 14px 20px; margin-bottom: 22px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--faint); margin-bottom: 6px; }
.crumbs a:hover { color: var(--ink); }
.crumbs svg.i { width: 12px; height: 12px; }
.h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.h1 .num { font-size: 15px; font-weight: 500; color: var(--muted); }
.lede { margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.h2 { font-size: 14px; font-weight: 600; letter-spacing: -0.012em; display: flex; align-items: center; gap: 8px; }
.h2 .num { font-weight: 500; font-size: 12px; color: var(--faint); }
.h3 { font-size: 13.5px; font-weight: 600; }
.grid { display: grid; gap: 14px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--side { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }
.gap { margin-bottom: 14px; }

/* ── Cards ── */
.card { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); min-width: 0; }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px 12px 16px; border-bottom: 1px solid var(--line); min-height: 50px; }
.card__body { padding: 14px 16px; }
.card__foot { display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-top: 1px solid var(--line); background: var(--panel); border-radius: 0 0 var(--r) var(--r); font-size: 12.5px; color: var(--muted); }
.card__foot b { color: var(--ink); font-family: var(--sans); font-weight: 600; }
.well { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px; }
.well > .card { box-shadow: var(--shadow); }

/* Stat tiles */
.stat { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.stat__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.stat__value { font: 600 24px/1 var(--sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 6px; }
.stat__value small { font-size: 13px; color: var(--faint); font-weight: 500; }
.stat__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; min-height: 30px; font-size: 12px; color: var(--faint); }
.spark { width: 110px; height: 30px; flex: none; overflow: visible; }
.spark path.l { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.spark path.a { fill: url(#sparkfill); stroke: none; }
.spark circle { fill: var(--accent); }
.delta { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 6px; font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.delta--up { color: var(--good); background: color-mix(in srgb, var(--good) 11%, transparent); }
.delta--down { color: var(--bad); background: color-mix(in srgb, var(--bad) 11%, transparent); }

/* Lever rows */
.lever__no { font: 500 11px var(--mono); color: var(--faint); }
.metric { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 16px; font-size: 13px; color: var(--muted); }
.metric + .metric { border-top: 1px dashed var(--line); }
.metric b { color: var(--ink); font: 600 13.5px var(--sans); letter-spacing: -0.02em; }

/* ── Buttons & inputs ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid transparent; font-size: 13px; font-weight: 500; white-space: nowrap; transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.2s var(--spring), box-shadow 0.2s; user-select: none; }
.btn:active { transform: scale(0.97); }
.btn svg.i { width: 14px; height: 14px; }
.btn--dark { background: var(--btn); color: var(--btn-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(0, 0, 0, 0.2); }
.btn--dark:hover { opacity: 0.88; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.15); }
.btn--accent:hover { filter: brightness(1.06); }
.btn--ghost { background: var(--raised); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { background: var(--panel); }
.btn--soft { background: var(--hover); }
.btn--soft:hover { background: var(--press); }
.btn--sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn--good { background: var(--accent); color: #fff; }
.btn--text { color: var(--muted); padding: 0 8px; }
.btn--text:hover { color: var(--ink); background: var(--hover); }
.btn--danger:hover { color: var(--bad); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.input, .select, .textarea { height: 34px; padding: 0 11px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--raised); font-size: 13.5px; min-width: 0; transition: border-color 0.15s, box-shadow 0.15s; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.select { padding-right: 28px; appearance: none; background: var(--raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2371717a' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center; }
.textarea { height: auto; min-height: 96px; padding: 9px 11px; resize: vertical; width: 100%; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.searchbox { position: relative; display: inline-flex; align-items: center; width: min(260px, 100%); }
.searchbox svg.i { position: absolute; left: 10px; color: var(--faint); width: 14px; height: 14px; }
.searchbox .input { width: 100%; padding-left: 30px; border-radius: 999px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 12px; padding: 18px 20px 4px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 500; color: var(--muted); }
.field .input, .field .select { width: 100%; }

/* ── Chips, tags, status ── */
.tag { --c: var(--muted); display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; text-transform: capitalize;
  color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); }
.tag--signed, .tag--active, .tag--paid, .tag--replied, .tag--agreement, .tag--approved, .tag--queued { --c: var(--good); }
.tag--talking, .tag--negotiating, .tag--contracted, .tag--live, .tag--logged { --c: var(--accent); }
.tag--contacted, .tag--delivered, .tag--in { --c: var(--teal); }
.tag--draft, .tag--invited, .tag--pitched, .tag--prospect, .tag--target, .tag--manual { --c: var(--warn); }
.tag--passed, .tag--lost, .tag--bounced, .tag--past, .tag--none { --c: var(--faint); }
.tag--failed { --c: var(--bad); }
.tag--viral { --c: var(--pink); }
.tag--music { --c: var(--violet); }
.tag--nostalgia { --c: var(--warn); }
.tag--email, .tag--linkedin, .tag--dm, .tag--call, .tag--out { --c: var(--muted); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--faint)); flex: none; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 999px; background: var(--hover); position: relative; }
.chip { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; color: var(--muted); text-transform: capitalize; transition: color 0.15s; }
.chip:hover { color: var(--ink); }
.chip[aria-pressed='true'] { color: var(--ink); background: var(--raised); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.chip .num { font-size: 11px; color: var(--faint); }

/* Dropdown menus */
.dd { position: relative; display: inline-flex; }
.dd__btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--raised); box-shadow: var(--shadow-sm); font-size: 12.5px; color: var(--muted); transition: background 0.15s; }
.dd__btn b { font-weight: 500; color: var(--ink); text-transform: capitalize; }
.dd__btn:hover { background: var(--panel); }
.dd__btn svg.i { width: 13px; height: 13px; transition: transform 0.25s var(--spring); }
.dd--open .dd__btn svg.i { transform: rotate(180deg); }
.menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 180px; padding: 4px; border-radius: var(--r); background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transform-origin: top left; opacity: 0; transform: scale(0.96) translateY(-4px); pointer-events: none; transition: opacity 0.16s, transform 0.22s var(--spring); }
.dd--open .menu { opacity: 1; transform: none; pointer-events: auto; }
.menu button { width: 100%; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 7px; font-size: 13px; text-align: left; text-transform: capitalize; color: var(--ink-2); }
.menu button:hover, .menu button.is-hl { background: var(--hover); color: var(--ink); }
.menu button svg.i { width: 14px; height: 14px; margin-left: auto; color: var(--accent); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
th { position: sticky; top: 0; z-index: 1; text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 0 12px; height: 36px; white-space: nowrap; background: var(--panel); border-bottom: 1px solid var(--line); }
th:first-child { border-top-left-radius: var(--r); } th:last-child { border-top-right-radius: var(--r); }
td { padding: 0 12px; height: 44px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tr[data-href], tr[data-deal-id], tr[data-ff-id] { cursor: pointer; }
tbody tr { transition: background 0.12s; }
tbody tr[data-href]:hover, tbody tr[data-deal-id]:hover, tbody tr[data-ff-id]:hover { background: var(--hover); }
td.num, th.num { text-align: right; }
td.idx, th.idx { width: 40px; padding-right: 0; color: var(--faint); font: 11.5px var(--mono); text-align: right; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who__mark { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex: none; background: var(--hover); border: 1px solid var(--line); color: var(--muted); font: 600 10.5px/1 var(--sans); text-transform: uppercase; }
.who__text { min-width: 0; }
.name { font-weight: 500; color: var(--ink); }
.sub { font-size: 12px; color: var(--faint); }
.facts td { height: 38px; white-space: normal; }
.facts td:first-child { color: var(--muted); width: 42%; }

/* ── Lists ── */
.list { display: flex; flex-direction: column; }
.item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-top: 1px solid var(--line); transition: background 0.15s; }
.item:first-child { border-top: 0; }
.item__body { flex: 1; min-width: 0; }
.item__body p { overflow-wrap: anywhere; }
.item__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--faint); }
.msg { white-space: pre-wrap; font-size: 13px; line-height: 1.55; color: var(--ink-2); margin-top: 8px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--line); }
.overdue { color: var(--bad); }
.empty { color: var(--faint); font-size: 13px; padding: 18px 16px; text-align: center; }
.empty--left { text-align: left; }

/* Todo rows */
.todo { display: flex; align-items: flex-start; gap: 11px; padding: 10px 16px; border-top: 1px solid var(--line); }
.todo:first-child { border-top: 0; }
.tick { position: relative; width: 18px; height: 18px; margin-top: 1px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; transition: background 0.2s, border-color 0.2s, transform 0.25s var(--spring); }
.tick:hover { border-color: var(--muted); }
.tick:active { transform: scale(0.88); }
.tick--late { border-color: color-mix(in srgb, var(--bad) 55%, transparent); border-style: dashed; }
.tick svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 2.5; fill: none; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset 0.3s 0.05s var(--ease); }
.todo--done .tick { background: var(--ink); border-color: var(--ink); color: var(--sheet); }
.todo--done .tick svg { stroke-dashoffset: 0; }
.todo__title { position: relative; display: inline; color: var(--ink); background: linear-gradient(currentColor, currentColor) no-repeat 0 55% / 0 1px; transition: background-size 0.35s var(--ease), color 0.3s; }
.todo--done .todo__title { color: var(--faint); background-size: 100% 1px; }
.progress { width: 64px; height: 4px; border-radius: 99px; background: var(--hover); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width 0.5s var(--ease); }

/* Approval cards */
.approval { padding: 14px 16px; border-top: 1px solid var(--line); }
.approval:first-child { border-top: 0; }
.approval__q { font-size: 13.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.approval__foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.channel { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex: none; background: var(--hover); color: var(--muted); }
.channel svg.i { width: 13px; height: 13px; }
.delivery { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--muted); }

/* ── Fanfix ── */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding: 26px 16px 12px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.bar__fill { width: 100%; max-width: 44px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 55%, transparent), var(--accent)); transform-origin: bottom; animation: grow 0.6s var(--ease) both; transition: filter 0.15s; }
.bar:hover .bar__fill { filter: brightness(1.12); }
.bar__v { font: 11px var(--sans); color: var(--muted); }
.bar__l { font-size: 11px; color: var(--faint); white-space: nowrap; }
@keyframes grow { from { transform: scaleY(0); } }
.mix { display: flex; width: 120px; height: 6px; border-radius: 999px; overflow: hidden; background: var(--hover); gap: 1px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }

/* ── Deals board ── */
.board { display: grid; grid-template-columns: repeat(6, minmax(200px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.col { --c: var(--faint); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px; display: flex; flex-direction: column; gap: 6px; min-height: 180px; transition: background 0.15s, border-color 0.15s; }
.col--over { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.col__head { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; text-transform: capitalize; padding: 6px 8px 4px; }
.col__head .num { margin-left: auto; font-size: 11.5px; color: var(--faint); font-weight: 400; }
.deal { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 11px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 4px; cursor: grab; transition: box-shadow 0.2s, transform 0.2s var(--spring), opacity 0.2s; }
.deal:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.deal--drag { opacity: 0.45; transform: scale(0.98); }
.deal b { font-weight: 500; font-size: 13px; }
.deal__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; font-size: 12px; }

/* ── Modal ── */
.modal { width: min(620px, calc(100% - 24px)); max-height: calc(100vh - 48px); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0; background: var(--raised); color: var(--ink); box-shadow: var(--shadow-lg); overflow: auto; }
.modal[open] { animation: pop 0.28s var(--spring); }
.modal::backdrop { background: rgba(9, 9, 11, 0.32); backdrop-filter: blur(2px); animation: fade 0.2s; }
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(8px); } }
@keyframes fade { from { opacity: 0; } }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 14px 20px; border-bottom: 1px solid var(--line); }
.modal__head h2 { font-size: 15px; font-weight: 600; }
.modal__foot { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: 10px -20px 0; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--panel); position: sticky; bottom: 0; }

/* ── Command menu ── */
.cmd { width: min(600px, calc(100% - 24px)); margin-top: 12vh; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0; background: var(--raised); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden; }
.cmd[open] { animation: pop 0.24s var(--spring); }
.cmd::backdrop { background: rgba(9, 9, 11, 0.28); animation: fade 0.2s; }
.cmd__bar { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.cmd__bar svg.i { color: var(--faint); }
.cmd__bar input { flex: 1; height: 50px; border: 0; background: none; font-size: 15px; outline: none; }
.cmd__bar input::placeholder { color: var(--faint); }
.cmd__list { max-height: min(420px, 55vh); overflow-y: auto; padding: 6px; }
.cmd__group { padding: 8px 10px 4px; font-size: 11.5px; color: var(--faint); }
.cmd__item { width: 100%; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: var(--r-sm); text-align: left; font-size: 13.5px; color: var(--ink-2); }
.cmd__item .sub { margin-left: auto; }
.cmd__item.is-hl { background: var(--hover); color: var(--ink); }
.cmd__item svg.i { color: var(--muted); }
.cmd__foot { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--line); background: var(--panel); font-size: 11.5px; color: var(--faint); }
.cmd__foot span { display: inline-flex; align-items: center; gap: 5px; }

/* ── Toasts (stacked) ── */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 80; width: min(340px, calc(100% - 36px)); height: 0; }
.toast { position: absolute; right: 0; bottom: 0; width: 100%; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 13px;
  transform-origin: bottom center; transition: transform 0.45s var(--spring), opacity 0.3s; animation: toastIn 0.45s var(--spring); }
.toast__icon { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: 1px; background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
.toast--bad .toast__icon { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); }
.toast__icon svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.toast--out { opacity: 0; transform: translateY(12px) scale(0.96) !important; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(0.96); } }

code, pre { font-family: var(--mono); font-size: 12.5px; }
code { padding: 1px 5px; border-radius: 5px; background: var(--hover); border: 1px solid var(--line); }
pre { background: var(--panel); border: 1px solid var(--line); color: var(--ink-2); padding: 12px 14px; border-radius: var(--r-sm); overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 26px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.drop:hover { border-color: var(--muted); }
.drop--on { border-color: var(--accent); background: var(--accent-soft); }
.drop svg.i { width: 20px; height: 20px; color: var(--faint); }
.result { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.prose { display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 13.5px; }
.prose ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }

/* ── Small screens ── */
@media (max-width: 1100px) {
  .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr 1fr; }
  .grid--side { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .side { transform: translateX(-100%); transition: transform 0.4s var(--ease); background: var(--bg); box-shadow: var(--shadow-lg); }
  .side--open { transform: none; }
  .burger { display: grid; place-items: center; position: fixed; top: 14px; right: 14px; z-index: 30; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--raised); box-shadow: var(--shadow); color: var(--ink); }
  .main { margin-left: 0; padding: 0; }
  .sheet { border-radius: 0; border: 0; min-height: 100vh; padding: 22px 16px 64px; }
  .head { padding-right: 46px; }
  .grid--2, .form { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hide-sm { display: none; }
  .searchbox { width: 100%; }
  .stat__value { font-size: 20px; }
  .spark { width: 70px; }
}
.cmd__bar input, .cmd__bar input:focus, .cmd__bar input:focus-visible { box-shadow: none; border: 0; outline: none; background: transparent; }
.dd:last-child .menu { left: auto; right: 0; transform-origin: top right; }
@media (max-width: 820px) {
  .sheet { overflow-x: clip; }
  .side { box-shadow: none; }
  .side--open { box-shadow: var(--shadow-lg); }
  .chips { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}

/* Section tabs and settings menu */
.tabs { display: flex; gap: 2px; margin: -4px 0 14px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { position: relative; padding: 6px 10px 10px; font-size: 13px; color: var(--muted); white-space: nowrap; transition: color 0.15s; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current='page'] { color: var(--ink); font-weight: 500; }
.tabs a[aria-current='page']::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); animation: tabin 0.3s var(--spring); }
@keyframes tabin { from { transform: scaleX(0.4); opacity: 0; } }
.menu--up { top: auto; bottom: calc(100% + 6px); }
.menu a { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 7px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.menu a:hover { background: var(--hover); color: var(--ink); }
.menu a svg.i { width: 14px; height: 14px; color: var(--muted); }
.settings.is-on > .icon-btn { color: var(--ink); background: var(--hover); }

/* Creators discovery, roster and view switch */
.tabs a { display: inline-flex; align-items: center; gap: 6px; }
.tabs a svg.i { width: 14px; height: 14px; }
.tabs a .num { font-size: 11px; color: var(--faint); font-weight: 400; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--hover); }
.seg a { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; color: var(--muted); transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.seg a svg.i { width: 14px; height: 14px; }
.seg a[aria-pressed='true'] { background: var(--raised); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.avatar--lg { width: var(--s, 36px); height: var(--s, 36px); flex: none; display: grid; place-items: center; border-radius: 50%; color: #fff; font: 600 calc(var(--s, 36px) * 0.4)/1 var(--sans); text-transform: uppercase;
  background: linear-gradient(135deg, hsl(var(--h) 70% 62%), hsl(calc(var(--h) + 40) 70% 48%)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
table.discover td { padding-top: 10px; padding-bottom: 10px; }
.minis { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; font-size: 11px; color: var(--faint); font-weight: 400; }
.minis span { display: inline-flex; align-items: center; gap: 3px; }
.minis svg.i { width: 11px; height: 11px; }
.board--5 { grid-template-columns: repeat(5, minmax(210px, 1fr)); }
.ccard .who { gap: 9px; }
.ccard .deal__foot { justify-content: flex-start; gap: 6px; }
.tag--exclusive { --c: var(--good); }
.tag--non_exclusive { --c: var(--accent); }
.tag--alumni { --c: var(--violet); }
.rgroup { margin-top: 22px; }
.rgroup > .h2 { margin-bottom: 10px; }
.rgroup--todo { padding: 14px; border-radius: var(--r-lg); border: 1px dashed color-mix(in srgb, var(--warn) 45%, var(--line)); background: color-mix(in srgb, var(--warn) 5%, transparent); }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.rcard { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s, transform 0.25s var(--spring), border-color 0.2s; }
.rcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-2); }
.rcard__top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rcard__id { display: flex; flex-direction: column; min-width: 0; }
.rcard__id b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard__id .sub { text-transform: capitalize; }
.rcard__nums { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--faint); }
.rcard__nums span { display: inline-flex; align-items: center; gap: 4px; }
.rcard__nums b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.rcard__nums svg.i { width: 12px; height: 12px; }
.rcard__foot { display: flex; align-items: center; gap: 6px; padding-top: 10px; border-top: 1px dashed var(--line); }
.rcard__foot .select { margin-left: auto; }
.select--sm { height: 28px; padding: 0 26px 0 8px; font-size: 12px; width: auto; }
.empty--box { border: 1px dashed var(--line); border-radius: var(--r-lg); }

/* ── Record views (table or kanban, filter, sort, macros, saved views) ── */
.vbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.vbar__view { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border-radius: var(--r-sm); font-size: 13px; font-weight: 500; color: var(--ink); transition: background 0.15s; }
.vbar__view:hover { background: var(--hover); }
.vbar__view svg.i { width: 15px; height: 15px; color: var(--muted); }
.vbar__view .num { color: var(--faint); font-weight: 400; }
.vsearch { position: relative; display: flex; align-items: center; flex: 0 1 360px; min-width: 200px; }
.vsearch svg.i { position: absolute; left: 10px; width: 14px; height: 14px; color: var(--faint); pointer-events: none; }
.vsearch input { width: 100%; height: 32px; padding: 0 10px 0 31px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--raised); font: inherit; font-size: 13px; color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s; }
.vsearch input:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: var(--ring); }
.vbtn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: var(--r-sm); font-size: 13px; color: var(--muted); transition: background 0.15s, color 0.15s; white-space: nowrap; }
.vbtn:hover { background: var(--hover); color: var(--ink); }
.vbtn svg.i { width: 14px; height: 14px; }
.vbtn b { color: var(--ink); font-weight: 500; }
.vbtn .count { margin-left: 2px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; color: var(--muted); transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.seg button svg.i { width: 14px; height: 14px; }
.seg button[aria-pressed='true'] { background: var(--raised); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.vhint { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -4px 0 10px; padding: 8px 10px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); font-size: 12px; color: var(--muted); animation: fadein 0.2s var(--ease); }
.vhint svg.i { width: 13px; height: 13px; color: var(--accent); }
.vhint button { height: 22px; padding: 0 7px; border-radius: 6px; background: var(--raised); border: 1px solid var(--line); font: 11.5px var(--mono); color: var(--ink-2); }
.vhint button:hover { border-color: var(--accent); color: var(--accent-ink); }
.vhint .faint b { color: var(--muted); font-weight: 600; }
@keyframes fadein { from { opacity: 0; transform: translateY(-3px); } }
.vchips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 0 10px; margin-bottom: 10px; border-bottom: 1px dashed var(--line); }
.fchip { display: inline-flex; align-items: center; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12.5px; overflow: hidden; animation: fadein 0.2s var(--ease); }
.fchip button { display: inline-flex; align-items: center; gap: 4px; height: 100%; padding: 0 8px; color: inherit; }
.fchip button b { font-weight: 600; }
.fchip svg.i { width: 12px; height: 12px; }
.fchip .fchip__x { padding: 0 6px; border-left: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); }
.fchip .fchip__x:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.fchip--sort { background: var(--hover); color: var(--ink-2); }
.fchip--sort .fchip__x { border-left-color: var(--line); }
.fchip--warn { gap: 4px; padding: 0 8px; background: color-mix(in srgb, var(--bad) 10%, transparent); color: var(--bad); }
.vlink { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border-radius: 7px; font-size: 12.5px; color: var(--muted); }
.vlink:hover { background: var(--hover); color: var(--ink); }
.vlink svg.i { width: 12px; height: 12px; }
.vlink--strong { color: var(--accent-ink); font-weight: 500; }
.bulk { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 6px 8px 6px 12px; border-radius: var(--r); background: var(--ink); color: var(--sheet); font-size: 13px; box-shadow: var(--shadow-lg); animation: fadein 0.2s var(--ease); }
.bulk b { font-weight: 600; }
.bulk .vbtn, .bulk .vlink { color: color-mix(in srgb, var(--sheet) 75%, transparent); }
.bulk .vbtn:hover, .bulk .vlink:hover { background: color-mix(in srgb, var(--sheet) 12%, transparent); color: var(--sheet); }
.bulk__sep { width: 1px; height: 16px; margin: 0 4px; background: color-mix(in srgb, var(--sheet) 25%, transparent); }
.vtable th[data-sort-col] { cursor: pointer; user-select: none; }
.vtable th[data-sort-col] span { display: inline-flex; align-items: center; gap: 4px; }
.vtable th[data-sort-col]:hover { color: var(--ink); }
.vtable th[aria-sort='ascending'], .vtable th[aria-sort='descending'] { color: var(--ink); }
.vtable th svg.i { width: 12px; height: 12px; }
.vtable td.sel, .vtable th.sel { width: 34px; padding-right: 0; }
.vtable input[type='checkbox'] { width: 15px; height: 15px; accent-color: var(--accent); opacity: 0.55; cursor: pointer; }
.vtable tr:hover input[type='checkbox'], .vtable input[type='checkbox']:checked, .vtable th input[type='checkbox'] { opacity: 1; }
.vtable tr.is-sel td { background: var(--accent-soft); }
.vtable td .todo { padding: 0; border: 0; background: none; }
.vtable .clamp { max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col__add { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px; border-radius: 8px; font-size: 12.5px; color: var(--faint); transition: background 0.15s, color 0.15s; }
.col__add:hover { background: var(--hover); color: var(--ink); }
.col__add svg.i { width: 13px; height: 13px; }
.col .rcard { padding: 12px; gap: 10px; }
.ocard__top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ocard__top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ocard .deal__foot .btn { margin-left: auto; }
.tcard .todo { padding: 0; border: 0; }
.unset { display: flex; flex-direction: column; gap: 4px; }
.unset__row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); flex-wrap: wrap; }
.unset__row a { font-weight: 500; }
.input--sm, .select--sm { height: 30px; font-size: 12.5px; }
.pop { position: fixed; z-index: 60; width: 260px; max-height: min(440px, 70vh); overflow: auto; padding: 6px; border-radius: var(--r); background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 2px; animation: popin 0.18s var(--spring); transform-origin: top left; }
@keyframes popin { from { opacity: 0; transform: scale(0.96) translateY(-4px); } }
.pop__h { padding: 6px 8px 4px; font-size: 11.5px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: 0.04em; }
.pop .input, .pop .select { margin: 2px 2px 6px; width: calc(100% - 4px); }
.pop__item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 30px; padding: 0 8px; border-radius: 7px; font-size: 13px; text-align: left; color: var(--ink-2); }
.pop__item:hover { background: var(--hover); color: var(--ink); }
.pop__item svg.i { width: 14px; height: 14px; color: var(--muted); }
.pop__item svg.i:last-child:not(:first-child) { margin-left: auto; color: var(--accent); }
.pop__item--row { padding: 0 2px 0 0; }
.pop__item--row > button:first-child { display: flex; align-items: center; gap: 8px; flex: 1; min-height: 30px; padding: 0 8px; text-align: left; }
.pop__row { display: flex; align-items: center; gap: 2px; padding: 0 2px 0 8px; min-height: 30px; border-radius: 7px; font-size: 13px; }
.pop__row:hover { background: var(--hover); }
.pop__row span { flex: 1; }
.pop__opts { display: flex; flex-direction: column; gap: 1px; max-height: 220px; overflow: auto; }
.pop__check { display: flex; align-items: center; gap: 8px; min-height: 28px; padding: 0 8px; border-radius: 7px; font-size: 13px; cursor: pointer; text-transform: capitalize; }
.pop__check:hover { background: var(--hover); }
.pop__check input { accent-color: var(--accent); }
.pop__foot { display: flex; justify-content: space-between; gap: 6px; padding: 6px 2px 2px; margin-top: 4px; border-top: 1px solid var(--line); }
.pop hr { border: 0; border-top: 1px solid var(--line); margin: 4px; }
@media (max-width: 820px) {
  .vsearch { flex: 1 1 100%; order: 3; }
  .seg button span { display: none; }
}

.rgroup--todo { margin: 0 0 14px; padding: 0; }
.rgroup--todo summary { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.rgroup--todo summary::-webkit-details-marker { display: none; }
.rgroup--todo summary svg.i { margin-left: auto; transition: transform 0.25s var(--spring); }
.rgroup--todo[open] summary svg.i { transform: rotate(180deg); }
.rgroup--todo .unset { padding: 0 10px 10px; }

/* ── Enrichment: agency flag, email kinds, paid tags ── */
.flag { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; padding: 10px 14px; border-radius: var(--r); background: color-mix(in srgb, var(--warn) 10%, var(--raised)); border: 1px solid color-mix(in srgb, var(--warn) 30%, var(--line)); font-size: 13px; color: var(--ink); }
.flag svg.i { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--warn); }
.flag .sub { color: var(--muted); }
.tag--rep, .tag--agency, .tag--management { --c: var(--warn); text-transform: none; }
.tag--own, .tag--personal { --c: var(--good); }
.tag--company { --c: var(--teal); }
.tag--motion { --c: var(--accent); }
.chips a.chip { text-decoration: none; text-transform: none; }

/* ── Business: scores, deliverables, timeline, calendar, money, discover ── */
.score { display: inline-flex; align-items: center; gap: 8px; min-width: 84px; }
.score b { width: 22px; text-align: right; font-variant-numeric: tabular-nums; }
.score i { position: relative; flex: 1; height: 5px; border-radius: 99px; background: var(--hover); overflow: hidden; }
.score i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--c, var(--accent)); }
.score--hot { --c: var(--good); } .score--warm { --c: var(--warn); } .score--cool { --c: var(--faint); }
.item--row { align-items: center; cursor: pointer; }
.item--row:hover { background: var(--hover); }
.item--check { align-items: center; cursor: pointer; }
.item--check input { width: 16px; height: 16px; accent-color: var(--accent); }
.item__snip { margin-top: 4px; font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag--v-planned { --c: var(--faint); } .tag--v-draft_sent { --c: var(--warn); } .tag--v-approved { --c: var(--accent); } .tag--v-live { --c: var(--good); }
.tag--invoiced, .tag--owed { --c: var(--warn); }
.timeline { list-style: none; margin: 0; padding: 8px 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.timeline li { display: flex; gap: 10px; font-size: 13px; }
.timeline li p { margin: 0; overflow-wrap: anywhere; }
.timeline__dot { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--hover); color: var(--muted); }
.timeline__dot svg.i { width: 12px; height: 12px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.check input { accent-color: var(--accent); }
.tabs__end { margin-left: auto; }
.tabs a svg.i { width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.legend .cev { pointer-events: none; }
.cev { display: block; margin-top: 3px; padding: 2px 6px; border-radius: 5px; font-size: 11.5px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); background: color-mix(in srgb, var(--c) 14%, transparent); border-left: 2px solid var(--c); }
.legend .cev { display: inline-block; margin: 0; }
.cev:hover { background: color-mix(in srgb, var(--c) 24%, transparent); }
.cev--draft { --c: var(--warn); } .cev--post { --c: var(--accent); } .cev--due { --c: var(--violet); } .cev--invoice { --c: var(--bad); }
.cev--done { opacity: 0.55; text-decoration: line-through; }
.cdot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--c); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: hidden; }
.cal__h { padding: 8px 10px; font-size: 12px; color: var(--faint); border-bottom: 1px solid var(--line); }
.cal__d { min-height: 104px; padding: 6px 6px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.cal__d:nth-child(7n) { border-right: 0; }
.cal__d--out { background: color-mix(in srgb, var(--hover) 50%, transparent); }
.cal__d--out .cal__n { color: var(--faint); }
.cal__n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal__d--today .cal__n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--sheet); font-weight: 600; }
.cal-list { display: none; }
.mbars { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; }
.mbar { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.mbar span { color: var(--muted); }
.mbar i { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--w), var(--hover) var(--w)); }
.mbar b { font-variant-numeric: tabular-nums; font-weight: 500; }
.qlist { display: flex; flex-direction: column; gap: 6px; }
.qrow { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 10px; font-size: 13.5px; }
.qtotal { font-size: 14px; color: var(--muted); } .qtotal b { color: var(--ink); }
.disc { display: grid; grid-template-columns: 150px 1fr 140px 140px auto; gap: 10px; padding: 14px 16px; align-items: end; }
.disc .field--wide { min-width: 0; }
pre.digest { max-height: 220px; overflow: auto; padding: 10px 12px; border-radius: 10px; background: var(--hover); font: 12px/1.5 var(--mono); white-space: pre-wrap; }
.alert--growth, .alert--views { color: var(--good); } .alert--agency, .alert--invoice { color: var(--warn); } .alert--reply { color: var(--accent); } .alert--live { color: var(--good); }
@media (max-width: 820px) {
  .cal, .legend { display: none; }
  .cal-list { display: block; }
  .disc { grid-template-columns: 1fr 1fr; }
  .disc .field--wide { grid-column: 1 / -1; }
}

/* ── Toast action (Undo) ── */
.toast { align-items: center; }
.toast__act { margin-left: auto; flex: none; height: 26px; padding: 0 10px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); }
.toast__act:hover { filter: brightness(0.95); }
.toasts { bottom: 84px; }

/* ── Inline table edits ── */
td.ed { cursor: text; position: relative; }
td.ed:hover { box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 6px; }
td.is-editing { padding: 2px 4px !important; }
.ed__in { width: 100%; min-width: 90px; height: 28px; }
tr.is-kb > td { background: var(--accent-soft); }
tr.is-kb > td:first-child { box-shadow: inset 2px 0 0 var(--accent); }

/* ── Floating quick add ── */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; }
.fab__btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--btn); color: var(--btn-ink); box-shadow: var(--shadow-lg); transition: transform 0.3s var(--spring); }
.fab__btn svg.i { width: 20px; height: 20px; }
.fab.dd--open .fab__btn { transform: rotate(45deg); }
.fab__menu { left: auto; right: 0; min-width: 220px; transform-origin: bottom right; }
.fab__menu button { text-transform: none; }
.fab__menu .kbd { margin-left: auto; }
body.has-ask .fab { display: none; }

/* ── Ask panel ── */
.ask { position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 70; width: min(420px, calc(100% - 24px)); display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); animation: askIn 0.35s var(--spring); }
.ask[hidden] { display: none; }
@keyframes askIn { from { opacity: 0; transform: translateX(24px); } }
.ask__head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); }
.ask__mark { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.ask__mark svg.i { width: 14px; height: 14px; }
.ask__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ask__msg { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); max-width: 100%; }
.ask__msg p { margin: 0 0 6px; }
.ask__msg p:last-child { margin: 0; }
.ask__msg ul { margin: 4px 0 6px; padding-left: 18px; }
.ask__msg--user { align-self: flex-end; max-width: 85%; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: var(--btn); color: var(--btn-ink); white-space: pre-wrap; }
.ask__did { display: flex; align-items: center; gap: 6px; margin-top: 6px !important; font-size: 12px; color: var(--muted); }
.ask__did svg.i { width: 13px; height: 13px; color: var(--good); }
.ask__empty { display: flex; flex-direction: column; gap: 8px; }
.ask__empty p { margin: 0; font-size: 13px; }
.ask__idea { text-align: left; padding: 9px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel); font-size: 13px; color: var(--ink-2); }
.ask__idea:hover { background: var(--hover); color: var(--ink); }
.ask__form { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--line); }
.ask__form textarea { flex: 1; resize: none; min-height: 40px; max-height: 160px; }
.ask__form .btn { height: 40px; width: 40px; padding: 0; justify-content: center; }
.ask__dots { display: inline-flex; gap: 4px; padding: 6px 0; }
.ask__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: dot 1s infinite ease-in-out; }
.ask__dots i:nth-child(2) { animation-delay: 0.15s; }
.ask__dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 80%, 100% { opacity: 0.3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
@media (min-width: 1200px) { body.has-ask .main { margin-right: 432px; } }

/* ── Comments and @mentions ── */
.comments { display: flex; flex-direction: column; }
.comment { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.comment__body { flex: 1; min-width: 0; }
.comment__body > p:last-child { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.comment__body .item__meta .btn { margin-left: auto; height: 20px; }
.mention { color: var(--accent-ink); font-weight: 600; }
.comment-form { display: flex; gap: 8px; align-items: flex-end; padding: 12px 16px; }
.mention-wrap { position: relative; flex: 1; }
.mention-wrap textarea { width: 100%; resize: vertical; }
.mention-pop { position: absolute; left: 0; bottom: calc(100% + 4px); z-index: 30; min-width: 240px; padding: 4px; border-radius: var(--r); background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.mention-pop button { width: 100%; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; border-radius: 7px; font-size: 13px; text-align: left; }
.mention-pop button.is-hl, .mention-pop button:hover { background: var(--hover); }

/* ── Setup checklist ── */
.setup-tick { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.setup-step.is-done .setup-tick { background: var(--good); border-color: var(--good); color: #fff; }
.setup-tick svg.i { width: 12px; height: 12px; stroke-width: 2.6; }
.setup-step.is-done .name { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }

/* ── Duplicates ── */
.dup { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.dup:last-child { border-bottom: 0; }
.dup__why { margin: 0; font-size: 12px; color: var(--muted); text-transform: none; }
.dup__row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--r-sm); }
.dup__row:hover { background: var(--hover); }
.dup__name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13.5px; }
.dup__name .sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dup__foot { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding-top: 4px; }

/* ── Brief check, shortcuts ── */
.bf-dels { display: flex; flex-direction: column; gap: 6px; }
.keys { padding: 6px 18px 18px; display: flex; flex-direction: column; }
.keys__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.keys__row:last-child { border-bottom: 0; }
.keys__row > span:last-child { display: inline-flex; gap: 4px; align-items: center; }

@media (max-width: 820px) {
  .ask { inset: 0; width: 100%; border-radius: 0; border: 0; padding-bottom: env(safe-area-inset-bottom); }
  .fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .toasts { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
.fab .fab__menu { position: absolute; top: auto; bottom: calc(100% + 8px); left: auto; right: 0; width: auto; min-width: 220px; }
.fab__menu button { justify-content: flex-start; }
@media (hover: none) { .fab__menu .kbd { display: none; } }

/* ── Fields edited in place ── */
.facts--edit td.fe { cursor: text; border-radius: 6px; transition: background 0.15s, box-shadow 0.3s; }
.facts--edit td.fe:hover { background: var(--hover); }
.facts--edit td.fe:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.facts--edit td.fe.is-editing { background: none; padding: 3px 6px; }
.facts--edit td.fe .input, .facts--edit td.fe .select, .facts--edit td.fe .textarea { width: 100%; height: 30px; font-size: 13px; }
.facts--edit td.fe .textarea { height: auto; min-height: 70px; }
.facts--edit td.fe .faint { font-size: 12.5px; }
.fe--saved { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--good) 50%, transparent); }
.fe__long { white-space: pre-wrap; }

/* ── Pickers ── */
.picker { position: relative; }
.picker__list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 50; max-height: 260px; overflow-y: auto; padding: 4px; border-radius: var(--r); background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow-lg); min-width: 220px; }
.picker__list button { width: 100%; display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 8px; border-radius: 7px; font-size: 13px; text-align: left; color: var(--ink-2); }
.picker__list button .sub { margin-left: auto; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45%; }
.picker__list button.is-hl, .picker__list button:hover { background: var(--hover); color: var(--ink); }
.picker__list [data-pnew] { color: var(--accent-ink); border-top: 1px solid var(--line); border-radius: 0 0 7px 7px; }

/* ── Record tabs and timeline ── */
.rtabs { margin-top: 6px; }
.rtabs button { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 10px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.rtabs button:hover { color: var(--ink); }
.rtabs button[aria-current='page'] { color: var(--ink); font-weight: 500; }
.rtabs button[aria-current='page']::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); animation: tabin 0.3s var(--spring); }
.rtabs .num { font-size: 11px; color: var(--faint); font-weight: 400; }
.timeline li.tl--comment > div { flex: 1; min-width: 0; }
.timeline .timeline__dot.avatar { font-size: 11px; }
.tl__bubble { margin-top: 4px; padding: 8px 11px; border-radius: 4px 12px 12px 12px; background: var(--panel); border: 1px solid var(--line); color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.timeline .item__meta .btn { margin-left: auto; height: 20px; }

/* ── Favorites ── */
.fav svg.i { width: 16px; height: 16px; }
.fav.is-on { color: var(--warn); }
.fav.is-on svg.i { fill: currentColor; }
.favs { display: flex; flex-direction: column; gap: 1px; margin-top: -4px; }
.favs:empty { display: none; }
.favs__h { margin: 0 0 4px; padding: 0 10px; font-size: 11px; font-weight: 500; color: var(--faint); text-transform: uppercase; letter-spacing: 0.04em; }
.favs__item { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 10px; border-radius: var(--r-sm); font-size: 13px; color: var(--muted); }
.favs__item span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.favs__item:hover, .favs__item.is-on { background: var(--hover); color: var(--ink); }
.favs__item svg.i { width: 15px; height: 15px; }

/* ── Side panel ── */
.peek { position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 65; width: min(460px, calc(100% - 24px)); display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); animation: askIn 0.32s var(--spring); }
.peek[hidden] { display: none; }
.peek__head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); }
.peek__head .who__mark { width: 30px; height: 30px; font-size: 13px; border-radius: 8px; }
.peek__title { display: flex; flex-direction: column; min-width: 0; }
.peek__title b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peek__title .sub { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peek__body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.vtable tr.is-peek td { background: var(--accent-soft); }
body.has-peek .fab { display: none; }

/* ── Loading outline ── */
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.skel, .skel-card { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--hover) 25%, var(--press) 37%, var(--hover) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
.skel { height: 14px; }
.skel-card { height: 320px; border-radius: var(--r); margin-top: 12px; }
.skel-card--sm { height: 108px; margin: 0; }
.skel-page { display: flex; flex-direction: column; }

/* ── Tables like a spreadsheet ── */
.vwrap { overflow: auto; max-height: calc(100vh - 230px); border-radius: var(--r) var(--r) 0 0; }
.vtable th { position: sticky; top: 0; z-index: 3; }
.vtable th[data-col] { cursor: pointer; user-select: none; }
.vtable th[data-col] span { display: inline-flex; align-items: center; gap: 4px; }
.vtable th[data-col]:hover { color: var(--ink); background: color-mix(in srgb, var(--panel) 85%, var(--ink) 4%); }
.vtable th.is-drag { opacity: 0.4; }
.vtable th.is-over { box-shadow: inset 2px 0 0 var(--accent); }
.vtable td, .vtable th { overflow: hidden; text-overflow: ellipsis; }
.vtable th:nth-child(1), .vtable td:nth-child(1) { position: sticky; left: 0; z-index: 2; background: var(--sheet); }
.vtable th:nth-child(2), .vtable td:nth-child(2) { position: sticky; left: 34px; z-index: 2; background: var(--sheet); box-shadow: 1px 0 0 var(--line); }
.vtable th:nth-child(1), .vtable th:nth-child(2) { z-index: 4; background: var(--panel); }
.vtable tr:hover td:nth-child(-n+2) { background: color-mix(in srgb, var(--sheet) 92%, var(--ink) 3%); }
.vtable tr.is-sel td:nth-child(-n+2), .vtable tr.is-peek td:nth-child(-n+2) { background: color-mix(in srgb, var(--sheet) 88%, var(--accent) 12%); }
.th__rs { position: absolute; top: 6px; right: 0; bottom: 6px; width: 7px; cursor: col-resize; border-right: 2px solid transparent; transition: border-color 0.15s; }
.vtable th:hover .th__rs { border-right-color: var(--line-2); }
.th__rs:hover { border-right-color: var(--accent) !important; }
body.is-resizing, body.is-resizing * { cursor: col-resize !important; user-select: none; }
.vtable td.is-fc { box-shadow: inset 0 0 0 2px var(--accent); border-radius: 4px; }
.vnew td { height: 40px; border-bottom: 0; }
.vnew__btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border-radius: 7px; font-size: 13px; color: var(--faint); }
.vnew__btn:hover { background: var(--hover); color: var(--ink); }
.vnew__btn svg.i { width: 13px; height: 13px; }
.vnew__in { width: min(320px, 100%); }
.col .vnew__in { width: 100%; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 16px; text-align: center; }
.empty-state > svg.i { width: 26px; height: 26px; color: var(--faint); margin-bottom: 4px; }
.empty-state p { margin: 0 0 8px; }
.empty-state--sm { padding: 22px 16px; font-size: 13px; color: var(--muted); }
.empty-state--sm .btn { margin-top: 4px; }

/* ── Bulk bar floats at the bottom ── */
.bulk { position: fixed; top: auto; left: calc(50% + var(--side) / 2); bottom: 22px; transform: translateX(-50%); z-index: 55; margin: 0; padding: 6px 6px 6px 14px; border-radius: 12px; box-shadow: var(--shadow-lg); animation: bulkIn 0.35s var(--spring); max-width: calc(100vw - var(--side) - 40px); overflow-x: auto; }
@keyframes bulkIn { from { opacity: 0; transform: translate(-50%, 16px); } }
.bulk .vbtn { height: 30px; }
.bulk .vbtn svg.i { width: 13px; height: 13px; }
.bulk .vbtn--bad:hover { background: color-mix(in srgb, var(--bad) 40%, transparent); }
.bulk .vlink svg.i { width: 14px; height: 14px; }

/* ── Kanban card fields ── */
.deal__fields { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 6px 0 0; padding-top: 6px; border-top: 1px dashed var(--line); font-size: 12px; }
.deal__fields dt { color: var(--faint); }
.deal__fields dd { margin: 0; text-align: right; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deal__fields .tag { font-size: 11px; }

@media (max-width: 820px) {
  .peek { inset: 0; width: 100%; border-radius: 0; border: 0; }
  .bulk { left: 50%; max-width: calc(100vw - 24px); bottom: calc(16px + env(safe-area-inset-bottom)); }
  .vwrap { max-height: none; }
  .vtable th:nth-child(2), .vtable td:nth-child(2) { position: static; box-shadow: none; }
}
.facts--edit.is-folded tr.fe-empty { display: none; }
.fe-more { width: 100%; height: 36px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); }
.fe-more:hover { color: var(--ink); background: var(--hover); }
