/* Sales & Media — iOS-inspired styling on the brand palette.
   Brand: yellow #FFE600 (page background), black #000000 (text), teal #67D1D2 (accent).
   Teal only ever carries black text (11.6:1) — never white text or teal text on white (1.8:1).
   Stage colours live in config/stage-colours.js and are served as /css/stages.css. */
:root {
  --brand-yellow: #FFE600;
  --brand-black: #000000;
  --brand-teal: #67D1D2;

  --bg: var(--brand-yellow);
  --surface: #ffffff;
  --text: #000000;
  --muted: #5c5c61;            /* iOS secondary label, darkened for 4.5:1 on white */
  --separator: rgba(60, 60, 67, 0.18);
  --fill: rgba(118, 118, 128, 0.12);       /* iOS tertiary fill: inputs, secondary buttons */
  --fill-strong: rgba(118, 118, 128, 0.2);
  --glass: rgba(255, 255, 255, 0.72);
  --control-border: #8e8e93;   /* checkbox/switch outlines: 3.3:1 on white */
  --focus: #0b6e70;            /* dark teal focus ring: 5.9:1 on white */
  --bad: #c4271c;
  --bad-tint: #ffe5e3;
  --ok-ink: #1e7a39;
  --ok-tint: #dff6e5;
  --warn-ink: #8a5100;
  --warn-tint: #fff0d9;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; padding: 8px 12px; background: var(--brand-teal); color: var(--brand-black); z-index: 30; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Logo mark ---------- */
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--brand-black);
  color: var(--brand-yellow);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.04em;
  flex: none;
}

/* ---------- Top bar (frosted glass) ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
  padding: 0 20px;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--separator);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-user { color: var(--muted); font-size: 14px; }
.topbar-right form { margin: 0; }

.link-button {
  background: none;
  border: 0;
  padding: 6px 4px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
}
.link-button:hover { text-decoration: underline; text-decoration-color: var(--brand-teal); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* AC connection status */
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--checking { background: var(--fill); color: var(--muted); }
.status--synced { background: var(--ok-tint); color: var(--ok-ink); }
.status--synced .status-dot { background: #34c759; box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.25); }
.status--unsynced { background: var(--bad-tint); color: var(--bad); }
.status--unsynced .status-dot { background: #ff3b30; }

/* ---------- Shell + sidebar (frosted, iPadOS-style) ---------- */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: calc(100vh - 56px); }
.sidebar {
  position: sticky;
  top: 56px;
  align-self: start;
  height: calc(100vh - 56px);
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-right: 0.5px solid var(--separator);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.nav-icon { width: 20px; height: 20px; flex: none; }
a.nav-item:hover { background: rgba(0, 0, 0, 0.06); }
.nav-item.is-current { background: var(--brand-black); color: #ffffff; font-weight: 600; }
.nav-item--soon { color: var(--muted); cursor: default; }
.soon-tag { margin-left: auto; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--fill); color: var(--muted); }

.page { width: 100%; padding: 28px 32px 48px; }
.page h1 { margin: 0 0 4px; font-size: 34px; line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; }
.page > .muted { margin-top: 4px; }

/* ---------- Cards ---------- */
.card {
  margin-top: 20px;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.card h2 { margin: 0 0 14px; font-size: 20px; font-weight: 700; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.card-head h2 { margin: 0; }
.card-summary { margin: 0; color: var(--muted); font-size: 14px; }
.card.is-loading .table-wrap { opacity: 0.5; transition: opacity 0.2s; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 8px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--brand-teal);
  color: var(--brand-black);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s, filter 0.15s;
}
.button:hover { filter: brightness(0.95); }
.button:active { transform: scale(0.98); }
.button:disabled { opacity: 0.45; cursor: not-allowed; filter: none; transform: none; }
.button--secondary { background: var(--fill); margin-top: 0; }
.button--secondary:hover { background: var(--fill-strong); filter: none; }
.button--small { min-height: 32px; margin: 0; padding: 4px 14px; font-size: 14px; }
.button--big { width: 100%; min-height: 52px; font-size: 17px; }

.text-link { color: var(--text); text-decoration-color: var(--brand-teal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.deal-link { color: var(--text); text-decoration: none; }
.deal-link:hover { text-decoration: underline; text-decoration-color: var(--brand-teal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.open-link { color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; padding: 4px 6px; border-radius: 6px; }
.open-link:hover { color: var(--text); background: var(--fill); }

/* ---------- Form controls (iOS filled style) ---------- */
.filters select, .filters input,
.field select, .field textarea,
.field input[type="text"], .field input[type="date"], .field input[type="time"],
.login-card input {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--fill);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: background 0.15s, box-shadow 0.15s;
}
.filters input:focus, .filters select:focus,
.field select:focus, .field textarea:focus, .field input:focus,
.login-card input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(11, 110, 112, 0.25);
}
select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 34px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233c3c43' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
textarea { resize: vertical; }

/* ---------- Filters ---------- */
.filters {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(180px, 1.4fr) minmax(180px, 1.6fr) minmax(140px, 1fr);
  gap: 12px;
  margin: 16px 0 12px;
}
.filters label { display: grid; gap: 5px; min-width: 0; }
.filters label > span { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Stage colours ---------- */
.stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--stage-tint, #f2f2f7);
  color: var(--stage-ink, #3a3a3c);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.stage-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--stage-dot, #aeaeb2); }

.legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 4px 12px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--stage-tint);
  color: var(--stage-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.legend-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--stage-dot); }
.legend-chip .legend-count { font-weight: 500; opacity: 0.85; font-variant-numeric: tabular-nums; }
.legend-chip:hover { filter: brightness(0.97); }
.legend-chip[aria-pressed="true"] { border-color: var(--stage-ink); box-shadow: 0 0 0 2px var(--surface) inset; }

/* ---------- Tables as iOS lists ---------- */
.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.deals-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.deals-table th {
  padding: 8px 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 0.5px solid var(--separator);
  white-space: nowrap;
}
.deals-table td { padding: 12px; border-bottom: 0.5px solid var(--separator); vertical-align: middle; }
.deals-table tbody tr:last-child td { border-bottom: 0; }
.deals-table tbody tr { transition: background 0.12s; }
.deals-table tbody tr:hover { background: rgba(118, 118, 128, 0.06); }
.deals-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.deals-table td.stage-cell-first { position: relative; padding-left: 18px; }
.deals-table td.stage-cell-first::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 4px;
  background: var(--stage-dot, transparent);
}
.nowrap { white-space: nowrap; }
.cell-strong { font-weight: 600; }
.cell-sub { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.table-message { margin: 0; padding: 32px 12px; text-align: center; color: var(--muted); }
.row-actions { display: flex; align-items: center; gap: 6px; }
.change-cell { max-width: 420px; overflow-wrap: anywhere; }

/* Recent campaigns widget */
.campaign-list { list-style: none; margin: 10px -20px -8px; padding: 0; }
.campaign-list li + li { border-top: 0.5px solid var(--separator); }
.campaign-row { display: grid; gap: 8px; padding: 14px 20px; color: var(--text); text-decoration: none; transition: background 0.12s; }
.campaign-row:hover { background: rgba(118, 118, 128, 0.06); }
.campaign-row:focus-visible { outline-offset: -3px; border-radius: var(--radius-sm); }
.campaign-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.campaign-title { font-weight: 600; font-size: 16px; min-width: 0; overflow-wrap: anywhere; }
.campaign-count { flex: none; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.campaign-count strong { color: var(--text); font-weight: 700; }
.campaign-bar { display: flex; gap: 2px; height: 8px; border-radius: 999px; overflow: hidden; background: var(--fill); }
.campaign-seg { flex-basis: 0; min-width: 4px; background: var(--stage-dot); }
.campaign-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.campaign-keys { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.campaign-key { display: inline-flex; align-items: center; gap: 5px; }
.campaign-key::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--stage-dot); }
@media (max-width: 600px) {
  .campaign-list { margin: 10px -16px -4px; }
  .campaign-row { padding: 12px 16px; }
}

/* Dashboard widget grid: three equal columns on wide screens; new widgets just drop in.
   Steps down to two columns, then one, so each widget stays at least ~340px wide. */
.widget-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; align-items: start; }
@media (max-width: 1360px) {
  .widget-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .widget-grid { grid-template-columns: 1fr; }
}

/* Compact card for half-width widgets */
.card--compact { padding: 16px 16px 8px; }
.card--compact h2 { font-size: 17px; }
.card--compact .card-summary { font-size: 13px; }
.card--compact .campaign-list { margin: 8px -16px 0; }
.card--compact .campaign-row { gap: 6px; padding: 10px 16px; }
.card--compact .campaign-title { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card--compact .campaign-count { font-size: 13px; }
.card--compact .campaign-bar { height: 6px; }
.card--compact .campaign-meta { font-size: 12px; }
.card--compact .campaign-key:nth-child(n + 3) { display: none; } /* keep the two biggest colours */
.card--compact .table-message { padding: 20px 8px; }

/* Pager */
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.pager-button {
  min-height: 34px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--fill);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.pager-button:hover:not(:disabled) { background: var(--fill-strong); }
.pager-button:disabled { opacity: 0.4; cursor: default; }

/* ---------- Flash messages ---------- */
.flash { margin-bottom: 20px; padding: 14px 18px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.flash ul { margin: 6px 0 0; padding-left: 20px; }
.flash--success { background: var(--ok-tint); color: #0f3d1c; }
.flash--warning { background: var(--warn-tint); color: #4a2c00; }
.flash--error { background: var(--bad-tint); color: #5c120c; }

/* ---------- Deal page ---------- */
.breadcrumb { display: flex; gap: 6px; font-size: 14px; margin-bottom: 6px; color: var(--muted); }
.breadcrumb a { color: var(--text); font-weight: 600; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.deal-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.deal-sub { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.deal-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 0 20px; align-items: start; }
.deal-side .card:first-child { margin-top: 20px; }

.notice { padding: 12px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.notice p { margin: 4px 0 0; }
.notice--test { background: var(--warn-tint); color: #4a2c00; }

.outcome-form { display: grid; gap: 22px; }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field legend {
  padding: 0;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.req, .optional { font-weight: 500; text-transform: none; letter-spacing: 0; }
.field.has-error select, .field.has-error textarea, .field.has-error input { border-color: var(--bad); }
.hint { margin: 0; font-size: 13px; color: var(--muted); }
.field-error { margin: 0; color: var(--bad); font-size: 14px; font-weight: 600; }

/* Outcome choices: iOS-style selectable tiles */
.outcome-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.outcome-option {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 14px 14px 14px 46px;
  border-radius: var(--radius);
  background: var(--fill);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.outcome-option:active { transform: scale(0.99); }
.outcome-option:has(input:checked) { background: var(--brand-teal); }
.outcome-option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.outcome-option.is-invalid { opacity: 0.45; cursor: not-allowed; }
.field.has-error .outcome-option { box-shadow: inset 0 0 0 1.5px var(--bad); }
.outcome-name { font-weight: 600; font-size: 16px; }
.outcome-hint { font-size: 12.5px; color: var(--muted); }
.outcome-option:has(input:checked) .outcome-hint { color: var(--brand-black); }

/* Round iOS checkmarks for radios and checkboxes */
.outcome-option input,
.check input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1.5px solid var(--control-border);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.outcome-option input { position: absolute; left: 14px; top: 16px; }
.outcome-option input:checked,
.check input[type="checkbox"]:checked {
  border-color: var(--brand-black);
  background: var(--brand-black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1.5 5.2l3 3 6-6.7' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
}
.outcome-option input:focus-visible,
.check input[type="checkbox"]:focus-visible { outline: none; }

/* Sales actions: grouped inset list */
.action-groups { display: grid; gap: 16px; }
.action-group-title { margin: 0 0 6px 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.action-list { border-radius: var(--radius); background: var(--fill); overflow: hidden; }
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 15px;
  cursor: pointer;
}
.action-list .check + .check { border-top: 0.5px solid var(--separator); }
.check:hover { background: rgba(118, 118, 128, 0.08); }
.check:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: var(--radius-sm); }
.check:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }
.tag-note { color: var(--muted); font-size: 12.5px; }

/* Follow-up task with iOS switch */
.task-box { padding: 4px 16px 16px; border-radius: var(--radius); background: var(--fill); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; cursor: pointer; font-size: 16px; font-weight: 600; }
.switch {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  flex: none;
  width: 51px;
  height: 31px;
  margin: 0;
  border-radius: 999px;
  background: #d1d1d6;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: background 0.2s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 1px 1px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s;
}
.switch:checked { background: var(--brand-black); box-shadow: none; }
.switch:checked::after { transform: translateX(20px); }
.task-fields { display: grid; gap: 14px; padding-top: 6px; border-top: 0.5px solid var(--separator); }
.task-fields[hidden] { display: none; }
.task-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; padding-top: 10px; }
.task-box .field select, .task-box .field input, .task-box .field textarea { background: var(--surface); }

/* Details list */
.details { display: grid; grid-template-columns: 110px minmax(0, 1fr); margin: 0; font-size: 14.5px; }
.details dt, .details dd { padding: 10px 0; border-bottom: 0.5px solid var(--separator); }
.details dt { color: var(--muted); font-weight: 500; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.details dt:last-of-type, .details dd:last-of-type { border-bottom: 0; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; font-size: 14.5px; }
.timeline li { padding: 10px 0; border-bottom: 0.5px solid var(--separator); }
.timeline li:last-child { border-bottom: 0; }
.timeline p { margin: 2px 0 0; }
.timeline-when { font-size: 12.5px; color: var(--muted); }

.status-tag { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; text-transform: capitalize; background: var(--fill); color: #3a3a3c; }
.status-tag--success { background: var(--ok-tint); color: var(--ok-ink); }
.status-tag--failed { background: var(--bad-tint); color: var(--bad); }
.status-tag--blocked, .status-tag--scheduled { background: var(--warn-tint); color: var(--warn-ink); }

/* ---------- Login ---------- */
.login-page { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.login-card {
  width: 100%;
  max-width: 380px;
  padding: 36px 32px 32px;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 20px 48px rgba(0, 0, 0, 0.12);
  text-align: center;
}
.login-card .logo-mark { width: 56px; height: 56px; border-radius: 14px; font-size: 20px; margin-bottom: 14px; }
.login-card h1 { margin: 0 0 4px; font-size: 26px; font-weight: 700; }
.login-card form { display: grid; gap: 10px; margin-top: 24px; text-align: left; }
.login-card label { font-size: 13px; font-weight: 600; color: var(--muted); margin: 4px 0 -4px 4px; }
.login-card input { min-height: 46px; font-size: 16px; }
.login-card .button { width: 100%; margin-top: 12px; }
.alert { margin: 16px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--bad-tint); color: var(--bad); font-size: 14px; text-align: left; }

/* ---------- Responsive ----------
   Desktop  > 1100px : full sidebar
   Tablet   701-1100 : icon rail with small labels (iPadOS style)
   Phone   <= 700px  : bottom tab bar (iOS style), tables become stacked cards */
.nav-short { display: none; }
.deal-actions { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 1100px) {
  .filters { grid-template-columns: 1fr 1fr; }

  /* Icon rail */
  .shell { grid-template-columns: 84px minmax(0, 1fr); }
  .sidebar { padding: 12px 8px; }
  .nav-item {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 60px;
    padding: 8px 4px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
  }
  .nav-icon { width: 22px; height: 22px; }
  .nav-item .soon-tag { display: none; }
  .nav-item--soon { opacity: 0.55; }
  .page { padding: 24px 24px 40px; }
}

@media (max-width: 1000px) {
  .deal-grid { grid-template-columns: 1fr; }
  /* Tablet: drop the least important deal columns (Created, Next task) so the table fits */
  #active-deals .deals-table th:nth-child(5), #active-deals .deals-table td:nth-child(5),
  #active-deals .deals-table th:nth-child(6), #active-deals .deals-table td:nth-child(6) { display: none; }
}

@media (max-width: 700px) {
  /* Bottom tab bar */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .shell { display: block; min-height: 0; }
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 25;
    height: auto;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.82);
    border-right: 0;
    border-top: 0.5px solid var(--separator);
  }
  .sidebar ul { display: flex; justify-content: space-around; gap: 0; }
  .sidebar li { flex: 1; }
  .sidebar li:has(.nav-item--soon) { display: none; }
  .nav-item { min-height: 52px; padding: 6px 2px; border-radius: 10px; font-size: 10.5px; font-weight: 500; }
  .nav-item.is-current { background: transparent; color: var(--text); font-weight: 700; }
  .nav-item.is-current .nav-icon { stroke-width: 2.2; }
  .nav-item.is-current::before { content: ""; position: absolute; top: 2px; width: 22px; height: 3px; border-radius: 3px; background: var(--brand-black); }
  .nav-item { position: relative; }
  .nav-short { display: block; }
  .nav-item:has(.nav-short) .nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  .topbar { padding: 0 16px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .topbar-user, .brand-name { display: none; }
  .page { padding: 18px 16px 32px; }
  .page h1 { font-size: 28px; }
  .card { padding: 16px; border-radius: 16px; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  .filters { grid-template-columns: 1fr; }
  .pager { justify-content: space-between; }
  .deal-head { align-items: flex-start; }
  .deal-actions { width: 100%; }
  .deal-actions .button { flex: 1; }
  .details { grid-template-columns: 96px minmax(0, 1fr); }

  /* Active deals table → stacked rows: contact / org / stage on the left, actions on the right */
  #active-deals .deals-table thead { display: none; }
  #active-deals .deals-table tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
    padding: 10px 0 10px 14px;
    border-bottom: 0.5px solid var(--separator);
  }
  #active-deals .deals-table tbody tr:last-child { border-bottom: 0; }
  #active-deals .deals-table tbody tr::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 4px; background: var(--stage-dot, transparent); }
  #active-deals .deals-table td { display: block; padding: 2px 0; border: 0; }
  #active-deals .deals-table td.stage-cell-first { padding-left: 0; }
  #active-deals .deals-table td.stage-cell-first::before { display: none; }
  #active-deals .deals-table td:nth-child(1) { grid-column: 1; grid-row: 1; }
  #active-deals .deals-table td:nth-child(2) { grid-column: 1; font-size: 13.5px; color: var(--muted); }
  #active-deals .deals-table td:nth-child(3) { grid-column: 1; padding-top: 4px; }
  #active-deals .deals-table td:nth-child(4),
  #active-deals .deals-table td:nth-child(5),
  #active-deals .deals-table td:nth-child(6) { display: none; }
  #active-deals .deals-table td:nth-child(7) { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  #active-deals .row-actions { flex-direction: column; align-items: stretch; }

  /* Generic stacked table (Activity log): each row becomes a labelled card */
  .table--stack thead { display: none; }
  .table--stack tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 12px 0; border-bottom: 0.5px solid var(--separator); }
  .table--stack tbody tr:last-child { border-bottom: 0; }
  .table--stack td { display: block; padding: 0; border: 0; min-width: 0; }
  .table--stack td::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
  .table--stack td.change-cell { grid-column: 1 / -1; max-width: none; }
  .table--stack td.nowrap { white-space: normal; }
}

/* Touch screens (phones, iPads): bigger tap targets, and 16px inputs so iOS doesn't zoom on focus */
@media (pointer: coarse) {
  input, select, textarea { font-size: 16px !important; }
  .button--small { min-height: 40px; padding: 6px 16px; }
  .pager-button { min-height: 44px; padding: 8px 18px; }
  .segmented > button, .segmented > a { min-height: 34px; padding: 4px 14px; }
  .legend-chip { min-height: 38px; }
  .open-link { padding: 10px 8px; }
  .link-button { padding: 10px 6px; }
  .status { height: 34px; }
  .check { min-height: 48px; }
  .deals-table tbody tr:hover, .queue-row:hover, .campaign-row:hover { background: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* "Coming soon" widget (AI assistant placeholder) */
.card--soon { padding-bottom: 16px; }
.card--soon h2 { display: inline-flex; align-items: center; gap: 8px; }
.card--soon .card-head { align-items: center; }
.card--soon .soon-tag { margin-left: 0; }
.soon-icon { width: 20px; height: 20px; flex: none; }
.soon-lead { margin: 10px 0 8px; font-size: 14.5px; }
.soon-examples { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 6px; }
.soon-examples li { padding: 8px 12px; border-radius: var(--radius-sm); background: var(--fill); font-size: 13.5px; color: var(--muted); }
.soon-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  border: 1px dashed var(--control-border);
  color: var(--muted);
  font-size: 14px;
}
.soon-send { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--fill-strong); color: var(--muted); font-weight: 700; }

/* Deal page: the contact's other campaigns */
.campaigns-summary { margin: -4px 0 8px; font-size: 14px; color: var(--muted); }
.campaigns-summary strong { color: var(--text); }
.campaign-history { list-style: none; margin: 0 -20px; padding: 0; }
.campaign-history li + li { border-top: 0.5px solid var(--separator); }
.campaign-history-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; color: var(--text); text-decoration: none; }
.campaign-history-row:hover { background: rgba(118, 118, 128, 0.06); }
.campaign-history-row:focus-visible { outline-offset: -3px; border-radius: var(--radius-sm); }
.campaign-history-main { display: grid; gap: 4px; min-width: 0; }
.campaign-history-title { font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.campaign-history-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; color: var(--muted); }

/* Result badges: how a deal turned out */
.result-badge { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--fill); color: #3a3a3c; }
.result--won { background: var(--brand-black); color: var(--brand-yellow); }
.result--interested { background: #dff6e5; color: #1e7a39; }
.result--meeting { background: #f3e5fb; color: #7a2e9e; }
.result--objection { background: #fff0d9; color: #8a5100; }
.result--declined, .result--lost { background: #ffe5e3; color: #b3261e; }
.result--bounced { background: #e5e5ea; color: #3a3a3c; }
.result--pending, .result--not-contacted, .result--nurture, .result--other { background: var(--fill); color: var(--muted); }
@media (max-width: 600px) {
  .campaign-history { margin: 0 -16px; }
  .campaign-history-row { padding: 10px 16px; }
}

/* iOS segmented control (Mine / Everyone) */
.segmented { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--fill); }
.segmented > button, .segmented > a {
  min-height: 28px;
  padding: 3px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.segmented > [aria-pressed="true"] { background: var(--surface); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04); }

/* Call-list rows (Sales calls widget + Follow-ups page) */
.queue-list { list-style: none; margin: 8px -16px 0; padding: 0; }
.queue-list li + li { border-top: 0.5px solid var(--separator); }
.queue-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 8px 16px; color: var(--text); text-decoration: none; }
.queue-row:hover { background: rgba(118, 118, 128, 0.06); }
.queue-row:focus-visible { outline-offset: -3px; border-radius: var(--radius-sm); }
.queue-label { font-size: 15px; font-weight: 500; min-width: 0; }
.queue-sub { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.queue-count { flex: none; min-width: 34px; padding: 2px 10px; border-radius: 999px; background: var(--brand-teal); color: var(--brand-black); font-weight: 700; font-size: 14px; text-align: center; font-variant-numeric: tabular-nums; }
.queue-row.is-empty .queue-count { background: var(--fill); color: var(--muted); }
.queue-row.is-urgent .queue-count { background: #c4271c; color: #ffffff; }
.queue-row::after { content: "›"; color: #8e8e93; font-size: 20px; line-height: 1; margin-left: -4px; }
.queue-list--page { margin: 8px -20px 0; }
.queue-list--page .queue-row { padding: 10px 20px; }
.queue-list--page .stage-pill { margin-left: 6px; }
.card.is-loading .queue-count { opacity: 0.5; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0 4px; border-top: 0.5px solid var(--separator); margin-top: 0; }
.view-all { color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.view-all:hover { text-decoration: underline; text-decoration-color: var(--brand-teal); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Follow-ups page */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.count-badge { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 999px; background: var(--fill); font-size: 14px; font-weight: 600; vertical-align: middle; }
.due-overdue { color: #c4271c; font-weight: 700; }
.due-today { font-weight: 700; }
.empty-note { margin: 4px 0 6px; }

/* ---------- Follow-ups Kanban board ---------- */
.board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(272px, 1fr);
  gap: 14px;
  margin-top: 20px;
  padding-bottom: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  align-items: start;
}
.board:focus-visible { outline-offset: 4px; border-radius: var(--radius); }
.board-col {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 210px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 0 0 0.5px var(--separator);
  scroll-snap-align: start;
  scroll-margin-top: 80px;
}
.board-col-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 14px 10px; }
.board-col-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.board-col-head .count-badge { margin: 0; background: var(--surface); }
.board-col--urgent .board-col-head .count-badge { background: #c4271c; color: #ffffff; }
.board-col--today .board-col-head .count-badge { background: var(--brand-black); color: #ffffff; }
.board-col-body { display: grid; gap: 10px; padding: 0 10px 12px; overflow-y: auto; }
.board-col-note { margin: 0 4px 2px; font-size: 12.5px; color: var(--muted); }
.board-empty { margin: 0; padding: 18px 12px; border-radius: var(--radius); border: 1.5px dashed rgba(60, 60, 67, 0.25); text-align: center; font-size: 13.5px; color: var(--muted); }

.board-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 12px 12px 12px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.06);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
}
.board-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--stage-dot, #aeaeb2); }
.board-card--link:hover { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(0, 0, 0, 0.1); }
.board-card--link:focus-visible { outline-offset: 2px; }
.board-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.board-card-title { font-weight: 600; font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.board-card-sub { margin: -4px 0 0; font-size: 13px; color: var(--muted); }
.board-due { flex: none; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.board-due--overdue { color: #c4271c; }
.board-task { margin: 0; font-size: 14px; }
.board-task-type { display: inline-block; margin-right: 2px; padding: 0 7px; border-radius: 6px; background: var(--fill); font-size: 12px; font-weight: 600; }
.board-overdue { margin: 0; font-size: 12.5px; font-weight: 600; color: #c4271c; }
.board-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.board-campaign { font-size: 12.5px; color: var(--muted); }
.board-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.board-big-count { flex: none; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.board-footnote { margin-top: 10px; }

@media (max-width: 900px) {
  .board { grid-auto-columns: 82%; scroll-snap-type: x mandatory; }
  .board-col { max-height: none; }
}
@media (max-width: 700px) {
  .board { grid-auto-columns: 88%; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px; }
}

/* Archive contact */
.archived-banner { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius); background: #e5e5ea; color: #1c1c1e; font-size: 14.5px; }
.card--danger h2 { color: #1c1c1e; }
.archive-details { margin-top: 4px; }
.archive-details summary { list-style: none; width: 100%; }
.archive-details summary::-webkit-details-marker { display: none; }
.archive-details[open] summary { display: none; }
.archive-form { display: grid; gap: 12px; margin-top: 4px; padding: 14px; border-radius: var(--radius); background: #fff3f2; }
.archive-what { margin: 0; }
.archive-list { margin: -6px 0 0; padding-left: 20px; font-size: 14px; display: grid; gap: 4px; }
.archive-form .field select, .archive-form .field textarea { background: var(--surface); }
.button--danger { width: 100%; margin-top: 0; background: #c4271c; color: #ffffff; }
.button--danger-outline { width: 100%; margin-top: 16px; background: #c4271c; color: #ffffff; } /* white on red: 5.6:1 */
.button--danger-outline:hover { background: #a91f15; filter: none; }
.status-tag--lost { background: #e5e5ea; color: #3a3a3c; }

/* Follow-ups: New leads strip above the board */
.leads-card { padding-bottom: 16px; }
.leads-grid { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.lead-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--fill);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
}
.lead-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--stage-dot, #aeaeb2); }
.lead-tile:hover { background: var(--fill-strong); }
.lead-tile-title { min-width: 0; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-tile-count { flex: none; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Keep counts in a straight column at the right of each call-list row */
.queue-label { flex: 1; }
.queue-count { margin-left: auto; }
@media (max-width: 700px) {
  /* Phone: one compact row per campaign so full names stay readable */
  .leads-card .leads-grid { grid-template-columns: 1fr; gap: 4px; }
  .lead-tile { min-height: 42px; padding: 6px 12px 6px 14px; }
  .lead-tile-title { white-space: normal; font-size: 14px; line-height: 1.25; }
}

/* Contacts page */
.filters--contacts { grid-template-columns: minmax(220px, 1.6fr) minmax(180px, 1.2fr) minmax(180px, 1.2fr) minmax(150px, 1fr); }
@media (max-width: 1100px) {
  .filters--contacts { grid-template-columns: 1fr 1fr; }
  .contacts-table th:nth-child(6), .contacts-table td:nth-child(6) { display: none; }
}
@media (max-width: 1000px) {
  .contacts-table th:nth-child(5), .contacts-table td:nth-child(5) { display: none; }
}
@media (max-width: 700px) {
  .filters--contacts { grid-template-columns: 1fr; }
  /* Phone: each contact becomes a compact card — name, organisation, industry › subindustry */
  .contacts-table thead { display: none; }
  .contacts-table tbody tr { display: block; padding: 10px 0; border-bottom: 0.5px solid var(--separator); }
  .contacts-table tbody tr:last-child { border-bottom: 0; }
  .contacts-table td { display: block; padding: 1px 0; border: 0; }
  .contacts-table td:nth-child(2), .contacts-table td:nth-child(3), .contacts-table td:nth-child(4) { font-size: 13.5px; color: var(--muted); }
  .contacts-table td:nth-child(3), .contacts-table td:nth-child(4) { display: inline; }
  .contacts-table td:nth-child(4)::before { content: " › "; }
}
@media (max-width: 700px) {
  .contacts-table td.is-blank { display: none !important; }
}

/* Industry review */
.rule-card p { margin: 0; font-size: 14.5px; }
.rule-card h2 { margin-bottom: 8px; }
.segmented--wide { flex-wrap: wrap; }
.seg-count { margin-left: 4px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.filters--review { grid-template-columns: minmax(200px, 1.6fr) minmax(140px, 1fr) minmax(180px, 1.3fr) auto; }
.filters-go { align-self: end; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; padding: 10px 14px; border-radius: var(--radius); background: var(--ok-tint); color: #0f3d1c; font-size: 14px; font-weight: 600; }
.review-list { list-style: none; margin: 0 -20px; padding: 0; }
.review-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px 20px; align-items: center; padding: 14px 20px; border-top: 0.5px solid var(--separator); }
.review-company { display: grid; gap: 2px; min-width: 0; }
.review-org { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.review-domain, .review-current, .review-reason { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.review-error { font-size: 13px; color: var(--bad); }
.conf { display: inline-block; padding: 0 7px; border-radius: 999px; font-size: 11.5px; font-weight: 700; text-transform: capitalize; }
.conf--high { background: var(--ok-tint); color: var(--ok-ink); }
.conf--medium { background: var(--warn-tint); color: var(--warn-ink); }
.conf--low { background: var(--bad-tint); color: var(--bad); }
.review-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.review-form select { width: 100%; min-height: 38px; padding: 6px 30px 6px 10px; border: 1px solid transparent; border-radius: var(--radius-sm); background-color: var(--fill); font: inherit; font-size: 14px; color: var(--text); }
.review-actions { display: flex; gap: 6px; }
.review-final { font-size: 14.5px; }
@media (max-width: 1100px) {
  .review-item { grid-template-columns: 1fr; }
  .filters--review { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .review-list { margin: 0 -16px; }
  .review-item { padding: 12px 16px; }
  .review-form { grid-template-columns: 1fr; }
  .filters--review { grid-template-columns: 1fr; }
  .sidebar li.nav-desktop-only { display: none; }
}
.nav-emoji { display: inline-grid; place-items: center; font-size: 17px; line-height: 1; }

/* ---------- Feedback ---------- */
.feedback-form { margin-top: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.feedback-form .field { width: 100%; margin: 0; }
.feedback-form textarea { width: 100%; }
.feedback-list { list-style: none; margin: 16px 0 0; padding: 0; }
.feedback-item { padding: 12px 0; border-top: 1px solid var(--fill); }
.feedback-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14px; }
.feedback-meta .muted { font-size: 13px; }
.feedback-delete { margin: 0 0 0 auto; }
.feedback-delete .link-button { font-size: 13px; color: var(--muted); }
.feedback-body { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
