/* DMCA+ "Counsel" design system — shared by the marketing site, auth pages and the app. */

:root {
  --bg: #0e131c;
  --bg-deep: #0b1018;
  --panel: #121925;
  --panel-hover: #151d2a;
  --line: #263041;
  --line-soft: #1f2836;
  --line-strong: #3a4558;
  --chip: #2e394c;
  --ink: #ece8df;
  --body: #c4c9d2;
  --muted: #a9b0bd;
  --dim: #7c8596;
  --faint: #4a5160;
  --gold: oklch(0.8 0.09 80);
  --danger: oklch(0.75 0.11 35);
  --ok: oklch(0.78 0.09 150);
  --paper: #ece8df;
  --paper-ink: #0e131c;
  --paper-muted: #4a5160;

  --hue-received: oklch(0.78 0.09 80);
  --hue-viewed: oklch(0.78 0.09 240);
  --hue-processing: oklch(0.78 0.09 35);
  --hue-responded: oklch(0.78 0.09 150);
  --hue-customer_responded: oklch(0.78 0.09 300);
  --hue-missing_links: oklch(0.78 0.09 110);
  --hue-completed: oklch(0.78 0.05 200);
  --hue-archived: #7c8596;
  --hue-spam: #7c8596;

  --serif: 'Libre Caslon Text', Georgia, serif;
  --sans: 'Public Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); }
a:hover { color: var(--ink); }
img { max-width: 100%; }
summary::-webkit-details-marker { display: none; }
textarea, input, select, button { font-family: inherit; }
::-webkit-scrollbar { height: 10px; width: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); }
::-webkit-scrollbar-track { background: var(--bg); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Type helpers ---------- */
.serif { font-family: var(--serif); font-weight: 400; }
.mono { font-family: var(--mono); }
.gold { color: var(--gold); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.danger { color: var(--danger); }
.wordmark { font-family: var(--serif); font-size: 24px; letter-spacing: 0.02em; color: var(--ink); text-decoration: none; }
.wordmark span { color: var(--gold); }
.wordmark:hover { color: var(--ink); }
.eyebrow { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.eyebrow-rule { display: flex; align-items: center; gap: 16px; }
.eyebrow-rule::before, .eyebrow-rule::after { content: ""; width: 40px; height: 1px; background: var(--gold); }
.label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.caps { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.h-display { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 80px); line-height: 1.08; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
.h-section { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 52px); line-height: 1.12; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.h-page { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.01em; margin: 0; }
.h-detail { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 38px); line-height: 1.2; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; line-height: 1.3; border-radius: 0; text-align: center;
}
.btn:hover { color: var(--ink); border-color: var(--muted); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.btn-primary:hover { color: var(--bg); filter: brightness(1.08); border-color: var(--gold); }
.btn-outline { border-color: var(--gold); color: var(--gold); }
.btn-outline:hover { color: var(--ink); border-color: var(--ink); }
.btn-lg { padding: 16px 30px; font-size: 14px; }
.btn-sm { padding: 7px 12px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-text {
  background: none; border: 0; padding: 0 0 1px; color: var(--muted); font-size: 12px; cursor: pointer;
  border-bottom: 1px solid var(--line-strong); text-decoration: none; font-family: inherit;
}
.btn-text:hover { color: var(--ink); }
.btn-danger-text { background: none; border: 0; padding: 10px; color: var(--danger); font-size: 13px; cursor: pointer; width: 100%; }
.btn-danger-text:hover { text-decoration: underline; }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: var(--bg); border-color: var(--danger); }
form.button_to { display: contents; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label, .field .label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.input, .field input[type="text"], .field input[type="search"], .field input[type="email"], .field input[type="password"], .field input[type="url"], .field select, .field textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--line); color: var(--ink);
  padding: 11px 14px; font-size: 14px; outline: none; border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--gold); }
.field input:disabled { color: var(--dim); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field .hint { font-size: 12px; color: var(--dim); text-transform: none; letter-spacing: 0; }
.input-addon { display: flex; }
.input-addon input { flex: 1; min-width: 0; }
.input-addon span { border: 1px solid var(--line); border-left: 0; padding: 11px 14px; font-size: 13px; color: var(--dim); background: var(--bg-deep); white-space: nowrap; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.form-grid .span-all { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.check input { accent-color: var(--gold); width: 16px; height: 16px; }
.code-block {
  margin: 0; background: var(--bg-deep); border: 1px solid var(--line); padding: 16px 18px; font-family: var(--mono);
  font-size: 12.5px; line-height: 1.7; color: var(--body); white-space: pre-wrap; overflow-wrap: anywhere;
}

/* ---------- Flash ---------- */
.flash { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; border: 1px solid var(--line); border-left: 2px solid var(--ok); background: var(--panel); padding: 12px 16px; font-size: 14px; }
.flash-alert { border-left-color: var(--danger); }
.flash button { all: unset; cursor: pointer; color: var(--dim); font-size: 18px; line-height: 1; }
.flash button:hover { color: var(--ink); }
.flashes { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Dialog ---------- */
dialog.dialog { background: var(--panel); color: var(--ink); border: 1px solid var(--line-strong); padding: 0; width: min(480px, calc(100vw - 32px)); }
dialog.dialog::backdrop { background: rgba(5, 8, 12, 0.7); }
.dialog-head { padding: 18px 24px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 20px; }
.dialog-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.dialog-foot { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* =====================================================================
   Marketing site
   ===================================================================== */
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; background: rgba(14, 19, 28, 0.94); backdrop-filter: blur(6px); }
.site-header .wrap { padding-top: 22px; padding-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-nav { display: flex; gap: 32px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-header .btn { padding: 10px 20px; font-weight: 400; letter-spacing: 0.12em; }

.hero { padding-top: 120px; padding-bottom: 96px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.hero h1 { max-width: 980px; }
.hero h1 em { color: var(--gold); }
.lede { font-size: 19px; line-height: 1.65; color: var(--muted); margin: 0; max-width: 640px; text-wrap: pretty; }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.clients { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.clients .wrap { padding-top: 36px; padding-bottom: 36px; display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; justify-content: space-between; }
.clients img { height: 24px; filter: grayscale(1) brightness(2.2); opacity: 0.65; }

.section { padding-top: 120px; padding-bottom: 120px; }
.section-head { text-align: center; margin-bottom: 72px; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head p { margin: 16px 0 0; color: var(--muted); }

.ruled-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.ruled-grid > * { background: var(--bg); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.article-cell { padding: 44px 36px; }
.article-cell .num { font-family: var(--serif); font-size: 15px; color: var(--gold); margin-bottom: 28px; }
.article-cell h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0 0 14px; }
.article-cell p { margin: 0; color: var(--muted); line-height: 1.7; }

.paper { background: var(--paper); color: var(--paper-ink); }
.paper a { color: var(--paper-ink); }
.split-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 64px; margin-bottom: 72px; align-items: end; }
.split-head p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--paper-muted); }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 48px 40px; }
.services > div::before { content: ""; display: block; width: 28px; height: 1px; background: var(--paper-ink); margin-bottom: 20px; }
.services h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; margin: 0 0 10px; }
.services p { margin: 0; color: var(--paper-muted); line-height: 1.65; }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 72px; align-items: center; }
.two-col p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.grounds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.grounds > div { background: var(--panel); padding: 28px; }
.grounds .letter { font-family: var(--serif); font-style: italic; color: var(--gold); margin-bottom: 12px; }
.grounds strong { display: block; font-weight: 600; margin-bottom: 6px; }
.grounds span { color: var(--muted); font-size: 14px; line-height: 1.55; }

.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-band .wrap { padding-top: 64px; padding-bottom: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px; text-align: center; }
.stat-figure { font-family: var(--serif); font-size: 48px; color: var(--gold); }
.stat-caption { color: var(--muted); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 8px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.plan { border: 1px solid var(--line); padding: 40px 36px; display: flex; flex-direction: column; gap: 28px; }
.plan.featured { border-color: var(--gold); background: var(--panel); }
.plan h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0; }
.plan .for { color: var(--dim); margin-top: 6px; font-size: 14px; }
.plan .price { font-family: var(--serif); font-size: 52px; }
.plan .per { color: var(--dim); }
.plan .yearly { color: var(--dim); font-size: 14px; margin-top: 4px; }
.plan ul { list-style: none; padding: 24px 0 0; margin: 0; display: flex; flex-direction: column; gap: 14px; color: var(--body); font-size: 15px; flex: 1; border-top: 1px solid var(--line); }

.quotes { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quotes .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 64px; }
.quotes figure { margin: 0; }
.quotes figure::before { content: "“"; display: block; font-family: var(--serif); font-size: 64px; line-height: 0.5; color: var(--gold); }
.quotes blockquote { margin: 16px 0 0; font-family: var(--serif); font-size: 22px; line-height: 1.55; text-wrap: pretty; }
.quotes figcaption { margin-top: 20px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }

.faq { max-width: 820px; }
.faq h2 { text-align: center; margin-bottom: 48px; }
.faq details { border-top: 1px solid var(--line); padding: 24px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; font-family: var(--serif); font-size: 20px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--gold); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 14px 0 0; color: var(--muted); line-height: 1.7; }

.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; font-size: 14px; }
.site-footer nav { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); }

/* Homepage product preview: an interactive mock of the app on seed data (preview.js) */
.preview-slot { height: 480px; }
.preview { border: 1px solid var(--line); background: var(--bg-deep); display: grid; grid-template-columns: 180px minmax(0, 1fr); height: 100%; overflow: hidden; text-align: left; cursor: zoom-in; }
.preview-dialog .preview { cursor: auto; border: 0; }
.preview-side { border-right: 1px solid var(--line); padding: 20px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.preview-side .wordmark { font-size: 18px; padding: 0 10px 18px; }
.preview-side button { all: unset; cursor: pointer; padding: 8px 10px; border-left: 2px solid transparent; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; white-space: nowrap; }
.preview-side button:hover { color: var(--ink); }
.preview-side .on { background: var(--panel); color: var(--ink); border-left-color: var(--gold); }
.preview-side .count { color: var(--gold); font-size: 11px; }
.preview-main { padding: 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; overflow: hidden; }
.preview-dialog .preview-main { overflow: auto; padding: 32px; gap: 24px; }
.preview-main > * { flex-shrink: 0; }
.preview-head { display: flex; flex-direction: column; gap: 8px; }
.preview-cols { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 12px; }
.preview-dialog .preview-cols { grid-template-columns: repeat(4, minmax(220px, 1fr)); overflow-x: auto; flex: 1; align-items: stretch; }
.preview-col { display: flex; flex-direction: column; gap: 8px; padding: 6px; border: 1px dashed transparent; min-height: 120px; }
.preview-col.drop-over { border-color: var(--h); background: var(--panel); }
.preview-col header { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding-bottom: 8px; border-bottom: 2px solid var(--h); }
.preview-col-cards { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.preview-card { background: var(--panel); border: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 6px; cursor: grab; user-select: none; }
.preview-card:hover { border-color: var(--line-strong); background: var(--panel-hover); }
.preview-card.dragging { opacity: 0.35; }
.preview-dialog .preview-card { touch-action: none; padding: 14px; }
.preview-card .mono { font-size: 10.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-card .serif { font-size: 14px; line-height: 1.35; }
.preview-card .from { font-size: 12px; color: var(--muted); }
.preview-card .meta { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--dim); border-top: 1px solid var(--line-soft); padding-top: 6px; }
.preview-ghost { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); border-color: var(--gold); cursor: grabbing; }
.preview-hint { margin: 14px 0 0; font-size: 13px; color: var(--dim); text-align: center; }
.preview .kpi, .preview .status-legend button, .preview .crumbs button { all: unset; cursor: pointer; }
.preview .kpi { background: var(--bg); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.preview .kpi:hover { background: var(--panel); }
.preview .kpi .value { font-size: 38px; }
.preview .status-legend button { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.preview .status-legend button:last-child { border-bottom: 0; }
.preview .status-legend .serif { color: var(--muted); }
.preview .crumbs button { color: var(--muted); }
.preview .crumbs button:hover { color: var(--ink); }
.preview-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.stepper.preview-stepper { grid-template-columns: repeat(4, minmax(110px, 1fr)); }
.preview .table tbody tr { cursor: pointer; }
.preview .table .url { max-width: 0; }
.preview .message-body { font-size: 14px; }
html.preview-open { overflow: hidden; }
dialog.preview-dialog { padding: 0; border: 1px solid var(--line-strong); background: var(--bg-deep); color: var(--ink); width: min(1240px, calc(100vw - 32px)); height: min(820px, calc(100vh - 32px)); max-width: none; max-height: none; }
dialog.preview-dialog[open] { display: flex; flex-direction: column; }
dialog.preview-dialog::backdrop { background: rgba(5, 8, 12, 0.78); }
.preview-dialog-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.preview-dialog-body { flex: 1; min-height: 0; }

/* Legal pages */
.legal { max-width: 820px; margin: 0 auto; padding: 96px 32px 120px; }
.legal-head { text-align: center; margin-bottom: 56px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.legal-head p { margin: 0; color: var(--dim); }
.legal-body { color: var(--muted); line-height: 1.75; font-size: 16px; }
.legal-body h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--ink); margin: 48px 0 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 28px 0 8px; }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body ul { padding-left: 20px; }
.legal-body li { margin-bottom: 6px; }

/* =====================================================================
   Auth pages
   ===================================================================== */
.auth { min-height: 100vh; display: flex; flex-direction: column; }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 64px 16px; }
.auth-card { width: min(440px, 100%); display: flex; flex-direction: column; gap: 28px; }
.auth-title { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.auth-title h1 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin: 0; }
.auth-title p { margin: 0; color: var(--muted); }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
.auth-row a { color: var(--muted); }
.auth-foot { border-top: 1px solid var(--line); padding: 20px 32px; font-size: 13px; color: var(--dim); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.auth-foot a { color: var(--dim); text-decoration: none; }

/* =====================================================================
   App shell
   ===================================================================== */
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.app-side { border-right: 1px solid var(--line); background: var(--bg-deep); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.app-side-brand { height: 72px; padding: 0 24px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.app-nav { padding: 24px 12px; display: flex; flex-direction: column; gap: 2px; }
.app-nav .label { padding: 0 12px 12px; }
.app-nav a { text-decoration: none; color: var(--muted); padding: 10px 12px; font-size: 14px; display: flex; justify-content: space-between; align-items: baseline; border-left: 2px solid transparent; }
.app-nav a:hover { color: var(--ink); background: var(--panel); }
.app-nav a.active { color: var(--ink); background: var(--panel); border-left-color: var(--gold); }
.app-nav .count { color: var(--gold); font-size: 12px; }
.app-side-user { margin-top: auto; padding: 20px 24px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.app-side-user:hover { color: var(--ink); background: var(--panel); }
.monogram { width: 34px; height: 34px; flex-shrink: 0; border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--serif); color: var(--gold); font-size: 14px; }
.monogram.sm { width: 26px; height: 26px; font-size: 11px; }
.who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.who span:first-child { font-size: 14px; }
.who span:last-child { font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-top { border-bottom: 1px solid var(--line); height: 72px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.app-search { flex: 0 1 420px; min-width: 0; }
.app-search input { background: var(--panel); border: 1px solid var(--line); color: var(--ink); padding: 10px 14px; font-size: 14px; width: 100%; outline: none; }
.app-search input:focus { border-color: var(--gold); }
.app-top-right { display: flex; gap: 24px; align-items: center; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.app-top-right > a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.app-top-right > a:hover { color: var(--ink); }
.menu { position: relative; }
.menu-button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid transparent; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); }
.menu-button[aria-expanded="true"] { border-color: var(--line-strong); }
.menu-button .caret { color: var(--dim); font-size: 10px; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: var(--panel); border: 1px solid var(--line); z-index: 40; display: flex; flex-direction: column; text-transform: none; letter-spacing: 0; }
.menu-list .who { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.menu-list a, .menu-list button { all: unset; cursor: pointer; color: var(--ink); padding: 12px 16px; font-size: 14px; display: block; }
.menu-list a:hover, .menu-list button:hover { background: var(--panel-hover); }
.menu-list .logout { color: var(--danger); border-top: 1px solid var(--line-soft); width: 100%; box-sizing: border-box; }
.nav-toggle { all: unset; display: none; cursor: pointer; border: 1px solid var(--line-strong); padding: 8px 12px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.app-content { padding: 32px 32px 64px; display: flex; flex-direction: column; gap: 28px; flex: 1; min-width: 0; }
.app-content.flash-only { padding-bottom: 0; flex: 0 0 auto; }
.app-footer { margin-top: auto; border-top: 1px solid var(--line); padding: 20px 32px; font-size: 13px; color: var(--dim); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.page-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.page-head > div:first-child { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.page-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.crumbs { display: flex; gap: 10px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); flex-wrap: wrap; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs .here { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }

.panel { border: 1px solid var(--line); background: var(--panel); min-width: 0; }
.panel.plain { background: transparent; }
.panel.accent { border-color: var(--gold); }
.panel-head { padding: 16px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.panel-head .title { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.panel-head .figure { font-family: var(--serif); color: var(--gold); }
.panel-body { padding: 20px 24px; }
.panel-body.tight { padding: 4px 24px 8px; }
.panel-foot { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.side-panel { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.empty { padding: 24px; color: var(--dim); font-size: 14px; }

.segmented { display: flex; border: 1px solid var(--line); }
.segmented button, .segmented a { all: unset; cursor: pointer; padding: 9px 16px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.segmented .on, .segmented [aria-pressed="true"] { background: var(--gold); color: var(--bg); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.chips .label { font-size: 12px; margin-right: 8px; }
.chip { all: unset; cursor: pointer; border: 1px solid var(--chip); color: var(--muted); padding: 6px 12px; font-size: 13px; }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }

.tag { display: inline-block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c, var(--muted)); border: 1px solid var(--c, var(--muted)); padding: 3px 8px; white-space: nowrap; }
.dot-status { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.dot-status::before { content: ""; width: 7px; height: 7px; background: var(--h, var(--dim)); flex-shrink: 0; }

/* Status hue hooks */
[data-status="received"] { --h: var(--hue-received); }
[data-status="viewed"] { --h: var(--hue-viewed); }
[data-status="processing"] { --h: var(--hue-processing); }
[data-status="responded"] { --h: var(--hue-responded); }
[data-status="customer_responded"] { --h: var(--hue-customer_responded); }
[data-status="missing_links"] { --h: var(--hue-missing_links); }
[data-status="completed"] { --h: var(--hue-completed); }
[data-status="archived"], [data-status="spam"] { --h: var(--hue-archived); }

/* ---------- Notifications board ---------- */
.board-scroll { padding: 24px 32px 48px; overflow-x: auto; flex: 1; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 16px; min-width: min-content; align-items: start; }
.column { display: flex; flex-direction: column; gap: 10px; min-height: 420px; padding: 10px; border: 1px dashed transparent; }
.column.drop-over { border-color: var(--h); background: var(--panel); }
.column-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 4px 12px; border-bottom: 2px solid var(--h); }
.column-head .roman { font-family: var(--serif); font-size: 13px; color: var(--h); margin-right: 10px; }
.column-head .name { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.column-head .n { font-family: var(--serif); font-size: 16px; color: var(--muted); }
.column-cards { display: flex; flex-direction: column; gap: 10px; min-height: 60px; }
.column-empty { padding: 24px 8px; text-align: center; font-size: 13px; color: var(--dim); }
.card { background: var(--panel); border: 1px solid var(--line); padding: 16px; cursor: grab; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); position: relative; }
.card:hover { border-color: var(--line-strong); background: var(--panel-hover); color: var(--ink); }
.card.dragging { opacity: 0.4; }
.card-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.card-sites { font-family: var(--mono); font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-ref { font-size: 11px; letter-spacing: 0.12em; color: var(--dim); flex-shrink: 0; }
.card-subject { font-family: var(--serif); font-size: 16px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.card-from { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--dim); border-top: 1px solid var(--line-soft); padding-top: 10px; }

/* ---------- Notifications list / generic data rows ---------- */
.list-scroll { padding: 8px 32px 48px; overflow-x: auto; }
.rows { min-width: 860px; }
.row-head, .row-item { display: grid; gap: 20px; }
.row-head { padding: 14px 0; border-bottom: 1px solid var(--line-strong); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.row-item { padding: 16px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; align-items: baseline; color: var(--ink); text-decoration: none; }
a.row-item:hover { background: var(--panel); color: var(--ink); }
.notice-rows .row-head, .notice-rows .row-item { grid-template-columns: 170px minmax(0, 2.4fr) minmax(0, 1.3fr) 70px 120px 180px; }
.cell-serif { font-family: var(--serif); font-size: 15px; }
.cell-mono { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* Tables (websites, links, dashboard) */
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 400; padding: 14px 16px; border-bottom: 1px solid var(--line-strong); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.table th a { color: inherit; text-decoration: none; }
.table th a:hover { color: var(--ink); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--panel-hover); }
.table .actions { display: flex; gap: 16px; justify-content: flex-end; align-items: center; }
.table td.num, .table th.num { text-align: right; }
.table .url { font-family: var(--mono); font-size: 12.5px; max-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table a { text-decoration: none; }
.struck { text-decoration: line-through; color: var(--dim) !important; }

.status-select { appearance: none; background: transparent; border: 1px solid var(--c, var(--line)); color: var(--c, var(--ink)); padding: 5px 10px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.status-select option { background: var(--panel); color: var(--ink); }
[data-link-status="pending"] { --c: var(--hue-received); }
[data-link-status="removed"], [data-link-status="deleted"] { --c: var(--danger); }
[data-link-status="safe"] { --c: var(--ok); }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--dim); }
.pager ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.pager li a, .pager li span { display: inline-block; min-width: 36px; text-align: center; padding: 7px 10px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; }
.pager li a:hover { color: var(--ink); border-color: var(--line-strong); }
.pager li [aria-current="page"] { border-color: var(--gold); color: var(--gold); }
.pager li .disabled { opacity: 0.4; }

/* ---------- Notification detail ---------- */
.meta-row { display: flex; flex-wrap: wrap; gap: 12px 40px; font-size: 14px; }
.meta-row > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.meta-row a { text-decoration: none; font-family: var(--mono); font-size: 13px; }
.detail-head { display: flex; flex-direction: column; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
.stepper { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); overflow-x: auto; }
.step { all: unset; cursor: pointer; background: var(--bg); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; border-top: 2px solid transparent; }
.step .roman { font-family: var(--serif); font-size: 13px; color: var(--faint); }
.step .name { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.step.past { border-top-color: var(--h); }
.step.past .roman { color: var(--h); }
.step.past .name { color: var(--muted); }
.step.current { background: var(--panel-hover); border-top-color: var(--h); }
.step.current .roman { color: var(--h); }
.step.current .name { color: var(--ink); }
.step:hover .name { color: var(--ink); }
.step[aria-busy="true"] { opacity: 0.6; cursor: progress; }

.detail-grid { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.detail-primary { display: flex; flex-direction: column; gap: 28px; min-width: 0; flex: 999 1 520px; }
.detail-aside { display: flex; flex-direction: column; gap: 20px; flex: 1 1 280px; max-width: 100%; }

.link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.link-row:last-child { border-bottom: 0; }
.link-row .url { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; display: block; }
.link-row .sub { font-size: 12px; color: var(--dim); display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.link-row .no-source { color: var(--danger); }

.composer textarea { display: block; width: 100%; background: var(--bg); border: 0; border-bottom: 1px solid var(--line); color: var(--ink); padding: 20px 24px; font-size: 15px; line-height: 1.7; resize: vertical; outline: none; min-height: 260px; }
.composer-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.composer-fields input { background: var(--bg); }

.thread { display: flex; flex-direction: column; gap: 16px; }
.message { border: 1px solid var(--line); background: var(--bg); }
.message.out { background: var(--panel); }
.message-head { padding: 14px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.message-head > div { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.message-head .serif { font-size: 17px; }
.message-head .dim { font-size: 13px; }
.message-body { padding: 20px 24px; font-size: 15px; line-height: 1.75; color: var(--body); white-space: pre-wrap; text-wrap: pretty; max-width: 820px; overflow-wrap: anywhere; }
.message-body.html { white-space: normal; }
.message-body.html p { margin: 0 0 1em; }
.message-attachments { padding: 0 24px 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.message-attachments a { font-family: var(--mono); font-size: 12.5px; text-decoration: none; border: 1px solid var(--line); padding: 6px 10px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px 32px; padding: 20px 24px; }
.kv > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow-wrap: anywhere; font-size: 14px; }

.site-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.site-row:last-child { border-bottom: 0; padding-bottom: 0; }
.site-row .serif { overflow-wrap: anywhere; }
.record { display: grid; grid-template-columns: 10px 1fr; gap: 12px; font-size: 13px; line-height: 1.5; }
.record::before { content: ""; width: 7px; height: 7px; margin-top: 6px; background: var(--gold); }
.record > div { display: flex; flex-direction: column; gap: 2px; }
.record .when { color: var(--dim); font-size: 12px; }

.note { display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.note .dim { font-size: 12px; }
.note p { margin: 0; color: var(--body); white-space: pre-wrap; overflow-wrap: anywhere; }
.note-form textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--ink); padding: 10px 12px; font-size: 14px; resize: vertical; outline: none; min-height: 72px; }
.note-form textarea:focus { border-color: var(--gold); }

/* ---------- Overview (dashboard) ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.kpi { background: var(--bg); padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
a.kpi:hover { background: var(--panel); color: var(--ink); }
.kpi .value { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--ink); }
.kpi .value small { font-size: 20px; color: var(--muted); }
.kpi .delta { font-size: 13px; color: var(--muted); }
.kpi .delta.up { color: var(--hue-processing); }
.kpi .delta.down { color: var(--ok); }
.overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 28px; align-items: start; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; }
.bars .bar { flex: 1; background: var(--line); min-height: 2px; position: relative; }
.bars .bar.has { background: var(--gold); }
.bars .bar:hover { filter: brightness(1.2); }
.bars-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); margin-top: 10px; }
.status-stack { display: flex; height: 10px; gap: 2px; margin-bottom: 18px; }
.status-stack span { background: var(--h); min-width: 3px; }
.status-legend { display: flex; flex-direction: column; gap: 10px; }
.status-legend a { display: flex; justify-content: space-between; gap: 12px; text-decoration: none; color: var(--ink); font-size: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.status-legend a:last-child { border-bottom: 0; }
.status-legend .serif { color: var(--muted); }

/* ---------- Profile ---------- */
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs button { all: unset; cursor: pointer; padding: 0 0 14px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.copy-row { display: flex; }
.copy-row input { flex: 1; min-width: 0; background: var(--bg-deep); border: 1px solid var(--line); color: var(--ink); padding: 11px 14px; font-family: var(--mono); font-size: 12.5px; }
.copy-row .btn { border-left: 0; }
ol.steps { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.8; }
code { font-family: var(--mono); font-size: 0.92em; color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .app-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .app-side-brand { height: 64px; justify-content: space-between; padding: 0 16px; }
  .nav-toggle { display: inline-block; }
  .app-side:not(.open) .app-nav, .app-side:not(.open) .app-side-user { display: none; }
  .app-top { padding: 12px 16px; height: auto; flex-wrap: wrap; gap: 12px; }
  .app-top-right .alerts { display: none; }
  .app-content { padding: 24px 16px 48px; }
  .board-scroll, .list-scroll { padding-left: 16px; padding-right: 16px; }
  .app-footer { padding: 16px; }
  .preview { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .preview-side { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; overflow-x: auto; }
  .preview-side .wordmark { display: none; }
  .preview-side button { border-left: 0; border-bottom: 2px solid transparent; }
  .preview-side .on { border-bottom-color: var(--gold); }
  .preview-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-dialog .preview-main { padding: 20px 16px; }
  dialog.preview-dialog { width: 100vw; height: 100dvh; border: 0; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .site-header .wrap { padding-top: 16px; padding-bottom: 16px; gap: 14px; }
  .site-nav { gap: 18px; font-size: 12px; order: 3; width: 100%; }
  .hero { padding-top: 72px; padding-bottom: 64px; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .article-cell { padding: 32px 24px; }
  .plan { padding: 32px 24px; }
  .legal { padding: 64px 16px 80px; }
  .panel-head, .panel-body, .panel-foot, .message-head, .message-body, .composer-fields, .kv { padding-left: 16px; padding-right: 16px; }
  .composer textarea { padding: 16px; }
  .link-row { grid-template-columns: minmax(0, 1fr); }
  .crumbs .here { max-width: 22ch; }
}

.footer-note { margin-top: 10px; }
.preview-section { padding-top: 96px; }
.preview-title { font-size: 28px; }
@media (max-width: 640px) { .preview-slot { height: 440px; } .preview-dialog-bar .label { font-size: 10px; } }
.stack-20 { margin-bottom: 20px; }
.stack-24 { margin-bottom: 24px; }
.plan-badge { font-size: 11px; margin-bottom: 10px; }
.auth-panel { display: flex; flex-direction: column; gap: 20px; padding: 28px; }
.auth-panel p { margin: 0; }
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.flash-info { border-left-color: var(--hue-viewed); color: var(--muted); }
.index-head { display: flex; flex-direction: column; gap: 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pre-line { white-space: pre-line; }
.kv a.mono { font-size: 12.5px; text-decoration: none; }
.tag-ok { --c: var(--ok); }
.tag[data-link-status] { color: var(--c); border-color: var(--c); }
.stack-10 { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.stack-10 > * { min-width: 0; }
.archive-link { align-self: center; margin-top: 2px; }
.more-links summary { cursor: pointer; padding: 14px 0 6px; font-size: 13px; color: var(--dim); list-style: none; }
.more-links summary:hover { color: var(--ink); }
.more-links[open] summary { border-bottom: 1px solid var(--line-soft); padding-bottom: 12px; }
.muted-link { color: var(--ink); text-decoration: none; }
.muted-link:hover { color: var(--gold); }
.form-stack { display: flex; flex-direction: column; gap: 20px; }
textarea.code-block { width: 100%; resize: vertical; outline: none; }
.side-note { margin: 0; font-size: 13px; line-height: 1.6; }
.mono-title { font-family: var(--mono); font-size: clamp(18px, 2vw, 24px); }
.panel-head:has(.tabs) { padding-bottom: 0; }
.panel-head .tabs { border-bottom: 0; }
.filters { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.filters .field { flex: 0 1 240px; }
.filters .field.grow { flex: 1 1 320px; }
.filter-actions { display: flex; gap: 16px; align-items: center; }
.filter-actions .btn { padding-top: 11px; padding-bottom: 11px; }
.nowrap { white-space: nowrap; }
.show-all-links { margin: 14px 0 8px; }
.link-row.saved { animation: saved 1.2s ease-out; }
@keyframes saved { from { background: var(--panel-hover); } to { background: transparent; } }
.btn-text { display: inline-block; line-height: 1.4; }
.btn-text.is-disabled { color: var(--faint); border-bottom-color: transparent; cursor: not-allowed; }
.table .actions .btn-text { font-size: 12px; letter-spacing: 0.04em; }
.team-note { padding: 14px 0; border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 6px; }
.team-note:last-child { border-bottom: 0; }
.team-note-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; min-width: 0; }
.team-note-head .serif { font-size: 16px; }
.team-note-head .dim { font-size: 12px; }
.team-note p { margin: 0; color: var(--body); font-size: 14px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 640px) { .team-note-head { flex-direction: column; gap: 2px; } }
