/* =========================================================
   Cadence — design system v3
   Calm, modern, instrument-like. One accent per founder, ink
   for the primary action, colour only where state needs it.
   Fonts: Instrument Sans (UI) · Instrument Serif (editorial)
          JetBrains Mono (dates, times, numbers in columns)
   ========================================================= */

/* ── Tokens ─────────────────────────────────────────── */
:root {
  color-scheme: light;

  --font-ui:    "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --bg:            #f4f5f8;
  --surface:       #ffffff;
  --surface-2:     #f3f4f7;
  --surface-3:     #e9ebf0;
  --border:        rgba(15, 18, 28, .08);
  --border-strong: rgba(15, 18, 28, .16);

  --text:          #0c0f16;
  --text-2:        #5b6474;
  --text-3:        #8a92a2;

  --ink:           #0f1217;
  --ink-hover:     #232833;
  --ink-contrast:  #ffffff;

  --success:       #0e8a63;
  --success-soft:  #e3f5ec;
  --warn:          #995c0d;
  --warn-soft:     #fbf0db;
  --danger:        #c73f3d;
  --danger-soft:   #fbe8e7;

  --ring-track:    #e6e8ee;

  --shadow-card: 0 1px 2px rgba(15, 18, 28, .04), 0 8px 24px -12px rgba(15, 18, 28, .10);
  --shadow-pop:  0 20px 50px -16px rgba(15, 18, 28, .28), 0 2px 8px rgba(15, 18, 28, .06);
  --shadow-lift: 0 12px 30px -14px rgba(15, 18, 28, .22);

  --r-xs: 7px;
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 18px;
  --r-xl: 24px;

  --side: 236px;
  --maxw: 1240px;

  --ease:   cubic-bezier(.22, 1, .36, 1);
  --fast:   .16s var(--ease);
  --med:    .32s var(--ease);
  --glow-a: 14%;
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg:            #07090d;
  --surface:       #0e1117;
  --surface-2:     #141922;
  --surface-3:     #1b212c;
  --border:        rgba(255, 255, 255, .07);
  --border-strong: rgba(255, 255, 255, .15);

  --text:          #eef1f6;
  --text-2:        #a1a9b8;
  --text-3:        #737d8f;

  --ink:           #f2f4f8;
  --ink-hover:     #ffffff;
  --ink-contrast:  #0b0e14;

  --success:       #35c08f;
  --success-soft:  rgba(53, 192, 143, .13);
  --warn:          #dcab5a;
  --warn-soft:     rgba(220, 171, 90, .13);
  --danger:        #ef7472;
  --danger-soft:   rgba(239, 116, 114, .13);

  --ring-track:    #1b212c;

  --shadow-card: 0 1px 0 rgba(255, 255, 255, .035) inset, 0 10px 30px -18px rgba(0, 0, 0, .8);
  --shadow-pop:  0 24px 60px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .05);
  --shadow-lift: 0 16px 36px -18px rgba(0, 0, 0, .9);
  --glow-a: 22%;
}

/* Identity accents — set on <html> (the viewer) and on any founder-scoped
   element. Light and dark are separate steps of the same hue, validated for
   contrast and separation on their surfaces. */
[data-accent="indigo"] { --accent: #4353f0; }
[data-accent="teal"]   { --accent: #0b9488; }
[data-accent="violet"] { --accent: #9d3fd0; }
[data-accent="amber"]  { --accent: #b4690e; }
[data-accent="rose"]   { --accent: #d63a6e; }
:root[data-theme="dark"] [data-accent="indigo"], :root[data-theme="dark"][data-accent="indigo"] { --accent: #5470f0; }
:root[data-theme="dark"] [data-accent="teal"],   :root[data-theme="dark"][data-accent="teal"]   { --accent: #1aa896; }
:root[data-theme="dark"] [data-accent="violet"], :root[data-theme="dark"][data-accent="violet"] { --accent: #bd52dc; }
:root[data-theme="dark"] [data-accent="amber"],  :root[data-theme="dark"][data-accent="amber"]  { --accent: #c2872f; }
:root[data-theme="dark"] [data-accent="rose"],   :root[data-theme="dark"][data-accent="rose"]   { --accent: #e4568a; }

[data-accent] {
  --accent-soft: color-mix(in srgb, var(--accent) 11%, var(--surface));
  --accent-line: color-mix(in srgb, var(--accent) 30%, var(--border));
  --accent-glow: color-mix(in srgb, var(--accent) 45%, transparent);
  --focus:       color-mix(in srgb, var(--accent) 32%, transparent);
}

/* ── Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }

body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--text);
  font-family: var(--font-ui); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv05";
}
/* The canvas: two soft accent glows at the top. Depth, not decoration. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(720px 360px at 18% -8%, color-mix(in srgb, var(--accent) var(--glow-a), transparent), transparent 70%),
    radial-gradient(640px 320px at 92% -6%, color-mix(in srgb, #9d3fd0 calc(var(--glow-a) / 2), transparent), transparent 70%);
}

a { color: inherit; text-decoration: none; }
p { margin: 0; }
button { font-family: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.012em; }
::selection { background: var(--accent-soft); }
:where(a, button, [tabindex], input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-xs);
}

.icon { flex: none; vertical-align: middle; }
.muted  { color: var(--text-3); }
.subtle { color: var(--text-2); }
.mono   { font-family: var(--font-mono); font-size: .92em; letter-spacing: -0.01em; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
[hidden] { display: none !important; }

/* Entrance: things rise in, staggered by --i. Reduced motion kills it wholesale. */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .42s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ── Shell ──────────────────────────────────────────── */
.shell-side {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 15px; letter-spacing: -0.01em; }
.brand-mark {
  width: 30px; height: 30px; flex: none; border-radius: 9px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #9d3fd0));
  box-shadow: 0 6px 16px -6px var(--accent-glow);
}
.brand-text small { display: block; margin-top: -2px; font-size: 10.5px; font-weight: 500; color: var(--text-3); letter-spacing: .02em; }

.nav { display: none; }
.side-foot { display: none; }
/* Mobile: the top bar shows brand + theme + avatar; nav lives in the tab bar. */
@media (max-width: 1023px) {
  /* A fixed-viewport app: nothing may widen the page sideways on a phone. */
  html, body { overflow-x: hidden; }
  .shell-side { justify-content: space-between; }
  .side-foot { display: flex; align-items: center; gap: 6px; }
  .theme-label, .user-name, .user-caret { display: none !important; }
  .user-btn { padding: 2px; border: 0; background: none; }
  .theme-btn { width: 34px; height: 34px; padding: 0; justify-content: center; }
}

/* Desktop: a real sidebar. */
@media (min-width: 1024px) {
  .shell-main { margin-left: var(--side); }
  .shell-side {
    position: fixed; inset: 0 auto 0 0; width: var(--side);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 18px 12px 14px;
    border-right: 1px solid var(--border); border-bottom: 0;
    background: color-mix(in srgb, var(--surface) 70%, var(--bg));
    backdrop-filter: none;
  }
  .brand { padding: 4px 8px 18px; }
  .brand-mark { width: 32px; height: 32px; }
  .nav { display: flex; flex-direction: column; gap: 2px; }
  .nav-sep { height: 1px; margin: 10px 8px; background: var(--border); }
  .side-foot { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
}
.nav-item {
  position: relative; display: flex; align-items: center; gap: 11px;
  min-height: 38px; padding: 0 10px; border-radius: var(--r-sm);
  color: var(--text-2); font-size: 13.5px; font-weight: 500;
  transition: background var(--fast), color var(--fast), transform var(--fast);
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-card); }
.nav-item.active .nav-ico { color: var(--accent); }
.nav-item.active::before {
  content: ""; position: absolute; left: -12px; top: 50%; width: 3px; height: 18px;
  border-radius: 0 3px 3px 0; background: var(--accent); transform: translateY(-50%);
}
.nav-ico { display: grid; place-items: center; color: var(--text-3); transition: color var(--fast); }
.nav-item:hover .nav-ico { color: var(--text-2); }
.nav-badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
  display: inline-grid; place-items: center; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
}
.nav-badge.is-danger { background: var(--danger-soft); color: var(--danger); }
.nav-badge.is-soft { background: var(--surface-3); color: var(--text-2); }
.nav-dot { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.theme-btn {
  display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text-2); cursor: pointer;
  font-size: 12.5px; font-weight: 550;
  transition: border-color var(--fast), color var(--fast), background var(--fast);
}
.theme-btn:hover { color: var(--text); border-color: var(--border-strong); }
:root[data-theme="dark"] .only-light, :root:not([data-theme="dark"]) .only-dark { display: none !important; }
.only-light, .only-dark { display: inline-grid; place-items: center; }

.usermenu { position: relative; }
.user-btn {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); cursor: pointer; text-align: left;
  transition: border-color var(--fast), background var(--fast);
}
.user-btn:hover { border-color: var(--border-strong); }
.user-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; line-height: 1.2; overflow: hidden; }
.user-name small { display: block; font-size: 11px; font-weight: 450; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-caret { color: var(--text-3); display: grid; }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 220px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: var(--shadow-pop);
  opacity: 0; transform: translateY(-4px) scale(.98); pointer-events: none;
  transition: opacity var(--fast), transform var(--fast);
}
.menu.open { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 1024px) { .menu { left: 0; right: auto; top: auto; bottom: calc(100% + 8px); transform: translateY(4px) scale(.98); } }
.menu a, .menu button {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border: 0; border-radius: var(--r-xs);
  background: none; color: var(--text-2); text-align: left;
  font-size: 13.5px; font-weight: 500; cursor: pointer;
  transition: background var(--fast), color var(--fast);
}
.menu a:hover, .menu button:hover { background: var(--surface-2); color: var(--text); }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 5px 4px; }

/* Bottom tab bar — mobile only */
.tabbar { display: none; }
.sheet { position: fixed; inset: 0; z-index: 70; background: rgba(6, 8, 12, .5); backdrop-filter: blur(4px); }
.sheet-panel {
  position: absolute; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  padding: 8px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-pop);
  animation: sheetUp .28s var(--ease);
}
@keyframes sheetUp { from { transform: translateY(20px); opacity: 0; } }
.sheet-panel a, .sheet-panel button {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 12px; border: 0; border-radius: var(--r-sm); background: none;
  font-size: 14.5px; font-weight: 500; color: var(--text); cursor: pointer;
}
.sheet-panel a:hover, .sheet-panel button:hover { background: var(--surface-2); }
.sheet-panel .icon { color: var(--text-3); }
@media (max-width: 1023px) {
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
  }
  .tabbar a, .tabbar button {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 0 4px; border: 0; border-radius: var(--r-sm); background: none;
    color: var(--text-3); font-size: 10.5px; font-weight: 600; cursor: pointer;
  }
  .tabbar a.active { color: var(--accent); }
  .tab-dot { position: absolute; top: 6px; right: calc(50% - 16px); width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
  .tab-badge {
    position: absolute; top: 2px; right: calc(50% - 20px);
    min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px;
    display: grid; place-items: center;
    background: var(--danger); color: #fff; font-style: normal;
    font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  }
  .tab-badge.is-soft { background: var(--accent); }
  .shell-main { padding-bottom: 84px; }
}

/* ── Page frame ─────────────────────────────────────── */
.page { max-width: var(--maxw); margin: 0 auto; padding: 26px 28px 80px; }
.page.wide { max-width: 1440px; }
.page.narrow { max-width: 760px; }
@media (max-width: 720px) { .page { padding: 18px 16px 90px; } }

.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.ph-eyebrow {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em; color: var(--text-3);
}
.ph-eyebrow .icon { color: var(--accent); }
.ph-title { margin-top: 6px; font-size: 30px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.ph-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.ph-sub { margin-top: 6px; font-size: 14px; color: var(--text-2); max-width: 62ch; }
.ph-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 720px) { .ph-title { font-size: 25px; } }

/* ── Primitives ─────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
}
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-title, .section-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em; color: var(--text-3);
}
.card-title .icon { color: var(--text-3); }
.card-link { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 550; color: var(--text-3); transition: color var(--fast); }
.card-link:hover { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 0 14px; min-height: 36px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background var(--fast), border-color var(--fast), color var(--fast), transform var(--fast), box-shadow var(--fast);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); color: var(--ink-contrast); box-shadow: 0 8px 20px -10px rgba(15, 18, 28, .5); }
.btn-primary:hover { background: var(--ink-hover); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--border-strong); background: var(--surface-2); }
.btn-soft { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.btn-soft:hover { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { min-height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: var(--r-xs); }
.btn-lg { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.danger-text { color: var(--danger) !important; }

.iconbtn {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text-2); cursor: pointer;
  transition: color var(--fast), border-color var(--fast), background var(--fast);
}
.iconbtn:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.mini {
  width: 28px; height: 28px; display: grid; place-items: center;
  border: 0; border-radius: var(--r-xs); background: none; color: var(--text-3); cursor: pointer;
  transition: background var(--fast), color var(--fast);
}
.mini:hover { background: var(--surface-3); color: var(--text); }
.mini.danger:hover { background: var(--danger-soft); color: var(--danger); }
.mini.good:hover { background: var(--success-soft); color: var(--success); }

.input, textarea, select {
  width: 100%; min-height: 36px; padding: 8px 11px;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text);
  font-family: inherit; font-size: 13.5px; outline: none;
  transition: border-color var(--fast), box-shadow var(--fast);
}
:root[data-theme="dark"] .input, :root[data-theme="dark"] textarea, :root[data-theme="dark"] select { background: var(--surface-2); border-color: var(--border); }
.input::placeholder, textarea::placeholder { color: var(--text-3); }
.input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
textarea { min-height: 80px; line-height: 1.55; resize: vertical; }
select { appearance: none; padding-right: 30px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input[type="date"], input[type="time"] { font-family: var(--font-mono); font-size: 12.5px; }
label.field { display: block; margin-bottom: 14px; }
label.field > span, .field > span { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
label.field small, .field small { font-weight: 450; color: var(--text-3); }
.hint { margin-top: 5px; font-size: 12px; color: var(--text-3); }
.errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: var(--danger); font-size: 12.5px; }
.check-inline { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 13.5px; cursor: pointer; }
.check-inline input { width: 16px; height: 16px; min-height: 0; margin-top: 2px; accent-color: var(--accent); flex: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }

/* Toggle switch */
.switch { position: relative; display: inline-flex; width: 36px; height: 21px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch i {
  position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3);
  border: 1px solid var(--border-strong); transition: background var(--fast), border-color var(--fast);
}
.switch i::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform var(--med);
}
.switch input:checked + i { background: var(--accent); border-color: var(--accent); }
.switch input:checked + i::after { transform: translateX(15px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Segmented control */
.seg { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--r-sm); background: var(--surface-3); border: 1px solid var(--border); }
.seg a, .seg button {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px;
  border: 0; border-radius: var(--r-xs); background: none; color: var(--text-2);
  font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background var(--fast), color var(--fast), box-shadow var(--fast);
}
.seg a:hover, .seg button:hover { color: var(--text); }
.seg .on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-card); }

/* Chips & pills */
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px;
  border-radius: 999px; background: var(--surface-3); color: var(--text-2);
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.chip.is-danger { background: var(--danger-soft); color: var(--danger); }
.chip.is-warn   { background: var(--warn-soft); color: var(--warn); }
.chip.is-good   { background: var(--success-soft); color: var(--success); }
.chip.is-accent { background: var(--accent-soft); color: var(--accent); }
.chip.is-ghost  { background: transparent; border: 1px solid var(--border); }
.chip .icon { opacity: .8; }
.pill {
  min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center;
  border-radius: 999px; background: var(--surface-3); color: var(--text-2);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
}
.pill.is-danger { background: var(--danger-soft); color: var(--danger); }
.pill.is-good { background: var(--success-soft); color: var(--success); }
.pill.is-warn { background: var(--warn-soft); color: var(--warn); }
.pill.is-accent { background: var(--accent-soft); color: var(--accent); }
.you-chip {
  padding: 2px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
}

.avatar {
  flex: none; overflow: hidden; border-radius: 50%; object-fit: cover;
  display: grid; place-items: center; background: var(--surface-2); color: var(--text-2);
  border: 1px solid var(--border); font-weight: 650; letter-spacing: .02em;
}
.avatar.xs { width: 20px; height: 20px; font-size: 9px; }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.avatar.md { width: 40px; height: 40px; font-size: 14px; }
.avatar.lg { width: 52px; height: 52px; font-size: 17px; }
.avatar.xl { width: 72px; height: 72px; font-size: 24px; }
.avatar-ring { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.byline { display: inline-flex; align-items: center; gap: 6px; }
.byline .avatar { width: 18px; height: 18px; font-size: 8px; }

.empty { padding: 10px 2px; color: var(--text-3); font-size: 13px; }
.empty a { color: var(--accent); font-weight: 600; }
.empty-state { text-align: center; padding: 44px 24px; }
.empty-ico {
  width: 54px; height: 54px; margin: 0 auto 14px; display: grid; place-items: center;
  border-radius: var(--r); background: var(--accent-soft); color: var(--accent);
}
.empty-state h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.empty-state p { max-width: 44ch; margin: 0 auto 16px; color: var(--text-2); }

/* Stat tile: label · value · delta */
.stat { padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.stat small { display: block; font-size: 11.5px; font-weight: 500; color: var(--text-3); }
.stat b { display: block; margin-top: 3px; font-size: 24px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.05; }
.stat b.is-good { color: var(--success); }
.stat b.is-bad { color: var(--danger); }
.stat .delta { display: inline-flex; align-items: center; gap: 3px; margin-top: 4px; font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.stat .delta.is-up { color: var(--success); }
.stat .delta.is-down { color: var(--warn); }

/* Rings — a meter: track is a lighter step of the same hue. */
.ring { position: relative; display: inline-grid; place-items: center; }
.ring svg { display: block; transform: rotate(-90deg); }
.ring .track { stroke: var(--ring-track); }
.ring .bar { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); filter: drop-shadow(0 0 5px var(--accent-glow)); }
.ring .ring-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .ring-num b { font-size: 16px; font-weight: 650; letter-spacing: -0.03em; line-height: 1; }
.ring .ring-num span { display: block; margin-top: 2px; font-size: 10px; font-weight: 500; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
.ring.lg .ring-num b { font-size: 34px; }
.ring.xs .ring-num b { font-size: 11.5px; }
.ring.is-complete .bar { stroke: var(--success); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--success) 50%, transparent)); }

/* Tooltip layer (shared, JS-positioned) */
.tip {
  position: fixed; z-index: 95; pointer-events: none;
  max-width: 260px; padding: 7px 10px; border-radius: var(--r-xs);
  background: var(--ink); color: var(--ink-contrast); font-size: 12px; line-height: 1.4;
  box-shadow: var(--shadow-pop); opacity: 0; transform: translateY(3px);
  transition: opacity .12s, transform .12s;
}
.tip.show { opacity: 1; transform: none; }
.tip b { font-weight: 650; }

/* ── Toast / flash ──────────────────────────────────── */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translateX(-50%); }
@media (max-width: 1023px) { .toast-wrap { bottom: 92px; } }
@media (min-width: 1024px) { .toast-wrap { left: calc(50% + var(--side) / 2); } }
.toast {
  display: flex; align-items: center; gap: 9px; padding: 10px 14px;
  border-radius: var(--r-sm); background: var(--ink); color: var(--ink-contrast);
  box-shadow: var(--shadow-pop); font-size: 13px; font-weight: 550;
  opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .2s, transform .2s var(--ease);
}
.toast.show { opacity: 1; transform: none; }
.toast .ok { color: var(--success); }
.toast .err { color: var(--danger); }
.saved-pill { display: inline-flex; align-items: center; gap: 4px; color: var(--success); font-size: 11.5px; font-weight: 600; opacity: 0; transition: opacity .2s; }
.saved-pill.show { opacity: 1; }
.flash-wrap { position: fixed; top: 16px; left: 50%; z-index: 80; width: min(460px, 92vw); display: flex; flex-direction: column; gap: 8px; transform: translateX(-50%); }
@media (min-width: 1024px) { .flash-wrap { left: calc(50% + var(--side) / 2); } }
@media (max-width: 1023px) { .flash-wrap { top: 66px; } }
.flash { padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--shadow-pop); font-size: 13.5px; font-weight: 550; animation: rise .3s var(--ease); }
.flash.success { border-color: color-mix(in srgb, var(--success) 40%, var(--border)); }
.flash.error { border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }

/* ── Modal ──────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 20px;
  background: rgba(6, 8, 12, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .18s;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 460px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-pop);
  transform: translateY(12px) scale(.98); transition: transform .24s var(--ease);
}
.modal-backdrop.open .modal { transform: none; }
.modal-wide { max-width: 580px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 14px; }
.modal-head h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; }
.modal-body { padding: 4px 22px 18px; max-height: min(70vh, 720px); overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px 18px; border-top: 1px solid var(--border); }
.modal-subject { margin-bottom: 14px; padding: 10px 12px; border-left: 3px solid var(--accent); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--surface-2); font-size: 13.5px; font-weight: 600; }

/* ── Confetti ───────────────────────────────────────── */
#confetti { position: fixed; inset: 0; z-index: 100; pointer-events: none; }

/* =========================================================
   TODAY
   ========================================================= */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 6px 4px 22px; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em; color: var(--text-3);
}
.hero-title {
  margin-top: 8px; font-family: var(--font-serif); font-weight: 400; font-style: italic;
  font-size: 44px; line-height: 1.02; letter-spacing: -0.02em; color: var(--text);
}
.hero-title span { color: var(--accent); }
.hero-sum { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.sum-item {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px 0 8px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; font-weight: 550; color: var(--text-2);
  transition: border-color var(--fast), transform var(--fast), color var(--fast);
}
.sum-item:hover { border-color: var(--border-strong); color: var(--text); transform: translateY(-1px); }
.sum-item b { font-weight: 650; color: var(--text); }
.sum-item .icon { color: var(--text-3); }
.sum-item.is-danger { border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); }
.sum-item.is-danger b, .sum-item.is-danger .icon { color: var(--danger); }
.sum-item.is-good b, .sum-item.is-good .icon { color: var(--success); }
.sum-item.is-accent .icon { color: var(--accent); }
.hero-right { display: flex; align-items: center; gap: 18px; }
.hero-me { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hero-me .cap { font-size: 11.5px; font-weight: 550; color: var(--text-3); }
.hero-partner {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px;
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--border);
}
.hero-partner .who { font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.hero-partner .who small { display: block; font-weight: 500; color: var(--text-3); font-size: 11px; }
.datenav { display: inline-flex; align-items: center; gap: 4px; }
.datenav .iconbtn { width: 28px; height: 28px; border-radius: 8px; }
.datenav .date-pill { padding: 0 10px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 16px; }
  .hero-right { justify-content: flex-start; }
  .hero-title { font-size: 34px; }
}

/* Needs attention strip */
.attn { margin-bottom: 16px; padding: 12px 18px 6px; border-color: color-mix(in srgb, var(--warn) 30%, var(--border)); box-shadow: inset 3px 0 0 var(--warn), var(--shadow-card); }
.attn-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.attn-head .card-title .icon { color: var(--warn); }
.attn-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); transition: color var(--fast); }
.attn-row:last-child { border-bottom: 0; }
.attn-row:hover .attn-main { color: var(--accent); }
.attn-ico { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--text-2); }
.attn-main { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 500; }
.attn-main small { display: block; font-size: 11.5px; font-weight: 400; color: var(--text-3); }
.attn-go { color: var(--text-3); display: grid; }
#attention .tl { transition: opacity .2s, height .3s var(--ease), padding .3s var(--ease); }
#attention .attn-out { opacity: 0; height: 0 !important; padding-top: 0; padding-bottom: 0; overflow: hidden; border-bottom: 0; }
#attention.attn-clear { opacity: 0; transition: opacity .35s; }

/* Founder columns */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@supports (grid-template-rows: subgrid) {
  .duo { grid-template-rows: repeat(5, auto); align-items: stretch; }
  .fcol { display: grid; grid-row: 1 / -1; grid-template-rows: subgrid; }
}
.fcol { padding: 0; overflow: hidden; position: relative; }
.fcol.is-me { box-shadow: inset 3px 0 0 var(--accent), var(--shadow-card); }
.fcol-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 14px; border-bottom: 1px solid var(--border); }
.fcol-who { flex: 1; min-width: 0; }
.fcol-name { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 650; letter-spacing: -0.015em; }
.fcol-meta { display: flex; align-items: center; gap: 10px; margin-top: 3px; font-size: 12px; color: var(--text-3); }
.fcol-meta b { color: var(--text-2); font-weight: 600; }
.fcol-meta .flame { color: var(--warn); }
.fcol-meta .is-bad { color: var(--danger); font-weight: 600; }
.fblock { padding: 14px 18px 16px; border-bottom: 1px solid var(--border); align-content: start; }
.fblock:last-child { border-bottom: 0; }
.fblock.is-nudge { background: color-mix(in srgb, var(--warn-soft) 60%, var(--surface)); }
.fblock-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.fblock-head h3 { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); }
.fblock-head h3 .icon { color: var(--text-3); }
@media (max-width: 900px) {
  .duo { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; align-items: start; }
  .fcol { display: block; grid-row: auto; grid-template-rows: none; }
}

/* Habits: big, tappable rows */
.habits { display: flex; flex-direction: column; gap: 6px; }
.habit {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  transition: background var(--fast), border-color var(--fast), transform var(--fast);
}
.habit:hover { background: var(--surface-2); border-color: var(--border); }
.habit.done { background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
.habit.done .habit-name { color: var(--text-2); }
.habit-ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); transition: transform var(--med); }
.habit.done .habit-ico { background: var(--accent); color: #fff; }
.habit-body { flex: 1; min-width: 0; }
.habit-name { font-size: 14px; font-weight: 600; letter-spacing: -0.005em; }
.habit-note { margin-top: 1px; font-size: 12px; color: var(--text-3); }
.habit-more { padding: 1px 0; border: 0; background: none; cursor: pointer; color: var(--text-3); font-size: 11.5px; font-weight: 550; transition: color var(--fast); }
.habit-more:hover { color: var(--accent); }
.habit-detail { display: none; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.habit.open-detail .habit-detail { display: flex; }
.habit-detail .input { min-height: 32px; padding: 5px 9px; font-size: 13px; }
.habit-detail .dur-input { width: 118px; }
.habit-detail .txt-input { flex: 1; min-width: 150px; }
.check {
  width: 26px; height: 26px; flex: none; position: relative; display: grid; place-items: center;
  border: 1.5px solid var(--border-strong); border-radius: 9px; background: var(--surface); color: #fff;
  cursor: pointer; transition: background var(--fast), border-color var(--fast), transform var(--fast), box-shadow var(--fast);
}
.check:hover { border-color: var(--accent); transform: scale(1.06); }
.check svg { width: 15px; height: 15px; stroke-width: 3; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .25s ease .05s; }
.check.checked { background: var(--accent); border-color: var(--accent); box-shadow: 0 6px 14px -6px var(--accent-glow); }
.check.checked svg { stroke-dashoffset: 0; }
.check.pop { animation: pop .38s var(--ease); }
@keyframes pop { 40% { transform: scale(1.22); } }
.check.is-static { cursor: default; }
.check.is-static:hover { border-color: var(--border-strong); transform: none; }
.locked-note { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 11.5px; color: var(--text-3); }
.shake { animation: shake .35s var(--ease); }
@keyframes shake { 25% { transform: translateX(-2px); } 50% { transform: translateX(2px); } 75% { transform: translateX(-1px); } }

/* Task lines */
.tl-list { display: flex; flex-direction: column; }
.tl { display: flex; align-items: flex-start; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--border); animation: tlIn .25s var(--ease); }
.tl:last-child { border-bottom: 0; }
@keyframes tlIn { from { opacity: 0; transform: translateY(-4px); } }
.tl-check {
  width: 19px; height: 19px; flex: none; margin-top: 1px; display: grid; place-items: center;
  border: 1.5px solid var(--border-strong); border-radius: 6px; background: var(--surface); color: transparent; cursor: pointer; padding: 0;
  transition: border-color var(--fast), background var(--fast), color var(--fast), transform var(--fast);
}
.tl-check:hover { border-color: var(--success); transform: scale(1.08); }
.tl-check.checked { background: var(--success); border-color: var(--success); color: #fff; }
.tl-check.pop { animation: pop .3s var(--ease); }
.tl-main { flex: 1; min-width: 0; }
.tl-title { font-size: 13.5px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; transition: color var(--fast); }
.tl.is-done .tl-title { color: var(--text-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.tl-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; font-size: 11.5px; color: var(--text-3); }
.tl-prio { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.tl-prio::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tl-prio.p-high { color: var(--danger); }
.tl-prio.p-med::before { background: var(--warn); }
.tl-prio.p-low::before { background: var(--border-strong); }
.tl-owner { font-weight: 600; color: var(--text-2); }
.tl-shared { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; color: var(--text-2); }
.tl-due { display: inline-flex; align-items: center; gap: 3px; font-family: var(--font-mono); font-size: 11px; }
.tl-due.is-over { color: var(--danger); font-weight: 600; }
.tl-carried { display: inline-flex; align-items: center; gap: 3px; color: var(--warn); font-weight: 600; }
.tl-flag { display: inline-flex; color: var(--text-3); }
.tl-state { height: 17px; padding: 0 6px; display: inline-flex; align-items: center; border-radius: 5px; background: var(--surface-3); color: var(--text-2); font-size: 10.5px; font-weight: 650; }
.tl-state.s-doing { background: var(--accent-soft); color: var(--accent); }
.tl-state.s-blocked { background: var(--danger-soft); color: var(--danger); }
.tl-state.s-postponed { background: var(--warn-soft); color: var(--warn); }
.tl-dot { width: 10px; height: 10px; flex: none; margin-top: 5px; border: 0; border-radius: 50%; padding: 0; background: var(--text-3); cursor: pointer; transition: transform var(--fast); }
.tl-dot:hover { transform: scale(1.4); }
.tl-dot.s-todo { background: transparent; box-shadow: inset 0 0 0 2px var(--border-strong); }
.tl-dot.s-doing { background: var(--accent); }
.tl-dot.s-blocked { background: var(--danger); }
.tl-dot.s-postponed { background: var(--warn); }
.tl-dot.s-done { background: var(--success); }
.more-link { display: inline-flex; align-items: center; gap: 3px; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--text-3); transition: color var(--fast); }
.more-link:hover { color: var(--accent); }

.quick-add { display: flex; gap: 8px; margin-top: 10px; }
.quick-add .input { flex: 1; min-width: 0; background: var(--surface-2); border-color: transparent; }
.quick-add .input:focus { background: var(--surface); border-color: var(--accent); }
.quick-add .btn { padding: 0 12px; }

/* Bento row */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.span-7 { grid-column: span 7; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-12 { grid-column: span 12; }
@media (max-width: 1100px) { .span-7, .span-5, .span-6 { grid-column: span 12; } }

/* Rhythm chart (grouped bars, one per founder per day) */
.rhythm { padding: 18px 20px 16px; }
.rc-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rc-key { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.rc-key i { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.rc-key.is-gray i { background: var(--text-3); }
.rc-plot { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 132px; margin-top: 16px; padding: 6px 38px 0 0; border-bottom: 1px solid var(--border); }
.rc-grid { position: absolute; left: 0; right: 0; height: 1px; background: var(--border); }
.rc-grid span { position: absolute; right: -36px; width: 32px; top: -7px; font-family: var(--font-mono); font-size: 9.5px; color: var(--text-3); }
.rc-grid { right: 38px; }
.rc-day { flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; position: relative; }
.rc-bar {
  flex: 1; max-width: 22px; height: 100%; border-radius: 4px 4px 0 0; background: var(--accent);
  transform: scaleY(var(--h, 0)); transform-origin: bottom;
  transition: transform .9s var(--ease), filter var(--fast); transition-delay: calc(var(--i, 0) * 30ms);
  cursor: default;
}
.rc-bar.is-gray { background: var(--text-3); opacity: .55; }
.rc-bar.is-none { background: var(--surface-3); --h: 1; }
.rc-bar:hover { filter: brightness(1.15); }
.rc-day.is-today::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 22px; height: 2px; margin-left: -11px; background: var(--text); border-radius: 2px; }
.rc-labels { display: flex; gap: 6px; margin-top: 6px; padding-right: 38px; }
.rc-labels span { flex: 1; text-align: center; font-family: var(--font-mono); font-size: 10px; color: var(--text-3); }
.rc-labels span.is-today { color: var(--text); font-weight: 600; }
.rc-labels span.is-monday { color: var(--text-2); }
.rc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
@media (max-width: 560px) { .rc-stats { grid-template-columns: 1fr; } }
.rc-stat { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); }
.rc-stat .who { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; }
.rc-stat .who small { display: block; font-size: 11px; color: var(--text-3); font-weight: 500; }
.rc-stat .num { font-size: 22px; font-weight: 650; letter-spacing: -0.03em; line-height: 1; }
.rc-stat .num small { font-size: 11px; font-weight: 500; color: var(--text-3); letter-spacing: 0; margin-left: 2px; }
.rc-stat .delta { font-size: 11.5px; font-weight: 600; color: var(--text-3); text-align: right; }
.rc-stat .delta.is-up { color: var(--success); } .rc-stat .delta.is-down { color: var(--warn); }
.chart-table { margin-top: 10px; }
.chart-table summary { cursor: pointer; font-size: 11.5px; font-weight: 600; color: var(--text-3); list-style: none; }
.chart-table summary::-webkit-details-marker { display: none; }
.chart-table table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 12px; }
.chart-table th, .chart-table td { padding: 4px 6px; text-align: right; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-weight: 500; }
.chart-table th:first-child, .chart-table td:first-child { text-align: left; font-family: var(--font-ui); }

/* Up next */
.un-list { display: flex; flex-direction: column; }
.un-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); transition: transform var(--fast); }
.un-row:last-child { border-bottom: 0; }
.un-row:hover .un-title { color: var(--accent); }
.un-when { width: 50px; flex: none; text-align: center; padding: 6px 0; border-radius: var(--r-xs); background: var(--surface-2); font-family: var(--font-mono); }
.un-when b { display: block; font-size: 12px; font-weight: 600; }
.un-when small { display: block; font-size: 10px; color: var(--text-3); }
.un-when.is-late { background: var(--danger-soft); color: var(--danger); }
.un-when.is-late small { color: var(--danger); }
.un-when.is-today { background: var(--accent-soft); color: var(--accent); }
.un-when.is-today small { color: var(--accent); }
.un-main { flex: 1; min-width: 0; }
.un-title { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color var(--fast); }
.un-sub { display: flex; align-items: center; gap: 5px; margin-top: 1px; font-size: 11.5px; color: var(--text-3); }
.un-ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); color: var(--text-2); }
.un-row.is-outreach .un-ico { background: var(--accent-soft); color: var(--accent); }
.un-done { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border: 1.5px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: transparent; cursor: pointer; transition: all var(--fast); }
.un-done:hover { border-color: var(--success); color: var(--success); }
.un-group { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.un-group:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* Goals */
.goal-list { display: flex; flex-direction: column; }
.goal-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.goal-list .goal-row:last-child { border-bottom: 0; }
.goal-row.is-paused { opacity: .55; }
.goal-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--accent); }
.goal-dot.is-shared { background: var(--text-3); }
.goal-title { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goal-when { flex: none; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.goal-when.is-late { color: var(--warn); font-weight: 600; }
.goal-bar { width: 88px; height: 6px; flex: none; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.goal-bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width .5s var(--ease); }
.goal-row:not([data-accent]) .goal-bar i { background: var(--text-2); }
.goal-row.is-risk .goal-bar i { background: var(--warn); }
.goal-pct { flex: none; min-width: 42px; padding: 2px 4px; text-align: right; border: 0; border-radius: var(--r-xs); background: none; color: var(--text); font-family: var(--font-mono); font-size: 12px; font-weight: 600; cursor: pointer; transition: background var(--fast); }
.goal-pct:hover { background: var(--surface-2); }
.goal-pct-input { width: 60px; min-height: 26px; padding: 2px 6px; font-size: 12px; text-align: right; }
.goal-menu { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border: 0; border-radius: var(--r-xs); background: none; color: var(--text-3); cursor: pointer; opacity: 0; transition: opacity var(--fast), background var(--fast), color var(--fast); }
.goal-row:hover .goal-menu, .goal-menu:focus-visible { opacity: 1; }
.goal-menu:hover { background: var(--surface-2); color: var(--text); }
@media (hover: none) { .goal-menu { opacity: 1; } }
.goal-row.goal-out { opacity: 0; transition: opacity .3s; }
.goal-empty { padding: 6px 0; font-size: 13px; color: var(--text-3); }
.goal-more { margin-top: 6px; }
.goal-more summary { cursor: pointer; list-style: none; font-size: 12px; font-weight: 600; color: var(--text-3); }
.goal-more summary::-webkit-details-marker { display: none; }
.goal-add { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.goal-add-row { display: grid; grid-template-columns: 1fr 110px auto; gap: 8px; }
.goal-add .input { min-height: 34px; }
.goal-add-btn { margin-top: 10px; display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; cursor: pointer; color: var(--text-3); font-size: 12.5px; font-weight: 600; transition: color var(--fast); }
.goal-add-btn:hover { color: var(--accent); }
.goal-edit { display: flex; flex-direction: column; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.goal-edit .input { min-height: 32px; font-size: 12.5px; }
.goal-edit-row { display: grid; grid-template-columns: 110px 1fr auto auto; gap: 7px; }
.goal-edit .btn { min-height: 30px; }

/* Feed */
.feed { position: relative; }
.feed-head { display: flex; align-items: center; gap: 10px; }
.feed-title b { display: block; font-size: 13.5px; font-weight: 650; }
.feed-title span { display: block; font-size: 11.5px; color: var(--text-3); }
.feed-body { margin-top: 8px; }
.feed-bucket { margin: 12px 0 2px; }
.feed-item { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); animation: rise .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
.feed-item:last-of-type { border-bottom: 0; }
.feed-ico { align-self: center; display: grid; color: var(--text-3); }
.feed-text { flex: 1; min-width: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.feed-text a:hover { color: var(--accent); }
.feed-due { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.feed-due.is-over { color: var(--danger); font-weight: 600; }
.feed-time { flex: none; font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.feed-more { margin-top: 10px; border: 0; background: none; cursor: pointer; color: var(--text-3); font-size: 12px; font-weight: 600; transition: color var(--fast); }
.feed-more:hover { color: var(--accent); }
.feed-empty { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; color: var(--text-3); }
.feed-empty .icon { color: var(--success); }

/* Quote */
.dq { margin: 32px auto 0; max-width: 62ch; text-align: center; }
.dq blockquote { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 19px; line-height: 1.4; color: var(--text-2); }
.dq figcaption { margin-top: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.dq figcaption b { color: var(--text-2); font-weight: 600; }
.dq figcaption span::before { content: " · "; }

/* =========================================================
   TASKS
   ========================================================= */
.dist { display: flex; gap: 2px; height: 8px; border-radius: 999px; overflow: hidden; background: var(--surface-3); min-width: 160px; }
.dist-seg { height: 100%; transition: flex .5s var(--ease); }
.dist-seg.s-todo { background: var(--text-3); } .dist-seg.s-doing { background: var(--accent); } .dist-seg.s-blocked { background: var(--danger); } .dist-seg.s-postponed { background: var(--warn); } .dist-seg.s-done { background: var(--success); }
.dist-legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: 11.5px; color: var(--text-3); }
.dist-legend span { display: inline-flex; align-items: center; gap: 5px; }
.dist-legend b { font-family: var(--font-mono); font-weight: 600; color: var(--text-2); }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.toolbar .spacer { flex: 1; }
.search { display: flex; align-items: center; gap: 7px; height: 36px; width: clamp(160px, 24vw, 280px); padding: 0 8px 0 11px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); transition: border-color var(--fast), box-shadow var(--fast); }
:root[data-theme="dark"] .search { background: var(--surface-2); border-color: var(--border); }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.search > span { display: grid; color: var(--text-3); }
.search input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; outline: 0; }
.search .mini { width: 22px; height: 22px; }
.views { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.view-tab { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: 12.5px; font-weight: 600; transition: all var(--fast); }
.view-tab .icon { color: var(--text-3); }
.view-tab b { min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--surface-3); font-family: var(--font-mono); font-size: 10.5px; }
.view-tab:hover { border-color: var(--border-strong); color: var(--text); }
.view-tab.on { background: var(--ink); border-color: var(--ink); color: var(--ink-contrast); }
.view-tab.on .icon { color: var(--ink-contrast); opacity: .8; }
.view-tab.on b { background: color-mix(in srgb, var(--ink-contrast) 20%, transparent); color: var(--ink-contrast); }
.view-tab.is-danger .icon { color: var(--danger); }
.view-tab.is-danger.on { background: var(--danger); border-color: var(--danger); color: #fff; }
.view-tab.is-danger.on .icon { color: #fff; }

.planner { margin-bottom: 14px; }
.planner-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.planner-ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--warn-soft); color: var(--warn); }
.planner-copy { flex: 1; min-width: 0; }
.planner-copy h2 { font-size: 14px; font-weight: 650; }
.planner-copy p { font-size: 12.5px; color: var(--text-3); }
.planner.is-open .planner-head .icon.caret { transform: rotate(180deg); }
.planner-body { padding: 14px 16px 16px; border-top: 1px solid var(--border); }
.planner-add { display: grid; grid-template-columns: 1fr 160px 120px auto; gap: 8px; }
.planner-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.planner-list:empty { display: none; }
.planner-row { display: flex; align-items: center; gap: 10px; padding: 8px 11px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); animation: tlIn .2s var(--ease); }
.planner-title { flex: 1; min-width: 0; font-size: 13px; font-weight: 500; }
.planner-who { font-size: 11.5px; color: var(--text-3); }
@media (max-width: 860px) { .planner-add { grid-template-columns: 1fr; } }

.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.lane { display: flex; flex-direction: column; min-width: 0; min-height: 240px; border-radius: var(--r); background: color-mix(in srgb, var(--surface-2) 70%, var(--bg)); border: 1px solid var(--border); transition: background var(--fast), border-color var(--fast); }
.lane.is-over { background: var(--accent-soft); border-color: var(--accent-line); }
.lane-head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 12px; border-bottom: 1px solid var(--border); }
.lane-head h2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); }
.lane-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--text-3); }
.lane-dot.s-todo { background: transparent; box-shadow: inset 0 0 0 2px var(--text-3); }
.lane-dot.s-doing { background: var(--accent); } .lane-dot.s-blocked { background: var(--danger); } .lane-dot.s-postponed { background: var(--warn); } .lane-dot.s-done { background: var(--success); }
.lane-count { flex: none; }
.lane-add { width: 24px; height: 24px; flex: none; margin-left: auto; display: grid; place-items: center; border: 0; border-radius: var(--r-xs); background: none; color: var(--text-3); cursor: pointer; opacity: 0; transition: opacity var(--fast), background var(--fast), color var(--fast); }
.lane:hover .lane-add, .lane-add:focus-visible { opacity: 1; }
.lane-add:hover { background: var(--surface); color: var(--text); }
.lane-list { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.tcard {
  position: relative; padding: 11px 12px 10px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); cursor: grab;
  transition: border-color var(--fast), box-shadow var(--fast), transform var(--fast), opacity var(--fast);
}
.tcard:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lift); transform: translateY(-2px); z-index: 1; }
.tcard:active { cursor: grabbing; }
.tcard.dragging { opacity: .45; transform: rotate(1.5deg) scale(.98); }
.tcard.is-overdue { box-shadow: inset 3px 0 0 var(--danger), var(--shadow-card); }
.tcard.is-done .tcard-title { color: var(--text-2); text-decoration: line-through; text-decoration-thickness: 1px; }
.tcard-flags { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 6px; }
.flag { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 6px; border-radius: 5px; background: var(--surface-2); color: var(--text-3); font-size: 10.5px; font-weight: 600; }
.flag.is-carried { background: var(--warn-soft); color: var(--warn); }
a.flag:hover { background: var(--accent-soft); color: var(--accent); }
.tcard-title { font-size: 13.5px; font-weight: 600; line-height: 1.38; letter-spacing: -0.005em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tcard-desc { margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcard-meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; min-height: 22px; }
.prio { display: inline-flex; align-items: center; gap: 5px; height: 20px; border-radius: 5px; font-size: 11px; font-weight: 600; white-space: nowrap; color: var(--text-2); }
.prio::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.prio.p-high { padding: 0 6px; background: var(--danger-soft); color: var(--danger); }
.prio.p-med::before { background: var(--warn); }
.prio.p-low { color: var(--text-3); } .prio.p-low::before { background: var(--border-strong); }
.due { display: inline-flex; align-items: center; gap: 4px; height: 20px; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); white-space: nowrap; }
.due.is-over { padding: 0 6px; border-radius: 5px; background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.who { margin-left: auto; display: flex; align-items: center; }
.who .avatar { width: 22px; height: 22px; font-size: 9px; }
.who-both { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); font-size: 10.5px; font-weight: 650; color: var(--text-2); }
.who-none { width: 22px; height: 22px; display: grid; place-items: center; border: 1px dashed var(--border-strong); border-radius: 50%; color: var(--text-3); }
.tcard-actions { position: absolute; right: 7px; bottom: 7px; z-index: 2; display: flex; gap: 1px; padding-left: 14px; background: var(--surface); box-shadow: -12px 0 12px -6px var(--surface); opacity: 0; pointer-events: none; transition: opacity var(--fast); }
.tcard:hover .tcard-actions, .tcard:focus-within .tcard-actions { opacity: 1; pointer-events: auto; }
.tcard-actions form { margin: 0; display: flex; }
.tcard-actions .mini { width: 24px; height: 24px; }
.tcard.just-moved { animation: cardFlash .7s var(--ease); }
@keyframes cardFlash { 0% { border-color: var(--accent); box-shadow: 0 0 0 4px var(--focus); } }
.lane-empty { display: grid; justify-items: center; align-content: center; gap: 7px; min-height: 110px; padding: 18px 12px; border: 1px dashed var(--border-strong); border-radius: var(--r-sm); text-align: center; }
.lane-empty p { max-width: 20ch; font-size: 12px; line-height: 1.4; color: var(--text-3); }
.lane-empty-add { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 0; border-radius: var(--r-xs); background: none; color: var(--text-2); font-size: 12px; font-weight: 600; cursor: pointer; }
.lane-empty-add:hover { background: var(--accent-soft); color: var(--accent); }
.lane-empty-ico { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--text-3); }

.wb-menu { position: fixed; z-index: 75; min-width: 200px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-pop); animation: rise .18s var(--ease); }
.wb-menu-label { padding: 6px 9px; font-family: var(--font-mono); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); }
.wb-menu-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 9px; border: 0; border-radius: var(--r-xs); background: none; color: var(--text-2); font-size: 13px; font-weight: 500; text-align: left; cursor: pointer; transition: background var(--fast), color var(--fast); }
.wb-menu-item:hover { background: var(--surface-2); color: var(--text); }
.wb-menu-item .icon { margin-left: auto; color: var(--accent); opacity: 0; }
.wb-menu-item.is-current { color: var(--text); font-weight: 600; }
.wb-menu-item.is-current .icon { opacity: 1; }
.wb-menu-sep { height: 1px; margin: 5px 2px; background: var(--border); }
.lane-dot.in-menu { width: 8px; height: 8px; }

@media (max-width: 1280px) { .board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } .search { flex: 1; width: auto; } }
@media (max-width: 599px) { .board { grid-template-columns: minmax(0, 1fr); } }
@media (hover: none) { .tcard-actions { opacity: 1; pointer-events: auto; } .lane-add { opacity: 1; } .tcard:hover { transform: none; } }

/* Recipient picker */
.recipient-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.recipient { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; transition: border-color var(--fast), background var(--fast); }
.recipient:hover { border-color: var(--border-strong); }
.recipient:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
.recipient input { width: 15px; height: 15px; min-height: 0; flex: none; accent-color: var(--accent); }
.recipient-who { min-width: 0; line-height: 1.3; }
.recipient-who b { display: block; font-size: 12.5px; font-weight: 600; }
.recipient-who small { display: block; font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recipient.is-off { opacity: .55; cursor: not-allowed; }

/* =========================================================
   OUTREACH
   ========================================================= */
.or-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: end; margin-bottom: 16px; }
.or-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.or-cal { display: flex; gap: 3px; align-items: flex-end; }
.or-cell { position: relative; width: 16px; height: 34px; border-radius: 4px; background: var(--surface-3); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; padding-bottom: 4px; transition: background var(--fast), transform var(--fast); cursor: default; }
.or-cell:hover { transform: translateY(-2px); background: var(--border-strong); }
.or-cell.is-today { background: var(--ink); }
.or-cell i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.or-cell.is-today i { background: var(--ink-contrast); }
.or-cell.is-monday::before { content: ""; position: absolute; top: -6px; left: 50%; width: 1px; height: 4px; background: var(--border-strong); }
.or-cal-cap { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--font-mono); font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.or-cal-wrap { text-align: right; }
@media (max-width: 900px) { .or-top { grid-template-columns: 1fr; } .or-cal-wrap { text-align: left; } .or-cal { gap: 2px; } .or-cell { flex: 1 1 0; width: auto; min-width: 0; height: 28px; } .or-cell i { width: 4px; height: 4px; } }

.or-add { display: grid; grid-template-columns: 40px minmax(140px, 1fr) minmax(180px, 1.8fr) 140px 96px 118px 100px auto; gap: 8px; align-items: center; padding: 10px 12px; margin-bottom: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.or-add .input { min-height: 36px; background: var(--surface-2); border-color: transparent; }
.or-add .input:focus, .or-add select:focus { background: var(--surface); border-color: var(--accent); }
.or-add select { min-height: 36px; background-color: var(--surface-2); border-color: transparent; }
.or-add-plus { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.or-add .btn { min-height: 36px; }
@media (max-width: 1180px) { .or-add { grid-template-columns: 40px 1fr 1fr 1fr; } .or-add [data-span] { grid-column: span 3; } .or-add .btn { grid-column: span 4; } }
@media (max-width: 640px) { .or-add { grid-template-columns: 1fr 1fr; } .or-add-plus { display: none; } .or-add .btn { grid-column: span 2; } .or-add [data-span] { grid-column: span 2; } }

.or-group { margin-bottom: 14px; }
.or-group-head { display: flex; align-items: center; gap: 8px; padding: 6px 4px 8px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); }
.or-group.is-overdue .or-group-head { color: var(--danger); }
.or-group.is-today .or-group-head { color: var(--accent); }
.or-group-head .pill { margin-left: 2px; }
.or-group[data-count="0"] { display: none; }
.or-rows { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); overflow: hidden; }
.or-rows:empty { display: none; }
.or-row { display: grid; grid-template-columns: 40px minmax(140px, 1.1fr) minmax(200px, 2fr) 150px 36px auto; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); transition: background var(--fast), opacity var(--fast), transform var(--fast); }
.or-row:last-child { border-bottom: 0; }
.or-row:hover { background: var(--surface-2); }
.or-row.just-in { animation: rise .4s var(--ease); }
.or-row.leaving { opacity: 0; transform: translateX(12px); }
.or-row.focus-flash { animation: cardFlash .9s var(--ease); }
.or-ch { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.or-row.is-done .or-ch { background: var(--success-soft); color: var(--success); }
.or-row.is-overdue .or-ch { background: var(--danger-soft); color: var(--danger); }
.or-who { min-width: 0; }
.or-name { font-size: 14px; font-weight: 650; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.or-row.is-done .or-name { color: var(--text-2); text-decoration: line-through; text-decoration-thickness: 1px; }
.or-contact { display: inline-flex; align-items: center; gap: 4px; margin-top: 1px; font-size: 11.5px; color: var(--text-3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.or-contact:hover { color: var(--accent); }
.or-why { min-width: 0; font-size: 13px; color: var(--text-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; overflow-wrap: anywhere; }
.or-why.open { display: block; -webkit-line-clamp: unset; }
.or-why:empty::before { content: "No context added"; color: var(--text-3); font-style: italic; }
.or-when { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.or-date { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--text); }
.or-date small { color: var(--text-3); margin-left: 4px; }
.or-rel { height: 19px; padding: 0 7px; font-size: 10.5px; }
.or-owner { display: grid; place-items: center; }
.or-actions { display: flex; align-items: center; gap: 2px; justify-content: flex-end; opacity: .35; transition: opacity var(--fast); }
.or-row:hover .or-actions, .or-row:focus-within .or-actions { opacity: 1; }
.or-done-btn { width: 30px; height: 30px; display: grid; place-items: center; border: 1.5px solid var(--border-strong); border-radius: 9px; background: var(--surface); color: transparent; cursor: pointer; transition: all var(--fast); }
.or-done-btn:hover { border-color: var(--success); color: var(--success); background: var(--success-soft); }
.or-row.is-done .or-done-btn { background: var(--success); border-color: var(--success); color: #fff; }
@media (max-width: 1000px) {
  .or-row { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "ch who actions" "ch why why" "ch when when"; row-gap: 6px; }
  .or-ch { grid-area: ch; align-self: start; }
  .or-who { grid-area: who; } .or-why { grid-area: why; } .or-when { grid-area: when; flex-direction: row; align-items: center; gap: 8px; }
  .or-owner { display: none; } .or-actions { grid-area: actions; opacity: 1; }
}
@media (hover: none) { .or-actions { opacity: 1; } }

/* =========================================================
   MEETINGS
   ========================================================= */
.mt-list { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); overflow: hidden; }
.mt-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--border); transition: background var(--fast); }
.mt-row:last-child { border-bottom: 0; }
.mt-row:hover { background: var(--surface-2); }
.mt-when { width: 54px; flex: none; text-align: center; padding: 7px 0; border-radius: var(--r-sm); background: var(--surface-2); font-family: var(--font-mono); }
.mt-row:hover .mt-when { background: var(--surface-3); }
.mt-when b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.mt-when small { display: block; margin-top: 3px; font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.mt-main { flex: 1; min-width: 0; }
.mt-title-row { display: flex; align-items: center; gap: 8px; }
.mt-title-row h3 { min-width: 0; font-size: 14.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.01em; }
.mt-sub { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 3px; font-size: 12px; color: var(--text-3); }
.mt-sub .mono { font-size: 11.5px; }
.mt-chip { display: inline-flex; align-items: center; gap: 4px; flex: none; height: 19px; padding: 0 7px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 10.5px; font-weight: 650; white-space: nowrap; }
.mt-chip.is-warn { background: var(--warn-soft); color: var(--warn); }
.mt-chip.is-done, .mt-chip.is-held { background: var(--success-soft); color: var(--success); }
.mt-chip.is-cancelled { background: var(--danger-soft); color: var(--danger); }
.mt-chip.is-scheduled { background: var(--accent-soft); color: var(--accent); }
.mt-people { display: flex; flex: none; }
.mt-people .avatar { margin-left: -8px; border: 2px solid var(--surface); }
.mt-people .avatar:first-child { margin-left: 0; }
.mt-go { flex: none; color: var(--text-3); display: grid; }
.mt-row.s-cancelled h3 { color: var(--text-3); text-decoration: line-through; }
.band { margin-top: 22px; }
.band-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.band-head h2 { font-size: 15px; font-weight: 650; letter-spacing: -0.015em; }
.callout { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--warn) 32%, var(--border)); border-radius: var(--r-lg); background: var(--warn-soft); }
.callout-ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.callout-body { flex: 1; min-width: 0; }
.callout-body b { display: block; font-size: 13.5px; font-weight: 650; }
.callout-body p { margin-top: 2px; font-size: 12.5px; color: var(--text-2); }
@media (max-width: 620px) { .mt-people { display: none; } .callout { flex-wrap: wrap; } .callout .btn { width: 100%; } }

.backlink { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--text-2); transition: color var(--fast); }
.backlink:hover { color: var(--text); }
.md-head { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; padding: 24px 26px; }
.md-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.md-sent { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-3); }
.md-head h1 { font-size: 26px; font-weight: 650; letter-spacing: -0.025em; line-height: 1.15; overflow-wrap: anywhere; }
.md-head h1.is-struck { color: var(--text-3); text-decoration: line-through; }
.md-facts { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.md-facts span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.md-facts .icon { color: var(--text-3); }
.md-people { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.md-person { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.md-guest { color: var(--text-3); font-weight: 500; }
.md-head-side { display: flex; flex-direction: column; gap: 7px; }
.md-head-side form { margin: 0; }
.md-danger-row { display: flex; gap: 7px; margin-top: 3px; }
.md-danger-row form { flex: 1; }
.md-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.md-col { display: flex; flex-direction: column; gap: 16px; }
.md-prose { font-size: 13.5px; line-height: 1.6; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 980px) { .md-head { grid-template-columns: 1fr; gap: 18px; } .md-head-side { flex-direction: row; flex-wrap: wrap; } .md-head-side .btn { width: auto; } .md-grid { grid-template-columns: 1fr; } }
.ai-list { display: flex; flex-direction: column; }
.ai-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.ai-row:last-child { border-bottom: 0; }
.ai-main { flex: 1; min-width: 0; }
.ai-title { font-size: 13.5px; font-weight: 550; overflow-wrap: anywhere; }
.ai-row.is-done .ai-title { color: var(--text-3); text-decoration: line-through; }
.ai-sub { margin-top: 2px; font-size: 11.5px; color: var(--text-3); }
.ai-row.is-overdue .ai-sub b { color: var(--danger); }
.ai-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.ai-form-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 7px; margin-top: 7px; }
@media (max-width: 620px) { .ai-form-row { grid-template-columns: 1fr 1fr; } }
.rm-list { display: flex; flex-direction: column; }
.rm-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.rm-row:last-child { border-bottom: 0; }
.rm-row form { margin: 0; }
.rm-ico { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--text-3); }
.rm-row.is-sent .rm-ico { background: var(--success-soft); color: var(--success); }
.rm-row.is-off { opacity: .5; }
.rm-main { flex: 1; min-width: 0; }
.rm-when { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; }
.rm-to { margin-top: 1px; font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-err { font-size: 11.5px; color: var(--danger); }
.rm-tag { font-size: 11px; font-weight: 650; color: var(--success); }

/* =========================================================
   PROGRESS
   ========================================================= */
.pg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .pg-grid { grid-template-columns: 1fr; } }
.pg-founder { padding: 20px 22px; }
.pg-founder.is-me { box-shadow: inset 3px 0 0 var(--accent), var(--shadow-card); }
.pg-head { display: flex; align-items: center; gap: 14px; }
.pg-who { flex: 1; min-width: 0; }
.pg-who .name { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 650; letter-spacing: -0.02em; }
.pg-who .tag { margin-top: 2px; font-size: 12.5px; color: var(--text-3); }
.pg-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
@media (max-width: 560px) { .pg-stats { grid-template-columns: repeat(2, 1fr); } }
.pg-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.pg-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pg-section-head .card-title { margin: 0; }
.pg-section-head .val { font-size: 12.5px; color: var(--text-2); }
.pg-section-head .val b { font-weight: 650; color: var(--text); }
.area { width: 100%; height: auto; display: block; overflow: visible; }
.area .grid { stroke: var(--border); stroke-width: 1; }
.area .fill { fill: var(--accent); opacity: .12; }
.area .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.area .dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.area .dot.is-full { fill: var(--success); }
.area .hit { fill: transparent; }
.area .hit:hover + .dot, .area .dot:hover { r: 5.5; }
.area-x { display: flex; justify-content: space-between; margin-top: 4px; padding: 0 2px; }
.area-x span { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); }
.area-x span.is-today { color: var(--text); font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 72px; border-bottom: 1px solid var(--border); }
.bars .b { flex: 1; display: flex; align-items: flex-end; justify-content: center; height: 100%; }
.bars .b i { width: 100%; max-width: 24px; height: 100%; border-radius: 4px 4px 0 0; background: var(--accent); transform: scaleY(var(--h, 0)); transform-origin: bottom; transition: transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 40ms); }
.bars .b.zero i { background: var(--surface-3); --h: 1; height: 3px; }
.bars-x { display: flex; gap: 8px; margin-top: 4px; }
.bars-x span { flex: 1; text-align: center; font-family: var(--font-mono); font-size: 10px; color: var(--text-3); }
.heatmap { display: flex; gap: 3px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.heat-col { display: flex; flex-direction: column; gap: 3px; }
.heat-cell { width: 12px; height: 12px; flex: none; border-radius: 3px; background: var(--surface-3); transition: transform var(--fast), outline-color var(--fast); outline: 1px solid transparent; outline-offset: 1px; }
a.heat-cell:hover { transform: scale(1.25); outline-color: var(--border-strong); }
.heat-cell.future { background: transparent; }
.heat-cell.l1 { background: color-mix(in srgb, var(--accent) 25%, var(--surface-3)); }
.heat-cell.l2 { background: color-mix(in srgb, var(--accent) 50%, var(--surface-3)); }
.heat-cell.l3 { background: color-mix(in srgb, var(--accent) 75%, var(--surface-3)); }
.heat-cell.l4 { background: var(--accent); }
.heat-months { position: relative; height: 14px; margin-bottom: 4px; }
.heat-months span { position: absolute; top: 0; font-family: var(--font-mono); font-size: 10px; color: var(--text-3); white-space: nowrap; }
.heat-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 10px; font-size: 11px; color: var(--text-3); }
.heat-legend .heat-cell { width: 10px; height: 10px; }

/* =========================================================
   HABITS · NOTES · VAULT
   ========================================================= */
.hm-list { display: flex; flex-direction: column; gap: 8px; }
.hm-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-card); transition: border-color var(--fast), transform var(--fast); }
.hm-item:hover { border-color: var(--border-strong); }
.hm-item.dragging { opacity: .5; }
.hm-grip { display: grid; color: var(--text-3); cursor: grab; }
.hm-meta { flex: 1; min-width: 0; }
.hm-name { font-size: 14px; font-weight: 600; }
.hm-sub { margin-top: 1px; font-size: 12.5px; color: var(--text-3); }
.badge { padding: 2px 7px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-3); font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.icon-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.icon-pick { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); color: var(--text-2); cursor: pointer; transition: all var(--fast); }
.icon-pick:hover { border-color: var(--border-strong); color: var(--text); transform: translateY(-1px); }
.icon-pick.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
@media (max-width: 620px) { .icon-grid { grid-template-columns: repeat(6, 1fr); } }

.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.note-card { display: flex; flex-direction: column; padding: 18px 18px 14px; cursor: pointer; transition: border-color var(--fast), transform var(--fast), box-shadow var(--fast); }
.note-card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.note-card h3 { font-size: 15px; font-weight: 650; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.note-card .note-body { margin-top: 8px; font-size: 13.5px; line-height: 1.55; color: var(--text-2); white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; flex: 1; }
.note-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--text-3); }
.note-foot .actions { display: flex; gap: 2px; opacity: 0; transition: opacity var(--fast); }
.note-card:hover .note-foot .actions, .note-card:focus-within .note-foot .actions { opacity: 1; }
@media (hover: none) { .note-foot .actions { opacity: 1; } }
.note-view { max-width: 760px; }
.note-view-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-ui); font-size: 14px; line-height: 1.65; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px; max-height: 62vh; overflow: auto; user-select: text; }
.note-view-actions { display: flex; align-items: center; gap: 8px; }
#noteViewCopy.ok { color: var(--success); border-color: var(--success); }

.vault-list { display: grid; gap: 10px; }
.vault-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px; transition: border-color var(--fast); }
.vault-item:hover { border-color: var(--border-strong); }
.vault-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.vault-main { min-width: 0; }
.vault-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.vault-title-row h3 { font-size: 14.5px; font-weight: 650; font-family: var(--font-mono); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.vault-updated { color: var(--text-3); font-size: 11.5px; white-space: nowrap; }
.vault-secret { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; align-items: center; }
.vault-secret .input { background: var(--surface-2); font-family: var(--font-mono); font-size: 12.5px; }
.vault-item-note { margin-top: 10px; color: var(--text-2); font-size: 13px; overflow-wrap: anywhere; }
.vault-actions { display: flex; align-items: center; gap: 4px; }
.vault-actions form { margin: 0; }
.vault-side { display: grid; gap: 12px; }
.vault-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.kpi { padding: 18px; }
.kpi .kpi-ico { width: 36px; height: 36px; margin-bottom: 12px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.kpi b { display: block; line-height: 1; font-size: 30px; font-weight: 650; letter-spacing: -0.03em; }
.kpi small { display: block; margin-top: 5px; font-size: 12.5px; font-weight: 500; color: var(--text-3); }
.kpi p { margin-top: 8px; font-size: 12.5px; color: var(--text-2); }
@media (max-width: 900px) { .vault-layout { grid-template-columns: 1fr; } .vault-side { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .vault-side { grid-template-columns: 1fr; } .vault-item { grid-template-columns: 1fr; } .vault-icon { display: none; } .vault-title-row { display: block; } .vault-updated { display: block; margin-top: 3px; } .vault-actions { justify-content: flex-end; } }

/* =========================================================
   AUTH · SETTINGS · PROFILE
   ========================================================= */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px; color: #fff; background: #0b0e16; }
.auth-brand::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(60% 50% at 30% 30%, color-mix(in srgb, #4353f0 70%, transparent), transparent 70%), radial-gradient(50% 45% at 80% 70%, color-mix(in srgb, #9d3fd0 60%, transparent), transparent 70%), radial-gradient(45% 40% at 60% 20%, color-mix(in srgb, #0b9488 45%, transparent), transparent 70%); filter: blur(30px); animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-4%, 3%) rotate(3deg) scale(1.05); } }
.auth-brand > * { position: relative; }
.auth-brand .brand { color: #fff; }
.auth-brand .brand-mark { background: rgba(255, 255, 255, .14); box-shadow: none; backdrop-filter: blur(6px); }
.auth-brand .brand small { color: rgba(255, 255, 255, .6); }
.auth-copy h2 { font-family: var(--font-serif); font-weight: 400; font-style: italic; font-size: clamp(38px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -0.02em; }
.auth-copy p { margin-top: 18px; max-width: 42ch; font-size: 15.5px; line-height: 1.55; color: rgba(255, 255, 255, .72); }
.auth-points { display: flex; gap: 22px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.auth-points span { display: inline-flex; align-items: center; gap: 7px; }
.auth-points .icon { color: rgba(255, 255, 255, .9); }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 26px; font-weight: 650; letter-spacing: -0.025em; }
.auth-card > p { margin: 6px 0 24px; color: var(--text-2); }
.auth-alt { margin-top: 18px; text-align: center; color: var(--text-2); font-size: 13.5px; }
.auth-alt a { color: var(--accent); font-weight: 600; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-brand { min-height: 42vh; padding: 28px 24px; } .auth-copy h2 { font-size: 34px; } .auth-points { display: none; } }

.settings-grid { display: grid; gap: 16px; }
.setting-row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.setting-row:last-child { border-bottom: 0; padding-bottom: 0; }
.setting-row .switch { margin-top: 2px; }
.setting-copy { flex: 1; min-width: 0; }
.setting-copy b { display: block; font-size: 13.5px; font-weight: 600; }
.setting-copy span { display: block; margin-top: 1px; font-size: 12.5px; color: var(--text-2); }
.avatar-pick { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.avatar-preview { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); background: var(--accent-soft); color: var(--accent); font-size: 24px; font-weight: 650; }
.accent-swatches { display: flex; gap: 10px; }
.swatch { width: 30px; height: 30px; border: 0; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); transition: transform var(--fast), box-shadow var(--fast); }
.swatch:hover { transform: scale(1.1); }
.swatch.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: .001ms !important; transition-duration: .001ms !important; }
}

/* Auth pages have no shell. */
.auth-page .shell-main { margin-left: 0; padding-bottom: 0; }
.auth-page::before { display: none; }
