@font-face {
  font-family: "SUD Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://www.sudscrub.com/cdn/fonts/jost/jost_n4.d47a1b6347ce4a4c9f437608011273009d91f2b7.woff2") format("woff2");
}

@font-face {
  font-family: "SUD Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://www.sudscrub.com/cdn/fonts/barlow/barlow_n7.691d1d11f150e857dcbc1c10ef03d825bc378d81.woff2") format("woff2");
}

:root {
  --ink: #171717;
  --muted: #66645d;
  --soft: #f5f3ec;
  --panel: #ffffff;
  --mint: #bfe7dc;
  --mint-deep: #7fc1b2;
  --yellow: #ffdf3f;
  --yellow-soft: #fff2b3;
  --clay-soft: #f5e2d2;
  --charcoal: #1e1e1d;
  --line: #e4e0d5;
  --blue-soft: #edf4f6;
  --danger-bg: #fde8e8;
  --danger-ink: #9b1c1c;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: "SUD Jost", Jost, ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }

/* Compact 56px Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.brand-heading { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 104px; height: auto; display: block; }
.brand-tag {
  font-family: "SUD Barlow", Barlow, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.eyebrow { margin: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
h2 { margin: 0; font-family: "SUD Barlow", Barlow, sans-serif; font-size: 16px; line-height: 1.25; }
.sub-heading { margin: 16px 0 6px; font-family: "SUD Barlow", Barlow, sans-serif; font-size: 14px; }
.muted { color: var(--muted); font-size: 13px; }

.tab-bar { display: flex; flex-wrap: wrap; gap: 6px; }
.tab-btn {
  border: 1px solid transparent;
  background: transparent;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  transition: background 0.14s, color 0.14s;
}
.tab-btn:hover { background: var(--soft); color: var(--ink); }
.tab-btn.active { background: var(--charcoal); color: #fff; }
.pill {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.operator-cluster { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.operator-meta { display: grid; text-align: right; line-height: 1.2; padding: 0 4px; }
.operator-meta strong { font-size: 12px; }
.operator-meta span { font-size: 11px; color: var(--muted); }

/* Connector Health Popover */
.health-wrap { position: relative; }
.health-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.health-btn:hover { background: var(--blue-soft); }
.health-dot { width: 7px; height: 7px; border-radius: 999px; background: #16a34a; display: inline-block; }
.health-dot.warn { background: #d97706; }
.connector-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 310px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  z-index: 60;
}
.connector-popover[hidden] { display: none; }
.popover-title { font-family: "SUD Barlow", Barlow, sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }
.connector-bar { display: grid; gap: 6px; }
.conn-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
}
.conn-ok { background: #eefaf6; border-color: var(--mint-deep); }
.conn-warn { background: var(--yellow-soft); }

/* Buttons & Badges */
.btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  background: var(--panel);
  transition: background 0.12s, border-color 0.12s;
}
.btn:hover:not(:disabled) { background: var(--soft); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-xs { padding: 2px 7px; font-size: 11px; border-radius: 6px; }
.btn-primary { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.btn-primary:hover:not(:disabled) { background: #333; }
.btn-warn { background: var(--clay-soft); border-color: #e4c6ae; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--soft); color: var(--ink); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--blue-soft); font-size: 11px; font-weight: 600; }
.badge-spend { background: var(--yellow-soft); }
.badge-neg { background: var(--danger-bg); color: var(--danger-ink); }
.badge-pos { background: var(--mint); }
.badge-mary { background: #e8eefc; color: #1e3a8a; }
.badge-warn { background: #fef3c7; color: #92400e; }
.badge-muted { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }

/* Auth Modal */
.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(23, 23, 23, 0.55);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 20px;
}
.auth-modal[hidden] { display: none; }
.auth-card { width: 100%; max-width: 420px; display: grid; gap: 10px; }
.auth-card input { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; }

/* Workspace Shell */
.hub-shell { max-width: 1640px; margin: 0 auto; padding: 12px 16px 20px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.page-panel-scroll { padding: 4px 4px 28px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.empty-card { padding: 36px 20px; text-align: center; color: var(--muted); }

.toast-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--mint-deep);
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}
.toast-banner[hidden] { display: none; }
.toast-banner.toast-err { border-color: #f3b5b5; background: var(--danger-bg); color: var(--danger-ink); }
.toast-banner.toast-undo { border-color: #d9bf48; background: var(--yellow-soft); color: #3a2d00; }
.toast-undo-btn { padding: 2px 9px; font-size: 11.5px; border-radius: 6px; border: 1px solid var(--charcoal); background: var(--charcoal); color: #fff; cursor: pointer; font-weight: 700; }
.toast-undo-btn:hover { opacity: 0.88; }

/* 4-Column Locked CX Desk */
.inbox-grid {
  display: grid;
  grid-template-columns: 196px 320px minmax(400px, 1fr) 336px;
  gap: 12px;
  align-items: stretch;
}

@media (min-width: 1280px) {
  .hub-shell { height: calc(100vh - 56px); padding: 12px 16px; }
  #tab-inbox.active { height: 100%; }
  .inbox-grid { height: 100%; overflow: hidden; }
  .channel-rail, .queue-pane { height: 100%; overflow: hidden; }
  .composer-pane, .copilot-drawer { height: auto; max-height: calc(100vh - 80px); align-self: start; overflow: hidden; }
  .channel-rail { overflow-y: auto; }
  .copilot-drawer { display: flex; flex-direction: column; }
  #drawerCopilotResult { flex: 0 1 auto; min-height: 0; overflow-y: auto; }
}

/* Column 1: Channel Rail */
.channel-rail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 2px;
  gap: 2px;
}
.seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: none;
  background: transparent;
  border-radius: 7px;
  padding: 5px 3px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.seg-btn.active { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.seg-cnt {
  padding: 0 5px;
  border-radius: 999px;
  background: var(--yellow-soft);
  color: #6b4f00;
  font-size: 10px;
  font-weight: 700;
}

.rail-section { display: grid; gap: 2px; }
.rail-heading {
  font-family: "SUD Barlow", Barlow, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  padding: 8px 8px 3px;
}
.rail-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.rail-item:hover { background: var(--soft); }
.rail-item.active { background: var(--mint); border-color: var(--mint-deep); font-weight: 600; }
.rail-item[hidden] { display: none; }
.rail-item.chip-empty { opacity: 0.52; }
.rail-cnt, .chip-cnt {
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
}
.rail-item.active .rail-cnt, .rail-item.active .chip-cnt { background: rgba(255, 255, 255, 0.78); color: var(--ink); }
.rail-clear-btn { margin-top: 6px; width: 100%; }

/* Column 2: Scannable Queue */
.queue-pane {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
}
.queue-toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  flex-shrink: 0;
}
.bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  background: var(--yellow-soft);
  border-bottom: 1px solid #f2dc79;
  font-size: 12px;
  flex-shrink: 0;
}
.bulk-bar[hidden] { display: none; }
.bulk-count { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.bulk-actions { display: flex; align-items: center; gap: 4px; }
.search-input, .sort-select {
  padding: 6px 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--soft);
  font-size: 12px;
  min-width: 0;
}
.search-input:focus, .sort-select:focus { outline: 2px solid var(--mint-deep); background: var(--panel); }

.thread-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cluster-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--charcoal);
  color: #fff;
  font-family: "SUD Barlow", Barlow, sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cluster-header .badge { background: var(--yellow); color: var(--ink); }

.thread-card {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.12s, background 0.12s;
}
.thread-card:hover { background: #fbfaf6; border-color: #cfc9ba; }
.thread-card.selected { background: #f4fbf8; border-color: var(--charcoal); box-shadow: inset 3px 0 0 var(--charcoal); }
.thread-card.bulk-checked { background: var(--yellow-soft); border-color: #d9bf48; }
.qc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.qc-top-right { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.qc-check { accent-color: var(--charcoal); width: 14px; height: 14px; margin: 0; cursor: pointer; }
.qc-sender { font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-age { font-size: 11px; color: var(--muted); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.qc-age.age-warn { padding: 1px 6px; border-radius: 999px; background: var(--yellow-soft); color: #6b4f00; font-weight: 700; }
.qc-age.age-crit { padding: 1px 6px; border-radius: 999px; background: var(--danger-bg); color: var(--danger-ink); font-weight: 700; }
.qc-sub-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 3px; }
.qc-subject { font-size: 12px; font-weight: 600; color: #2f2e2a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-plat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; flex-shrink: 0; }
.qc-body-row { display: flex; gap: 8px; align-items: flex-start; margin-top: 5px; }
.post-thumb { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--line); }
.thread-snippet { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.qc-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }

/* Column 3: Center Conversation + Pinned Bottom Composer */
.composer-pane {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
}
.thread-detail-shell {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 80px);
  min-height: 0;
  overflow: hidden;
}
.thread-head {
  padding: 13px 16px 11px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 6px;
  flex-shrink: 0;
}
.thread-head-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.thread-head-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex-shrink: 0; }
.thread-title { font-family: "SUD Barlow", Barlow, sans-serif; font-size: 17px; margin: 0; line-height: 1.25; }
.thread-subline { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.thread-badges { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.ext-link { font-size: 12px; font-weight: 600; color: var(--ink); text-decoration: none; padding: 3px 8px; border-radius: 7px; border: 1px solid var(--line); background: var(--soft); white-space: nowrap; }
.ext-link:hover { background: var(--yellow-soft); }

.thread-body {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.context-header { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 9px; background: var(--soft); border: 1px solid var(--line); font-size: 12px; }
.related-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--yellow-soft);
  border: 1px solid #f2dc79;
  font-size: 12px;
}
.related-bar-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.context-thumb-link {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.context-thumb-link:hover .context-thumb { filter: brightness(0.86); }
.thumb-play-badge {
  position: absolute;
  right: 3px;
  bottom: 3px;
  background: rgba(23, 23, 23, 0.78);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
}
.context-thumb { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex-shrink: 0; display: block; }
.badge-lock { background: #e8f0fe; color: #1a4b8c; }
.conv-stack { display: flex; flex-direction: column; gap: 8px; }
.msg-bubble {
  padding: 10px 13px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--soft);
  word-break: break-word;
  font-size: 13.5px;
  line-height: 1.5;
}
.msg-bubble.team { background: #eef7f4; border-color: #cbe6de; align-self: flex-end; max-width: 90%; }
.msg-author { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.msg-text { white-space: pre-wrap; word-break: break-word; }
.att-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.att-link { border: 1px solid var(--line); cursor: pointer; background: var(--panel); color: var(--ink); }
.att-link:hover { background: var(--yellow-soft); border-color: var(--charcoal); }
.att-thumb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 4px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.att-thumb-btn:hover { border-color: var(--charcoal); background: var(--soft); }
.att-thumb-img {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--soft);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.ai-read-box { padding: 8px 11px; border-radius: 9px; background: var(--blue-soft); font-size: 12.5px; color: #24373c; }
.internal-notes-card {
  padding: 8px 10px;
  border-radius: 9px;
  background: #fffbeb;
  border: 1px solid #f2dc79;
  display: grid;
  gap: 6px;
  font-size: 12px;
}
.internal-notes-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; color: #6b4f00; }
.note-row { padding: 5px 8px; border-radius: 7px; background: rgba(255, 255, 255, 0.72); border: 1px solid #f5e6a3; }
.note-meta { font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 1px; }
.note-form { display: flex; gap: 6px; align-items: center; }
.note-form[hidden] { display: none; }
.note-form input { flex: 1; min-width: 0; padding: 6px 9px; border-radius: 7px; border: 1px solid var(--line); background: var(--panel); font-size: 12px; }

/* Pinned Bottom Composer Dock */
.composer-dock {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  background: #fcfbf8;
  padding: 10px 14px 12px;
  display: grid;
  gap: 8px;
}
.dock-top-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.dock-top-actions { display: inline-flex; align-items: center; gap: 6px; position: relative; }
.snippets-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  width: min(330px, 88vw);
  max-height: 360px;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
  z-index: 40;
  display: grid;
  gap: 4px;
}
.snippet-section-head {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 4px 8px 2px;
}
.snippet-item:disabled { opacity: 0.5; cursor: not-allowed; }
.snooze-pills { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.snooze-pills .btn-xs.active { background: var(--mint); border-color: var(--mint-deep); }
.csat-check-label { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); cursor: pointer; }
.snippets-popover[hidden] { display: none; }
.snippet-item {
  width: 100%;
  text-align: left;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  display: grid;
  gap: 2px;
}
.snippet-item:hover { background: var(--soft); border-color: var(--line); }
.snippet-item strong { font-size: 12px; color: var(--ink); }
.snippet-item span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pending-bar {
  padding: 8px 10px;
  border-radius: 9px;
  background: #fffbeb;
  border: 1px solid #f2dc79;
  display: grid;
  gap: 6px;
  font-size: 12px;
}
.pending-bar[hidden] { display: none; }
.pending-presets { display: flex; flex-wrap: wrap; gap: 5px; }
.soft-warn-confirm {
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--yellow-soft);
  border: 1px solid #d9bf48;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #4f3b00;
}
.soft-warn-confirm[hidden] { display: none; }
.draft-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.draft-btn {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
.draft-btn:hover { background: var(--soft); }
.draft-btn.active { background: var(--mint); border-color: var(--mint-deep); }

.refine-drawer {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  display: grid;
  gap: 6px;
}
.refine-drawer[hidden] { display: none; }
.regen-row { display: flex; gap: 6px; align-items: center; }
.regen-row input, .coaching-input {
  flex: 1;
  width: 100%;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
  background: var(--soft);
}

textarea.reply-box {
  width: 100%;
  min-height: 92px;
  max-height: 170px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--panel);
  resize: vertical;
  font-size: 13.5px;
  line-height: 1.45;
}
textarea.reply-box:focus { outline: 2px solid var(--mint-deep); }

.dock-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.lint-inline { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 7px; }
.lint-ok { background: #e8f6f1; color: #135446; }
.lint-err { background: var(--danger-bg); color: var(--danger-ink); }
.lint-warn { background: var(--yellow-soft); color: #6b4f00; }
.action-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Column 4: Structured Order & Logistics Copilot */
.copilot-drawer {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
  gap: 10px;
}
.drawer-head { display: grid; gap: 2px; }
.copilot-form { display: flex; gap: 6px; }
.copilot-form input {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  font-size: 13px;
}
.copilot-result { font-size: 13px; line-height: 1.45; display: grid; gap: 9px; align-content: start; }

.btn-block { width: 100%; }

.order-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  display: grid;
  gap: 9px;
}
.order-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.order-num { font-family: "SUD Barlow", Barlow, sans-serif; font-size: 15px; font-weight: 700; line-height: 1.2; }
.order-head-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.order-items-clean { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.order-items-clean li { display: flex; gap: 6px; align-items: baseline; }
.item-qty { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.order-ship-block {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.order-ship-line { font-size: 12.5px; color: var(--ink); font-weight: 500; }
.tracking-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}
.track-carrier { font-size: 11.5px; font-weight: 600; color: var(--muted); flex-shrink: 0; white-space: nowrap; }
.track-num {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  color: var(--ink);
}
.track-link {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-decoration: underline;
  text-decoration-color: var(--muted);
  text-underline-offset: 2px;
}
.track-link:hover { text-decoration-color: var(--ink); opacity: 0.75; }
.tracking-chip .btn-xs { flex-shrink: 0; }
.order-tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s;
}
.tool-link:hover { background: var(--soft); border-color: #cfc9ba; }
.tool-link-hi { background: var(--mint); border-color: var(--mint-deep); }
.tool-link-hi:hover { background: #aedfd2; }
.customer-history-bar {
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
  display: grid;
  gap: 5px;
  font-size: 12px;
}
.customer-history-top { font-weight: 600; color: var(--ink); display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.hist-orders-row { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.hist-order-chip {
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.hist-order-chip:hover { background: var(--mint); border-color: var(--mint-deep); }
.split-note { padding: 7px 9px; border-radius: 8px; background: var(--blue-soft); font-size: 12px; color: #24373c; }
.link-order-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--blue-soft);
  border: 1px solid #cfe0e5;
  font-size: 12px;
  color: #24373c;
}
.link-order-bar .btn-xs { flex-shrink: 0; }
.notice-soft {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--yellow-soft);
  border: 1px solid #f2dc79;
  font-size: 12px;
  color: #4f3b00;
}
.banner { padding: 7px 9px; border-radius: 8px; background: var(--yellow-soft); font-size: 12px; border: 1px solid #f2dc79; }

.stock-disclosure { border: 1px solid var(--line); border-radius: 9px; background: var(--panel); overflow: hidden; }
.stock-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--soft);
  list-style: none;
}
.stock-summary::-webkit-details-marker { display: none; }
.stock-summary:hover { background: #efece3; }
.stock-summary-meta { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.stock-list { display: grid; border-top: 1px solid var(--line); }
.stock-row { padding: 7px 10px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.stock-row:last-child { border-bottom: none; }
.stock-row-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; }
.stock-name { font-weight: 600; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.stock-qty { font-weight: 700; font-variant-numeric: tabular-nums; flex-shrink: 0; font-size: 12px; }
.stock-sub { font-size: 11.5px; color: var(--muted); }
.sources-foot { font-size: 11px; color: var(--muted); }

.esc-form {
  padding: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 7px;
}
.esc-label { font-size: 12px; font-weight: 600; }
.esc-form select, .esc-form textarea {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-size: 12.5px;
}
.esc-help { margin: 0; font-size: 11.5px; }

/* Secondary Tabs & Responsive Helpers */
.mobile-back-btn { display: none; align-items: center; gap: 4px; margin-bottom: 4px; justify-self: start; }
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.leads-list { display: grid; gap: 10px; margin-top: 12px; }
.lead-row { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.thread-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.analytics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.analytics-dash { display: grid; gap: 14px; }
.analytics-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.analytics-header h2 { font-size: 18px; }
.analytics-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.analytics-range { min-width: 148px; }
.analytics-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.kpi-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 12px; }
.kpi-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px 15px;
  display: grid;
  gap: 5px;
  align-content: start;
}
.kpi-label { font-family: "SUD Barlow", Barlow, sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.kpi-val { font-family: "SUD Barlow", Barlow, sans-serif; font-size: 26px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 12px; color: var(--muted); }
.kpi-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }

.analytics-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.analytics-row-2 .card { min-width: 0; display: grid; gap: 10px; align-content: start; }
.card-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.chart-wrap { width: 100%; overflow: hidden; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 11.5px; color: var(--muted); }
.legend-item { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.legend-dot.line { width: 12px; height: 3px; border-radius: 999px; }

.hbar-list { display: grid; gap: 9px; }
.hbar-row { display: grid; gap: 4px; }
.hbar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12.5px; }
.hbar-label { font-weight: 600; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.hbar-val { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); flex-shrink: 0; }
.hbar-track { height: 8px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 999px; background: var(--charcoal); }
.hbar-fill.fill-quality { background: #c26338; }
.hbar-fill.fill-logistics { background: #5a8194; }
.hbar-fill.fill-neutral { background: #9b978c; }
.hbar-fill.fill-mint { background: var(--mint-deep); }
.hbar-sample { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sent-bar { height: 9px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); overflow: hidden; display: flex; }
.seg-pos { background: var(--mint-deep); height: 100%; }
.seg-neu { background: #c5c1b5; height: 100%; }
.seg-neg { background: #c26338; height: 100%; }
.raw-disclosure { margin-top: 4px; border: 1px solid var(--line); border-radius: 9px; background: var(--soft); overflow: hidden; }
.raw-disclosure summary { padding: 7px 10px; font-size: 12px; font-weight: 600; cursor: pointer; list-style: none; }
.raw-disclosure summary::-webkit-details-marker { display: none; }
.raw-disclosure-body { padding: 6px 10px 10px; background: var(--panel); border-top: 1px solid var(--line); }

table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }

@media (max-width: 1024px) {
  .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-row-2 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .kpi-strip { grid-template-columns: minmax(0, 1fr); }
}

/* Tablet & Split-Screen Laptop (900px - 1279px) */
@media (max-width: 1279px) {
  .hub-shell { padding: 10px 12px 24px; }
  .inbox-grid {
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
  }
  .channel-rail {
    grid-column: 1 / -1;
    padding: 8px 10px;
    gap: 8px;
  }
  .channel-rail .rail-heading { display: none; }
  .channel-rail .segmented { max-width: 340px; }
  .channel-rail .rail-section {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .channel-rail .rail-section::-webkit-scrollbar { display: none; }
  .channel-rail .rail-item {
    width: auto;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 5px 10px;
    font-size: 12.5px;
    border-color: var(--line);
    border-radius: 999px;
    background: var(--soft);
  }
  .channel-rail .rail-item.active { background: var(--mint); border-color: var(--mint-deep); }
  .channel-rail .rail-clear-btn { width: auto; flex-shrink: 0; margin-top: 0; white-space: nowrap; }
  .queue-pane {
    grid-column: 1;
    grid-row: 2 / span 2;
    max-height: calc(100vh - 180px);
    position: sticky;
    top: 70px;
    overflow: hidden;
  }
  .composer-pane { grid-column: 2; grid-row: 2; }
  .copilot-drawer { grid-column: 2; grid-row: 3; }
  .thread-detail-shell { max-height: none; overflow: visible; }
  .thread-body { overflow-y: visible; }
}

/* Mobile (<= 899px): Master-Detail Queue <-> Thread */
@media (max-width: 899px) {
  .topbar { padding: 8px 12px; gap: 8px; }
  .brand-logo { width: 86px; }
  .operator-meta { display: none; }
  .tab-bar {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .tab-bar::-webkit-scrollbar { display: none; }
  .tab-btn { flex-shrink: 0; white-space: nowrap; padding: 6px 11px; font-size: 12.5px; }
  .connector-popover { width: min(310px, calc(100vw - 24px)); right: 0; }

  .inbox-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .queue-pane {
    grid-column: 1;
    grid-row: auto;
    position: static;
    max-height: none;
    overflow: visible;
  }
  .composer-pane, .copilot-drawer {
    grid-column: 1;
    grid-row: auto;
    display: none;
  }
  .inbox-grid.mobile-detail-open .channel-rail,
  .inbox-grid.mobile-detail-open .queue-pane { display: none; }
  .inbox-grid.mobile-detail-open .composer-pane,
  .inbox-grid.mobile-detail-open .copilot-drawer { display: flex; }
  .mobile-back-btn { display: inline-flex; }
  .thread-head { padding: 12px; }
  .thread-body { padding: 12px; }
  .composer-dock { padding: 10px 12px; }
  .card { padding: 12px; }
}

/* Small Phones (<= 640px) */
@media (max-width: 640px) {
  .brand-tag { display: none; }
  .copilot-form.large { flex-wrap: wrap; }
  .copilot-form.large button { width: 100%; }
  .search-input,
  textarea.reply-box,
  .copilot-form input,
  .regen-row input,
  .coaching-input { font-size: 16px; }
  .dock-footer { gap: 10px; }
  .action-row { width: 100%; justify-content: flex-end; }
}

/* Modals (Image Lightbox & Keyboard Shortcuts) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(23, 23, 23, 0.62);
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal-backdrop[hidden] { display: none; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.modal-head-actions { display: inline-flex; gap: 6px; align-items: center; }
.lightbox-card { width: min(760px, 94vw); max-height: 90vh; display: grid; gap: 8px; }
.lightbox-img { max-width: 100%; max-height: 74vh; object-fit: contain; border-radius: 8px; background: var(--soft); margin: 0 auto; }
.shortcuts-card { width: min(440px, 94vw); }
.shortcut-list { display: grid; gap: 8px; font-size: 13px; }
.shortcut-list > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.shortcut-list > div:last-child { border-bottom: none; padding-bottom: 0; }
.shortcut-list kbd {
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  font-weight: 700;
}
.modal-form-card { width: min(560px, 95vw); max-height: 90vh; overflow-y: auto; }
.modal-form { display: grid; gap: 10px; }
.modal-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.field-lbl { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink); }
.field-lbl input, .field-lbl select, .field-lbl textarea {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  font-size: 13px;
  font-family: inherit;
}
.modal-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.macros-list { display: grid; gap: 6px; max-height: 210px; overflow-y: auto; }
.macro-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  font-size: 12px;
}
.macro-row-actions { display: inline-flex; gap: 4px; flex-shrink: 0; }
.setting-toggle {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--soft);
  cursor: pointer;
}
.setting-toggle div { display: grid; gap: 2px; font-size: 12.5px; }
.outcome-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 9px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 11.5px;
}
.outcome-label { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-size: 10.5px; }
.outcome-select {
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  max-width: 230px;
}
.anomaly-banner {
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--yellow-soft);
  border: 1px solid #d9bf48;
  display: grid;
  gap: 4px;
  font-size: 12.5px;
}
.anomaly-banner.crit { background: var(--danger-bg); border-color: #e4a199; color: var(--danger-ink); }
.stat-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 8px;
}
.stat-mini {
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--soft);
  border: 1px solid var(--line);
  display: grid;
  gap: 2px;
}
.stat-mini span { font-size: 11px; color: var(--muted); font-weight: 600; }
.stat-mini strong { font-family: "SUD Barlow", Barlow, sans-serif; font-size: 18px; line-height: 1.15; }
.ai-meter-bar {
  height: 11px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
}
.ai-seg-verb { background: var(--mint-deep); height: 100%; }
.ai-seg-light { background: #eab308; height: 100%; }
.ai-seg-heavy { background: #c26338; height: 100%; }
@media (max-width: 640px) {
  .modal-row-2 { grid-template-columns: minmax(0, 1fr); }
}

.assignee-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink);
}
.assignee-badge.unassigned { color: var(--muted); font-weight: 500; }
.assignee-select {
  padding: 2px 7px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--soft);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}

.att-bar-wrap { display: grid; gap: 6px; }
.att-vision-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.photo-vision-box {
  padding: 9px 12px;
  border-radius: 10px;
  background: #f0f9f6;
  border: 1px solid #9dd6c6;
  font-size: 12.5px;
  display: grid;
  gap: 4px;
}
.photo-vision-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.action-cards-block {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.action-cards-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.action-cards-row { display: flex; flex-wrap: wrap; gap: 6px; }
.recharge-box {
  padding: 8px 9px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 12px;
  display: grid;
  gap: 6px;
}
.sub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.proactive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}
@media (max-width: 900px) {
  .proactive-grid { grid-template-columns: minmax(0, 1fr); }
}
.proactive-col { display: grid; gap: 8px; align-content: start; }
.proactive-row {
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--soft);
  display: grid;
  gap: 5px;
  font-size: 12.5px;
}
.proactive-row-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.hook-scripts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 960px) {
  .hook-scripts-grid { grid-template-columns: minmax(0, 1fr); }
}
.hook-script-card {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--soft);
  display: grid;
  gap: 6px;
  font-size: 12.5px;
}
.hook-script-line { font-size: 12px; line-height: 1.4; }

.proposal-list { display: grid; gap: 8px; }
.proposal-card {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--soft);
  display: grid;
  gap: 5px;
  font-size: 12.5px;
}
.proposal-card.approved { background: #f0f9f6; border-color: #9dd6c6; }
.handoff-body { display: grid; gap: 10px; font-size: 13px; }
