@font-face {
  font-family: "Ryo Gothic PlusN";
  src: url("../fonts/ryo-gothic-plusn-light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Ryo Gothic PlusN";
  src: url("../fonts/ryo-gothic-plusn-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Ryo Gothic PlusN";
  src: url("../fonts/ryo-gothic-plusn-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Ryo Gothic PlusN";
  src: url("../fonts/ryo-gothic-plusn-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #f4f7f3;
  --ink-soft: #d9dfd9;
  --lime: #c8ff4d;
  --lime-hover: #baf03d;
  --lime-soft: #2b381e;
  --white: #1a1f1a;
  --fog: #111411;
  --fog-soft: #232923;
  --line: #323a32;
  --line-strong: #4a554a;
  --muted: #a5aea6;
  --muted-light: #7e887f;
  --danger: #d94f57;
  --danger-soft: #351d20;
  --danger-text: #ff9298;
  --danger-line: #6b3237;
  --success-line: #465b2c;
  --warning-text: #e7d58b;
  --warning-surface: #302b18;
  --warning-line: #62562d;
  --on-danger: #ffffff;
  --header-h: 52px;
  --sidebar-w: 220px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .16);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, .22), 0 1px 2px rgba(0, 0, 0, .16);
  --font: "Ryo Gothic PlusN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --utility: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

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

html { min-width: 320px; overflow-x: hidden; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink-soft);
  background: var(--fog);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.sidebar-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
svg { display: block; width: 18px; height: 18px; }
.lucide { flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -.025em; }
h1 { margin-bottom: 8px; font-size: 30px; line-height: 1.25; }
h2 { margin-bottom: 12px; font-size: 20px; line-height: 1.35; }
h3 { margin-bottom: 8px; font-size: 16px; line-height: 1.4; }
p { margin-bottom: 14px; }
::selection { color: #111411; background: var(--lime); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 7px 12px;
  color: var(--ink);
  background: var(--lime);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

/* Header */
.system-header,
.guest-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  height: var(--header-h);
  align-items: stretch;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 38px;
  height: auto;
  flex: 0 0 38px;
  object-fit: contain;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: 12px; font-weight: 500; letter-spacing: -.01em; }

.system-nav {
  position: sticky;
  top: var(--header-h);
  display: flex;
  height: calc(100vh - var(--header-h));
  min-width: 0;
  flex-direction: column;
  padding: 16px 12px;
  overflow-y: auto;
  background: var(--white);
  border-right: 1px solid var(--line);
}
.nav-section { display: grid; gap: 3px; }
.nav-section + .nav-section { margin-top: 24px; }
.nav-section-label {
  padding: 0 10px 7px;
  color: var(--muted-light);
  font-size: 10px;
  font-weight: 500;
}
.nav-section > a {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.nav-section > a svg { flex: 0 0 18px; }
.nav-section > a > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-section > a:hover { color: var(--ink); background: var(--fog-soft); }
.nav-section > a.active { color: var(--lime); background: var(--lime-soft); }
.nav-section > a.active svg { color: var(--lime); }
.nav-count {
  min-width: 20px;
  margin-left: auto;
  padding: 1px 6px;
  color: var(--ink-soft);
  background: var(--fog-soft);
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border-radius: 999px;
}
.nav-section > a.active .nav-count { color: #111411; background: var(--lime); }

.nav-user {
  display: flex;
  min-width: 190px;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.user-avatar {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  color: #111411;
  background: var(--lime);
  font-size: 11px;
  font-weight: 700;
  border-radius: 7px;
}
.user-copy { display: flex; min-width: 76px; flex: 1; flex-direction: column; line-height: 1.2; }
.user-copy strong { overflow: hidden; color: var(--ink-soft); font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.user-copy small { margin-top: 2px; color: var(--muted-light); font-size: 9px; }
.nav-user form { align-self: stretch; }
.icon-button { display: grid; width: 44px; height: 100%; place-items: center; color: var(--muted); background: transparent; border: 0; cursor: pointer; }
.icon-button:hover { color: var(--ink); background: var(--fog); }
.mobile-menu-button, .mobile-nav-head, .sidebar-backdrop { display: none; }

/* Sidebar and page */
.app-main {
  display: grid;
  min-height: calc(100vh - var(--header-h));
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  align-items: stretch;
}

.page-shell {
  width: 100%;
  min-width: 0;
  min-height: calc(100vh - var(--header-h));
  overflow-x: hidden;
  padding: 24px;
  background: var(--fog);
}
.page-heading { margin: 0 0 24px; }
.page-heading h1 { margin-bottom: 6px; }
.page-heading p { max-width: 720px; margin: 0; color: var(--muted); font-size: 13px; }
.heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }

/* Controls */
.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  color: var(--ink-soft);
  background: var(--white);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease, transform .15s ease;
}
.button:hover:not(:disabled) { color: var(--ink); background: var(--fog-soft); border-color: var(--muted-light); text-decoration: none; transform: translateY(-1px); }
.button:active:not(:disabled) { transform: none; }
.button-primary { color: #111411; background: var(--lime); border-color: var(--lime); }
.button-primary:hover:not(:disabled) { color: #111411; background: var(--lime-hover); border-color: var(--lime-hover); }
.button-verify { color: #111411; background: var(--lime); border-color: var(--lime); }
.button-verify:hover:not(:disabled) { background: var(--lime-hover); border-color: var(--lime-hover); }
.button-danger { color: var(--on-danger); background: var(--danger); border-color: var(--danger); }
.button-small { min-height: 32px; padding: 6px 10px; font-size: 11px; }
.button-wide { width: 100%; }
.button:disabled { color: var(--muted-light); background: var(--fog); border-color: var(--line); cursor: not-allowed; }
.button .lucide { width: 15px; height: 15px; }
.text-link, .inline-icon-link { display: inline-flex; align-items: center; gap: 5px; }
.text-link { color: var(--ink-soft); font-size: 12px; font-weight: 500; }
.inline-icon-link .lucide, .text-link .lucide, .filter-reset .lucide { width: 13px; height: 13px; }

.help-trigger {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  padding: 0;
  color: var(--muted-light);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: help;
}
.help-trigger .lucide { width: 15px; height: 15px; }
.help-trigger:hover, .help-trigger[aria-expanded="true"] { color: var(--lime); background: var(--lime-soft); }
.help-tooltip {
  position: fixed;
  z-index: 600;
  width: max-content;
  max-width: min(300px, calc(100vw - 24px));
  padding: 10px 12px;
  color: var(--ink-soft);
  background: var(--fog-soft);
  font-size: 11px;
  line-height: 1.65;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transform: translateY(2px);
  transition: opacity .12s ease, transform .12s ease;
}
.help-tooltip.is-visible { opacity: 1; transform: none; }
.help-tooltip[hidden] { display: none; }
.title-with-help { display: flex; align-items: center; gap: 4px; }
.title-with-help > h1, .title-with-help > h2, .title-with-help > h3 { margin-bottom: 0; }
.page-heading .title-with-help { margin-bottom: 6px; }

input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 255, 77, .45);
}
textarea { resize: vertical; }
label { color: var(--ink-soft); font-size: 12px; font-weight: 500; }
.stack-form { display: grid; gap: 12px; }
.stack-form p { display: grid; gap: 5px; margin: 0; }
.stack-form .helptext { color: var(--muted); font-size: 10px; font-weight: 400; }
.stack-form ul.errorlist { padding: 9px 11px; margin: 0; color: var(--danger-text); background: var(--danger-soft); border: 1px solid var(--danger-line); border-radius: 8px; list-style: none; font-size: 11px; }
.narrow-form { max-width: 820px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 8px; padding: 10px 11px; background: var(--fog-soft); border: 1px solid var(--line); border-radius: 8px; }
.checkbox-label input { margin-top: 3px; }

.control-strip {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(150px, .65fr) minmax(150px, .65fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.control-strip label { display: grid; gap: 5px; }
.control-strip label > span { color: var(--muted); font-size: 10px; }
.control-strip .button { min-height: 40px; }
.queue-control { grid-template-columns: minmax(200px, 300px) auto 1fr; }
.control-note { align-self: center; justify-self: end; color: var(--muted); font-size: 11px; }

/* Reusable surfaces */
.proof-sheet,
.verification-pane,
.decision-proof,
.confirmation-band {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.proof-sheet, .verification-pane { padding: 20px; }
.registration-pair { display: none; }
.registration-target { display: block; width: 8px; height: 8px; background: var(--lime); border: 1px solid #111411; border-radius: 50%; }
.sheet-heading, .section-heading, .copy-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sheet-heading { margin-bottom: 16px; }
.sheet-heading h2, .section-heading h3, .copy-heading h2 { margin: 0; }
.sheet-code { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; font-weight: 500; }
.compact-heading { margin-bottom: 12px; }
.section-heading { margin-bottom: 10px; }
.section-heading > span { color: var(--muted-light); font-size: 10px; }

/* Dashboard */
.workbench-grid, .proof-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, .75fr);
  align-items: start;
  gap: 20px;
}
.dashboard-workbench { margin-bottom: 20px; }
.pipeline-register { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); }
.pipeline-row {
  display: grid;
  min-height: 58px;
  grid-template-columns: 34px minmax(0, 1fr) 54px 100px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.pipeline-row:last-child { border-bottom: 0; }
a.pipeline-row { color: inherit; text-decoration: none; }
a.pipeline-row:hover { background: var(--fog-soft); }
.pipeline-row.is-selected { background: var(--lime-soft); }
.pipeline-icon { display: grid; width: 30px; height: 30px; place-items: center; color: var(--muted); }
.pipeline-icon .lucide { width: 18px; height: 18px; }
.pipeline-row.is-selected .pipeline-icon { color: var(--lime); }
.pipeline-copy { display: flex; min-width: 0; flex-direction: column; }
.pipeline-copy strong { color: var(--ink); font-size: 13px; font-weight: 500; }
.pipeline-copy small { color: var(--muted); font-size: 10px; }
.pipeline-row > em { color: var(--ink); font-size: 18px; font-style: normal; font-weight: 700; text-align: right; }
.pipeline-row > i { height: 4px; overflow: hidden; background: var(--fog); border-radius: 10px; }
.pipeline-row > i span { display: block; height: 100%; background: var(--ink-soft); border-radius: 10px; }
.pipeline-row.is-selected > i span { background: var(--lime); }

.verification-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: var(--muted); font-size: 10px; }
.verification-pane h2 { margin-bottom: 14px; }
.verification-list { padding: 0; margin: 0 0 14px; list-style: none; border: 1px solid var(--line); border-radius: var(--radius-md); }
.verification-list li + li { border-top: 1px solid var(--line); }
.verification-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 10px 11px; text-decoration: none; }
.verification-list a:hover { background: var(--fog-soft); }
.verification-list a span { grid-column: 1; color: var(--muted); font-size: 9px; }
.verification-list a strong { grid-column: 1; overflow: hidden; color: var(--ink-soft); font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.verification-list a > .lucide { width: 15px; height: 15px; grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.verification-list .empty { padding: 20px; color: var(--muted); text-align: center; }
.dashboard-follow-up { scroll-margin-top: calc(var(--header-h) + 16px); }
.dashboard-follow-up > .section-heading-row { margin-bottom: 14px; }
.section-heading-row .sheet-code { display: block; margin-bottom: 4px; }
.section-heading-row h2 { font-size: 20px; }
.section-heading-row p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }

/* Tables */
.table-wrap, .company-ledger-wrap { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); background: var(--fog-soft); font-size: 10px; font-weight: 500; white-space: nowrap; }
td { color: var(--ink-soft); font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--fog-soft); }
td strong { color: var(--ink); font-weight: 500; }
td small { display: block; margin-top: 2px; color: var(--muted-light); font-size: 9px; }
td.empty { padding: 36px 16px; color: var(--muted); text-align: center; }
.data-table-wide { min-width: 760px; }
.table-wrap.is-scrollable { padding-bottom: 2px; }

/* Companies */
.company-filter-panel {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.filter-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.filter-panel-head h2 { margin: 0; font-size: 14px; }
.filter-reset { display: inline-flex; min-height: 32px; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 500; text-decoration: none; }
.filter-reset:hover { color: var(--lime); }
.company-filter-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
}
.company-filter-grid label, .sent-date-filter { display: grid; gap: 5px; min-width: 0; }
.company-filter-grid label > span, .sent-date-filter > span { color: var(--muted); font-size: 10px; }
.company-search-control { grid-column: span 4; }
.filter-lifecycle, .filter-wordpress, .filter-send-list { grid-column: span 2; }
.filter-sent, .filter-form, .filter-captcha, .filter-sender { grid-column: span 2; }
.sent-date-filter { grid-column: span 4; }
.sent-date-filter > div { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 7px; }
.sent-date-filter i { color: var(--muted-light); font-size: 11px; font-style: normal; }
.filter-submit { min-height: 40px; grid-column: span 2; }
.filter-submit svg { width: 16px; height: 16px; }
.filter-count { display: inline-grid; min-width: 18px; height: 18px; place-items: center; padding: 0 5px; color: var(--lime); background: #111411; font-size: 9px; border-radius: 999px; }
.company-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, .7fr);
  align-items: start;
  gap: 20px;
}
.company-register { padding: 0; overflow: hidden; }
.company-register .sheet-heading { padding: 18px 20px 0; }
.company-ledger-wrap { max-height: 620px; overflow: auto; }
.company-list-sheet { width: 100%; min-width: 0; }
.company-list-sheet .company-ledger-wrap { max-height: none; overflow-x: auto; }
.company-list-table { min-width: 1120px; table-layout: fixed; }
.company-list-table th:first-child { width: 52px; }
.company-list-table th:nth-child(2) { width: 220px; }
.company-list-table th:nth-child(3) { width: 140px; }
.company-list-table th:nth-child(4) { width: 120px; }
.company-list-table th:nth-child(6) { width: 138px; }
.company-list-table th:nth-child(7) { width: 145px; }
.company-list-table th:nth-child(8) { width: 105px; }
.company-list-table td { height: 72px; vertical-align: middle; }
.company-list-table tbody tr { transition: background .15s ease; }
.company-list-table tbody tr.is-selected td { background: var(--lime-soft); }
.company-list-table tbody tr:focus-within td { background: var(--lime-soft); }
.select-page-companies { display: inline-grid; place-items: center; cursor: pointer; }
.select-page-companies input, .company-select-checkbox { width: 17px; height: 17px; accent-color: var(--lime); cursor: pointer; }
.company-select-cell { text-align: center; }
.selection-unavailable { color: var(--muted-light); font-size: 8px; white-space: nowrap; }
.company-selection-action-bar {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  display: flex;
  max-width: 760px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 14px;
  margin: 14px auto 0;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.company-selection-action-bar > div { display: flex; min-width: 0; flex-direction: column; }
.company-selection-action-bar strong { color: var(--ink); font-size: 12px; }
.company-selection-action-bar span { color: var(--muted); font-size: 9px; }
.company-selection-action-bar .button { flex: 0 0 auto; }
.company-name-link { display: flex; min-width: 0; flex-direction: column; text-decoration: none; }
.company-name-link strong { overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.company-name-link small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-name-link .company-selection-note { margin-top: 4px; color: var(--muted-light); }
.company-name-link:hover strong { color: var(--lime); }
.company-primary-cell { display: flex; min-width: 0; align-items: center; gap: 8px; }
.company-primary-cell .company-name-link { flex: 1; }
.company-primary-cell .mobile-site-link { display: none; }
.site-cell { display: flex; min-width: 0; align-items: center; gap: 10px; }
.site-cell > span { display: flex; min-width: 0; flex-direction: column; }
.row-icon-link {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: var(--muted);
  background: var(--fog-soft);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  text-decoration: none;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.row-icon-link:hover { color: #111411; background: var(--lime); border-color: var(--lime); }
.row-icon-link svg { width: 16px; height: 16px; }
.row-icon-link-small { width: 26px; height: 26px; flex-basis: 26px; border-radius: 6px; }
.row-icon-link-small svg { width: 13px; height: 13px; }
.compact-status { display: flex; align-items: center; gap: 6px; }
.form-captcha-note { color: var(--warning-text); }
.badge-form-registered { color: var(--lime); background: var(--lime-soft); }
.badge-form-unregistered, .badge-unsent { color: var(--muted); background: var(--fog-soft); }
.last-sent-date time { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.last-sent-by { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-guide { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--muted); font-size: 10px; }
.status-key { display: inline-block; width: 7px; height: 7px; background: var(--lime); border-radius: 50%; }
.company-board-table { min-width: 690px; }
.company-board-table thead th { position: sticky; top: 0; z-index: 1; }
.company-board-table th:first-child { width: 42%; }
.company-board-table td { height: 62px; }
.company-board-table tr.is-selected td { background: var(--lime-soft); }
.ledger-select-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.ledger-select-link strong { font-size: 12px; }
.score { font-size: 17px; }
.company-inspector { display: flex; flex-direction: column; }
.inspector-title { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.inspector-title .badge { margin-bottom: 10px; }
.inspector-title h2 { margin-bottom: 4px; }
.inspector-title p { margin: 0; color: var(--muted); font-size: 11px; }
.inspector-facts { margin-top: 14px; }
.inspector-evidence { padding: 11px; margin-top: 12px; background: var(--fog-soft); border-radius: 8px; }
.inspector-evidence > span, .inspector-action > span { display: block; color: var(--muted); font-size: 9px; }
.inspector-evidence p { margin: 4px 0 0; color: var(--ink-soft); font-size: 11px; }
.inspector-action { margin-top: 18px; }
.inspector-action > span { margin-bottom: 7px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; color: var(--muted); font-size: 12px; }
.pagination a { display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; background: var(--white); border: 1px solid var(--line); border-radius: 7px; text-decoration: none; }
.pagination .lucide { width: 13px; height: 13px; }

/* Entity and detail screens */
.breadcrumb { display: flex; gap: 8px; margin-bottom: 14px; color: var(--muted); font-size: 11px; }
.breadcrumb a { color: var(--ink-soft); }
.entity-proof-header {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.proof-index { display: flex; flex-direction: column; align-self: stretch; justify-content: center; padding: 10px; background: var(--lime-soft); border-radius: 9px; }
.proof-index span { color: var(--muted); font-size: 9px; }
.proof-index strong { color: var(--ink); font-size: 18px; }
.entity-title h1 { margin-bottom: 4px; font-size: 28px; }
.entity-title p { margin: 0; color: var(--muted); font-size: 12px; }
.entity-actions { display: flex; align-items: center; gap: 8px; }

.company-proof-layout, .message-proof-layout, .import-layout { margin-bottom: 20px; }
.detail-ledger { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.detail-ledger > div { display: flex; min-width: 0; min-height: 100px; flex-direction: column; padding: 14px; background: var(--fog-soft); border: 1px solid var(--line); border-radius: var(--radius-md); }
.detail-ledger span { color: var(--muted); font-size: 10px; }
.detail-ledger strong { margin: 4px 0; color: var(--ink); font-size: 18px; }
.detail-ledger small { color: var(--muted); font-size: 10px; }
.detail-ledger .ledger-label { display: flex; align-items: center; gap: 2px; }
.detail-ledger .ledger-label .help-trigger { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 5px; }
.detail-ledger .ledger-label .help-trigger .lucide { width: 12px; height: 12px; }
.ledger-wordpress.wp-confirmed { background: var(--lime-soft); border-color: var(--success-line); }
.ledger-wordpress.wp-probable { background: var(--warning-surface); border-color: var(--warning-line); }
.exclude-company > summary { color: var(--danger); font-size: 11px; cursor: pointer; }
.exclude-company form { display: grid; gap: 8px; padding: 12px; margin-top: 8px; background: var(--fog-soft); border: 1px solid var(--danger-line); border-radius: var(--radius-md); }
.exclude-company label > span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.exclude-note { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.exclude-sheet { padding: 16px; margin-bottom: 20px; }
.wp-version { padding: 1px 6px; margin-left: 2px; color: var(--lime); background: var(--lime-soft); font-family: var(--utility); font-size: 12px; font-style: normal; vertical-align: 2px; border-radius: 4px; }
.sheet-section { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.evidence-list { padding: 0; margin: 0; list-style: none; border: 1px solid var(--line); border-radius: 9px; }
.evidence-list li { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; font-size: 11px; }
.evidence-list li + li { border-top: 1px solid var(--line); }
.evidence-list code, .spec-list code { display: inline-block; padding: 1px 5px; color: var(--lime); background: var(--lime-soft); font-size: 10px; border-radius: 4px; }
.evidence-list a { font-size: 10px; }
.danger-section { color: var(--danger); }
.danger-list { border-color: var(--danger-line); }
.empty-state { padding: 38px 18px; color: var(--muted); text-align: center; }
.empty-state .registration-target { margin: 0 auto 10px; }
.empty-state h3 { margin-bottom: 4px; }
.empty-state p { max-width: 420px; margin: 0 auto; font-size: 12px; }
.contact-sheet, .history-sheet, .proof-form, .final-record, .report-sheet { margin-bottom: 20px; }
.source-notes { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.source-notes > span { color: var(--muted); font-size: 10px; }
.source-notes p { max-height: 190px; margin: 6px 0 0; overflow-y: auto; color: var(--ink-soft); font-size: 11px; line-height: 1.7; }
.site-profile-sheet { margin-bottom: 20px; }
.content-hash { color: var(--muted-light); font-family: var(--utility); font-size: 9px; }
.operator-verification { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; margin-bottom: 0; overflow: hidden; background: var(--fog-soft); border: 1px solid var(--line); border-radius: var(--radius-md); }
.operator-verification.operator-confirmed, .operator-verification.operator-probable { background: var(--lime-soft); border-color: var(--success-line); }
.operator-verification.operator-review_required { background: var(--warning-surface); border-color: var(--warning-line); }
.operator-result { display: flex; min-height: 104px; flex-direction: column; justify-content: center; padding: 14px 16px; border-right: 1px solid var(--line); }
.operator-result > span { color: var(--muted); font-size: 9px; }
.operator-result strong { margin: 3px 0; color: var(--ink); font-size: 18px; }
.operator-result small { color: var(--muted); font-size: 9px; }
.operator-copy { padding: 14px 18px; }
.operator-copy p { margin-bottom: 5px; color: var(--ink-soft); font-size: 11px; }
.operator-copy span { color: var(--muted); font-size: 9px; }
.operator-evidence-list { margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; }
.operator-evidence-list > div { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 11px; }
.operator-evidence-list > div + div { border-top: 1px solid var(--line); }
.operator-evidence-list span, .operator-evidence-list small { color: var(--muted); font-size: 9px; }
.operator-evidence-list strong { min-width: 0; overflow: hidden; color: var(--ink-soft); font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.operator-evidence-list .match-ok { color: var(--lime); }
.site-profile-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .72fr); gap: 20px; padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); }
.site-metadata { min-width: 0; }
.profile-values { margin: 0; border: 1px solid var(--line); border-radius: 8px; }
.profile-values > div { display: grid; grid-template-columns: 125px minmax(0, 1fr); }
.profile-values > div + div { border-top: 1px solid var(--line); }
.profile-values dt, .profile-values dd { padding: 9px 11px; }
.profile-values dt { color: var(--muted); background: var(--fog-soft); font-size: 9px; }
.profile-values dd { margin: 0; overflow-wrap: anywhere; color: var(--ink-soft); font-size: 10px; }
.profile-values a { color: var(--ink-soft); }
.profile-subsection { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.profile-subsection > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 9px; }
.heading-chips, .public-contact-list { display: flex; flex-wrap: wrap; gap: 6px; }
.heading-chips span, .public-contact-list > * { padding: 5px 8px; color: var(--muted); background: var(--fog-soft); font-size: 9px; text-decoration: none; border: 1px solid var(--line); border-radius: 6px; }
.heading-chips .is-primary { color: var(--ink-soft); border-color: var(--line-strong); }
.important-link-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.important-link-list a { display: flex; min-width: 0; align-items: center; gap: 6px; padding: 8px 9px; overflow: hidden; color: var(--ink-soft); background: var(--fog-soft); font-size: 10px; text-decoration: none; border: 1px solid var(--line); border-radius: 7px; text-overflow: ellipsis; white-space: nowrap; }
.important-link-list a:hover { border-color: var(--line-strong); }
.important-link-list small { flex: 0 0 auto; color: var(--muted); font-size: 8px; }
.important-link-list a > span { margin-left: auto; }
.important-link-list .lucide { width: 13px; height: 13px; }
.keyword-pane { min-width: 0; padding: 14px; background: var(--fog-soft); border: 1px solid var(--line); border-radius: var(--radius-md); }
.keyword-pane > p { margin: -2px 0 10px; color: var(--muted); font-size: 9px; }
.keyword-list { padding: 0; margin: 0; list-style: none; counter-reset: keyword-rank; }
.keyword-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 0; counter-increment: keyword-rank; }
.keyword-list li + li { border-top: 1px solid var(--line); }
.keyword-list li > div { display: grid; min-width: 0; grid-template-columns: 22px minmax(0, 1fr); }
.keyword-list li > div::before { grid-row: 1 / span 2; align-self: center; content: counter(keyword-rank, decimal-leading-zero); color: var(--muted-light); font-family: var(--utility); font-size: 8px; }
.keyword-list strong { overflow: hidden; color: var(--ink); font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.keyword-list li > div span { grid-column: 2; color: var(--muted); font-size: 8px; }
.keyword-list dl { display: grid; grid-template-columns: auto auto; gap: 0 5px; margin: 0; text-align: right; }
.keyword-list dt { color: var(--muted-light); font-size: 8px; }
.keyword-list dd { margin: 0; color: var(--ink-soft); font-size: 9px; }
.keyword-list .keyword-empty { display: block; color: var(--muted); font-size: 10px; }
.fact-section { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); }
.fact-ledger { border-top: 1px solid var(--line); }
.fact-ledger article { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.fact-ledger article > span { color: var(--muted); font-size: 9px; }
.fact-ledger article p { margin: 0; color: var(--ink-soft); font-size: 11px; }
.fact-ledger article a { color: var(--muted); font-size: 9px; white-space: nowrap; }
.section-lead { max-width: 760px; margin: -5px 0 16px; color: var(--muted); font-size: 11px; }
.contact-research-list { display: grid; gap: 12px; }
.contact-research-card { min-width: 0; overflow: hidden; background: var(--fog); border: 1px solid var(--line); border-radius: var(--radius-md); }
.contact-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 16px; background: var(--white); border-bottom: 1px solid var(--line); }
.contact-card-head > div { min-width: 0; }
.contact-card-head > div > span { display: block; margin-bottom: 2px; color: var(--muted); font-size: 9px; }
.contact-card-head h3 { margin-bottom: 3px; font-size: 14px; }
.contact-card-head a { display: block; overflow: hidden; color: var(--muted); font-family: var(--utility); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.contact-facts { display: grid; grid-template-columns: .55fr 2fr 1fr 1fr 1fr; margin: 0; border-bottom: 1px solid var(--line); }
.contact-facts > div { min-width: 0; padding: 12px 14px; border-right: 1px solid var(--line); }
.contact-facts > div:last-child { border-right: 0; }
.contact-facts dt { color: var(--muted); font-size: 9px; }
.contact-facts dd { margin: 3px 0 0; overflow-wrap: anywhere; color: var(--ink-soft); font-size: 10px; }
.contact-facts a { color: var(--ink-soft); }
.field-schema { padding: 16px; background: var(--white); }
.field-schema .section-heading { margin-bottom: 8px; }
.field-schema .section-heading h3 { font-size: 12px; }
.field-schema-table { min-width: 700px; border: 1px solid var(--line); }
.field-schema-table th, .field-schema-table td { padding: 9px 10px; }
.field-schema-table td { font-size: 10px; }
.field-schema-table code { color: var(--lime); font-family: var(--utility); font-size: 9px; overflow-wrap: anywhere; }
.required-mark { color: var(--warning-text); }
.muted-value { color: var(--muted-light); }
.field-empty { padding: 14px; margin: 0; color: var(--muted); background: var(--fog-soft); font-size: 10px; border-radius: 7px; }
.terms-note { padding: 13px 16px; background: var(--warning-surface); border-top: 1px solid var(--warning-line); }
.terms-note span { color: var(--warning-text); font-size: 9px; }
.terms-note p { margin: 3px 0 0; color: var(--ink-soft); font-size: 10px; }
.compact-empty { padding: 28px 18px; }

.key-values, .spec-list { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 0; margin: 0; }
.key-values dt, .key-values dd, .spec-list dt, .spec-list dd { padding: 8px 0; border-bottom: 1px solid var(--line); }
.key-values dt, .spec-list dt { color: var(--muted); font-size: 10px; }
.key-values dd, .spec-list dd { margin: 0; color: var(--ink-soft); font-size: 11px; overflow-wrap: anywhere; }
.key-values > :nth-last-child(-n+2), .spec-list > :nth-last-child(-n+2) { border-bottom: 0; }
.pane-lead, .pane-note { color: var(--muted); font-size: 12px; }
.break-all { word-break: break-all; }

/* Forms, messages, decisions */
.proof-form { padding: 0; overflow: hidden; }
.proof-form summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; cursor: pointer; list-style: none; }
.proof-form summary::-webkit-details-marker { display: none; }
.proof-form summary small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 9px; }
.proof-form summary strong { color: var(--ink); font-size: 15px; }
.summary-mark { display: grid; width: 28px; height: 28px; place-items: center; background: var(--fog); border-radius: 7px; transition: transform .15s ease; }
.summary-mark .lucide { width: 15px; height: 15px; }
.proof-form[open] .summary-mark { transform: rotate(45deg); }
.proof-form > form { padding: 18px 20px 20px; border-top: 1px solid var(--line); }
.form-action-band { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); }
.form-action-band > span { color: var(--muted); font-size: 10px; }

.review-header { grid-template-columns: 78px minmax(0, 1fr) auto; }
.copy-proof { background: var(--white); }
.copy-heading { margin-bottom: 8px; }
.copy-area { min-height: 420px; padding: 14px; color: var(--ink-soft); background: var(--fog-soft); font-size: 13px; line-height: 1.75; border-color: var(--line); resize: vertical; }
.copy-area-subject { min-height: 54px; height: 54px; font-weight: 500; resize: none; }
.proof-rule { height: 1px; margin: 16px 0; background: var(--line); }
.proof-rule > * { display: none; }
.action-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.decision-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.decision-proof { padding: 20px; }
.decision-proof h2 { margin-bottom: 5px; }
.decision-proof > p { color: var(--muted); font-size: 12px; }
.decision-proof.is-approve { background: var(--lime-soft); border-color: var(--success-line); }
.decision-proof.is-reject { background: var(--white); }

.confirmation-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; }
.confirmation-band span { color: var(--muted); font-size: 10px; }
.confirmation-band h2 { margin: 2px 0 3px; }
.confirmation-band p { margin: 0; color: var(--muted); font-size: 11px; }
.record-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; }
.record-grid > div { padding: 12px; background: var(--fog-soft); border-radius: 8px; }
.record-grid dt { color: var(--muted); font-size: 10px; }
.record-grid dd { margin: 3px 0 0; color: var(--ink); font-size: 12px; }
.summary-ledger { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.summary-ledger span { display: flex; flex-direction: column; padding: 12px; color: var(--muted); background: var(--fog-soft); border-radius: 8px; font-size: 10px; }
.summary-ledger strong { color: var(--ink); font-size: 20px; }

/* Progress and exclusion lists */
.list-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.exclusion-summary { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sales-progress-summary { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.summary-card {
  display: flex;
  min-width: 0;
  min-height: 94px;
  flex-direction: column;
  justify-content: center;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
}
.summary-card:hover { color: inherit; background: var(--fog-soft); text-decoration: none; }
.summary-card.is-current { background: var(--lime-soft); border-color: var(--success-line); }
.summary-card span { color: var(--muted); font-size: 10px; }
.summary-card strong { margin: 2px 0; color: var(--ink); font-size: 24px; line-height: 1.2; }
.summary-card small { color: var(--muted-light); font-size: 9px; }
.progress-filters { grid-template-columns: minmax(240px, 1.3fr) repeat(3, minmax(140px, .5fr)) auto; }
.exclusion-filters { grid-template-columns: minmax(300px, 1fr) minmax(190px, .35fr) auto; }
.list-sheet { width: 100%; min-width: 0; max-width: 100%; padding: 0; overflow: hidden; }
.list-sheet + .list-sheet { margin-top: 20px; }
.list-sheet .sheet-heading { padding: 18px 20px 0; }
.progress-table { min-width: 1080px; }
.exclusion-table { min-width: 920px; }
.suppression-table { min-width: 840px; }
.progress-table th:first-child { width: 17%; }
.progress-table th:nth-child(2) { width: 24%; }
.sales-progress-table th:first-child { width: 22%; }
.sales-progress-table th:nth-child(2) { width: 18%; }
.sales-progress-table th:nth-child(3) { width: 14%; }
.sales-progress-table th:nth-child(4) { width: 18%; }
.sales-progress-table th:nth-child(5) { width: 13%; }
.sales-progress-table th:last-child { width: 150px; }
.progress-table td, .exclusion-table td, .suppression-table td { vertical-align: middle; }
.badge-channel { color: var(--ink-soft); background: var(--fog-soft); }
.badge-progress-responded, .badge-progress-active { color: var(--lime); background: var(--lime-soft); }
.badge-progress-automatic { color: var(--warning-text); background: var(--warning-surface); }
.badge-progress-waiting { color: var(--ink-soft); background: var(--fog-soft); }
.badge-progress-declined, .badge-progress-lost { color: var(--danger-text); background: var(--danger-soft); }
.badge-progress-meeting, .badge-progress-meeting_scheduled,
.badge-progress-proposal_sent, .badge-progress-won { color: var(--lime); background: var(--lime-soft); }
.reason-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.badge-exclusion-existing, .badge-exclusion-suppressed, .badge-exclusion-prohibited { color: var(--danger-text); background: var(--danger-soft); }
.badge-exclusion-competitor, .badge-exclusion-excluded { color: var(--ink-soft); background: var(--fog-soft); }
.section-note { padding: 0 20px; margin: -4px 0 14px; color: var(--muted); font-size: 11px; }
.suppression-table code { color: var(--lime); font-family: var(--utility); font-size: 10px; overflow-wrap: anywhere; }

/* Sales progress detail */
.progress-milestones {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 20px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.progress-milestones > div { min-width: 0; padding: 14px 16px; border-right: 1px solid var(--line); }
.progress-milestones > div:last-child { border-right: 0; }
.progress-milestones span { display: block; color: var(--muted); font-size: 9px; }
.progress-milestones strong { display: block; margin-top: 3px; color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.progress-editor-sheet { max-width: 1040px; }
.progress-record-form { display: grid; gap: 18px; }
.progress-primary-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.progress-date-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.progress-note-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; }
.progress-record-form label { display: grid; min-width: 0; gap: 5px; }
.progress-record-form label > span { color: var(--muted); font-size: 10px; }
.progress-record-form label > small { color: var(--muted-light); font-size: 9px; font-weight: 400; }
.progress-record-form .errorlist { padding: 0; margin: 0; color: var(--danger-text); font-size: 10px; list-style: none; }
.form-support-note { margin: -6px 0 0; color: var(--muted); font-size: 10px; }

/* Manual send list */
.send-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.send-list-title-row .button { flex: 0 0 auto; }

.send-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.send-overview > * {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  color: var(--muted);
  text-decoration: none;
}
.send-overview > * + * { border-left: 1px solid var(--line); }
.send-overview a:hover { color: var(--ink); background: var(--fog-soft); }
.send-overview a.is-current { color: var(--ink); background: var(--lime-soft); }
.send-overview span { font-size: 10px; }
.send-overview strong { color: var(--ink); font-size: 22px; line-height: 1; }
.send-overview .is-working strong { color: var(--lime); }

.send-list-filter { grid-template-columns: minmax(260px, 1fr) minmax(180px, 260px) auto; padding: 12px; margin-bottom: 14px; }
.send-list {
  overflow: visible;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.send-list-head { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.send-list-head span { display: block; color: var(--muted); font-size: 9px; }
.send-list-head h2 { margin: 1px 0 0; font-size: 17px; }
.send-list-head p { margin: 0; color: var(--muted); font-size: 10px; }

.send-row {
  position: relative;
  display: grid;
  min-height: 122px;
  grid-template-columns: 48px minmax(190px, .72fr) minmax(270px, 1.25fr) 210px;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}
.send-row:last-child { border-bottom: 0; }
.send-row-in_progress::before { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; content: ""; background: var(--lime); }
.send-row-preparing { background: rgba(255, 255, 255, .012); }
.send-row-state { display: grid; place-items: center; color: var(--muted-light); font-family: var(--utility); font-size: 9px; border-right: 1px solid var(--line); }
.send-row-company, .send-row-message, .send-row-action { min-width: 0; padding: 16px; }
.send-row-company { display: flex; flex-direction: column; justify-content: center; }
.send-row-labels { display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.send-captcha { padding: 2px 6px; color: var(--warning-text); background: var(--warning-surface); font-family: var(--utility); font-size: 8px; line-height: 18px; border-radius: 999px; }
.badge-preparing { color: var(--warning-text); background: var(--warning-surface); }
.send-row-company > a { overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 500; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.send-row-company > a:hover { color: var(--lime); }
.send-row-company > small { overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.send-row-message { display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--line); }
.send-row-message > span { color: var(--muted); font-size: 9px; }
.send-row-message > strong { margin: 2px 0 8px; overflow: hidden; color: var(--ink-soft); font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.send-row-message > small { color: var(--muted); font-size: 9px; }
.send-copy-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.send-copy-actions button, .send-copy-actions a, .send-reopen-link {
  padding: 3px 7px;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
}
.send-copy-actions button:hover, .send-copy-actions a:hover { color: var(--ink); border-color: var(--line-strong); }
.send-row-action { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 7px; border-left: 1px solid var(--line); }
.send-row-action > small { color: var(--muted-light); font-size: 8px; text-align: center; }
.send-remove-link { padding: 3px; color: var(--muted); background: transparent; font-size: 9px; border: 0; cursor: pointer; }
.send-remove-link:hover { color: var(--danger-text); }
.send-open-button { width: 100%; min-height: 42px; }
.send-complete-button {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 13px;
  color: #111411;
  background: var(--lime);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--lime);
  border-radius: 8px;
  cursor: pointer;
}
.send-complete-button:hover { background: var(--lime-hover); }
.send-complete-button span { display: grid; width: 17px; height: 17px; place-items: center; color: var(--lime); background: #111411; font-size: 10px; border-radius: 4px; }
.send-complete-button span .lucide { width: 11px; height: 11px; stroke-width: 2.5; }
.send-reopen-link { display: block; border: 0; text-align: center; }
.send-reopen-link.inline-icon-link { display: flex; justify-content: center; }
.js-reopen-contact-form { display: block; }
.js-reopen-contact-form .send-reopen-link { width: 100%; cursor: pointer; }
.send-exception { position: relative; font-size: 9px; }
.send-exception summary { color: var(--muted); text-align: center; cursor: pointer; }
.send-exception[open] { z-index: 4; }
.send-exception form { display: grid; gap: 8px; padding: 10px; margin-top: 7px; background: var(--fog-soft); border: 1px solid var(--line); border-radius: 8px; }
.send-exception label { display: grid; gap: 3px; font-size: 9px; }
.send-exception textarea { min-height: 54px; font-size: 10px; }
.send-exception form > div { display: flex; gap: 4px; }
.send-exception form button { flex: 1; min-height: 28px; padding: 3px 5px; color: var(--ink-soft); background: var(--white); font-size: 8px; border: 1px solid var(--line-strong); border-radius: 5px; cursor: pointer; }
.send-list-empty { padding: 54px 20px; text-align: center; }
.send-list-empty > span { display: grid; width: 34px; height: 34px; place-items: center; margin: 0 auto 10px; color: #111411; background: var(--lime); font-weight: 700; border-radius: 50%; }
.send-list-empty > span .lucide { width: 17px; height: 17px; stroke-width: 2.5; }
.send-list-empty h2 { margin-bottom: 4px; font-size: 16px; }
.send-list-empty p { margin: 0 0 14px; color: var(--muted); font-size: 11px; }

.send-detail-start { margin-bottom: 20px; }
.send-detail-result { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: center; gap: 28px; margin-bottom: 20px; }
.send-detail-result > div > span { color: var(--muted); font-size: 9px; }
.send-detail-result h2 { margin: 2px 0 4px; }
.send-detail-result p { margin: 0; color: var(--muted); font-size: 11px; }
.send-detail-result-actions { display: grid; gap: 8px; }
.action-strip form { display: inline-flex; }

/* Staff guide */
.guide-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.guide-page-heading .button { flex: 0 0 auto; }
.guide-task-finder {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: stretch;
  margin-bottom: 24px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.guide-task-intro { display: flex; flex-direction: column; justify-content: center; padding: 18px 20px; border-right: 1px solid var(--line); }
.guide-task-intro h2 { margin: 0 0 4px; font-size: 17px; }
.guide-task-intro p { margin: 0; color: var(--muted); font-size: 10px; }
.guide-task-links { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.guide-task-links a { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 13px; color: var(--ink-soft); text-decoration: none; border-left: 1px solid var(--line); }
.guide-task-links a:first-child { border-left: 0; }
.guide-task-links a:hover { color: var(--lime); background: var(--lime-soft); }
.guide-task-links a > span { display: flex; min-width: 0; flex-direction: column; }
.guide-task-links strong { color: inherit; font-size: 11px; font-weight: 500; line-height: 1.45; }
.guide-task-links small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.guide-task-links .lucide { width: 14px; height: 14px; }
.guide-layout { display: grid; grid-template-columns: 180px minmax(0, 900px); align-items: start; justify-content: center; gap: 24px; }
.guide-toc { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 3px; padding-left: 13px; border-left: 1px solid var(--line-strong); }
.guide-toc > span { padding: 3px 8px 7px; color: var(--muted-light); font-size: 9px; }
.guide-toc a { padding: 6px 8px; color: var(--muted); font-size: 11px; text-decoration: none; border-radius: 6px; }
.guide-toc a:hover { color: var(--ink); background: var(--fog-soft); }
.guide-content { min-width: 0; }
.guide-section { padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); scroll-margin-top: calc(var(--header-h) + 20px); }
.guide-section + .guide-section { margin-top: 20px; }
.guide-section > header { margin-bottom: 16px; }
.guide-section > header h2 { margin-bottom: 5px; }
.guide-section > header p { max-width: 72ch; margin: 0; color: var(--muted); font-size: 11px; }
.guide-steps { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.guide-steps > li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.guide-steps > li:last-child { padding-bottom: 4px; border-bottom: 0; }
.guide-step-number { padding-top: 2px; color: var(--lime); font-family: var(--utility); font-size: 10px; }
.guide-steps h3 { margin-bottom: 5px; font-size: 15px; }
.guide-steps p { max-width: 72ch; margin-bottom: 8px; color: var(--ink-soft); font-size: 12px; }
.guide-steps ul { display: grid; gap: 3px; padding-left: 18px; margin: 0 0 12px; color: var(--muted); font-size: 10px; }
.guide-steps li::marker { color: var(--lime); }
.guide-status-table { min-width: 650px; }
.guide-status-table td:nth-child(1) { width: 120px; }
.guide-status-table td:nth-child(3) { width: 220px; }
.guide-rule-list { padding: 0; margin: 0 0 14px; list-style: none; border: 1px solid var(--line); border-radius: var(--radius-md); }
.guide-rule-list li { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; padding: 13px 14px; }
.guide-rule-list li + li { border-top: 1px solid var(--line); }
.guide-rule-list strong { color: var(--ink); font-size: 11px; font-weight: 500; }
.guide-rule-list span { color: var(--muted); font-size: 10px; }
.guide-faq-list { border: 1px solid var(--line); border-radius: var(--radius-md); }
.guide-faq-list details + details { border-top: 1px solid var(--line); }
.guide-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 14px; color: var(--ink); font-size: 12px; font-weight: 500; list-style: none; cursor: pointer; }
.guide-faq-list summary::-webkit-details-marker { display: none; }
.guide-faq-list summary .lucide { width: 15px; height: 15px; color: var(--muted); transition: transform .15s ease; }
.guide-faq-list details[open] summary .lucide { color: var(--lime); transform: rotate(180deg); }
.guide-faq-list details p { max-width: 72ch; padding: 0 14px 14px; margin: 0; color: var(--muted); font-size: 11px; }

/* Status */
.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  color: var(--ink-soft);
  background: var(--fog);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-large { min-height: 28px; padding: 5px 10px; font-size: 10px; }
.badge-qualified, .badge-approved, .badge-sent, .badge-completed { color: var(--lime); background: var(--lime-soft); }
.badge-rejected, .badge-failed, .badge-suppressed { color: var(--danger); background: var(--danger-soft); }
.text-danger { color: var(--danger); }

.alert, .flash { display: flex; align-items: flex-start; gap: 8px; padding: 11px 13px; color: var(--ink-soft); background: var(--white); border: 1px solid var(--line); border-radius: 9px; font-size: 12px; }
.alert { margin-bottom: 20px; }
.alert strong { color: var(--ink); white-space: nowrap; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-success { background: var(--lime-soft); border-color: var(--success-line); }
.alert-warning { background: var(--warning-surface); border-color: var(--warning-line); }
.alert-danger, .flash-error { color: var(--danger-text); background: var(--danger-soft); border-color: var(--danger-line); }
.flash-stack { display: grid; gap: 8px; margin-bottom: 16px; }

/* Login */
.is-guest { background: var(--fog); }
.guest-header { display: none; }
.guest-page { display: grid; min-height: 100vh; place-items: center; padding: 16px; }
.auth-shell { width: 100%; max-width: 380px; }
.auth-card { padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.auth-logo { display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 10px; margin-bottom: 24px; }
.auth-brand-logo { display: block; width: 80px; height: auto; object-fit: contain; }
.auth-product-name { color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .03em; }
.auth-card-head { margin-bottom: 22px; text-align: center; }
.auth-card-head h1 { margin-bottom: 5px; font-size: 24px; }
.auth-card-head p { margin: 0; color: var(--muted); font-size: 12px; }
.auth-card .stack-form { gap: 7px; }
.auth-card .stack-form input { margin-bottom: 8px; }
.auth-submit { margin-top: 8px; }
.auth-security { margin: 16px 0 0; color: var(--muted-light); font-size: 10px; text-align: center; }

/* Mobile navigation */
@media (max-width: 1120px) {
  .nav-user { min-width: 170px; }
  .workbench-grid, .proof-layout, .company-workbench { grid-template-columns: minmax(0, 1.45fr) minmax(260px, .7fr); }
  .send-row { grid-template-columns: 42px minmax(170px, .72fr) minmax(210px, 1.1fr) 190px; }
  .send-row-company, .send-row-message, .send-row-action { padding: 13px; }
  .company-filter-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .company-search-control { grid-column: span 6; }
  .filter-lifecycle, .filter-wordpress, .filter-send-list, .filter-sent, .filter-form, .filter-captcha, .filter-sender { grid-column: span 2; }
  .sent-date-filter { grid-column: span 4; }
  .filter-submit { grid-column: span 2; }
}

@media (max-width: 900px) {
  .system-header { justify-content: space-between; }
  .brand { width: auto; flex: 1; }
  .mobile-menu-button {
    display: grid;
    width: 48px;
    height: 100%;
    place-content: center;
    gap: 4px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .mobile-menu-button .lucide { width: 21px; height: 21px; color: var(--ink); }
  .system-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 220;
    display: flex;
    width: min(300px, calc(100vw - 40px));
    flex-direction: column;
    align-items: stretch;
    padding: 0 12px 16px;
    background: var(--white);
    box-shadow: 12px 0 30px rgba(17, 20, 17, .12);
    transform: translateX(-105%);
    transition: transform .2s ease;
  }
  body.sidebar-open .system-nav { transform: translateX(0); }
  .mobile-nav-head { display: flex; height: 52px; align-items: center; justify-content: space-between; padding: 0 4px 0 10px; color: var(--ink); font-size: 13px; font-weight: 500; border-bottom: 1px solid var(--line); }
  .sidebar-close-button { display: grid; width: 38px; height: 38px; place-items: center; color: var(--muted); background: transparent; border: 0; border-radius: 8px; }
  .sidebar-close-button:hover { color: var(--ink); background: var(--fog); }
  .nav-section { padding-top: 12px; }
  .nav-section + .nav-section { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
  .nav-section > a { min-height: 44px; padding: 0 12px; }
  .nav-user { min-width: 92px; padding-left: 10px; }
  .user-copy { display: none; }
  .nav-user form { height: 40px; }
  .icon-button { width: 40px; height: 40px; border-radius: 8px; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 210; display: block; background: rgba(17, 20, 17, .34); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  body.sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
  .app-main { display: block; }
  .page-shell { min-height: calc(100vh - var(--header-h)); padding: 20px; }
  .workbench-grid, .proof-layout, .company-workbench { grid-template-columns: 1fr; }
  .site-profile-grid { grid-template-columns: 1fr; }
  .company-inspector { min-height: 0; }
  .send-page-heading { align-items: stretch; flex-direction: column; gap: 14px; }
  .send-list-title-row .button { width: 100%; }
  .send-detail-result { grid-template-columns: minmax(0, 1fr) 250px; }
  .guide-page-heading { align-items: stretch; flex-direction: column; gap: 14px; }
  .guide-page-heading .button { width: 100%; }
  .guide-task-finder { grid-template-columns: 1fr; }
  .guide-task-intro { border-right: 0; border-bottom: 1px solid var(--line); }
  .guide-task-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-task-links a { border-top: 1px solid var(--line); }
  .guide-task-links a:nth-child(odd) { border-left: 0; }
  .guide-task-links a:nth-child(-n+2) { border-top: 0; }
  .guide-task-links a:last-child { grid-column: 1 / -1; }
  .guide-layout { grid-template-columns: 1fr; gap: 14px; }
  .guide-toc { position: static; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; border-left: 0; }
  .guide-toc > span { flex-basis: 100%; padding-left: 0; }
  .guide-toc a { background: var(--white); border: 1px solid var(--line); }
}

@media (max-width: 640px) {
  body { font-size: 13px; }
  h1 { font-size: 24px; }
  h2 { font-size: 18px; }
  .page-shell { padding: 16px 12px 40px; }
  .page-heading { margin-bottom: 18px; }
  .page-heading p { font-size: 12px; }
  .heading-row { align-items: stretch; flex-direction: column; gap: 12px; }
  .heading-row > .button { width: 100%; }
  .guide-task-links { grid-template-columns: 1fr; }
  .guide-task-links a, .guide-task-links a:nth-child(odd), .guide-task-links a:nth-child(-n+2) { border-top: 1px solid var(--line); border-left: 0; }
  .guide-task-links a:first-child { border-top: 0; }
  .guide-task-links a:last-child { grid-column: auto; }
  .guide-section { padding: 16px; }
  .guide-steps > li { grid-template-columns: 30px minmax(0, 1fr); gap: 8px; padding: 18px 0; }
  .guide-rule-list li { grid-template-columns: 1fr; gap: 4px; }
  .control-strip, .queue-control { grid-template-columns: 1fr; gap: 10px; padding: 12px; }
  .company-filter-panel { padding: 12px; }
  .company-filter-grid { grid-template-columns: 1fr; }
  .company-search-control, .filter-lifecycle, .filter-wordpress, .filter-send-list, .filter-sent, .filter-form, .filter-sender, .sent-date-filter, .filter-submit { grid-column: auto; }
  .filter-submit { margin-top: 2px; }
  .progress-filters, .exclusion-filters { grid-template-columns: 1fr; }
  .control-note { justify-self: start; }
  .send-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .send-overview > * { min-height: 58px; padding: 9px 12px; }
  .send-overview > *:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .send-overview > *:nth-child(4) { border-top: 1px solid var(--line); }
  .send-list-head { align-items: flex-start; flex-direction: column; gap: 5px; padding: 14px; }
  .send-row { min-height: 0; grid-template-columns: 38px minmax(0, 1fr); }
  .send-row-state { grid-row: 1 / span 3; }
  .send-row-company, .send-row-message, .send-row-action { grid-column: 2; padding: 13px; }
  .send-row-message, .send-row-action { border-top: 1px solid var(--line); border-left: 0; }
  .send-row-message > strong { white-space: normal; }
  .send-row-action { align-items: stretch; }
  .company-selection-action-bar { bottom: 8px; align-items: stretch; flex-direction: column; gap: 10px; margin-inline: 6px; }
  .company-selection-action-bar .button { width: 100%; }
  .send-detail-result { grid-template-columns: 1fr; gap: 16px; }
  .proof-sheet, .verification-pane { padding: 16px; }
  .company-register { padding: 0; }
  .company-register .sheet-heading { padding: 16px 16px 0; }
  .company-ledger-wrap { max-height: none; }
  .company-list-table { width: 100%; min-width: 0; table-layout: fixed; }
  .company-list-table th:nth-child(3), .company-list-table td:nth-child(3),
  .company-list-table th:nth-child(4), .company-list-table td:nth-child(4),
  .company-list-table th:nth-child(5), .company-list-table td:nth-child(5),
  .company-list-table th:nth-child(6), .company-list-table td:nth-child(6) { display: none; }
  .company-list-table th, .company-list-table td { padding: 10px 7px; }
  .company-list-table th:first-child { width: 52px; }
  .company-list-table th:nth-child(2) { width: auto; }
  .company-list-table th:nth-child(7) { width: 92px; }
  .company-list-table th:nth-child(8) { width: 78px; }
  .company-list-table td { height: 76px; }
  .company-list-table .badge { padding-inline: 6px; }
  .company-list-table .row-icon-link-small { display: none; }
  .company-list-table .mobile-site-link { display: grid; }
  .selection-unavailable { font-size: 8px; }
  .table-guide { display: none; }
  .sheet-heading { align-items: flex-start; }
  .pipeline-row { grid-template-columns: 30px minmax(0, 1fr) 38px; padding: 10px; }
  .pipeline-row > i { grid-column: 2 / 4; width: 100%; }
  .entity-proof-header, .review-header { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .entity-actions { grid-column: 1 / -1; justify-content: flex-end; padding-top: 10px; border-top: 1px solid var(--line); }
  .entity-title h1 { font-size: 22px; }
  .detail-ledger, .decision-grid, .record-grid { grid-template-columns: 1fr; }
  .operator-verification { grid-template-columns: 1fr; }
  .operator-result { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .operator-copy { padding: 12px 14px; }
  .operator-evidence-list > div { grid-template-columns: 1fr auto; gap: 3px 8px; }
  .operator-evidence-list strong { grid-row: 2; grid-column: 1 / -1; white-space: normal; }
  .profile-values > div { grid-template-columns: 1fr; }
  .profile-values dt { padding-bottom: 3px; background: transparent; }
  .profile-values dd { padding-top: 3px; }
  .important-link-list { grid-template-columns: 1fr; }
  .fact-ledger article { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .fact-ledger article p { grid-row: 2; grid-column: 1 / -1; }
  .contact-card-head { flex-direction: column; gap: 10px; padding: 14px; }
  .contact-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-facts > div { border-bottom: 1px solid var(--line); }
  .contact-facts > div:nth-child(2n) { border-right: 0; }
  .contact-facts > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .field-schema { padding: 14px; }
  .field-schema .table-wrap { overflow: visible; }
  .field-schema-table { min-width: 0; border: 0; }
  .field-schema-table thead { display: none; }
  .field-schema-table tbody { display: grid; gap: 8px; }
  .field-schema-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; background: var(--fog-soft); border: 1px solid var(--line); border-radius: 7px; }
  .field-schema-table td { display: flex; min-width: 0; flex-direction: column; gap: 2px; padding: 5px 7px; border: 0; overflow-wrap: anywhere; }
  .field-schema-table td::before { content: attr(data-label); color: var(--muted-light); font-size: 8px; }
  .field-schema-table td:first-child, .field-schema-table td:last-child { grid-column: 1 / -1; }
  .evidence-list li { grid-template-columns: 1fr; }
  .evidence-list li a { justify-self: start; }
  .copy-area { min-height: 380px; font-size: 12px; }
  .copy-area-subject { min-height: 54px; height: 54px; }
  .confirmation-band { align-items: stretch; flex-direction: column; }
  .confirmation-band .button { width: 100%; }
  .form-action-band { align-items: stretch; flex-direction: column; }
  .summary-ledger { grid-template-columns: 1fr; }
  .list-summary, .exclusion-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sales-progress-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sales-progress-summary .summary-card:last-child { grid-column: 1 / -1; }
  .summary-card { min-height: 82px; padding: 12px; }
  .exclusion-summary .summary-card:last-child { grid-column: 1 / -1; }
  .list-sheet .sheet-heading { padding: 16px 16px 0; }
  .section-note { padding: 0 16px; }
  .progress-table, .exclusion-table, .suppression-table { width: 100%; min-width: 0; table-layout: auto; }
  .progress-table th:nth-child(2), .progress-table td:nth-child(2),
  .progress-table th:nth-child(3), .progress-table td:nth-child(3),
  .progress-table th:nth-child(5), .progress-table td:nth-child(5) { display: none; }
  .exclusion-table th:nth-child(3), .exclusion-table td:nth-child(3),
  .exclusion-table th:nth-child(4), .exclusion-table td:nth-child(4) { display: none; }
  .suppression-table th:nth-child(4), .suppression-table td:nth-child(4),
  .suppression-table th:nth-child(5), .suppression-table td:nth-child(5) { display: none; }
  .progress-table th, .progress-table td,
  .exclusion-table th, .exclusion-table td,
  .suppression-table th, .suppression-table td { padding: 10px 8px; }
  .progress-table .button, .exclusion-table .button { min-height: 30px; padding: 5px 8px; font-size: 10px; }
  .progress-milestones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .progress-milestones > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .progress-milestones > div:nth-child(2n) { border-right: 0; }
  .progress-milestones > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .progress-primary-fields, .progress-date-fields, .progress-note-fields { grid-template-columns: 1fr; }
  .auth-card { padding: 24px; }
  .alert { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.message-modal { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.message-modal::backdrop { background: rgb(0 0 0 / 62%); }
.message-modal-form { display: flex; max-height: calc(100vh - 48px); flex-direction: column; }
.message-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.message-modal-head h2 { margin: 4px 0 0; font-size: 16px; }
.message-modal-close { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; padding: 0; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.message-modal-close:hover { color: var(--ink); background: var(--fog-soft); }
.message-modal-body { display: grid; gap: 14px; padding: 18px; overflow-y: auto; }
.message-modal-field > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.message-modal-error { padding: 10px 12px; margin: 0; color: var(--danger-text); background: var(--danger-soft); border: 1px solid var(--danger-line); border-radius: 8px; font-size: 11px; }
.message-modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); }
.copy-row { display: flex; align-items: flex-start; gap: 8px; }
.copy-row > input, .copy-row > textarea { flex: 1 1 auto; }
.copy-row-block { align-items: flex-start; }
.message-modal-copy h3 { margin: 0 0 8px; color: var(--muted); font-size: 10px; font-weight: 400; }
.copy-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.copy-chip { display: inline-flex; max-width: 100%; align-items: baseline; gap: 6px; padding: 6px 10px; color: var(--ink); background: var(--fog-soft); border: 1px solid var(--line); border-radius: 7px; cursor: pointer; text-align: left; }
.copy-chip:hover { border-color: var(--lime); }
.copy-chip > span { flex: 0 0 auto; color: var(--muted); font-size: 9px; }
.copy-chip > strong { overflow: hidden; font-size: 11px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .copy-row { flex-direction: column; align-items: stretch; }
}
