/* ============================================================
   Synthesize (Reflect phase / Coach surface)
   Ported from Synthesize.dc.html. Tokens mirror the design handoff;
   accent is mainsite red (deliberate exception, like Intervention).
   Everything is scoped under .synth.
   ============================================================ */

.synth {
  /* Accent — mainsite red (deliberate exception, like Intervention) */
  --accent: #E54D4D;
  --accentD: #C73E3E;
  --accentL: #FCA5A5;
  --accentVL: #FEE2E2;
  --ctaShadow: 0 4px 14px rgba(229, 77, 77, .28);

  /* Ink / text — warm, never pure black */
  --ink: #2C2416;
  --ink2: #5C5242;
  --muted: #78716C;
  --faint: #A8A29E;
  --hair: #C4BCB0;

  /* Surfaces / backgrounds */
  --bgPage: #FEF7F1;
  --surface: #FFFFFF;
  --subtle: #FBFAF8;
  --subtleP: #FBF6FF;

  /* Borders */
  --border: #E8E3DC;
  --inner: #F0EBE4;

  /* Priority colors */
  --p1: #C73E3E;
  --p2: #D97706;
  --p3: #0369A1;
  --park: #78716C;
  --ok: #047857; /* agreed / done / decision green (no exact platform token) */

  /* Shadows */
  --shCard: 0 1px 3px rgba(0, 0, 0, .05);
  --shDrop: 0 12px 24px rgba(0, 0, 0, .16);
  --shModal: 0 20px 25px rgba(0, 0, 0, .18);

  /* Radii */
  --rBadge: 4px;
  --rChip: 7px;
  --rCard: 12px;
  --rModal: 16px;

  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bgPage);
  min-height: 70vh;
  -webkit-font-smoothing: antialiased;
}

.synth-body { background: var(--bg-page); }

.synth *, .synth *::before, .synth *::after { box-sizing: border-box; }

.synth .material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
}

/* ---------- Typography ---------- */
.synth h1, .synth h2, .synth h3, .synth .ff {
  font-family: var(--font-heading);
  font-optical-sizing: auto;
  letter-spacing: -.02em;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.synth .kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Boot ---------- */
.synth-boot { display: grid; place-items: center; min-height: 50vh; }
.synth-spinner {
  width: 56px; height: 56px; border-radius: 50%;
  border: 3px solid var(--accentL);
  border-top-color: var(--accent);
  animation: synth-spin .9s linear infinite;
}
@keyframes synth-spin { to { transform: rotate(360deg); } }

/* ---------- Buttons ---------- */
.synth .btn {
  font-family: inherit; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  padding: var(--space-2-5) var(--space-4); border-radius: var(--space-2-5);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--ink); cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.synth .btn:hover { border-color: var(--hair); }
.synth .btn:active { transform: scale(.98); }
.synth .btn .material-symbols-outlined { font-size: 18px; }
.synth .btn--accent {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: var(--ctaShadow);
}
.synth .btn--accent:hover { background: var(--accentD); border-color: var(--accentD); }
.synth .btn--ghost { background: transparent; border-color: transparent; color: var(--ink2); }
.synth .btn--ghost:hover { background: var(--inner); }
.synth .btn--sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.synth .btn:disabled { opacity: .5; cursor: not-allowed; }

.synth .iconbtn {
  width: 34px; height: 34px; display: inline-grid; place-items: center;
  border-radius: 9px; border: 1px solid var(--border); background: var(--surface);
  color: var(--ink2); cursor: pointer; transition: background .2s, transform .15s;
}
.synth .iconbtn:hover { background: var(--inner); }
.synth .iconbtn:active { transform: scale(.98); }
.synth .iconbtn .material-symbols-outlined { font-size: 20px; }

.synth .linkback {
  background: none; border: 0; color: var(--accent); font: inherit; font-weight: 600;
  cursor: pointer; padding: 4px 0; display: inline-flex; align-items: center; gap: 4px;
}
.synth .linkback:hover { color: var(--accentD); }

/* ---------- Layout containers ---------- */
.synth .wrap { max-width: 840px; margin: 0 auto; padding: 56px 24px 110px; }
.synth .wrap--wide { max-width: 1120px; }
.synth .wrap--kanban { max-width: 1180px; }
.synth .wrap--doc { max-width: 820px; }

/* ============================================================
   HOME
   ============================================================ */
.synth .home-h1 { font-size: 46px; line-height: 1.05; margin: 14px 0 12px; max-width: 16ch; }
.synth .home-sub { font-size: 16.5px; color: var(--ink2); max-width: 52ch; margin-bottom: 36px; }

.synth .action-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4); margin-bottom: 44px;
}
.synth .action-card {
  border-radius: var(--rCard); padding: 24px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  text-align: left; font: inherit; color: inherit;
  display: flex; flex-direction: column; gap: 10px;
}
.synth .action-card:hover { transform: translateY(-2px); box-shadow: var(--shCard); }
.synth .action-card--accent { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: var(--ctaShadow); }
.synth .action-card--accent .ac-desc { color: rgba(255,255,255,.85); }
.synth .ac-icon { font-size: 30px; }
.synth .ac-title { font-family: var(--font-heading); font-size: 21px; font-weight: 600; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.synth .ac-desc { font-size: 14px; color: var(--ink2); }
.synth .count-pill {
  font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 9999px;
  background: var(--accentVL); color: var(--accentD);
}

.synth .recent-h { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.synth .recent-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--border); background: var(--surface); border-radius: 11px;
  margin-bottom: var(--space-2-5);
}
.synth .recent-row .rr-ico { color: var(--accent); font-size: 22px; }
.synth .rr-main { flex: 1; min-width: 0; }
.synth .rr-name { font-family: var(--font-heading); font-weight: 600; font-size: 16px; }
.synth .rr-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.synth .empty {
  border: 1px dashed var(--hair); border-radius: var(--rCard); padding: 36px;
  text-align: center; color: var(--muted); background: var(--subtle);
}

/* ============================================================
   MODALS
   ============================================================ */
.synth-overlay {
  position: fixed; inset: 0; background: rgba(44, 36, 22, .42);
  display: grid; place-items: center; padding: 24px; z-index: 1000;
  animation: synth-fade .2s ease;
}
.synth-overlay--top { z-index: 1100; }
@keyframes synth-fade { from { opacity: 0; } }
.synth-modal {
  background: var(--surface); border-radius: var(--rModal); box-shadow: var(--shModal);
  width: 100%; max-width: 560px; max-height: 86vh; overflow: auto;
  animation: synth-pop .2s ease;
}
.synth-modal--wide { max-width: 720px; }
@keyframes synth-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.synth-modal-head { padding: 22px 24px 8px; }
.synth-modal-title { font-family: var(--font-heading); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.synth-modal-body { padding: 12px 24px 22px; }
.synth-modal-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 24px; border-top: 1px solid var(--inner);
}

.synth .field { margin-bottom: 16px; }
.synth .field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink2); margin-bottom: 6px; }
.synth .field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.synth .fig-guide { background: var(--subtleP); border: 1px solid var(--border); border-radius: var(--rChip); padding: 10px 14px 10px 6px; margin-bottom: 6px; }
.synth .fig-guide ol { margin: 0; padding-left: 22px; }
.synth .fig-guide ul { margin: 4px 0 0; padding-left: 22px; }
.synth .fig-guide li { font-size: 13px; color: var(--ink2); line-height: 1.55; margin: 2px 0; }
.synth .fig-guide strong { color: var(--ink); font-weight: 600; }
.synth input[type=text], .synth input[type=url], .synth textarea, .synth select {
  width: 100%; font: inherit; font-size: 14px; color: var(--ink);
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); resize: vertical;
}
.synth textarea { min-height: 120px; line-height: 1.5; }
.synth input:focus, .synth textarea:focus, .synth select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accentVL);
}

/* dropzone */
.synth .dropzone {
  border: 1.5px dashed var(--hair); border-radius: 12px; padding: 28px;
  text-align: center; color: var(--muted); background: var(--subtle); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.synth .dropzone:hover { border-color: var(--accent); background: var(--subtleP); }
.synth .dropzone .material-symbols-outlined { font-size: 30px; color: var(--accent); display: block; margin-bottom: 8px; }
.synth .charcount { font-size: 12px; color: var(--muted); text-align: right; margin-top: 6px; }
.synth .charcount.over { color: var(--p1); font-weight: 600; }
.synth .thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.synth .thumb { position: relative; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.synth .thumb img { width: 100%; height: 100%; object-fit: cover; }
.synth .thumb .x { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,.6); color: var(--bg-surface); border: 0; border-radius: 6px; width: 20px; height: 20px; cursor: pointer; display: grid; place-items: center; }
.synth .thumb .x .material-symbols-outlined { font-size: 14px; }

/* ============================================================
   INPUT (artifact tray)
   ============================================================ */
.synth .input-h1 { font-size: 44px; line-height: 1.05; margin: 12px 0 24px; max-width: 22ch; }
.synth .add-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.synth .add-btn {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 600;
  padding: 11px 15px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface);
  color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s, transform .15s;
}
.synth .add-btn:hover { border-color: var(--accent); background: var(--subtleP); }
.synth .add-btn:active { transform: scale(.98); }
.synth .add-btn .material-symbols-outlined { font-size: 19px; color: var(--accent); }

.synth .tray { display: flex; flex-direction: column; gap: 10px; }
.synth .tray-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--border); background: var(--surface); border-radius: 11px;
}
.synth .tray-tile {
  width: 42px; height: 42px; border-radius: 10px; background: var(--accentVL);
  color: var(--accentD); display: grid; place-items: center; flex: none;
}
.synth .tray-main { flex: 1; min-width: 0; }
.synth .tray-title { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.synth .tray-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.synth .guardrail {
  margin-top: var(--space-4); padding: var(--space-3) var(--space-3-5); border-radius: var(--space-2-5); font-size: 13px;
  background: var(--color-warning-very-light); color: var(--color-warning-ink); border: 1px solid var(--color-warning-light);
}
.synth .input-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 28px; flex-wrap: wrap;
}
.synth .toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); cursor: pointer; }
.synth .toggle input { width: auto; }

/* ============================================================
   LOADING
   ============================================================ */
.synth .loading { display: grid; place-items: center; min-height: 56vh; text-align: center; gap: 22px; }
.synth .load-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.synth .load-step { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; transition: color .3s; }
.synth .load-step.done { color: var(--ink); }
.synth .load-step.done .material-symbols-outlined { color: var(--ok); }
.synth .load-step .material-symbols-outlined { font-size: 18px; color: var(--faint); }
.synth .load-hint { font-style: italic; color: var(--muted); font-size: 13.5px; }

/* ============================================================
   REVIEW
   ============================================================ */
.synth .review-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface); margin-bottom: 8px;
}
.synth .review-row .conf { font-size: 18px; }
.synth .review-row .conf.low { color: var(--p2); }
.synth .review-row .conf.ok { color: var(--ok); }
.synth .review-text { flex: 1; }
.synth .src-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600;
  padding: 3px 9px; border-radius: 9999px; background: var(--accentVL); color: var(--accentD);
  cursor: pointer; border: 0; flex: none;
}
.synth .src-chip .material-symbols-outlined { font-size: 14px; }
.synth .low-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  padding: var(--space-1) var(--space-2-5); border-radius: 9999px; background: var(--color-warning-very-light); color: var(--color-warning-ink); margin-bottom: var(--space-3-5);
}

/* ----- Grouped review (scannable affinity review for big boards) ----- */
.synth .review-cover {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  color: var(--accentD); background: var(--accentVL); padding: 5px 12px; border-radius: 9999px; margin-bottom: 14px;
}
.synth .review-cover .material-symbols-outlined { font-size: 16px; }
.synth .review-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.synth .review-modes { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.synth .review-modes button {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600;
  padding: 6px 12px; border: 0; background: var(--surface); color: var(--muted); cursor: pointer;
}
.synth .review-modes button + button { border-left: 1px solid var(--border); }
.synth .review-modes button.on { background: var(--accentVL); color: var(--accentD); }
.synth .review-modes .material-symbols-outlined { font-size: 15px; }

.synth .rg-card { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin-bottom: 10px; overflow: hidden; }
.synth .rg-card.accepted { background: var(--subtleP); }
.synth .rg-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.synth .rg-chev { border: 0; background: transparent; cursor: pointer; color: var(--muted); display: inline-flex; padding: 0; }
.synth .rg-title { flex: 1; font-family: var(--font-heading); font-size: 16px; font-weight: 600; color: var(--ink); }
.synth .rg-count {
  font-size: 12px; font-weight: 700; color: var(--muted); background: var(--subtle, #FBFAF8);
  border: 1px solid var(--border); border-radius: 9999px; padding: 1px 9px; min-width: 24px; text-align: center;
}
.synth .rg-ok { font-size: 18px; color: var(--ok); }
.synth .rg-mini { border: 0; background: transparent; cursor: pointer; color: var(--muted); display: inline-flex; padding: 4px; border-radius: 6px; }
.synth .rg-mini:hover { background: var(--subtleP); color: var(--accentD); }
.synth .rg-mini.del:hover { color: var(--p1); }
.synth .rg-mini .material-symbols-outlined { font-size: 18px; }
.synth .rg-body { padding: 0 12px 12px; }
.synth .rg-body .review-row { margin-bottom: 6px; }
.synth .rg-additem { margin-top: 2px; }
.synth .rg-merged { margin-top: 8px; border-top: 1px solid var(--inner); padding-top: 8px; }
.synth .rg-merged-tog { border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px; padding: 0; }
.synth .rg-merged-tog .material-symbols-outlined { font-size: 16px; }
.synth .rg-dups { margin-top: 6px; }
.synth .rg-dup { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); padding: 4px 0 4px 6px; }
.synth .rg-dup .material-symbols-outlined { font-size: 14px; }

/* ----- Assisted keyboard triage ("Sort myself") ----- */
.synth .tr-kbd { font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: var(--subtle); border: 1px solid var(--border); border-radius: 5px; padding: 1px 7px; color: var(--ink2); }
.synth .tr-prog { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; }
.synth .tr-prog-n { font-size: 12px; color: var(--muted); white-space: nowrap; }
.synth .tr-bar { flex: 1; height: 5px; background: var(--inner); border-radius: 3px; overflow: hidden; }
.synth .tr-bar > i { display: block; height: 100%; background: var(--accent); transition: width .2s ease; }
.synth .tr-note { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.05); padding: 28px 22px; text-align: center; margin-bottom: 12px; }
.synth .tr-note-text { font-family: var(--font-heading); font-size: 20px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.synth .tr-note-by { font-size: 12px; color: var(--muted); margin-top: 10px; display: inline-flex; align-items: center; gap: 5px; }
.synth .tr-note-by .material-symbols-outlined { font-size: 14px; }
.synth .tr-sugg { text-align: center; font-size: 13px; color: var(--accentD); margin-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.synth .tr-sugg .material-symbols-outlined { font-size: 16px; }
.synth .tr-sugg--none { color: var(--muted); }
.synth .tr-bkts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.synth .tr-bkt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; font-family: var(--font-body); font-size: 13px; color: var(--ink); text-align: left; transition: border-color .1s; }
.synth .tr-bkt:hover { border-color: var(--accent); }
.synth .tr-bkt.suggested { border: 2px solid var(--accent); background: var(--accentVL); color: var(--accentD); font-weight: 600; }
.synth .tr-bkt .tr-key { font-family: ui-monospace, Menlo, monospace; font-size: 13px; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); flex: none; }
.synth .tr-bkt.suggested .tr-key { border-color: var(--accent); color: var(--accentD); }
.synth .tr-bkt-label { flex: 1; min-width: 0; }
.synth .tr-ret { margin-left: auto; font-size: 16px; color: var(--accent); }
.synth .tr-newbkt { margin-top: 10px; border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; padding: 0; }
.synth .tr-legend { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 16px; font-size: 12px; color: var(--muted); }
.synth .tr-legend span { display: inline-flex; align-items: center; gap: 5px; }
.synth .tr-done { text-align: center; padding: 36px 20px; }
.synth .tr-done .material-symbols-outlined { font-size: 32px; color: var(--ok); }
.synth .tr-done-h { font-family: var(--font-heading); font-size: 20px; font-weight: 600; margin: 10px 0 4px; }
.synth .tr-done-sub { font-size: 13px; color: var(--muted); margin-bottom: 18px; }

/* ============================================================
   RESULTS — header
   ============================================================ */
.synth .res-head {
  position: sticky; top: 0; z-index: 40; height: 64px;
  display: flex; align-items: center; gap: 12px; padding: 0 24px;
  background: rgba(254, 247, 241, .9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.synth .res-wordmark { font-family: var(--font-heading); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.synth .res-pill { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 9999px; background: var(--accentVL); color: var(--accentD); }
.synth .res-spacer { flex: 1; }
.synth .seg {
  display: inline-flex; background: var(--inner); border-radius: 9px; padding: 3px;
}
.synth .seg button {
  font: inherit; font-size: 13px; font-weight: 600; border: 0; background: transparent;
  color: var(--ink2); padding: 6px 12px; border-radius: 7px; cursor: pointer; transition: background .2s, color .2s;
}
.synth .seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shCard); }

/* ---------- Quick Summary ---------- */
.synth .summary-card {
  border: 1px solid var(--border); background: var(--subtleP); border-radius: var(--rCard);
  padding: var(--space-4-5) var(--space-5); margin-bottom: var(--space-4-5);
}
.synth .summary-head { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.synth .summary-head .material-symbols-outlined { color: var(--accent); }
.synth .summary-title { font-family: var(--font-heading); font-weight: 600; font-size: 17px; flex: 1; }
.synth .summary-list { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.synth .summary-line { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; }
.synth .summary-bullet { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 9px; flex: none; }
.synth .summary-text { flex: 1; font-size: 15px; line-height: 1.5; color: var(--ink); }
.synth .summary-line .del { opacity: 0; flex: none; margin-top: 1px; }
.synth .summary-line:hover .del { opacity: 1; }
.synth .summary-add { margin-top: 8px; align-self: start; }

/* ---------- Draft reminder ---------- */
.synth .draft-note {
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--accentD);
  background: var(--accentVL); border-radius: 10px; padding: 10px 14px; margin-bottom: 18px;
}
.synth .draft-note .material-symbols-outlined { font-size: 18px; }

/* ---------- Tabs ---------- */
.synth .tabrow { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.synth .tabrow::-webkit-scrollbar { display: none; }
.synth .tab {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); background: none; border: 0;
  padding: var(--space-3) var(--space-1-5); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.synth .tab.on { color: var(--ink); border-bottom-color: var(--accent); }
.synth .tab .cnt { font-size: 11px; font-weight: 700; color: var(--muted); }
.synth .tab-tools { margin-left: auto; }

/* ============================================================
   THEMES
   ============================================================ */
.synth .themes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.synth .themes-list { display: flex; flex-direction: column; gap: 12px; }
.synth .theme-card {
  border: 1px solid var(--border); background: var(--surface); border-radius: var(--rCard);
  padding: var(--space-4); transition: box-shadow .2s, transform .2s;
}
.synth .theme-card:hover { box-shadow: var(--shCard); }
.synth .theme-card.muted { opacity: .55; }
.synth .theme-top { display: flex; align-items: center; gap: 10px; }
.synth .theme-chev { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 0; display: grid; place-items: center; }
.synth .theme-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.synth .theme-title { font-family: var(--font-heading); font-weight: 600; font-size: 17px; flex: 1; min-width: 0; }
.synth .theme-notes { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.synth .theme-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }

.synth .badge {
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: var(--rBadge);
  display: inline-flex; align-items: center; gap: 4px;
}
.synth .pri-badge { color: var(--bg-surface); }
.synth .pill {
  font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 9999px;
  border: 1px solid var(--border); background: var(--subtle); color: var(--ink2);
  cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
}
.synth .pill .material-symbols-outlined { font-size: 13px; }
.synth .cat-pill { color: var(--bg-surface); border: 0; }

/* evidence */
.synth .evidence { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--inner); display: flex; flex-direction: column; gap: 10px; }
.synth .ev-card {
  background: var(--subtle); border: 1px solid var(--inner); border-radius: 10px; padding: 12px 14px;
  position: relative;
}
.synth .ev-quote { color: var(--accent); font-size: 16px; }
.synth .ev-text { font-size: 14px; line-height: 1.5; margin: 4px 0; }
.synth .ev-foot { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.synth .ev-by { font-style: italic; }
.synth .ev-card .del { position: absolute; top: 8px; right: 8px; opacity: 0; }
.synth .ev-card:hover .del { opacity: 1; }

.synth .theme-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* card / overflow menu */
.synth .menu-wrap { position: relative; }
.synth .menu {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 60; min-width: 200px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shDrop);
  padding: var(--space-1-5); animation: synth-pop .15s ease;
}
.synth .menu button {
  width: 100%; text-align: left; font: inherit; font-size: 13.5px; color: var(--ink);
  background: none; border: 0; padding: 8px 10px; border-radius: 7px; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
}
.synth .menu button:hover { background: var(--inner); }
.synth .menu button.danger { color: var(--p1); }
.synth .menu-sep { height: 1px; background: var(--inner); margin: 5px 2px; }
.synth .menu-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 10px 4px; }
.synth .cat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 10px 8px; }
.synth .cat-chip { font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 9999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.synth .menu-catcher { position: fixed; inset: 0; z-index: 50; }

/* ---------- Kanban ---------- */
.synth .kanban { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; }
.synth .kan-col { flex: 0 0 280px; background: var(--subtle); border: 1px solid var(--border); border-radius: var(--rCard); padding: 12px; }
.synth .kan-col.dragover { border-color: var(--accent); background: var(--subtleP); }
.synth .kan-col-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 700; font-size: 13px; }
.synth .kan-col-dot { width: 9px; height: 9px; border-radius: 50%; }
.synth .kan-col-cnt { margin-left: auto; font-size: 12px; color: var(--muted); }
.synth .kan-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 10px; cursor: grab; }
.synth .kan-card:active { cursor: grabbing; }
.synth .kan-card.dragging { opacity: .4; }
.synth .kan-add-col { flex: 0 0 200px; display: grid; place-items: center; border: 1.5px dashed var(--hair); border-radius: var(--rCard); color: var(--muted); cursor: pointer; }

/* ---------- Outline (Category → Themes → Items) ---------- */
.synth .outline { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.synth .ol-cat { border: 1px solid var(--border); background: var(--surface); border-radius: var(--rCard); overflow: hidden; }
.synth .ol-cat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; background: var(--subtle); }
.synth .ol-cat-head:hover { background: var(--inner); }
.synth .ol-cat-head .material-symbols-outlined { color: var(--muted); font-size: 20px; }
.synth .ol-cat-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.synth .ol-cat-label { font-family: var(--font-heading); font-weight: 600; font-size: 17px; flex: 1; }
.synth .ol-cat-meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.synth .ol-themes { padding: 6px 10px 10px 16px; display: flex; flex-direction: column; gap: 4px; }
.synth .ol-theme { border-left: 2px solid var(--inner); padding-left: 12px; }
.synth .ol-theme-head { display: flex; align-items: center; gap: 8px; padding: 8px 6px; cursor: pointer; border-radius: 8px; }
.synth .ol-theme-head:hover { background: var(--subtle); }
.synth .ol-theme-head .material-symbols-outlined { color: var(--faint); font-size: 18px; }
.synth .ol-theme-title { font-weight: 600; font-size: 14.5px; flex: 1; }
.synth .ol-theme-meta { font-size: 12px; color: var(--muted); }
.synth .ol-items { display: flex; flex-direction: column; gap: 4px; padding: 2px 0 8px 26px; }
.synth .ol-item { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.5; color: var(--ink2); }
.synth .ol-item .material-symbols-outlined { color: var(--accent); font-size: 15px; flex: none; margin-top: 2px; }
.synth .ol-item em { color: var(--muted); font-style: italic; }

/* ============================================================
   PRIORITIZE — 2x2 matrix carousel
   ============================================================ */
.synth .prio-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; row-gap: 10px; }
.synth .prio-fw { display: inline-flex; align-items: center; gap: 10px; }
.synth .prio-fw .fw-label { font-family: var(--font-heading); font-weight: 600; font-size: 18px; min-width: 180px; text-align: center; }
.synth .prio-tools { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.synth .matrix-wrap { position: relative; }
.synth .matrix {
  position: relative; width: 100%; aspect-ratio: 1.4 / 1; max-width: 760px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--rCard);
}
.synth #prio-plot { position: absolute; inset: 44px; }
.synth .axis-label { position: absolute; font-size: 12px; font-weight: 600; color: var(--muted); }
.synth .axis-top { top: 8px; left: 50%; transform: translateX(-50%); }
.synth .axis-bottom { bottom: 8px; left: 50%; transform: translateX(-50%); }
.synth .axis-left { left: 8px; top: 50%; transform: translateY(-50%) rotate(-90deg); transform-origin: left; }
.synth .axis-right { right: 8px; top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: right; }
.synth .quad-label { position: absolute; font-size: 11px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
.synth .matrix .vline, .synth .matrix .hline { position: absolute; background: var(--inner); }
.synth .matrix .vline { left: 50%; top: 44px; bottom: 44px; width: 1px; }
.synth .matrix .hline { top: 50%; left: 44px; right: 44px; height: 1px; }
.synth .dot-card {
  position: absolute; transform: translate(-50%, -50%);
  background: var(--surface); border: 1px solid var(--border); border-radius: 9px;
  padding: var(--space-1-5) var(--space-2-5); font-size: 12px; font-weight: 600; max-width: 160px;
  box-shadow: var(--shCard); cursor: grab; user-select: none; touch-action: none;
}
.synth .dot-card:active { cursor: grabbing; }
.synth .dot-card .pri-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }

.synth .dotnav { display: flex; justify-content: center; gap: 8px; margin: 16px 0; }
.synth .dotnav button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--hair); cursor: pointer; padding: 0; }
.synth .dotnav button.on { background: var(--accent); }
.synth .prio-caption { text-align: center; color: var(--muted); font-size: 13.5px; max-width: 60ch; margin: 0 auto 24px; }

.synth .lens-section { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 8px; }
.synth .lens-h { font-family: var(--font-heading); font-weight: 600; font-size: 18px; margin-bottom: 12px; }
.synth .lens-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.synth .lens-card { border: 1px solid var(--border); border-radius: var(--rCard); padding: 14px 16px; background: var(--surface); }
.synth .lens-card h4 { margin: 0 0 8px; font-size: 13px; font-weight: 700; }

.synth .roadmap { margin-top: 22px; }
.synth .road-group { margin-bottom: 16px; }
.synth .road-group h4 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.synth .road-group .dot { width: 9px; height: 9px; border-radius: 50%; }
.synth .road-item { padding: 8px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; margin-bottom: 6px; font-size: 14px; }

/* ============================================================
   ACTIONS / DECISIONS
   ============================================================ */
.synth .act-table { width: 100%; border-collapse: collapse; }
.synth .act-table th { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--border); }
.synth .act-table td { padding: 10px; border-bottom: 1px solid var(--inner); font-size: 14px; vertical-align: top; }
.synth .act-table td.what { width: 60%; }
.synth .act-table .del-cell { width: 36px; text-align: right; }

.synth .dec-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); margin-bottom: 8px; }
.synth .dec-row .material-symbols-outlined { color: var(--ok); }
.synth .dec-text { flex: 1; font-size: 14px; line-height: 1.5; }

/* contenteditable affordance */
.synth [contenteditable] { outline: none; border-radius: 5px; padding: 1px 3px; margin: -1px -3px; transition: background .15s, box-shadow .15s; }
.synth [contenteditable]:hover { background: var(--subtle); }
.synth [contenteditable]:focus { background: var(--surface); box-shadow: 0 0 0 2px var(--accentVL); }
.synth [contenteditable]:empty::before { content: attr(data-ph); color: var(--faint); }

.synth .del {
  background: none; border: 0; color: var(--faint); cursor: pointer; padding: 2px; border-radius: 6px;
  display: inline-grid; place-items: center;
}
.synth .del:hover { color: var(--p1); background: #FEE2E2; }
.synth .del .material-symbols-outlined { font-size: 18px; }

/* ---------- Source viewer ---------- */
.synth .src-body pre { white-space: pre-wrap; font-family: var(--font-body); font-size: 13.5px; line-height: 1.6; color: var(--ink2); background: var(--subtle); border: 1px solid var(--inner); border-radius: 10px; padding: 16px; }
.synth .src-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.synth .src-photos img { width: 100%; border-radius: 10px; border: 1px solid var(--border); }
.synth .src-stickies { display: flex; flex-direction: column; gap: 6px; }
.synth .src-sticky { padding: 8px 12px; background: #FEF9C3; border-radius: 8px; font-size: 13.5px; }

/* ---------- Export ---------- */
.synth .export-preview {
  white-space: pre-wrap; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px;
  line-height: 1.6; background: var(--subtle); border: 1px solid var(--inner); border-radius: 10px;
  padding: 16px; max-height: 50vh; overflow: auto; color: var(--ink2);
}

/* ---------- Library / error ---------- */
.synth .lib-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; }
.synth .lib-main { flex: 1; min-width: 0; }
.synth .lib-name { font-family: var(--font-heading); font-weight: 600; font-size: 15px; }
.synth .lib-meta { font-size: 12px; color: var(--muted); }
.synth .err-screen { display: grid; place-items: center; min-height: 50vh; text-align: center; gap: 16px; }
.synth .err-screen .material-symbols-outlined { font-size: 44px; color: var(--p1); }

/* toast */
.synth .toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 9999px;
  font-size: 13px; font-weight: 600; z-index: 1200; box-shadow: var(--shDrop);
  animation: synth-pop .2s ease;
}

@media (max-width: 640px) {
  .synth .wrap { padding: 32px 16px 90px; }
  .synth .home-h1 { font-size: 34px; }
  .synth .input-h1 { font-size: 30px; }
  .synth .res-head { padding: 0 14px; gap: 8px; }
  .synth .res-head .hide-sm { display: none; }
}

/* ============================================================
   PRODUCT ROADMAP DASHBOARD STYLES
   ============================================================ */
.synth .roadmap-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rCard);
  padding: 32px;
  margin-bottom: 24px;
  gap: 24px;
}
.synth .roadmap-intro h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  margin: 0 0 10px;
}
.synth .roadmap-intro p {
  color: var(--ink2);
  line-height: 1.6;
  margin: 0;
  max-width: 72ch;
  font-size: 14.5px;
}
.synth .ri-stats {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}
.synth .ri-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--subtle);
  border: 1px solid var(--inner);
  border-radius: 12px;
  width: 140px;
  height: 90px;
  text-align: center;
}
.synth .ri-stat .num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.synth .ri-stat .lbl {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .synth .roadmap-intro {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .synth .ri-stats {
    width: 100%;
    justify-content: space-between;
  }
}

/* Strategic Goal Filter Grid */
.synth .roadmap-goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.synth .roadmap-goal-card {
  display: flex;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rCard);
  padding: 16px;
  cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.synth .roadmap-goal-card:hover {
  transform: translateY(-2px);
  border-color: var(--goal-color);
  box-shadow: var(--shCard);
}
.synth .roadmap-goal-card.on {
  border-color: var(--goal-color);
  background: var(--bgPage);
  box-shadow: 0 0 0 3px rgba(229, 77, 77, 0.08);
}
.synth .rg-card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}
.synth .rg-card-icon .material-symbols-outlined {
  font-size: 22px;
}
.synth .rg-card-body h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
}
.synth .rg-card-body p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* 12-Month Board Board / Columns */
.synth .roadmap-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
  align-items: start;
}
.synth .roadmap-column {
  background: var(--subtle);
  border: 1px solid var(--border);
  border-radius: var(--rCard);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.synth .rc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--inner);
  padding-bottom: 10px;
  margin-bottom: 4px;
}
.synth .rc-header h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin: 0;
}
.synth .rc-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: var(--inner);
  padding: 2px 8px;
  border-radius: 10px;
}
.synth .rc-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Feature Card */
.synth .roadmap-feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shCard);
  transition: transform .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.synth .roadmap-feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--hair);
}
.synth .rfc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.synth .quarter-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accentD);
  background: var(--accentVL);
  padding: 2px 7px;
  border-radius: var(--rChip);
}
.synth .status-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  padding: 2px 6px;
  border-radius: var(--rBadge);
}
.synth .status-badge.status--progress {
  color: #C73E3E;
  background: #FEE2E2;
}
.synth .status-badge.status--planning {
  color: #D97706;
  background: #FFFBEB;
}
.synth .status-badge.status--backlog {
  color: #2563EB;
  background: #EFF6FF;
}
.synth .rfc-title {
  margin: 4px 0 0;
  font-size: 15.5px;
  font-weight: 700;
  font-family: var(--font-heading);
  line-height: 1.3;
  cursor: pointer;
}
.synth .rfc-title:hover {
  color: var(--accent);
}
.synth .rfc-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink2);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.synth .rfc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--inner);
  padding-top: 8px;
  margin-top: 4px;
}
.synth .rfc-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.synth .rfc-time .material-symbols-outlined {
  font-size: 12px;
}
.synth .rfc-goal-tag {
  background: var(--inner);
  color: var(--ink2);
  padding: 1px 6px;
  border-radius: var(--rChip);
}
.synth .rfc-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}
.synth .rfc-actions .btn {
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 6px;
}
.synth .vote-count {
  font-weight: 700;
  margin-left: 2px;
}

/* User Suggestions Layout */
.synth .roadmap-suggestions-section {
  border-top: 1px solid var(--border);
  padding-top: 36px;
}
.synth .rss-header h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  margin: 0 0 6px;
}
.synth .rss-header p {
  color: var(--ink2);
  margin: 0 0 24px;
  max-width: 72ch;
  font-size: 14px;
  line-height: 1.5;
}
.synth .rss-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
}
@media (max-width: 768px) {
  .synth .rss-layout {
    grid-template-columns: 1fr;
  }
}
.synth .rss-list-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.synth .rss-form-column {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rCard);
  padding: 20px;
  align-self: start;
}
.synth .rss-form-column h4 {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: 18px;
}
.synth .suggestion-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rCard);
  padding: 16px;
  gap: 16px;
  box-shadow: var(--shCard);
}
.synth .sr-main h4 {
  margin: 0 0 6px;
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.synth .sr-main .goal-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--accentD);
  background: var(--accentVL);
  padding: 1px 6px;
  border-radius: 10px;
}
.synth .sr-main p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink2);
  line-height: 1.45;
}
.synth .sr-date {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}
.synth .sr-actions {
  flex-shrink: 0;
}

/* Detail Modal Styles */
.synth .detail-status-bar {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--inner);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.synth .detail-scope-box, .synth .detail-kpis-box {
  background: var(--subtle);
  border: 1px solid var(--inner);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.5;
}
.synth .detail-alignment-box {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  margin-left: 4px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink2);
}


/* ============================================================
   E3 — undo/redo, grouped-review bulk actions (Jul 2026)
   ============================================================ */

/* Undo/redo segment — matches .seg, adds a disabled state */
.synth .undo-seg button[disabled] { opacity: .35; cursor: default; }
.synth .undo-seg button .material-symbols-outlined { font-size: 18px; }

/* Drag handle on grouped-review rows */
.synth .rg-drag {
  font-size: 18px;
  color: var(--faint);
  cursor: grab;
  flex-shrink: 0;
  align-self: center;
  user-select: none;
  -webkit-user-drag: element;
}
.synth .rg-drag:hover { color: var(--muted); }
.synth .review-row.dragging { opacity: .45; }

/* Drop target highlight when dragging a note over another group */
.synth .rg-card.dragover {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
  background: var(--accentVL);
}

/* Select-mode checkboxes */
.synth .rg-check {
  background: none; border: 0; padding: 0;
  color: var(--faint); cursor: pointer;
  flex-shrink: 0; align-self: center;
  display: inline-flex;
}
.synth .rg-check.on, .synth .rg-check:hover { color: var(--accent); }
.synth .rg-check .material-symbols-outlined { font-size: 19px; }
.synth .review-row.selected { background: var(--accentVL); border-radius: 8px; }

/* Merge menu (per group) + bulk move menu — small anchored dropdowns */
.synth .rg-merge-wrap, .synth .bulk-move-wrap { position: relative; display: inline-flex; }
.synth .rg-menu, .synth .bulk-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  min-width: 220px; max-height: 260px; overflow: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shDrop); padding: 6px;
}
.synth .bulk-menu { top: auto; bottom: calc(100% + 6px); left: 0; right: auto; }
.synth .rg-menu-h {
  font-size: 11.5px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em;
  padding: 6px 8px 4px;
}
.synth .rg-menu button, .synth .bulk-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left;
  background: none; border: 0; border-radius: 7px;
  padding: 7px 9px; font-size: 13.5px; color: var(--ink); cursor: pointer;
}
.synth .rg-menu button:hover, .synth .bulk-menu button:hover { background: var(--subtle); }
.synth .bulk-menu-new { color: var(--accent) !important; font-weight: 600; }

/* Sticky bulk-action bar */
.synth .bulk-bar {
  position: sticky; bottom: 14px; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shDrop);
}
.synth .bulk-count { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.synth .bulk-del { color: var(--accentD); }

/* Select-mode hint line */
.synth .review-hint {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted); margin: 0 0 12px;
}
.synth .review-hint .material-symbols-outlined { font-size: 16px; }

/* ============================================================
   E4/E6 — export & share modal (brand, sections, send-to)
   ============================================================ */
.synth .x-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.synth .x-toggles { display: flex; gap: 6px; flex-wrap: wrap; }
.synth .x-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 1px solid var(--border); border-radius: 8px;
  padding: 5px 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.synth .x-toggle.on { color: var(--ink); border-color: var(--hair); background: var(--subtle); }
.synth .x-toggle .material-symbols-outlined { font-size: 16px; }
.synth .x-toggle.on .material-symbols-outlined { color: var(--accent); }

.synth .x-send { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.synth .x-send-h { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.synth .x-dest { display: inline-flex; align-items: center; gap: 8px; }
.synth .x-setup { font-size: 10.5px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.synth .x-busy { font-size: 12px; color: var(--muted); }
.synth .x-msg { font-size: 12px; font-weight: 600; }
.synth .x-msg.ok { color: var(--ok); }
.synth .x-msg.err { color: var(--accentD); }
.synth .x-hint { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin: 8px 0; }
.synth .x-hint .material-symbols-outlined { font-size: 15px; }

.synth .x-form { display: flex; flex-direction: column; gap: 12px; }
.synth .x-label { display: block; font-size: 12px; font-weight: 700; color: var(--ink2); }
.synth .x-input {
  display: block; width: 100%; margin-top: 4px;
  border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; font: inherit; font-size: 13.5px; color: var(--ink); background: var(--surface);
}
.synth .x-input:focus { outline: 2px solid var(--accentL); border-color: var(--accent); }
.synth .x-accent-row { display: flex; align-items: center; gap: 8px; }
.synth .x-input--accent { width: 120px; }
.synth .x-swatch { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--border); flex-shrink: 0; }
.synth .x-logo-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.synth .x-logo { height: 40px; max-width: 160px; object-fit: contain; border: 1px solid var(--border); border-radius: 6px; padding: 3px 6px; background: var(--surface); }
.synth .x-nologo { font-size: 12.5px; color: var(--faint); }
.synth .x-upload { cursor: pointer; }
.synth .x-conn { border: 1px solid var(--border); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.synth .x-conn-h { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ink); }
.synth .x-conn-h .material-symbols-outlined { font-size: 17px; color: var(--accent); }
.synth .x-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); display: inline-block; margin: 0 3px 0 8px; }
.synth .x-dot.on { background: var(--ok); }
.synth .x-conn-h { font-size: 12px; }

/* ============================================================
   E5 — follow-through: action status, continue card, carry-forward
   ============================================================ */
.synth .act-progress { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.synth .act-table th.st, .synth .act-table td.st { width: 34px; }
.synth .act-check { background: none; border: 0; padding: 0; cursor: pointer; color: var(--faint); display: inline-flex; }
.synth .act-check.on, .synth .act-check:hover { color: var(--ok); }
.synth .act-check .material-symbols-outlined { font-size: 19px; }
.synth .act-table tr.is-done td.what span[contenteditable] { text-decoration: line-through; color: var(--muted); }
.synth .carried-chip {
  display: inline-block; vertical-align: 1px; margin-left: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent); background: var(--accentVL); border-radius: 4px; padding: 1px 6px;
}

.synth .continue-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px; margin: 18px 0 8px; box-shadow: var(--shCard);
}
.synth .continue-card .cc-main { flex: 1; min-width: 0; }
.synth .cc-kicker { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 4px; }
.synth .cc-kicker .material-symbols-outlined { font-size: 15px; }
.synth .cc-name { font-size: 16px; font-weight: 700; color: var(--ink); }
.synth .cc-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.synth .carry-panel {
  border: 1px solid var(--border); border-radius: 12px; background: var(--subtle);
  padding: 14px 16px; margin: 16px 0;
}
.synth .carry-h { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.synth .carry-h .material-symbols-outlined { font-size: 17px; color: var(--accent); }
.synth .carry-h .btn { margin-left: auto; }
.synth .carry-count { font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1px 8px; }
.synth .carry-row {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; margin: 4px 0; font-size: 13px; color: var(--ink); cursor: pointer;
}
.synth .carry-row .material-symbols-outlined { font-size: 18px; color: var(--faint); flex-shrink: 0; }
.synth .carry-row.on { border-color: var(--accent); background: var(--accentVL); }
.synth .carry-row.on .material-symbols-outlined { color: var(--accent); }
.synth .carry-text { flex: 1; min-width: 0; }
.synth .carry-meta { font-size: 11.5px; font-weight: 700; color: var(--muted); flex-shrink: 0; }
.synth .carry-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* E7 — quick mode section headers */
.synth .quick-h {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--fontTitle, Fraunces, Georgia, serif);
  font-size: 19px; font-weight: 700; color: var(--ink);
  margin: 22px 0 10px;
}
.synth .quick-h .material-symbols-outlined { font-size: 20px; color: var(--accent); }
.synth .quick-h .cnt { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--subtle); border: 1px solid var(--border); border-radius: 10px; padding: 1px 8px; }

/* Dropzone hover state for OS file drags */
.synth .dropzone.dragover {
  border-color: var(--accent);
  background: var(--accentVL);
  color: var(--accentD);
}
