/* Runwell brand, taken from the live site's tokens (runwell-site-experiment/src/styles/global.css). */
@font-face { font-family: 'Inter Variable'; src: url('assets/inter.woff2') format('woff2'); font-weight: 100 900; font-display: block; }
@font-face { font-family: 'Montserrat Variable'; src: url('assets/montserrat.woff2') format('woff2'); font-weight: 100 900; font-display: block; }

:root {
  /* Timewell look (Runwell's time tracker): charcoal with a green cast, one mint accent. */
  --brand-100: #e3f8f1;
  --brand-300: #3fd0a3;   /* mint: active items, links, focus */
  --brand-500: #24b48b;
  --brand-550: #1fa27d;
  --brand-600: #188a6a;
  /* Surfaces, darkest to lightest */
  --forest-975: #131716;  /* page */
  --forest-950: #1b1f1e;  /* cards */
  --forest-925: #202524;  /* card headers */
  --forest-900: #1c332c;  /* mint-tinted fill */
  --forest-800: #2c3533;  /* strong borders, chips */
  --ink-900: #0d1513;
  --on-dark: #f3f5f4;
  --on-dark-2: rgb(243 245 244 / 0.68);
  --on-dark-3: rgb(243 245 244 / 0.42);
  --hairline: rgb(255 255 255 / 0.065);
  /* Signal: the "start now" warning only. */
  --signal: #f5a524;
  --signal-hover: #f8b850;
  --warning: #f5a524;
  --error: #e5484d;
  --error-on-dark: #f0686c;

  --font-sans: 'Inter Variable', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Montserrat Variable', 'Inter Variable', system-ui, sans-serif;

  --r-card: 16px;
  --r-well: 14px;
  --r-control: 9px;
  --r-pill: 999px;
  --bar-h: 56px;
  --side-w: 236px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--forest-800); border-radius: 999px; border: 3px solid var(--forest-975); }
::-webkit-scrollbar-thumb:hover { background: var(--brand-600); }
body {
  background: var(--forest-975);
  color: var(--on-dark);
  font: 400 14px/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--brand-600); color: var(--on-dark); }
:focus-visible { outline: 2px solid var(--brand-300); outline-offset: 2px; }

/* Top bar. In the desktop app it is the window's title bar: Windows draws min/max/close
   on the right (140px reserved) and the bar drags the window. */
.titlebar {
  position: sticky; top: 0; z-index: 10;
  height: 40px; padding: 0 20px;
  display: flex; align-items: center;
  background: var(--forest-975);
  border-bottom: 1px solid var(--hairline);
}
body.desktop .titlebar { padding-right: 140px; -webkit-app-region: drag; border-bottom: 0; }
.wordmark { height: 15px; width: auto; display: block; user-select: none; -webkit-user-drag: none; }

/* ---- Layout: client sidebar + page ---- */
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
.page { padding: 20px 28px 80px; max-width: 820px; width: 100%; }
.sidebar {
  position: sticky; top: 40px; height: calc(100vh - 40px - 49px); overflow-y: auto;
  padding: 20px 12px 20px 16px;
  border-right: 1px solid var(--hairline);
}
.side-label {
  margin: 0 0 6px 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-3);
}
.side-label:not(:first-child) { margin-top: 20px; }
nav { display: grid; gap: 2px; }
.nav-item {
  display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px;
  width: 100%; text-align: left; border: 0; cursor: pointer;
  padding: 6px 10px 6px 6px; border-radius: var(--r-control);
  background: none; color: var(--on-dark-2); font-size: 14px;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.nav-item { position: relative; z-index: 1; }
.nav-item:hover { background: rgb(255 255 255 / 0.04); color: var(--on-dark); }
.nav-item:active { transform: scale(0.985); }
.nav-item.active, .nav-item.active:hover { background: transparent; color: var(--on-dark); }
.nav-item .avatar { transition: background-color 300ms var(--ease), color 300ms var(--ease), transform 300ms var(--ease); }
.nav-item.active .avatar:not(.icon) { background: var(--brand-600); color: var(--on-dark); transform: scale(1.06); }

/* One highlight that glides to whichever list is open. */
.nav-indicator {
  position: absolute; left: 16px; right: 12px; top: 0; height: 38px; z-index: 0;
  border-radius: var(--r-control); background: var(--forest-900);
  box-shadow: inset 0 0 0 1px rgb(94 196 168 / 0.10);
  transform: translateY(var(--y, 0px)); opacity: 0;
  pointer-events: none;
}
.nav-indicator::before {
  content: ""; position: absolute; left: -8px; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: var(--brand-300);
}
.sidebar > :not(.nav-indicator) { position: relative; z-index: 1; } /* labels stay above the gliding highlight */
.nav-indicator.ready { opacity: 1; transition: transform 420ms var(--ease), height 420ms var(--ease), opacity 200ms ease; }
.nav-item .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px;
  background: var(--forest-800); color: var(--brand-300);
  font: 600 12px/1 var(--font-display); letter-spacing: -0.02em;
}
.avatar.icon { background: none; color: var(--on-dark-3); font-family: var(--font-sans); font-size: 14px; }
.nav-item.active .avatar.icon { color: var(--brand-300); }
.counts { display: flex; gap: 6px; align-items: center; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--on-dark-3); }
.counts .due-now {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill);
  background: var(--signal); color: var(--ink-900); font-weight: 600; display: grid; place-items: center;
}
.new-client { margin-top: 6px; }
.new-client input {
  width: 100%; border: 1px dashed rgb(255 255 255 / 0.14); border-radius: var(--r-control);
  background: none; padding: 7px 10px; outline: none; font-size: 13px;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.new-client input::placeholder { color: var(--on-dark-3); }
.new-client input:focus { border-style: solid; border-color: var(--brand-300); background: var(--forest-950); }
.error.small { font-size: 12px; margin: 6px 4px 0; }

.title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.title-row input.rename {
  font: 600 30px/1.12 var(--font-display); letter-spacing: -0.03em; color: var(--on-dark);
  background: var(--forest-950); border: 1px solid var(--brand-300); border-radius: var(--r-control);
  padding: 0 8px; outline: none; min-width: 0; width: 100%; max-width: 420px;
}
.title-tools { display: flex; gap: 4px; }
.title-tools button {
  border: 0; background: none; color: var(--on-dark-3); cursor: pointer; font-size: 12px;
  padding: 4px 8px; border-radius: var(--r-control); transition: color 200ms var(--ease), background-color 200ms var(--ease);
}
.title-tools button:hover { color: var(--on-dark); background: rgb(255 255 255 / 0.06); }
.title-tools button.del:hover { color: var(--error-on-dark); }
.row.three:has(.field) { grid-template-columns: 1.3fr 1fr 1fr; }
.meta .client-tag { color: var(--on-dark-2); display: inline-flex; align-items: center; gap: 5px; }
.meta .client-tag::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--brand-500); }

/* ---- Composer: a one-line bar that opens into the full form ---- */
.card.composer { padding: 6px 8px 6px 10px; gap: 0; transition: box-shadow 300ms var(--ease), border-color 300ms var(--ease), padding 300ms var(--ease); }
.card.composer.open { padding: 14px 18px 18px; border-color: rgb(94 196 168 / 0.25); box-shadow: 0 12px 40px rgb(0 0 0 / 0.35); }
.composer-bar { display: flex; align-items: center; gap: 12px; }
/* The + is a real button: drawn as two centred strokes (a text "+" sits off-centre in the font).
   Closed it opens the bar; open it turns into × and closes it. */
.composer-plus {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; margin: 0;
  border-radius: var(--r-pill); border: 1.5px solid var(--forest-800); background: transparent;
  color: var(--brand-300); cursor: pointer;
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease), color 300ms var(--ease), transform 160ms var(--ease);
}
.composer-plus svg { width: 14px; height: 14px; display: block; transition: transform 420ms var(--ease); }
.composer-plus:hover { border-color: var(--brand-300); background: rgb(94 196 168 / 0.10); color: var(--on-dark); }
.composer-plus:active { transform: scale(0.92); }
.composer.open .composer-plus { background: var(--brand-600); border-color: var(--brand-600); color: var(--on-dark); }
.composer.open .composer-plus:hover { background: var(--brand-550); border-color: var(--brand-550); }
.composer.open .composer-plus svg { transform: rotate(135deg); } /* + turns into × */
.composer #title { flex: 1; min-width: 0; padding: 8px 0; }
.composer:not(.open) #title { font-weight: 500; font-family: var(--font-sans); font-size: 15px; letter-spacing: 0; }
.shortcut {
  flex: none; font: 500 11px/1 var(--font-sans); color: var(--on-dark-3);
  border: 1px solid var(--hairline); border-radius: 6px; padding: 4px 6px; transition: opacity 200ms ease;
}
.composer.open .shortcut { opacity: 0; }
.composer-details {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows 420ms var(--ease), opacity 260ms ease;
}
.composer.open .composer-details { grid-template-rows: 1fr; opacity: 1; }
.details-inner { min-height: 0; overflow: hidden; display: grid; gap: 12px; }
.details-inner > :first-child { margin-top: 14px; }
.composer:not(.open) .details-inner { visibility: hidden; transition: visibility 0s 420ms; }
.editing-label { margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-300); }
.btn--plain { padding: 6px 20px; }

/* ---- Toast with Undo ---- */
.toast {
  position: fixed; left: 50%; bottom: 64px; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  max-width: min(520px, calc(100vw - 32px));
  padding: 10px 10px 10px 18px; border-radius: var(--r-pill);
  background: var(--forest-900); border: 1px solid var(--forest-800);
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.45);
  transform: translate(-50%, 0);
  font-size: 14px;
}
.toast[hidden] { display: none; }
.toast.in { animation: toast-in 420ms var(--ease) both; }
.toast.out { animation: toast-out 220ms ease both; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 14px) scale(0.98); } }
@keyframes toast-out { to { opacity: 0; transform: translate(-50%, 8px); } }
#toastMsg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast-undo {
  flex: none; border: 0; cursor: pointer; border-radius: var(--r-pill); padding: 6px 14px;
  background: rgb(255 182 39 / 0.12); color: var(--signal); font-weight: 600; font-size: 13px;
  transition: background-color 200ms var(--ease);
}
.toast-undo:hover { background: rgb(255 182 39 / 0.22); }

/* ---- In-app confirm dialog ---- */
.dialog {
  border: 1px solid var(--forest-800); border-radius: var(--r-well); padding: 22px 22px 18px;
  background: var(--forest-950); color: var(--on-dark); width: min(420px, calc(100vw - 48px));
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.5);
}
.dialog[open] { animation: dialog-in 320ms var(--ease); }
.dialog::backdrop { background: rgb(4 12 9 / 0.6); backdrop-filter: blur(3px); }
.dialog p { margin: 0 0 18px; font-size: 15px; line-height: 1.5; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.dialog-actions .btn { min-height: 38px; }
.btn--danger { background: var(--error); color: var(--on-dark); }
.btn--danger:hover { background: #b91c1c; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(0.97); } }

/* Narrow window: the sidebar becomes a scrolling row of chips. */
@media (max-width: 720px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--hairline);
    display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px; align-items: center;
  }
  .side-label, .nav-indicator { display: none; }
  .nav-item.active, .nav-item.active:hover { background: var(--forest-900); }
  .shortcuts { display: none; }
  nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .nav-item { display: inline-flex; flex: none; width: auto; gap: 8px; white-space: nowrap; padding: 4px 10px 4px 4px; }
  .nav-item .label { overflow: visible; }
  .new-client { margin: 0; flex: 0 0 150px; }
  .error.small { flex-basis: 100%; margin: 2px 4px 0; }
  .row.three:has(.field) { grid-template-columns: 1fr 1fr; }
}

header { margin-bottom: 20px; }
.kicker {
  margin: 0 0 6px; color: var(--brand-300);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
h1 {
  margin: 0;
  font: 600 30px/1.12 var(--font-display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.summary { margin: 6px 0 0; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.muted { color: var(--on-dark-3); }

/* ---- Add / edit card ---- */
.card {
  background: var(--forest-950);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 18px;
  display: grid; gap: 12px;
  margin-bottom: 28px;
}
input, select, textarea, button { font: inherit; color: inherit; }
#title {
  border: 0; background: transparent; outline: none;
  font: 600 18px/1.3 var(--font-display); letter-spacing: -0.015em;
  padding: 2px 2px 4px;
}
#title::placeholder, textarea::placeholder { color: var(--on-dark-3); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.row:has(.field) { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 480px) { .row:has(.field) { grid-template-columns: 1fr; } }
.check.small { font-size: 12px; margin-top: 2px; }
.check.small input { width: 14px; height: 14px; }
.hint { font-size: 12px; }
.field { display: grid; gap: 5px; min-width: 0; }
.field input, .field select { height: 38px; min-width: 0; }
.field span { font-size: 11px; font-weight: 600; color: var(--on-dark-3); text-transform: uppercase; letter-spacing: 0.06em; }
.field input, .field select, textarea {
  width: 100%;
  background: var(--forest-975);
  border: 1px solid var(--hairline);
  border-radius: var(--r-control);
  padding: 8px 10px; outline: none;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.field select option { background: var(--forest-950); }
textarea { resize: vertical; }
.field input:focus, .field select:focus, textarea:focus { border-color: var(--brand-300); box-shadow: 0 0 0 3px rgb(94 196 168 / 0.18); }
.actions { align-items: center; padding-top: 2px; }
.spacer { flex: 1; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; color: var(--on-dark-2); }
.check input { accent-color: var(--brand-500); width: 16px; height: 16px; margin: 0; }
.error { color: var(--error-on-dark); margin: 0; }

/* ---- Buttons: Runwell pills ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; border: 0; border-radius: var(--r-pill);
  padding: 6px 20px 6px 6px;
  font-size: 15px; font-weight: 500; line-height: 1.4; white-space: nowrap;
  cursor: pointer;
  transition: background-color 300ms ease, color 300ms ease, transform 160ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn__badge {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-pill);
  font-size: 18px; font-weight: 600; line-height: 1;
  transition: transform 300ms var(--ease);
}
.btn--primary { background: var(--signal); color: var(--ink-900); }
.btn--primary:hover { background: var(--signal-hover); }
.btn--primary:hover .btn__badge { transform: rotate(90deg); }
.btn--primary .btn__badge { background: var(--forest-900); color: var(--signal); }
.btn--ghost { background: rgb(255 255 255 / 0.06); color: var(--on-dark); border: 1px solid rgb(255 255 255 / 0.14); padding: 6px 20px; }
.btn--ghost:hover { background: var(--on-dark); color: var(--ink-900); }

/* ---- Task groups ---- */
.group { margin-bottom: 24px; }
.group h2 {
  margin: 0 0 8px 6px; display: flex; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-300);
}
.group h2 .count { color: var(--on-dark-3); font-variant-numeric: tabular-nums; }
.group.overdue h2 { color: var(--error-on-dark); }
.group h2 button { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }

ul {
  list-style: none; margin: 0; padding: 0;
  background: var(--forest-950);
  border: 1px solid var(--hairline);
  border-radius: var(--r-well);
  overflow: hidden;
}
li {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start;
  padding: 12px 14px;
  border-top: 1px solid var(--hairline);
  transition: background-color 200ms var(--ease);
}
li:first-child { border-top: 0; }
li:hover { background: rgb(255 255 255 / 0.025); }
li.enter { animation: rise 460ms var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
li.editing { background: rgb(94 196 168 / 0.06); box-shadow: inset 3px 0 0 var(--brand-300); }
li.flash { animation: flash 1200ms var(--ease); }
@keyframes flash { 0% { background: rgb(94 196 168 / 0.18); } 100% { background: transparent; } }

/* Completing: the tick pops and fills, the title is struck through left to right. */
li.completing .tick { background: var(--brand-500); border-color: var(--brand-500); color: var(--on-dark); animation: pop 360ms var(--ease); }
@keyframes pop { 0% { transform: scale(0.8); } 55% { transform: scale(1.18); } 100% { transform: scale(1); } }
.name { background: linear-gradient(currentColor, currentColor) no-repeat 0 55% / 0 1px; transition: background-size 320ms var(--ease), color 320ms var(--ease); }
li.completing .name { background-size: 100% 1px; color: var(--on-dark-3); }
.tick:not(:hover) { transition: border-color 200ms var(--ease), background-color 200ms var(--ease), transform 200ms var(--ease), color 200ms var(--ease); }
li:not(.done) .tick:hover { color: rgb(94 196 168 / 0.7); }

.tick {
  width: 20px; height: 20px; margin-top: 1px; padding: 0;
  border-radius: var(--r-pill); border: 1.5px solid var(--on-dark-3);
  background: none; color: transparent; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; cursor: pointer;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease), transform 200ms var(--ease);
}
.tick:hover { border-color: var(--brand-300); transform: scale(1.06); }
li.done .tick { background: var(--brand-500); border-color: var(--brand-500); color: var(--on-dark); }
li.done .name { color: var(--on-dark-3); text-decoration: line-through; text-decoration-color: var(--on-dark-3); }
.name { font-weight: 500; word-break: break-word; cursor: pointer; }
.prio-high .name::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--warning); margin: 0 8px 2px 0; vertical-align: middle;
}
.prio-low .name { color: var(--on-dark-2); }
.meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--on-dark-3); margin-top: 2px; font-variant-numeric: tabular-nums; }
.meta .late { color: var(--error-on-dark); }
.meta .startlbl { color: var(--on-dark-2); }
.meta .late-start { color: var(--signal); }

/* "Start now": the action to take, so it gets the signal colour (allowed as text on dark). */
.group.startnow h2 { color: var(--signal); }
.group.startnow ul { border-color: rgb(255 182 39 / 0.35); }
.side { display: flex; align-items: center; gap: 6px; }
.side .start-pill { order: 2; } /* stays at the far right; hover tools appear to its left */
.start-pill {
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; border-radius: var(--r-pill); cursor: pointer;
  padding: 3px 12px 3px 3px; font-size: 13px; font-weight: 600;
  background: var(--signal); color: var(--ink-900);
  transition: background-color 300ms ease, transform 160ms var(--ease);
}
.start-pill:hover { background: var(--signal-hover); }
.start-pill:active { transform: scale(0.97); }
.start-pill .play {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: var(--r-pill);
  background: var(--forest-900); color: var(--signal); font-size: 9px; padding-left: 2px;
}
.meta .tag { color: var(--brand-300); }
.notes { font-size: 13px; color: var(--on-dark-2); margin-top: 4px; white-space: pre-wrap; }
.tools { display: flex; gap: 2px; opacity: 0; transition: opacity 200ms var(--ease); }
li:hover .tools, li:focus-within .tools { opacity: 1; }
.tools button {
  border: 0; background: none; color: var(--on-dark-3); cursor: pointer;
  padding: 3px 8px; border-radius: var(--r-control); font-size: 12px;
  transition: color 200ms var(--ease), background-color 200ms var(--ease);
}
.tools button:hover { color: var(--on-dark); background: rgb(255 255 255 / 0.06); }
.tools button.del:hover { color: var(--error-on-dark); }

.empty {
  text-align: center; color: var(--on-dark-3); padding: 44px 16px;
  border: 1px dashed var(--hairline); border-radius: var(--r-well);
}
.empty p { margin: 0; }
.empty-title { color: var(--on-dark-2); font: 600 16px/1.3 var(--font-display); letter-spacing: -0.015em; margin-bottom: 4px !important; }

footer {
  position: fixed; left: 0; right: 0; bottom: 0;
  padding: 12px 24px;
  background: rgb(8 22 16 / 0.85);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--hairline);
  display: flex; gap: 16px; align-items: center; justify-content: space-between;
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0ms !important; }
}

/* ======================= Website additions ======================= */
body.booting > :not(.titlebar) { visibility: hidden; }
.screen { min-height: calc(100vh - 40px); display: grid; place-items: center; padding: 32px 16px; }
.auth-card {
  width: min(400px, 100%);
  background: var(--forest-950); border: 1px solid var(--hairline); border-radius: var(--r-card);
  padding: 28px; display: grid; gap: 14px;
  animation: rise 520ms var(--ease) both;
}
.auth-card h1 { font-size: 26px; }
.auth-card > .muted { margin: -6px 0 4px; }
.auth-card .field input { height: 42px; }
.stack { display: grid; gap: 12px; }
.btn--wide { width: 100%; justify-content: center; }
.link { border: 0; background: none; padding: 0; color: var(--brand-300); cursor: pointer; font: inherit; font-weight: 500; }
.link:hover { text-decoration: underline; }
.switch-auth { text-align: center; font-size: 13px; margin: 2px 0 0; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--on-dark-3); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }

/* Workspace switcher at the top of the sidebar */
.workspace-btn {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px;
  width: 100%; border: 0; background: none; color: var(--on-dark); cursor: pointer; text-align: left;
  padding: 6px 8px 6px 6px; border-radius: var(--r-control); margin-bottom: 8px;
  font: 600 15px/1.2 var(--font-display); letter-spacing: -0.015em;
  transition: background-color 200ms var(--ease);
}
.workspace-btn:hover { background: rgb(255 255 255 / 0.04); }
.avatar.ws { width: 30px; height: 30px; background: var(--brand-600); color: var(--on-dark); font-size: 13px; }
.ws-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { color: var(--on-dark-3); font-size: 14px; }
.ws-menu {
  position: absolute; left: 12px; right: 12px; top: 58px; z-index: 5 !important;
  background: var(--forest-950); border: 1px solid var(--forest-800); border-radius: var(--r-control);
  padding: 6px; box-shadow: 0 16px 40px rgb(0 0 0 / 0.45); display: grid; gap: 2px;
  animation: dialog-in 220ms var(--ease);
}
.ws-menu button { border: 0; background: none; color: var(--on-dark-2); text-align: left; padding: 8px 10px; border-radius: 6px; cursor: pointer; font: inherit; }
.ws-menu button:hover { background: rgb(255 255 255 / 0.05); color: var(--on-dark); }
.ws-menu button.current { color: var(--on-dark); font-weight: 600; }
.ws-menu hr { border: 0; border-top: 1px solid var(--hairline); margin: 4px 2px; }

/* Team list */
.team { display: grid; gap: 2px; }
.member { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 5px 10px 5px 6px; border-radius: var(--r-control); font-size: 14px; color: var(--on-dark-2); }
.member .role { font-size: 11px; color: var(--on-dark-3); }
.member .remove { border: 0; background: none; color: var(--on-dark-3); cursor: pointer; font-size: 12px; opacity: 0; transition: opacity 150ms ease; padding: 2px 4px; }
.member:hover .remove { opacity: 1; }
.member .remove:hover { color: var(--error-on-dark); }
.avatar.person { border-radius: 50%; background: var(--forest-900); color: var(--on-dark-2); font-family: var(--font-sans); font-size: 11px; }
.invite-btn {
  width: 100%; margin-top: 6px; text-align: left; border: 1px dashed rgb(255 255 255 / 0.14); border-radius: var(--r-control);
  background: none; color: var(--on-dark-3); padding: 7px 10px; cursor: pointer; font-size: 13px;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}
.invite-btn:hover { border-color: var(--brand-300); color: var(--on-dark); }

/* Assignee on rows */
.meta .assignee { display: inline-flex; align-items: center; gap: 6px; color: var(--on-dark-2); }
.meta .assignee .avatar { width: 18px; height: 18px; font-size: 9px; }
.meta .assignee.me { color: var(--brand-300); }
.row.two:has(.field) { grid-template-columns: 1fr 1fr; }

/* Invite link field inside the dialog */
.dialog-field { display: flex; gap: 8px; margin: -6px 0 16px; }
.dialog-field input { flex: 1; min-width: 0; background: var(--forest-975); border: 1px solid var(--hairline); border-radius: var(--r-control); padding: 8px 10px; font-size: 13px; color: var(--on-dark); }
.dialog-field .btn { min-height: 38px; padding: 6px 16px; }

/* Footer */
footer .spacer { flex: 1; }
footer .me { color: var(--on-dark-3); white-space: nowrap; }
footer .me #meName { color: var(--on-dark-2); }
.get-app { text-decoration: none; }
.get-app:hover { color: var(--brand-300); }

.loading { color: var(--on-dark-3); padding: 40px 0; text-align: center; }

@media (max-width: 720px) {
  .workspace-btn { width: auto; flex: 0 0 100%; margin: 0; }
  .ws-menu { top: 52px; }
  .team, .invite-btn, .member { display: none; }
  footer .shortcuts { display: none; }
  .page { padding: 16px 16px 80px; }
}
.switch-auth .link + .link { margin-left: 16px; }

/* ---- Search and filters ---- */
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: -4px 0 14px; }
.search {
  flex: 1 1 240px; display: flex; align-items: center; gap: 8px; min-width: 0;
  background: var(--forest-950); border: 1px solid var(--hairline); border-radius: var(--r-pill);
  padding: 0 8px 0 12px; height: 36px; color: var(--on-dark-3);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.search:focus-within { border-color: var(--brand-300); box-shadow: 0 0 0 3px rgb(94 196 168 / 0.15); }
.search svg { width: 16px; height: 16px; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--on-dark); font-size: 14px; }
.search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.search:focus-within .shortcut { opacity: 0; }
.filters select {
  height: 36px; border-radius: var(--r-pill); border: 1px solid var(--hairline); background: var(--forest-950);
  color: var(--on-dark-2); padding: 0 12px; font-size: 13px; outline: none; cursor: pointer;
}
.filters select.active { border-color: var(--brand-300); color: var(--on-dark); }
mark { background: rgb(255 182 39 / 0.25); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---- Comment count / button on rows ---- */
.comment-btn {
  display: inline-flex; align-items: center; gap: 5px; border: 0; cursor: pointer;
  background: none; color: var(--on-dark-3); font-size: 12px; padding: 3px 8px; border-radius: var(--r-control);
  font-variant-numeric: tabular-nums; transition: color 200ms var(--ease), background-color 200ms var(--ease);
}
.comment-btn svg { width: 14px; height: 14px; }
.comment-btn:hover { color: var(--on-dark); background: rgb(255 255 255 / 0.06); }
.comment-btn.has { color: var(--brand-300); }
li.open-comments { background: rgb(94 196 168 / 0.06); box-shadow: inset 3px 0 0 var(--brand-300); }
.meta .from { color: var(--on-dark-3); }

/* ---- Comments drawer ---- */
.drawer {
  position: fixed; top: 40px; right: 0; bottom: 49px; z-index: 20; width: min(400px, 100vw);
  display: grid; grid-template-rows: auto 1fr auto;
  background: var(--forest-950); border-left: 1px solid var(--forest-800);
  box-shadow: -24px 0 60px rgb(0 0 0 / 0.35);
  transform: translateX(104%); transition: transform 420ms var(--ease);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; gap: 12px; align-items: flex-start; padding: 18px 18px 14px; border-bottom: 1px solid var(--hairline); }
.drawer-title { flex: 1; min-width: 0; }
.drawer-title h2 { margin: 0; font: 600 18px/1.3 var(--font-display); letter-spacing: -0.015em; word-break: break-word; }
.drawer-title .kicker { margin-bottom: 4px; }
.small { font-size: 12px; }
.icon-btn { border: 0; background: none; color: var(--on-dark-3); cursor: pointer; font-size: 14px; width: 30px; height: 30px; border-radius: var(--r-pill); flex: none; transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.icon-btn:hover { background: rgb(255 255 255 / 0.06); color: var(--on-dark); }
.thread { overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 14px; }
.thread .empty-thread { color: var(--on-dark-3); text-align: center; margin: auto 0; font-size: 14px; }
.comment { display: grid; grid-template-columns: 28px 1fr; gap: 10px; animation: rise 360ms var(--ease) both; }
.comment .avatar { width: 28px; height: 28px; font-size: 11px; }
.comment-head { display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.comment-head b { font-weight: 600; color: var(--on-dark); }
.comment-head time { color: var(--on-dark-3); font-size: 12px; }
.comment-head .del { margin-left: auto; border: 0; background: none; color: var(--on-dark-3); font-size: 12px; cursor: pointer; opacity: 0; transition: opacity 150ms ease; }
.comment:hover .del { opacity: 1; }
.comment-head .del:hover { color: var(--error-on-dark); }
.comment-body { margin-top: 2px; font-size: 14px; color: var(--on-dark-2); white-space: pre-wrap; word-break: break-word; }
.comment-form { padding: 12px 18px 16px; border-top: 1px solid var(--hairline); display: grid; gap: 8px; }
.comment-form textarea { width: 100%; resize: none; background: var(--forest-975); border: 1px solid var(--hairline); border-radius: var(--r-control); padding: 9px 11px; outline: none; color: var(--on-dark); font: inherit; font-size: 14px; }
.comment-form textarea:focus { border-color: var(--brand-300); }
.comment-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.btn--small { min-height: 34px; padding: 4px 16px; font-size: 13px; }

/* ---- Settings ---- */
.settings { width: min(480px, calc(100vw - 32px)); padding: 0; }
.settings-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; }
.settings-head h2 { margin: 0; font: 600 20px/1.2 var(--font-display); letter-spacing: -0.02em; }
.settings section { padding: 10px 20px 16px; border-bottom: 1px solid var(--hairline); display: grid; gap: 12px; }
.settings h3 { margin: 4px 0 0; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-300); }
.inline-form { display: flex; gap: 8px; align-items: end; }
.inline-form .field { flex: 1; }
.inline-form .field input { height: 36px; width: 100%; background: var(--forest-975); border: 1px solid var(--hairline); border-radius: var(--r-control); padding: 0 10px; color: var(--on-dark); outline: none; }
.inline-form .field input:focus { border-color: var(--brand-300); }
.danger-zone { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 4px; }
.danger-zone p { flex: 1 1 100%; margin: 0; }
.settings-msg { margin: 0; padding: 12px 20px 16px; font-size: 13px; color: var(--brand-300); }
.settings-msg.err { color: var(--error-on-dark); }

@media (max-width: 720px) {
  .drawer { bottom: 0; top: 0; }
  .filters .shortcut { display: none; }
}

/* ---- Email code ---- */
.code-input {
  font: 600 26px/1 var(--font-display) !important; letter-spacing: 0.35em; text-align: center;
  height: 56px !important; font-variant-numeric: tabular-nums;
}
.code-input::placeholder { color: var(--on-dark-3); letter-spacing: 0.35em; }
.auth-card b { color: var(--on-dark); font-weight: 600; word-break: break-all; }
.note { margin: 0; font-size: 13px; color: var(--brand-300); }

/* ---- From Notion ---- */
.avatar.notion-icon {
  width: 26px; height: 26px; border-radius: 7px; background: #f7f7f5; color: #191919;
  font: 700 13px/1 Georgia, 'Times New Roman', serif; display: grid; place-items: center;
}
.nav-item .avatar.notion-icon { width: 22px; height: 22px; font-size: 12px; justify-self: center; }
li.inbox-item { grid-template-columns: 26px 1fr auto; align-items: center; }
.name.static { cursor: default; }
.inbox-actions { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.link-btn { border: 0; background: none; color: var(--on-dark-3); cursor: pointer; font-size: 12px; padding: 4px 6px; border-radius: var(--r-control); transition: color 200ms var(--ease), background-color 200ms var(--ease); }
.link-btn:hover { color: var(--on-dark); background: rgb(255 255 255 / 0.06); }
.notion-link { border: 0; background: none; padding: 0; cursor: pointer; color: var(--on-dark-3); font-size: 12px; }
.notion-link:hover { color: var(--brand-300); text-decoration: underline; }
.notion-status { display: grid; gap: 6px; }
.notion-status .row-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--on-dark-2); }
.notion-status .row-line .err { color: var(--signal); }
@media (max-width: 720px) { li.inbox-item { grid-template-columns: 26px 1fr; } .inbox-actions { grid-column: 1 / -1; justify-content: flex-start; } }

/* ---- Task panel (Notion-style page for one task) ---- */
.drawer.task-panel { width: min(600px, 100vw); }
.task-panel .drawer-title h2 {
  font-size: 22px; line-height: 1.25; outline: none; border-radius: 6px; padding: 2px 4px; margin-left: -4px;
  transition: background-color 150ms ease;
}
.task-panel .drawer-title h2:hover { background: rgb(255 255 255 / 0.04); }
.task-panel .drawer-title h2:focus { background: rgb(255 255 255 / 0.06); box-shadow: 0 0 0 1px var(--brand-300); }
.panel-scroll { overflow-y: auto; padding: 8px 18px 24px; min-height: 0; }
.task-panel .thread { overflow: visible; padding: 0; }
.panel-section { margin-top: 22px; }
.panel-section h3 {
  margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-300);
  display: flex; align-items: center; gap: 8px;
}
.panel-section h3 .actions { margin-left: auto; display: flex; gap: 4px; text-transform: none; letter-spacing: 0; font-weight: 500; }

/* Property rows: icon + label on the left, editable value on the right (like Notion) */
.props { display: grid; grid-template-columns: 150px 1fr; gap: 2px 8px; align-items: center; }
.prop-label { display: flex; align-items: center; gap: 8px; color: var(--on-dark-3); font-size: 13px; padding: 6px 0; }
.prop-label .ic { width: 16px; text-align: center; opacity: .8; }
.prop-value { min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--on-dark); }
.prop-value select, .prop-value input[type="datetime-local"] {
  background: transparent; border: 1px solid transparent; border-radius: var(--r-control); color: var(--on-dark);
  padding: 5px 8px; font: inherit; font-size: 14px; outline: none; cursor: pointer; max-width: 100%;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.prop-value select:hover, .prop-value input[type="datetime-local"]:hover { background: rgb(255 255 255 / 0.05); }
.prop-value select:focus, .prop-value input[type="datetime-local"]:focus { border-color: var(--brand-300); background: var(--forest-975); }
.prop-value select option { background: var(--forest-950); }
.prop-value .check.small { margin: 0; }
.prop-value .static { padding: 5px 8px; color: var(--on-dark-2); }
.pill-status { display: inline-flex; align-items: center; gap: 6px; }
.pill-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-dark-3); }
.pill-status.progress::before { background: var(--brand-300); }
.pill-status.done::before { background: var(--brand-500); }
.props hr { grid-column: 1 / -1; width: 100%; border: 0; border-top: 1px solid var(--hairline); margin: 6px 0; }
.panel-notes {
  width: 100%; resize: vertical; min-height: 64px; background: transparent; border: 1px solid var(--hairline);
  border-radius: var(--r-control); padding: 9px 11px; color: var(--on-dark); font: inherit; font-size: 14px; outline: none;
}
.panel-notes:focus { border-color: var(--brand-300); background: var(--forest-975); }

/* Notion context */
.notion-section .avatar.notion-icon { width: 18px; height: 18px; font-size: 11px; border-radius: 5px; }
.notion-meta { font-size: 12px; color: var(--on-dark-3); margin: -2px 0 10px; }
.notion-props { display: grid; grid-template-columns: 150px 1fr; gap: 6px 8px; font-size: 13px; margin-bottom: 14px; }
.notion-props dt { color: var(--on-dark-3); }
.notion-props dd { margin: 0; color: var(--on-dark-2); word-break: break-word; }
.notion-content { border-left: 2px solid var(--forest-800); padding: 2px 0 2px 12px; display: grid; gap: 6px; font-size: 14px; color: var(--on-dark-2); }
.notion-content .nb { margin: 0; white-space: pre-wrap; word-break: break-word; }
.notion-content .nb.h1 { font: 600 18px/1.3 var(--font-display); color: var(--on-dark); margin-top: 6px; }
.notion-content .nb.h2 { font: 600 16px/1.3 var(--font-display); color: var(--on-dark); margin-top: 4px; }
.notion-content .nb.h3 { font-weight: 600; color: var(--on-dark); }
.notion-content .nb.bullet::before { content: "•"; margin-right: 8px; color: var(--on-dark-3); }
.notion-content .nb.number::before { content: "–"; margin-right: 8px; color: var(--on-dark-3); }
.notion-content .nb.todo::before { content: "☐"; margin-right: 8px; color: var(--on-dark-3); }
.notion-content .nb.todo.checked { text-decoration: line-through; color: var(--on-dark-3); }
.notion-content .nb.todo.checked::before { content: "☑"; color: var(--brand-300); }
.notion-content .nb.toggle::before { content: "▸"; margin-right: 8px; color: var(--on-dark-3); }
.notion-content .nb.quote { border-left: 2px solid var(--on-dark-3); padding-left: 10px; font-style: italic; }
.notion-content .nb.callout { background: rgb(255 255 255 / 0.04); border-radius: var(--r-control); padding: 8px 10px; }
.notion-content .nb.code { font-family: ui-monospace, 'Cascadia Code', monospace; font-size: 12px; background: var(--forest-975); border-radius: 6px; padding: 8px 10px; }
.notion-content .nb.divider { border-top: 1px solid var(--hairline); height: 0; }
.notion-content .nb.page::before { content: "📄"; margin-right: 6px; }
.notion-content .nb.file::before { content: "📎"; margin-right: 6px; }
.notion-content .nb.link { color: var(--brand-300); }
.notion-empty { color: var(--on-dark-3); font-size: 13px; margin: 0; }
.notion-discussion { display: grid; gap: 10px; margin-top: 14px; }
.notion-discussion .who { font-size: 13px; color: var(--on-dark); font-weight: 600; }
.notion-discussion .who time { font-weight: 400; color: var(--on-dark-3); margin-left: 6px; font-size: 12px; }
.notion-discussion p { margin: 2px 0 0; font-size: 14px; color: var(--on-dark-2); white-space: pre-wrap; word-break: break-word; }
.notion-loading { display: flex; align-items: center; gap: 10px; color: var(--on-dark-3); font-size: 13px; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--forest-800); border-top-color: var(--brand-300); animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hint-note { font-size: 12px; color: var(--signal); margin: 8px 0 0; }

@media (max-width: 720px) {
  .props, .notion-props { grid-template-columns: 110px 1fr; }
}

/* ---- Notes: a dated work log ---- */
#notesSection h3 .count { color: var(--on-dark-3); letter-spacing: 0; }
.notes-log { position: relative; display: grid; gap: 0; margin: 2px 0 10px; }
.notes-log .empty-thread { color: var(--on-dark-3); font-size: 13px; margin: 0 0 4px; }
.note-day {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-3);
  margin: 12px 0 6px; display: flex; align-items: center; gap: 8px;
}
.note-day:first-child { margin-top: 2px; }
.note-day::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
.note-day .dayn { color: var(--brand-300); letter-spacing: .04em; }
.note {
  position: relative; padding: 2px 0 10px 18px; margin-left: 5px; border-left: 2px solid var(--forest-800);
  animation: rise 360ms var(--ease) both;
}
.note::before {
  content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--forest-950); border: 2px solid var(--brand-300);
}
.note-head { display: flex; gap: 8px; align-items: baseline; font-size: 12px; color: var(--on-dark-3); }
.note-head time { color: var(--on-dark-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.note-head .del { margin-left: auto; border: 0; background: none; color: var(--on-dark-3); font-size: 12px; cursor: pointer; opacity: 0; transition: opacity 150ms ease; }
.note:hover .del { opacity: 1; }
.note-head .del:hover { color: var(--error-on-dark); }
.note-body { margin-top: 3px; font-size: 14px; color: var(--on-dark); white-space: pre-wrap; word-break: break-word; }
.note-form { display: grid; gap: 6px; }
.note-form textarea { width: 100%; resize: vertical; background: transparent; border: 1px solid var(--hairline); border-radius: var(--r-control); padding: 9px 11px; outline: none; color: var(--on-dark); font: inherit; font-size: 14px; }
.note-form textarea:focus { border-color: var(--brand-300); background: var(--forest-975); }
.note-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
li .notes .note-date { color: var(--brand-300); margin-right: 6px; font-variant-numeric: tabular-nums; }


/* =================== Timewell layout (full-window, premium) =================== */
body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 640px at 100% 100%, rgb(63 208 163 / 0.06), transparent 62%),
    radial-gradient(900px 500px at 0% 0%, rgb(63 208 163 / 0.035), transparent 60%),
    var(--forest-975);
  background-attachment: fixed;
}
::-webkit-scrollbar-thumb { background: var(--forest-800); border-color: var(--forest-975); }

/* Top bar: brand, workspace switcher, desktop-app pill, account. */
.titlebar {
  height: var(--bar-h); padding: 0 18px; gap: 18px; z-index: 25;
  background: rgb(19 23 22 / 0.86); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
}
body.desktop .titlebar { padding-right: 150px; border-bottom: 1px solid var(--hairline); }
.titlebar button, .titlebar a { -webkit-app-region: no-drag; }
body:not([data-screen="app"]) .app-only { display: none !important; }
.brand { display: inline-flex; align-items: center; gap: 10px; user-select: none; }
.brand-mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-300); color: var(--ink-900);
  box-shadow: 0 0 0 4px rgb(63 208 163 / 0.12);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-name { font: 700 17px/1 var(--font-display); letter-spacing: -0.02em; }
.ws-wrap { position: relative; }
.workspace-btn {
  display: inline-flex; width: auto; gap: 6px; margin: 0; padding: 7px 10px; align-items: center;
  font: 600 14px/1 var(--font-sans); letter-spacing: 0;
}
.workspace-btn .chev { width: 15px; height: 15px; color: var(--on-dark-3); font-size: 0; }
.workspace-btn:hover { background: rgb(255 255 255 / 0.05); }
.ws-menu { position: absolute; left: 0; right: auto; top: 44px; width: 240px; z-index: 30 !important; background: var(--forest-950); }
.top-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px;
  border-radius: var(--r-pill); border: 1px solid var(--forest-800); background: rgb(255 255 255 / 0.03);
  color: var(--on-dark); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease);
}
.top-pill svg { width: 16px; height: 16px; color: var(--on-dark-2); }
.top-pill:hover { background: rgb(255 255 255 / 0.07); border-color: rgb(255 255 255 / 0.16); }
.me-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; padding: 0; flex: none;
  background: var(--forest-900); color: var(--brand-300); font: 700 13px/1 var(--font-sans);
  box-shadow: inset 0 0 0 1px rgb(63 208 163 / 0.22);
  transition: box-shadow 200ms var(--ease), transform 160ms var(--ease);
}
.me-btn:hover { box-shadow: inset 0 0 0 1px var(--brand-300); }
.me-btn:active { transform: scale(0.95); }

/* Sidebar + page fill the whole window at any size. */
.layout { grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: calc(100vh - var(--bar-h)); }
.sidebar {
  top: var(--bar-h); height: calc(100vh - var(--bar-h));
  display: flex; flex-direction: column; padding: 18px 12px 14px;
  border-right: 1px solid var(--hairline); background: rgb(0 0 0 / 0.12);
}
.sidebar nav { display: grid; }
.side-label { margin: 0 0 6px 10px; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--on-dark-3); }
.side-label:not(:first-child) { margin-top: 18px; }
.nav-item { padding: 7px 10px 7px 8px; font-size: 14px; gap: 10px; grid-template-columns: 22px 1fr auto; }
.nav-item .avatar { width: 22px; height: 22px; border-radius: 6px; font-size: 10px; }
.nav-item.active, .nav-item.active:hover { color: var(--brand-300); font-weight: 600; }
.nav-item.active .avatar:not(.icon) { background: var(--brand-300); color: var(--ink-900); transform: none; }
.avatar.icon svg { width: 19px; height: 19px; display: block; }
.nav-indicator { left: 12px; right: 12px; background: rgb(63 208 163 / 0.12); box-shadow: none; }
.nav-indicator::before { display: none; }
.new-client input, .invite-btn { border-color: rgb(255 255 255 / 0.1); }
.member { font-size: 13.5px; padding: 4px 10px 4px 8px; grid-template-columns: 22px 1fr auto; }
.member .avatar { width: 22px; height: 22px; font-size: 9.5px; }
.side-foot { margin-top: auto; padding-top: 14px; display: grid; gap: 8px; }
.side-foot::before { content: ""; height: 1px; background: var(--hairline); margin: 0 -12px 4px; }
.me-row { display: flex; align-items: center; gap: 8px; padding: 2px 2px 0 6px; }
.me-row .avatar { width: 28px; height: 28px; font-size: 11px; }
.me-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; color: var(--on-dark-2); }
.me-row .icon-btn { width: 30px; height: 30px; display: grid; place-items: center; }
.me-row .icon-btn svg { width: 17px; height: 17px; }
.side-foot .check { font-size: 12.5px; padding-left: 8px; }
.side-foot .shortcuts { margin: 0; padding-left: 8px; font-size: 11px; color: var(--on-dark-3); }

.page { max-width: none; width: 100%; padding: 30px clamp(20px, 3vw, 44px) 56px; transition: padding-right 420ms var(--ease); }
.page > * { max-width: 1600px; margin-inline: auto; }
header { margin-bottom: 22px; }
.kicker { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--on-dark-3); margin-bottom: 4px; }
h1 { font: 700 28px/1.15 var(--font-display); letter-spacing: -0.025em; }
.summary { font-size: 13.5px; color: var(--on-dark-3); }

/* Stat tiles, like the dashboard's top strip. */
.stats {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 18px;
  background: var(--forest-950); border: 1px solid var(--hairline); border-radius: var(--r-card); overflow: hidden;
}
.stat { display: grid; justify-items: center; gap: 4px; padding: 14px 10px 16px; border-left: 1px solid var(--hairline); }
.stat:first-child { border-left: 0; }
.stat-label { font-size: 12px; color: var(--on-dark-3); }
.stat-value { font: 600 26px/1.1 var(--font-sans); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat.signal .stat-value { color: var(--signal); }
.stat.mint .stat-value { color: var(--brand-300); }
.stat.late .stat-value { color: var(--error-on-dark); }

/* Search + filters */
.filters { margin: 0 0 14px; }
.search, .filters select { height: 40px; background: var(--forest-950); border-color: var(--hairline); }
.search { border-radius: var(--r-control); }
.filters select { border-radius: var(--r-control); padding: 0 14px; }

/* Composer: a Timewell-style entry bar. */
.card { background: var(--forest-950); border-radius: var(--r-card); margin-bottom: 24px; }
.card.composer { padding: 8px 10px 8px 14px; }
.card.composer.open { padding: 14px 18px 18px; border-color: rgb(63 208 163 / 0.28); box-shadow: 0 18px 50px rgb(0 0 0 / 0.4); }
.composer-plus { width: 32px; height: 32px; border-color: var(--forest-800); }
.composer #title { padding: 10px 0; }
.field input, .field select, textarea { background: var(--forest-975); }

/* Buttons: mint primary (dark text), quiet ghost. */
.btn { min-height: 40px; font-size: 14px; font-weight: 600; }
.btn--primary { background: var(--brand-300); color: var(--ink-900); }
.btn--primary:hover { background: #5adcb4; }
.btn--primary .btn__badge { background: rgb(13 21 19 / 0.14); color: var(--ink-900); width: 28px; height: 28px; }
.btn--ghost { background: rgb(255 255 255 / 0.04); border-color: var(--forest-800); }
.btn--ghost:hover { background: rgb(255 255 255 / 0.09); color: var(--on-dark); }
.btn--small { min-height: 32px; font-size: 13px; }

/* Task groups are cards with a header strip. */
.group {
  margin-bottom: 18px; background: var(--forest-950); border: 1px solid var(--hairline);
  border-radius: var(--r-card); overflow: hidden;
}
.group h2 {
  margin: 0; padding: 13px 18px; background: var(--forest-925); border-bottom: 1px solid var(--hairline);
  font: 600 13.5px/1.2 var(--font-sans); letter-spacing: 0; text-transform: none; color: var(--on-dark);
}
.group h2 .count { color: var(--on-dark-3); font-weight: 500; }
.group.overdue h2 { color: var(--error-on-dark); }
.group.startnow { border-color: rgb(245 165 36 / 0.35); }
.group.startnow h2 { color: var(--signal); background: rgb(245 165 36 / 0.07); }
.group ul, .group.startnow ul { background: none; border: 0; border-radius: 0; }
li { padding: 13px 18px; gap: 14px; }
li:hover { background: rgb(255 255 255 / 0.022); }
.name { font-size: 14.5px; }
.tools button, .comment-btn { border-radius: 7px; }
.empty { border: 1px solid var(--hairline); background: var(--forest-950); border-radius: var(--r-card); padding: 56px 16px; }
.empty-title { font: 600 16px/1.3 var(--font-sans); color: var(--on-dark); }

/* Task panel: below the top bar, full height. On wide windows it docks beside the list. */
.drawer { top: var(--bar-h); bottom: 0; background: var(--forest-950); border-left: 1px solid var(--hairline); box-shadow: -30px 0 70px rgb(0 0 0 / 0.4); }
.drawer-head { padding: 20px 22px 16px; background: var(--forest-925); }
.panel-scroll { padding: 10px 22px 28px; }
.comment-form { padding: 12px 22px 16px; background: var(--forest-925); }
.panel-section h3, .settings h3 { font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--on-dark); }
@media (min-width: 1500px) {
  .drawer.task-panel { width: 580px; box-shadow: none; }
  .layout:has(.drawer.open) .page { padding-right: calc(580px + 32px); }
}

.toast { bottom: 24px; background: var(--forest-925); border-color: var(--forest-800); }
.toast-undo { background: rgb(63 208 163 / 0.12); color: var(--brand-300); }
.toast-undo:hover { background: rgb(63 208 163 / 0.22); }
.dialog { background: var(--forest-950); border-color: var(--forest-800); border-radius: var(--r-card); }
.auth-card { background: var(--forest-950); border-radius: 20px; box-shadow: 0 30px 80px rgb(0 0 0 / 0.35); }
.auth-card .kicker { color: var(--brand-300); }
.screen { min-height: calc(100vh - var(--bar-h)); }

/* Form labels in sentence case, like the rest of the app. */
.field span { font-size: 12.5px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--on-dark-2); }
.me-row .icon-btn svg { width: 16px; height: 16px; }

@media (max-width: 1100px) {
  :root { --side-w: 212px; }
  .stat-value { font-size: 22px; }
}
/* Narrow windows: the sidebar becomes a row of chips, stats wrap. */
@media (max-width: 720px) {
  :root { --bar-h: 52px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; height: auto; flex-direction: row; background: none; padding: 10px 16px; }
  .side-foot { display: none; }
  .brand-name, .top-pill { display: none; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(4) { border-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--hairline); }
  .page { padding: 18px 16px 40px; }
  .drawer { top: 0; }
}

/* Text-only buttons: equal padding on both sides so labels sit centred.
   (The base .btn padding is lopsided on purpose, for buttons with a round badge on the left.) */
.btn { justify-content: center; text-align: center; }
.btn--plain, .btn--danger, .btn--ghost { padding: 6px 20px; }
.btn--small, .btn--plain.btn--small, .btn--ghost.btn--small, .btn--danger.btn--small { padding: 4px 16px; }
.icon-btn { display: inline-grid; place-items: center; padding: 0; line-height: 1; }

/* ---- Notion section as a dropdown ---- */
.notion-section {
  border: 1px solid var(--hairline); border-radius: var(--r-well); background: var(--forest-925);
  overflow: hidden;
}
.nx-head { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; }
.nx-head .actions { display: flex; gap: 2px; flex: none; }
.nx-toggle {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; text-align: left;
  border: 0; background: none; color: var(--on-dark); cursor: pointer; padding: 9px 8px; border-radius: 10px;
  font: inherit; transition: background-color 150ms ease;
}
.nx-toggle:hover { background: rgb(255 255 255 / 0.04); }
.nx-title { font-size: 13px; font-weight: 600; flex: none; }
.nx-summary { font-size: 12px; color: var(--on-dark-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nx-toggle .notion-icon { display: grid; place-items: center; flex: none; width: 18px; height: 18px; font-size: 11px; border-radius: 5px; }
.nx-caret {
  width: 8px; height: 8px; flex: none; margin: 0 2px 0 4px;
  border-right: 1.6px solid var(--on-dark-3); border-bottom: 1.6px solid var(--on-dark-3);
  transform: rotate(-45deg); transition: transform 300ms var(--ease);
}
.notion-section.open > .nx-head .nx-caret { transform: rotate(45deg) translate(-2px, -1px); }
.nx-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 380ms var(--ease); }
.notion-section.open .nx-body { grid-template-rows: 1fr; }
.nx-inner { min-height: 0; overflow: hidden; padding: 0 16px; opacity: 0; transition: opacity 220ms ease, padding 380ms var(--ease); }
.notion-section.open .nx-inner { opacity: 1; padding: 4px 16px 14px; border-top: 1px solid var(--hairline); }
.notion-section:not(.open) .nx-inner { visibility: hidden; transition: opacity 220ms ease, padding 380ms var(--ease), visibility 0s 380ms; }
.notion-section .notion-meta { margin: 10px 0 4px; }
.nx-group { border-top: 1px solid var(--hairline); }
.nx-group:first-of-type { border-top: 0; }
.nx-group > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  padding: 10px 0; font-size: 12.5px; font-weight: 600; color: var(--on-dark-2); user-select: none;
}
.nx-group > summary::-webkit-details-marker { display: none; }
.nx-group > summary:hover { color: var(--on-dark); }
.nx-group > summary .nx-caret { margin-left: 0; width: 7px; height: 7px; }
.nx-group[open] > summary .nx-caret { transform: rotate(45deg) translate(-2px, -1px); }
.nx-group > summary .count { color: var(--on-dark-3); font-weight: 500; }
.nx-group[open] > :not(summary) { animation: rise 320ms var(--ease) both; margin-bottom: 12px; }
@media (max-width: 720px) { .nx-summary { display: none; } }
.nx-group .notion-props { margin: 2px 0 12px; }
.nx-group .notion-content, .nx-group .notion-discussion { margin-top: 2px; }

/* =================== Per-tab layouts =================== */
.view-hero { margin-bottom: 22px; }
.hero-card {
  background: var(--forest-950); border: 1px solid var(--hairline); border-radius: var(--r-card);
  padding: 16px 18px 18px; display: grid; gap: 14px; align-content: start; min-width: 0;
}
.hero-card h3 { margin: 0; display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; font-weight: 600; }
.hero-card h3 .count { color: var(--on-dark-3); font-weight: 500; font-size: 12.5px; }
.hero-foot { justify-self: start; margin: -4px 0 0; }
.bar { height: 6px; border-radius: 99px; background: var(--forest-800); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: var(--brand-300); transition: width 600ms var(--ease); }
.badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center;
  background: var(--signal); color: var(--ink-900); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
}

/* All tasks: overview */
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 16px; }
.client-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.client-card {
  display: grid; gap: 8px; text-align: left; cursor: pointer; font: inherit; color: inherit;
  background: var(--forest-925); border: 1px solid var(--hairline); border-radius: 12px; padding: 12px 14px 13px;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease), background-color 200ms var(--ease);
}
.client-card:hover { border-color: rgb(63 208 163 / 0.35); background: #232a28; transform: translateY(-2px); }
.client-card:active { transform: translateY(0) scale(0.99); }
.cc-top { display: flex; align-items: center; gap: 9px; min-width: 0; }
.cc-top .avatar { width: 26px; height: 26px; flex: none; font-size: 11px; }
.cc-name { font-weight: 600; font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-num { font-size: 12.5px; color: var(--on-dark-3); }
.cc-num b { font: 600 20px/1 var(--font-sans); color: var(--on-dark); margin-right: 2px; font-variant-numeric: tabular-nums; }
.cc-next { font-size: 12.5px; color: var(--on-dark-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-when { font-size: 12px; color: var(--on-dark-3); margin-top: -4px; }
.cc-when.late { color: var(--error-on-dark); }
.load { display: grid; gap: 10px; }
.load-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) minmax(60px, 1.2fr) 22px 44px; align-items: center; gap: 10px; font-size: 13px; }
.load-row .avatar { width: 24px; height: 24px; font-size: 10px; }
.load-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--on-dark-2); }
.load-n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.load-late { font-size: 11.5px; color: var(--error-on-dark); white-space: nowrap; }

/* My tasks: greeting + up next */
.myday { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.5fr); gap: 16px; }
.hello { background: var(--forest-950); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 18px 20px; display: grid; gap: 4px; align-content: start; }
.hello-line { margin: 0; font: 700 21px/1.2 var(--font-display); letter-spacing: -0.02em; }
.hello .muted { margin: 0; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.mini { background: var(--forest-925); border: 1px solid var(--hairline); border-radius: 11px; padding: 10px 12px; display: grid; gap: 2px; }
.mini-n { font: 600 22px/1.1 var(--font-sans); font-variant-numeric: tabular-nums; }
.mini-l { font-size: 11.5px; color: var(--on-dark-3); }
.mini.mint .mini-n { color: var(--brand-300); }
.focus {
  position: relative; overflow: hidden; border-radius: var(--r-card); padding: 18px 22px 20px;
  border: 1px solid rgb(63 208 163 / 0.25);
  background: radial-gradient(500px 220px at 100% 0%, rgb(63 208 163 / 0.14), transparent 70%), var(--forest-950);
  display: grid; gap: 6px; align-content: start;
}
.focus.signal { border-color: rgb(245 165 36 / 0.4); background: radial-gradient(500px 220px at 100% 0%, rgb(245 165 36 / 0.14), transparent 70%), var(--forest-950); }
.focus.late { border-color: rgb(240 104 108 / 0.4); background: radial-gradient(500px 220px at 100% 0%, rgb(240 104 108 / 0.12), transparent 70%), var(--forest-950); }
.focus-empty { border-color: var(--hairline); }
.focus-label { margin: 0; font-size: 12px; font-weight: 600; color: var(--brand-300); }
.focus.signal .focus-label { color: var(--signal); }
.focus.late .focus-label { color: var(--error-on-dark); }
.focus-title {
  margin: 0; padding: 0; border: 0; background: none; color: var(--on-dark); text-align: left; cursor: pointer;
  font: 700 22px/1.25 var(--font-display); letter-spacing: -0.02em;
}
.focus-title:hover { text-decoration: underline; text-decoration-color: var(--on-dark-3); text-underline-offset: 4px; }
.focus-title.static { cursor: default; }
.focus-title.static:hover { text-decoration: none; }
.focus-meta { margin: 0; font-size: 13px; color: var(--on-dark-2); }
.focus-actions { display: flex; gap: 8px; margin-top: 10px; }

/* Agenda rows (My tasks): the time comes first */
li.agenda { grid-template-columns: 22px 64px 1fr auto; }
.agenda-time { font-size: 12.5px; font-weight: 600; color: var(--on-dark-2); font-variant-numeric: tabular-nums; padding-top: 1px; }
.group.today h2 { color: var(--brand-300); }
.list-myday .group.startnow h2 { color: var(--signal); }

/* A client: progress header + board */
.client-hero {
  display: grid; grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center;
  background: var(--forest-950); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 18px 22px;
}
.ring {
  --p: 0; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--brand-300) calc(var(--p) * 1%), var(--forest-800) 0);
}
.ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--forest-950); }
.ring span { position: relative; font: 700 16px/1 var(--font-sans); font-variant-numeric: tabular-nums; }
.ch-main p { margin: 0; }
.ch-big { font: 700 20px/1.2 var(--font-display); letter-spacing: -0.02em; margin-bottom: 4px !important; }
.ch-col { display: grid; gap: 4px; min-width: 0; padding-left: 20px; border-left: 1px solid var(--hairline); }
.ch-label { font-size: 12px; color: var(--on-dark-3); }
.ch-val { font-size: 15px; font-weight: 600; }
.ch-val.late { color: var(--error-on-dark); }
.ch-val.dim { color: var(--on-dark-3); font-weight: 500; }
.ch-sub { border: 0; background: none; padding: 0; text-align: left; color: var(--on-dark-2); font: inherit; font-size: 12.5px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-sub:hover { color: var(--brand-300); }
.stack { display: flex; }
.stack .avatar { width: 30px; height: 30px; font-size: 11px; border: 2px solid var(--forest-950); margin-left: -8px; }
.stack .avatar:first-child { margin-left: 0; }

.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.board .group { margin: 0; }
.board .group[data-group="progress"] h2 { color: var(--brand-300); }
.board .group[data-group="done"] h2 { color: var(--on-dark-2); }
.col-empty { margin: 0; padding: 22px 16px; text-align: center; font-size: 13px; color: var(--on-dark-3); }
.col-more { display: block; margin: 0 auto; padding: 10px; }
li.compact { grid-template-columns: 20px 1fr; padding: 12px 14px; gap: 10px; }
li.compact .side { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; margin-top: 2px; }
li.compact .side:not(:has(.start-pill)) .comment-btn:not(.has) { display: none; }
li.compact .tools { opacity: 1; display: none; }
li.compact:hover .tools, li.compact:focus-within .tools { display: flex; }
li.compact .meta { gap: 4px 10px; }
li.compact .notes { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* No client: filing */
.triage-hero {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  background: var(--forest-950); border: 1px dashed rgb(63 208 163 / 0.3); border-radius: var(--r-card);
}
.triage-icon {
  width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--forest-900); position: relative;
}
.triage-icon::before { content: ""; position: absolute; inset: 12px 11px 13px; border: 1.6px solid var(--brand-300); border-top-width: 5px; border-radius: 3px; }
.th-title { margin: 0 0 2px; font: 700 17px/1.2 var(--font-display); letter-spacing: -0.015em; }
.triage-hero .muted { margin: 0; }
.file-under {
  height: 30px; border-radius: 8px; border: 1px solid rgb(63 208 163 / 0.35); background: rgb(63 208 163 / 0.08);
  color: var(--brand-300); font: inherit; font-size: 12.5px; font-weight: 600; padding: 0 8px; cursor: pointer; outline: none;
}
.file-under:hover, .file-under:focus { background: rgb(63 208 163 / 0.16); }
.file-under option { background: var(--forest-950); color: var(--on-dark); }

@media (max-width: 1100px) {
  .overview-grid, .myday { grid-template-columns: minmax(0, 1fr); }
  .client-hero { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); }
  .client-hero .ch-col:last-child { display: none; }
}
@media (max-width: 900px) {
  .board { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .client-hero { grid-template-columns: auto minmax(0, 1fr); }
  .client-hero .ch-col { display: none; }
  li.agenda { grid-template-columns: 22px 54px 1fr; }
  li.agenda .side { grid-column: 3; }
}

/* Board rows: nothing moves on hover. Start stays first; Edit/Delete fade in after it
   (they keep their space, so the row never shifts). */
li.compact .side { gap: 4px; }
li.compact .side .start-pill { order: 0; margin-right: 4px; }
li.compact .side .comment-btn { order: 1; }
li.compact .tools {
  order: 2; display: flex; opacity: 0; visibility: hidden;
  transition: opacity 180ms var(--ease), visibility 0s 180ms;
}
li.compact:hover .tools, li.compact:focus-within .tools {
  display: flex; opacity: 1; visibility: visible; transition: opacity 180ms var(--ease), visibility 0s;
}
li.compact .side:not(:has(.start-pill)) .comment-btn:not(.has) { display: inline-flex; }

/* All tasks: just the overview until you ask for the full list. */
body[data-mode="overview"]:not(.overview-list) #filters,
body[data-mode="overview"]:not(.overview-list) #form,
body[data-mode="overview"]:not(.overview-list) #list { display: none; }
.see-all {
  display: flex; align-items: center; gap: 10px; margin: 14px auto 0; padding: 8px 16px;
  border: 1px solid var(--hairline); border-radius: 99px; background: transparent; cursor: pointer;
  color: var(--on-dark-3); font: inherit; font-size: 13px; font-weight: 500;
  transition: color 200ms var(--ease), border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.see-all:hover { color: var(--on-dark); border-color: rgb(255 255 255 / 0.16); background: rgb(255 255 255 / 0.03); }
.see-all .nx-caret { margin: -3px 0 0; transform: rotate(45deg); }
.see-all.on .nx-caret { margin: 3px 0 0; transform: rotate(-135deg); }

/* No page header on any tab: each tab's own card says where you are. */
#viewHeader { display: none; }
body.renaming #viewHeader { display: block; }
.stats { margin: 0 0 18px; }
.client-hero { position: relative; }
.ch-name { margin: 0 0 2px !important; font-size: 12.5px; font-weight: 600; color: var(--brand-300); cursor: default; }
.ch-more { position: absolute; top: 10px; right: 10px; font-size: 18px; letter-spacing: 1px; }
.mini-menu {
  position: absolute; top: 44px; right: 10px; z-index: 6; min-width: 170px; display: grid; gap: 2px; padding: 6px;
  background: var(--forest-950); border: 1px solid var(--forest-800); border-radius: 10px;
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.45); animation: dialog-in 200ms var(--ease);
}
.mini-menu button { border: 0; background: none; color: var(--on-dark-2); text-align: left; padding: 8px 10px; border-radius: 6px; cursor: pointer; font: inherit; font-size: 13.5px; }
.mini-menu button:hover { background: rgb(255 255 255 / 0.05); color: var(--on-dark); }
.mini-menu button.del:hover { color: var(--error-on-dark); }

/* ---- Weekly report (My tasks) ---- */
.report {
  margin-top: 26px; background: var(--forest-950); border: 1px solid var(--hairline); border-radius: var(--r-card); overflow: hidden;
}
.rep-top { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 14px 18px; background: var(--forest-925); border-bottom: 1px solid var(--hairline); }
.rep-top h3 { margin: 0; font: 700 16px/1.2 var(--font-display); letter-spacing: -0.015em; }
.rep-top .muted { margin: 3px 0 0; }
.rep-tools { display: flex; align-items: center; gap: 6px; }
.rep-tools .icon-btn { font-size: 20px; line-height: 1; border: 1px solid var(--hairline); }
.rep-tools .icon-btn:disabled { opacity: 0.35; cursor: default; }
.rep-tools .btn:disabled { opacity: 0.45; cursor: default; }
.rep-body { padding: 6px 18px 16px; }
.rep-day + .rep-day { border-top: 1px solid var(--hairline); }
.rep-date { margin: 12px 0 6px; font-size: 12px; font-weight: 600; color: var(--on-dark-3); }
.rep-item { display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding: 8px 0 10px; }
.rep-tick {
  width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--brand-500); position: relative;
}
.rep-tick::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid var(--ink-900); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.rep-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rep-title { border: 0; background: none; padding: 0; color: var(--on-dark); font: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer; text-align: left; }
.rep-title:hover { color: var(--brand-300); }
.rep-head .client-tag, .rep-head .tag { font-size: 12px; }
.rep-head .client-tag { color: var(--on-dark-2); display: inline-flex; align-items: center; gap: 5px; }
.rep-head .client-tag::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--brand-500); }
.rep-head .tag { color: var(--brand-300); }
.rep-head time { margin-left: auto; font-size: 12px; color: var(--on-dark-3); font-variant-numeric: tabular-nums; }
.rep-sum { margin: 4px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--on-dark-2); max-width: 80ch; }
.rep-empty { margin: 14px 0 6px; color: var(--on-dark-3); font-size: 13.5px; }
.mini.link { cursor: pointer; transition: border-color 200ms var(--ease), background-color 200ms var(--ease); }
.mini.link:hover { border-color: rgb(63 208 163 / 0.35); background: #232a28; }
.mini.link .mini-l::after { content: " →"; }
#weeklyReport { scroll-margin-top: calc(var(--bar-h) + 16px); }
.rep-sum.none { color: var(--on-dark-3); font-style: italic; font-size: 13px; }

/* ---- Drag cards between board columns ---- */
.board li[data-id] { cursor: grab; }
body.dragging, body.dragging * { cursor: grabbing !important; user-select: none; }
li.drag-source { opacity: 0.28; transition: opacity 150ms ease; }
.drag-card {
  position: fixed; z-index: 60; margin: 0; pointer-events: none; list-style: none;
  background: var(--forest-925); border: 1px solid rgb(63 208 163 / 0.4); border-radius: 12px;
  box-shadow: 0 26px 60px rgb(0 0 0 / 0.55), 0 0 0 1px rgb(0 0 0 / 0.2);
  will-change: transform;
}
.drag-card .tools { display: none !important; }
.board .column { transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease), background-color 180ms var(--ease); }
.board .column.drop-target {
  border-color: rgb(63 208 163 / 0.6); background: #1d2422;
  box-shadow: 0 0 0 3px rgb(63 208 163 / 0.12);
}
.board .column.drop-target .col-empty { color: var(--brand-300); }

/* ---- Repeat on chosen days ---- */
.day-pick-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: -2px; }
.day-pick-label { font-size: 12.5px; font-weight: 500; color: var(--on-dark-2); }
.day-picker { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.day-picker .day {
  width: 32px; height: 32px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid var(--forest-800); background: transparent; color: var(--on-dark-2);
  font: 600 12.5px/1 var(--font-sans);
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease), transform 140ms var(--ease);
}
.day-picker .day:hover { border-color: rgb(63 208 163 / 0.5); color: var(--on-dark); }
.day-picker .day:active { transform: scale(0.92); }
.day-picker .day[aria-pressed="true"] { background: var(--brand-300); border-color: var(--brand-300); color: var(--ink-900); }
.prop-value .day-picker { flex-basis: 100%; padding: 2px 0 4px 8px; }
.prop-value .day-picker .day { width: 28px; height: 28px; font-size: 11.5px; }

/* ---- Dropdown menus (replace the system's blue list) ---- */
.select-pop {
  position: fixed; z-index: 80; overflow-y: auto; padding: 5px;
  display: grid; gap: 1px; max-width: min(360px, calc(100vw - 24px));
  background: var(--forest-950); border: 1px solid var(--forest-800); border-radius: 12px;
  box-shadow: 0 18px 48px rgb(0 0 0 / 0.5), 0 0 0 1px rgb(0 0 0 / 0.25);
  transform-origin: top center; animation: select-in 140ms var(--ease) both;
}
.select-pop.up { transform-origin: bottom center; }
.select-pop.leaving { animation: select-out 110ms ease both; pointer-events: none; }
@keyframes select-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.select-pop.up { animation-name: select-in-up; }
@keyframes select-in-up { from { opacity: 0; transform: translateY(4px) scale(0.98); } }
@keyframes select-out { to { opacity: 0; transform: scale(0.98); } }
.select-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border: 0; border-radius: 8px; padding: 8px 10px 8px 12px; cursor: pointer;
  background: transparent; color: var(--on-dark-2); font: inherit; font-size: 14px; line-height: 1.3;
}
.select-item .select-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-item.active { background: rgb(255 255 255 / 0.06); color: var(--on-dark); }
.select-item.selected { color: var(--brand-300); font-weight: 600; }
.select-item.selected .select-check {
  width: 6px; height: 11px; margin: -3px 2px 0 0; flex: none;
  border: solid var(--brand-300); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.select-item:disabled { opacity: 0.4; cursor: default; }
.select-pop::-webkit-scrollbar { width: 8px; }
.select-pop::-webkit-scrollbar-thumb { border: 2px solid var(--forest-950); }
select.menu-open { border-color: var(--brand-300) !important; box-shadow: 0 0 0 3px rgb(63 208 163 / 0.15); }
/* Weekly report grouped by client */
.rep-client .rep-date { display: flex; align-items: center; gap: 9px; margin: 16px 0 6px; font-size: 13.5px; font-weight: 600; color: var(--on-dark); }
.rep-client .rep-date .avatar { width: 22px; height: 22px; font-size: 9.5px; border-radius: 6px; }
.rep-client .rep-date .count { color: var(--on-dark-3); font-weight: 500; }

/* ---- My tasks: client sub tabs ---- */
.sub-tabs {
  position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  margin: 0 0 16px; border-bottom: 1px solid var(--hairline);
}
.sub-tabs::-webkit-scrollbar { display: none; }
.sub-tab {
  flex: none; display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 14px 12px;
  border: 0; background: none; cursor: pointer; white-space: nowrap;
  color: var(--on-dark-2); font: inherit; font-size: 14px; font-weight: 500;
  border-radius: 8px 8px 0 0; transition: color 200ms var(--ease), background-color 200ms var(--ease);
}
.sub-tab:hover { color: var(--on-dark); background: rgb(255 255 255 / 0.03); }
.sub-tab.active { color: var(--on-dark); font-weight: 700; }
.sub-n { font-size: 12px; font-weight: 500; color: var(--on-dark-3); font-variant-numeric: tabular-nums; }
.sub-tab.active .sub-n { color: var(--brand-300); }
.sub-ink {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; border-radius: 2px;
  background: var(--brand-300); pointer-events: none;
}
.sub-ink.ready { transition: transform 360ms var(--ease), width 360ms var(--ease); }
.rep-top h3 .rep-who { margin-left: 10px; font: 500 13px/1 var(--font-sans); color: var(--on-dark-3); letter-spacing: 0; }
.rep-client + .rep-client { border-top: 0; }

/* =================== Amber accent =================== */
/* Amber marks what you act on or select; green stays for progress and "done". */
:root { --accent: #ffb627; --accent-hover: #ffc95e; --accent-soft: rgb(255 182 39 / 0.12); --accent-line: rgb(255 182 39 / 0.45); --signal: #ffb627; --signal-hover: #ffc95e; }
:focus-visible { outline-color: var(--accent); }

/* Main buttons */
.btn--primary { background: var(--accent); color: var(--ink-900); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary .btn__badge { background: var(--forest-950); color: var(--accent); }

/* Add-task bar */
.composer.open .composer-plus, .composer.open .composer-plus:hover { background: var(--accent); border-color: var(--accent); color: var(--ink-900); }
.composer-plus { color: var(--accent); }
.composer-plus:hover { border-color: var(--accent); background: var(--accent-soft); }
.card.composer.open { border-color: var(--accent-line); }

/* Fields and menus */
.field input:focus, .field select:focus, textarea:focus, .search:focus-within,
.inline-form .field input:focus, .comment-form textarea:focus, .note-form textarea:focus, .new-client input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select.menu-open { border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-soft); }
.select-item.selected { color: var(--accent); }
.select-item.selected .select-check { border-color: var(--accent); }
.prop-value select:focus, .prop-value input[type="datetime-local"]:focus { border-color: var(--accent); }

/* Navigation: sidebar, sub tabs, workspace menu */
.nav-indicator { background: var(--accent-soft); }
.nav-item.active, .nav-item.active:hover { color: var(--accent); }
.nav-item.active .avatar:not(.icon) { background: var(--accent); color: var(--ink-900); }
.nav-item.active .avatar.icon { color: var(--accent); }
.sub-ink { background: var(--accent); }
.sub-tab.active .sub-n { color: var(--accent); }
.see-all:hover { border-color: var(--accent-line); color: var(--on-dark); }

/* Small controls */
.day-picker .day[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink-900); }
.day-picker .day:hover { border-color: var(--accent-line); }
.toast-undo { background: var(--accent-soft); color: var(--accent); }
.toast-undo:hover { background: rgb(255 182 39 / 0.22); }
.me-btn { color: var(--accent); background: rgb(255 182 39 / 0.1); box-shadow: inset 0 0 0 1px var(--accent-line); }
.me-btn:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.client-card:hover { border-color: var(--accent-line); }
.mini.link:hover { border-color: var(--accent-line); }
.task-panel .drawer-title h2:focus { box-shadow: 0 0 0 1px var(--accent); }
.title-row input.rename { border-color: var(--accent); }
.board .column.drop-target { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.board .column.drop-target .col-empty { color: var(--accent); }
.drag-card { border-color: var(--accent-line); }

/* ---- @mentions ---- */
.mention { color: var(--accent); font-weight: 600; background: var(--accent-soft); border-radius: 5px; padding: 0 3px; }
.mention.me { color: var(--ink-900); background: var(--accent); }
.mention-pop .select-item { gap: 10px; }
.mention-pop .avatar { width: 24px; height: 24px; font-size: 10px; flex: none; }
.flash-mention { animation: flash-mention 1600ms var(--ease); border-radius: 10px; }
@keyframes flash-mention { 0%, 30% { background: var(--accent-soft); box-shadow: 0 0 0 6px var(--accent-soft); } 100% { background: transparent; box-shadow: 0 0 0 6px transparent; } }

/* ---- Notifications bell ---- */
.bell-wrap { position: relative; }
.bell-btn {
  position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--forest-800); background: rgb(255 255 255 / 0.03); color: var(--on-dark-2); cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.bell-btn svg { width: 19px; height: 19px; }
.bell-btn:hover, .bell-btn[aria-expanded="true"] { color: var(--on-dark); border-color: var(--accent-line); background: rgb(255 255 255 / 0.06); }
.bell-count {
  position: absolute; top: -4px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  display: grid; place-items: center; background: var(--accent); color: var(--ink-900);
  font: 700 10.5px/1 var(--font-sans); box-shadow: 0 0 0 2px var(--forest-975);
  animation: pop 360ms var(--ease);
}
.notif-panel {
  position: absolute; right: 0; top: 48px; z-index: 40; width: min(400px, calc(100vw - 24px));
  background: var(--forest-950); border: 1px solid var(--forest-800); border-radius: 14px;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.55); overflow: hidden; animation: select-in 160ms var(--ease) both;
  -webkit-app-region: no-drag;
}
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 10px 16px; border-bottom: 1px solid var(--hairline); background: var(--forest-925); }
.notif-head b { font-size: 14px; }
.notif-list { max-height: min(460px, calc(100vh - 140px)); overflow-y: auto; padding: 4px; display: grid; }
.notif {
  display: grid; grid-template-columns: 30px 1fr 10px; gap: 10px; align-items: start; width: 100%; text-align: left;
  border: 0; background: transparent; color: var(--on-dark-2); font: inherit; cursor: pointer; padding: 10px 10px 10px 12px; border-radius: 10px;
  transition: background-color 150ms ease;
}
.notif:hover { background: rgb(255 255 255 / 0.05); }
.notif .avatar { width: 30px; height: 30px; font-size: 11px; }
.notif-main { display: grid; gap: 3px; min-width: 0; }
.notif-line { font-size: 13.5px; line-height: 1.4; color: var(--on-dark-2); }
.notif-line b { color: var(--on-dark); font-weight: 600; }
.notif-quote { font-size: 13px; color: var(--on-dark-3); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notif-time { font-size: 11.5px; color: var(--on-dark-3); }
.notif-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; }
.notif.unread { background: rgb(255 182 39 / 0.04); }
.notif.unread .notif-dot { background: var(--accent); }
.notif-empty { display: grid; gap: 4px; padding: 30px 20px 32px; text-align: center; font-size: 13px; color: var(--on-dark-3); }
.notif-empty b { color: var(--on-dark); font-size: 14px; }

/* ---------- edit, links and screenshots in comments and notes ---------- */
.comment-main { min-width: 0; }
.entry-tools { margin-left: auto; display: inline-flex; gap: 2px; opacity: 0; transition: opacity 150ms ease; }
.comment:hover .entry-tools, .note:hover .entry-tools, .entry-tools:focus-within { opacity: 1; }
.entry-tools button { border: 0; background: none; color: var(--on-dark-3); font: inherit; font-size: 12px; cursor: pointer; padding: 2px 6px; border-radius: 6px; opacity: 1; margin: 0; }
.entry-tools .edit:hover { color: var(--on-dark); background: rgb(255 255 255 / 0.06); }
.entry-tools .del:hover { color: var(--error-on-dark); background: rgb(240 104 108 / 0.08); }
.edited { font-size: 11.5px; color: var(--on-dark-3); }
.comment-body .link, .note-body .link { color: var(--accent); text-decoration: underline; text-decoration-color: rgb(255 182 39 / 0.35); text-underline-offset: 2px; word-break: break-all; }
.comment-body .link:hover, .note-body .link:hover { text-decoration-color: var(--accent); }

.edit-box { display: grid; gap: 8px; margin-top: 6px; }
.edit-area { width: 100%; resize: vertical; min-height: 64px; background: var(--forest-975); border: 1px solid var(--accent); border-radius: var(--r-control); padding: 9px 11px; outline: none; color: var(--on-dark); font: inherit; font-size: 14px; line-height: 1.5; }
.edit-actions { display: flex; align-items: center; gap: 6px; }
.edit-actions .muted { margin-right: auto; }

.shots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.shot { position: relative; display: block; height: 96px; max-width: 100%; padding: 0; border: 1px solid var(--hairline); border-radius: 10px; overflow: hidden; background: var(--forest-975); cursor: zoom-in; transition: border-color 200ms var(--ease), transform 200ms var(--ease); }
.shots.one .shot { height: auto; max-height: 220px; width: min(100%, 320px); }
.shot:hover { border-color: rgb(255 255 255 / 0.2); }
.shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 240ms var(--ease); }
.shot img[src] { opacity: 1; }
.shots.grid .shot { height: 72px; }
.shot-wrap { position: relative; }
.shot-x { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--hairline); background: var(--forest-925); color: var(--on-dark-2); font-size: 10px; line-height: 1; display: grid; place-items: center; cursor: pointer; padding: 0; }
.shot-x:hover { color: var(--on-dark); background: var(--forest-900); }

.attach-section #attachBody { display: grid; gap: 10px; }
.attach-section .shots { margin-top: 0; }
.att-links { display: grid; gap: 4px; }
.att-link { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--r-control); background: rgb(255 255 255 / 0.03); border: 1px solid var(--hairline); color: var(--on-dark-2); text-decoration: none; font-size: 13px; transition: background-color 200ms var(--ease), border-color 200ms var(--ease); }
.att-link:hover { background: rgb(255 255 255 / 0.06); border-color: rgb(255 255 255 / 0.12); }
.att-link-icon { color: var(--accent); font-size: 13px; text-align: center; }
.att-link-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-link-text b { color: var(--on-dark); font-weight: 600; }
.att-link-text span { color: var(--on-dark-3); margin-left: 2px; }
.att-link-who { color: var(--on-dark-3); font-size: 11.5px; white-space: nowrap; }

/* the tray of screenshots waiting to be sent */
.tray { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 2px; }
.tray-item { position: relative; width: 64px; height: 48px; border-radius: 8px; border: 1px solid var(--hairline); background: var(--forest-975); }
.tray-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; display: block; }
.tray-item.uploading img { opacity: 0.45; }
.tray-item.error { border-color: var(--error-on-dark); }
.tray-item.error img { opacity: 0.35; }
.tray-spin { position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgb(255 255 255 / 0.25); border-top-color: var(--accent); animation: tray-spin 800ms linear infinite; }
@keyframes tray-spin { to { transform: rotate(360deg); } }
.tray-err { position: absolute; inset: 0; display: grid; place-items: center; color: var(--error-on-dark); font-weight: 700; }
.attach-btn { display: grid; place-items: center; margin-left: auto; }
.attach-btn svg { width: 16px; height: 16px; }
.note-actions .attach-btn + .btn, .comment-actions .attach-btn + .btn { margin-left: 0; }
.comment-form.busy button[type="submit"], .note-form.busy button[type="submit"] { opacity: 0.6; pointer-events: none; }
.comment-form.drop-on, .note-form.drop-on { outline: 2px dashed var(--accent); outline-offset: 4px; border-radius: var(--r-control); }

/* full-size view */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgb(8 10 10 / 0.82); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 48px 32px 32px; animation: lb-in 200ms var(--ease) both; }
@keyframes lb-in { from { opacity: 0; } }
.lightbox figure { margin: 0; display: grid; gap: 12px; max-width: min(1400px, 100%); max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 12px; box-shadow: 0 24px 60px rgb(0 0 0 / 0.5); background: var(--forest-975); justify-self: center; min-width: 120px; min-height: 80px; }
.lightbox figcaption { display: flex; align-items: center; gap: 12px; color: var(--on-dark-2); font-size: 13px; }
.lb-tools { margin-left: auto; display: flex; gap: 6px; }
@media (prefers-reduced-motion: reduce) { .lightbox, .tray-spin { animation: none; } .shot img { transition: none; } }
.shot-wrap { flex: none; max-width: 100%; }
.shots.one .shot-wrap { width: min(100%, 320px); }
.shots.one .shot-wrap .shot { width: 100%; }

/* Remember me on the sign-in card */
.auth-card .check.remember { font-size: 13px; margin: 2px 0 4px; justify-self: start; }
.auth-card .check.remember input { accent-color: var(--accent); }
