/* MakeWavs CRM. Brand tokens lifted from makewavs.media (styles.css and guides/guides.css)
   so the app and the site never drift. Calm working surface: no scroll effects, no WebGL.
   Status colors validated with the dataviz checker against --bg-raised (CVD and normal-vision
   separation pass); they always travel with a text label, never color alone. */

:root {
  --bg: #050608;
  --bg-raised: #0b1119;
  --bg-sunk: #080d14;
  --bg-hover: #0e1620;
  --ink: #f2f4f6;
  --dim: #97a0a8;
  --dimmer: #6b7780;
  --line: #1a242e;
  --line-strong: #263442;
  --accent: #4db8ff;
  --accent-soft: rgba(77, 184, 255, 0.12);

  --good: #34e0a0;
  --info: #4db8ff;
  --warn: #ffb454;
  --bad: #ff6b6b;

  --display: 'Archivo Black', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 12px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.9375rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(77, 184, 255, 0.28); }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
h1, h2, h3 { margin: 0; }

/* ---------------------------------------------------------------- top bar */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 var(--gutter);
  height: 60px;
  background: rgba(5, 6, 8, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--dimmer); font-family: var(--body); font-weight: 500; letter-spacing: 0.2em; font-size: 0.66rem; margin-left: 0.7rem; text-transform: uppercase; }
.nav { display: flex; gap: 0.3rem; flex: 1; min-width: 0; }
.nav a {
  position: relative;
  padding: 0 0.85rem;
  line-height: 60px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--dim);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); }
.nav a.on::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem; bottom: -1px;
  height: 2px;
  background: var(--accent);
}
.nav .count {
  display: inline-block;
  min-width: 1.35rem;
  margin-left: 0.4rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.66rem;
  letter-spacing: 0;
  line-height: 1.35rem;
  text-align: center;
}
.who { display: flex; align-items: center; gap: 1rem; font-size: 0.8rem; color: var(--dim); white-space: nowrap; }
.who form { margin: 0; }
.linkish {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--dim);
}
.linkish:hover { color: var(--accent); }

/* ---------------------------------------------------------------- layout */

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter) 5rem; }
.head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2.6rem 0 1.8rem;
}
.eyebrow {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--dimmer);
  margin-bottom: 0.65rem;
}
.head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.head p { margin: 0.6rem 0 0; color: var(--dim); max-width: 60ch; }
.head .actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.stack { display: grid; gap: 1.25rem; }

.panel {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--dim);
}
.panel-head .meta { font-size: 0.78rem; color: var(--dimmer); }
.panel-head a.meta { text-decoration: none; }
.panel-head a.meta:hover { color: var(--accent); }
.panel-body { padding: 1.2rem 1.4rem 1.4rem; }
.panel-body.flush { padding: 0; }
.muted { color: var(--dim); }
.small { font-size: 0.8rem; }
.empty { padding: 1.6rem 1.4rem; color: var(--dimmer); font-size: 0.88rem; }

/* ---------------------------------------------------------------- KPI row */

.kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 1.25rem;
}
.kpi { padding: 1.3rem 1.4rem 1.25rem; border-left: 1px solid var(--line); }
.kpi:first-child { border-left: 0; }
.kpi .label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--dim);
}
.kpi .value {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0.55rem 0 0.3rem;
  font-variant-numeric: tabular-nums;
}
.kpi .value small { font-family: var(--body); font-size: 0.8rem; font-weight: 500; color: var(--dim); letter-spacing: 0; margin-left: 0.15rem; }
.kpi .sub { font-size: 0.78rem; color: var(--dimmer); }
.kpi a { text-decoration: none; }
.kpi a:hover .value { color: var(--accent); }

.insight {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  padding: 0.95rem 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--dim);
}
.insight strong { color: var(--ink); font-weight: 500; }

/* ---------------------------------------------------------------- status: dot + text, never color alone */

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--dimmer); flex: none; }
.dot.good { background: var(--good); }
.dot.info { background: var(--info); }
.dot.warn { background: var(--warn); }
.dot.bad { background: var(--bad); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.18rem 0.6rem 0.18rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  white-space: nowrap;
  background: var(--bg-sunk);
}
.tag.plain { color: var(--dim); }

/* ---------------------------------------------------------------- lists */

.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.85rem 1.4rem;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.rows .row:first-child { border-top: 0; }
a.row:hover { background: var(--bg-hover); }
.row .title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sub { font-size: 0.8rem; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .when { font-size: 0.78rem; color: var(--dimmer); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- install strip */

.weeks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.week { padding: 1.1rem 1.1rem 1.2rem; border-left: 1px solid var(--line); min-height: 132px; }
.week:first-child { border-left: 0; }
.week .n { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--dimmer); }
.week .name { font-size: 0.86rem; font-weight: 600; margin: 0.25rem 0 0.8rem; }
.chip {
  display: block;
  padding: 0.5rem 0.65rem;
  margin-top: 0.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 0.8rem;
  text-decoration: none;
  background: var(--bg-sunk);
  transition: border-color 0.2s;
}
.chip:hover { border-color: rgba(77, 184, 255, 0.42); }
.chip .meta { display: flex; justify-content: space-between; gap: 0.4rem; margin-top: 0.25rem; font-size: 0.7rem; color: var(--dimmer); }

/* deliverable progress: 8 segments with 2px gaps */
.segs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; margin-top: 0.35rem; }
.segs i { height: 4px; border-radius: 1px; background: var(--line-strong); }
.segs i.approved { background: var(--good); }
.segs i.ready_for_review { background: var(--warn); }
.segs i.in_progress { background: var(--info); }

/* ---------------------------------------------------------------- pipeline board */

.board {
  display: grid;
  grid-template-columns: repeat(5, minmax(200px, 1fr));
  gap: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.8rem;
  scroll-snap-type: x proximity;
}
.col {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 420px;
  scroll-snap-align: start;
}
.col-head { padding: 0.95rem 1rem 0.8rem; border-bottom: 1px solid var(--line); }
.col-head .top-line { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.col-head h2 { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; }
.col-head .n { font-size: 0.78rem; color: var(--dimmer); font-variant-numeric: tabular-nums; }
.col-head .sum { font-family: var(--display); font-size: 1.05rem; margin-top: 0.35rem; font-variant-numeric: tabular-nums; }
.col-head .sum small { font-family: var(--body); color: var(--dimmer); font-size: 0.72rem; }
.col-body { padding: 0.6rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; transition: background 0.15s; border-radius: 0 0 var(--radius) var(--radius); }
.col-body.over { background: var(--accent-soft); }
.card {
  display: block;
  padding: 0.75rem 0.8rem 0.7rem;
  background: var(--bg-sunk);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  text-decoration: none;
  cursor: grab;
  transition: border-color 0.2s, opacity 0.2s;
}
.card:hover { border-color: rgba(77, 184, 255, 0.42); }
.card.dragging { opacity: 0.4; }
.card .biz { font-weight: 600; font-size: 0.88rem; line-height: 1.3; }
.card .person { font-size: 0.78rem; color: var(--dim); margin-top: 0.1rem; }
.card .foot { display: flex; justify-content: space-between; align-items: center; gap: 0.4rem; margin-top: 0.6rem; font-size: 0.72rem; color: var(--dimmer); }
.card .val { color: var(--ink); font-variant-numeric: tabular-nums; }
.card .call { margin-top: 0.5rem; font-size: 0.74rem; color: var(--ink); display: flex; gap: 0.45rem; align-items: center; }
.col-empty { margin: auto; color: var(--dimmer); font-size: 0.8rem; padding: 1.5rem 0.5rem; text-align: center; }

.seg-toggle { display: inline-flex; border: 1px solid var(--line-strong); }
.seg-toggle a { padding: 0.5rem 0.95rem; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.16em; text-decoration: none; color: var(--dim); }
.seg-toggle a.on { background: var(--ink); color: var(--bg); }

/* ---------------------------------------------------------------- tables */

.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th {
  text-align: left;
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--dimmer);
  padding: 0.85rem 1.4rem 0.7rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 0.85rem 1.4rem; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr:first-child td { border-top: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table a.strong { font-weight: 600; text-decoration: none; }
.table a.strong:hover { color: var(--accent); }
.table-scroll { overflow-x: auto; }

/* ---------------------------------------------------------------- buttons and forms (the site's CTA, compact) */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:active { transform: scale(0.98); }
.btn.solid { background: var(--ink); color: var(--bg); }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); }
.btn.quiet { border-color: var(--line-strong); color: var(--dim); }
.btn.quiet:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn.small { padding: 0.45rem 0.8rem; font-size: 0.62rem; }

label.field { display: grid; gap: 0.35rem; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--dim); }
input, select, textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  background: var(--bg-sunk);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
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% - 16px) 55%, calc(100% - 11px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
input[type="checkbox"] { width: auto; accent-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.inline-form { display: flex; gap: 0.5rem; align-items: center; }
.inline-form select { width: auto; padding-top: 0.4rem; padding-bottom: 0.4rem; font-size: 0.8rem; }
.check { display: flex; gap: 0.55rem; align-items: center; font-size: 0.85rem; color: var(--dim); text-transform: none; letter-spacing: 0; }

/* ---------------------------------------------------------------- detail pages */

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.2rem; margin: 0; }
.facts dt { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--dimmer); }
.facts dd { margin: 0.2rem 0 0; font-size: 0.9rem; overflow-wrap: anywhere; }
.facts dd a { color: var(--accent); text-decoration: none; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 1.15rem 1.4rem; border-left: 1px solid var(--line); margin-left: 0.3rem; }
.timeline li:last-child { padding-bottom: 0.2rem; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 0.45rem; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.timeline li.stage_change::before, .timeline li.system::before { background: var(--accent); }
.timeline .meta { font-size: 0.72rem; color: var(--dimmer); text-transform: uppercase; letter-spacing: 0.12em; }
.timeline .body { margin-top: 0.15rem; font-size: 0.9rem; white-space: pre-wrap; }

.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
.step { padding: 0.9rem 0.95rem; background: var(--bg-sunk); border-top: 2px solid var(--line-strong); }
.step.done { border-top-color: var(--good); }
.step.now { border-top-color: var(--accent); background: var(--bg-hover); }
.step .n { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--dimmer); }
.step .name { font-size: 0.86rem; font-weight: 600; margin-top: 0.2rem; }
.step .desc { font-size: 0.74rem; color: var(--dim); margin-top: 0.35rem; line-height: 1.45; }
.step form { margin-top: 0.6rem; }

.update { padding: 1.2rem 1.4rem; border-top: 1px solid var(--line); }
.update:first-child { border-top: 0; }
.update h3 { font-size: 1rem; font-weight: 600; margin: 0.2rem 0 0.5rem; }
.update .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 0.8rem; }
.update .cols h4 { margin: 0 0 0.3rem; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--dimmer); font-weight: 600; }
.update p { margin: 0; white-space: pre-wrap; color: var(--dim); font-size: 0.9rem; }

.flash { padding: 0.85rem 1.1rem; border: 1px solid var(--line-strong); border-radius: 8px; margin-bottom: 1rem; font-size: 0.86rem; }

/* ---------------------------------------------------------------- portal */

.hero-status {
  padding: 2rem 1.6rem 1.6rem;
  background:
    radial-gradient(110% 140% at 92% 0%, rgba(77, 184, 255, 0.10), transparent 58%),
    var(--bg-raised);
}
.hero-status .big { font-family: var(--display); font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.08; letter-spacing: -0.02em; }
.hero-status .lede { color: var(--dim); margin: 0.7rem 0 1.5rem; max-width: 60ch; }

.ask { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem 1.4rem; border-top: 1px solid var(--line); }
.ask:first-child { border-top: 0; }
.ask .title { font-weight: 500; }
.ask .sub { font-size: 0.8rem; color: var(--dim); margin-top: 0.15rem; }
.ask form { margin: 0; }

/* ---------------------------------------------------------------- login */

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem var(--gutter); }
.login {
  width: 100%;
  max-width: 400px;
  padding: 2.4rem 2.1rem 2.1rem;
  background:
    radial-gradient(120% 140% at 88% 0%, rgba(77, 184, 255, 0.11), transparent 58%),
    var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.login h1 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; letter-spacing: -0.01em; line-height: 1.15; margin: 1.6rem 0 0.4rem; }
.login p { color: var(--dim); margin: 0 0 1.6rem; font-size: 0.9rem; }
.login form { display: grid; gap: 1rem; }
.login .btn { width: 100%; padding: 0.95rem; margin-top: 0.4rem; }
.login .err { color: var(--ink); display: flex; gap: 0.55rem; align-items: center; font-size: 0.85rem; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi:nth-child(4) { border-left: 0; }
  .kpi:nth-child(n+4) { border-top: 1px solid var(--line); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .top { gap: 0.8rem; height: auto; flex-wrap: wrap; padding-top: 0.75rem; }
  .logo span { display: none; }
  .who { margin-left: auto; }
  .who .name { display: none; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 calc(var(--gutter) - 0.85rem); scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { line-height: 44px; }
  .head { padding: 1.8rem 0 1.3rem; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { border-left: 0; border-top: 1px solid var(--line); }
  .kpi:nth-child(-n+2) { border-top: 0; }
  .kpi:nth-child(even) { border-left: 1px solid var(--line); }
  .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .weeks, .steps { grid-template-columns: minmax(0, 1fr); }
  .steps.compact { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .steps.compact .step { padding: 0; height: 0; background: none; border-top-width: 4px; }
  .steps.compact .step > * { display: none; }
  .nav a { padding: 0 0.6rem; letter-spacing: 0.12em; }
  .nav a.on::after { left: 0.6rem; right: 0.6rem; }
  .week { border-left: 0; border-top: 1px solid var(--line); min-height: 0; }
  .week:first-child { border-top: 0; }
  .board { grid-template-columns: repeat(5, 82vw); }
  .form-grid, .facts, .update .cols { grid-template-columns: minmax(0, 1fr); }
  .panel-head, .panel-body, .row, .ask, .update, .insight { padding-left: 1rem; padding-right: 1rem; }
  .table th, .table td { padding-left: 1rem; padding-right: 1rem; }
  .table .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------------------------------------------------------------- pass 2: confirmations, review, replies, invites */

.fine { color: var(--dimmer); font-size: 0.8rem; margin: 1.4rem 0 0; line-height: 1.5; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: calc(100vw - 32px);
  padding: 0.8rem 1.1rem;
  background: #0f1822;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 0.88rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  transform: translateX(-50%);
  animation: toast 5.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
}
@keyframes toast {
  0% { opacity: 0; transform: translate(-50%, 10px); }
  6%, 82% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 6px); }
}

.review {
  display: grid;
  gap: 0.9rem;
  padding: 1.3rem 1.4rem;
  border-top: 1px solid var(--line);
}
.review:first-child { border-top: 0; }
.review .title { font-weight: 600; font-size: 1rem; }
.review .note { color: var(--dim); font-size: 0.9rem; white-space: pre-wrap; margin: 0; }
.review .actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.review details[open] { flex-basis: 100%; }

details.disclose > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
}
details.disclose > summary::-webkit-details-marker { display: none; }
details.disclose[open] > summary { margin-bottom: 0.8rem; }
details.disclose .inner { display: grid; gap: 0.6rem; }

.reply {
  margin-top: 0.6rem;
  padding: 0.75rem 0.9rem;
  border-left: 2px solid var(--accent);
  background: var(--bg-sunk);
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
  white-space: pre-wrap;
}
.reply .who { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--dimmer); margin-bottom: 0.3rem; white-space: normal; }

.callout {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 180, 84, 0.35);
  border-radius: 8px;
  background: rgba(255, 180, 84, 0.06);
  font-size: 0.86rem;
}
.callout .label { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--dim); display: block; margin-bottom: 0.25rem; }

.invite {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(77, 184, 255, 0.4);
  border-radius: 10px;
  background: var(--accent-soft);
  display: grid;
  gap: 0.7rem;
}
.invite .linkbox { display: flex; gap: 0.5rem; }
.invite .linkbox input { font-size: 0.8rem; color: var(--dim); }

.req { padding: 1rem 1.4rem; border-top: 1px solid var(--line); }
.req:first-child { border-top: 0; }
.req .top-line { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.req .title { font-weight: 500; }
.req .sub { font-size: 0.8rem; color: var(--dim); margin-top: 0.15rem; }

.deliv { padding: 1rem 1.4rem; border-top: 1px solid var(--line); display: grid; gap: 0.7rem; }
.deliv .top-line { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.deliv .title { font-weight: 500; }
.deliv .sub { font-size: 0.8rem; color: var(--dim); }
.deliv .actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.deliv details[open] { flex-basis: 100%; }
.login .fine { margin: 1.4rem 0 0; }
