/* Hallmark · genre: editorial workbench · design-system: design.md · designed-as-app
 * pre-emit critique: P5 H5 E5 S5 R5 V4 */
:root {
  color-scheme: light;
  --color-ink: #172d2a;
  --color-ink-2: #344844;
  --color-muted: #64746f;
  --color-paper: #f6f5ef;
  --color-surface: #fffefa;
  --color-rule: #dedfd6;
  --color-rule-strong: #bac5bb;
  --color-rail: #152b29;
  --color-rail-soft: #223b37;
  --color-rail-text: #f4f1e8;
  --color-rail-muted: #b8c6bd;
  --color-accent: #9a563d;
  --color-accent-wash: #f6eee8;
  --color-green: #306a4c;
  --color-green-wash: #e9f1e9;
  --color-amber: #80592f;
  --color-amber-wash: #f4ecdf;
  --color-blue: #365c65;
  --color-blue-wash: #e8eef0;
  --color-focus: #a46448;
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 28px;
  --space-xl: 40px;
  --space-2xl: 56px;
  font-family: var(--font-ui);
  color: var(--color-ink);
  background: var(--color-paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; overflow-x: clip; }
body { font-size: 14px; line-height: 1.52; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.muted { color: var(--color-muted); }

/* The left rail is deliberately quiet: the data is the focal point. */
.app-rail { position: fixed; inset: 0 auto 0 0; width: 224px; z-index: 5; background: var(--color-rail); color: var(--color-rail-text); padding: 29px 18px 21px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; padding: 3px 9px 32px; text-decoration: none; white-space: nowrap; }
.brand-symbol { font-family: var(--font-display); font-size: 34px; letter-spacing: -.09em; line-height: 1; }
.brand-symbol span, .login-mark span { color: var(--color-accent); }
.brand-wordmark { font-size: 12px; font-weight: 780; letter-spacing: .16em; line-height: 1.15; }
.brand-wordmark small { display: block; margin-top: 5px; font-size: 10px; font-weight: 450; color: var(--color-rail-muted); letter-spacing: .015em; }
.rail-section-label { margin: 24px 13px 9px; font-size: 10px; color: var(--color-rail-muted); letter-spacing: .15em; font-weight: 700; }
.rail-nav { display: grid; gap: 4px; }
.rail-link { display: flex; align-items: center; gap: 11px; padding: 12px 13px; background: var(--color-rail-soft); color: var(--color-rail-text); text-decoration: none; border-left: 2px solid var(--color-accent); font-weight: 640; }
.rail-link-icon { font-size: 19px; line-height: 1; font-weight: 400; }
.rail-bottom { margin-top: auto; border-top: 1px solid var(--color-rail-soft); padding: 20px 9px 0; }
.rail-account { display: flex; align-items: flex-start; gap: 10px; font-size: 11px; color: var(--color-rail-muted); }
.rail-account small { display: block; margin-top: 3px; color: var(--color-rail-text); font-size: 12px; }
.account-dot { width: 7px; height: 7px; margin-top: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--color-green); box-shadow: 0 0 0 3px var(--color-rail-soft); }
.rail-logout { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding: 10px 0; color: var(--color-rail-muted); background: none; border: 0; text-align: left; font-size: 12px; }
.rail-logout:hover { color: var(--color-rail-text); }
.mobile-bar { display: none; }
.page { margin-left: 224px; min-width: 0; padding: 0 clamp(24px, 3.6vw, 58px) 64px; }

/* The overview is a slim, typographic instrument panel. */
.workspace-header { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 49px 0 28px; }
.eyebrow, .section-index, .card-index { margin-bottom: 12px; color: var(--color-accent); font-size: 10px; font-weight: 760; letter-spacing: .16em; }
h1 { margin-bottom: 8px; font-family: var(--font-display); font-size: clamp(39px, 3.7vw, 60px); font-weight: 500; letter-spacing: -.055em; line-height: 1.05; overflow-wrap: anywhere; min-width: 0; }
.lede { margin: 0; color: var(--color-muted); font-size: 13px; }
.header-meta { padding-bottom: 6px; color: var(--color-muted); font-size: 11px; white-space: nowrap; }
.header-meta span { color: var(--color-accent); margin: 0 5px; }
.sync-banner { display: flex; align-items: center; gap: 10px; min-height: 35px; margin-bottom: 27px; padding: 7px 0; color: var(--color-muted); font-size: 11px; }
.sync-indicator { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--color-green); }
.sync-banner.has-issue .sync-indicator { background: var(--color-accent); }
.sync-divider { padding: 0 5px; }
.overview { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--color-rule); background: var(--color-surface); margin-bottom: 31px; }
.overview-item { position: relative; display: grid; align-content: start; min-height: 132px; padding: 22px 24px 17px; text-decoration: none; transition: background .15s ease; min-width: 0; }
.overview-item + .overview-item { border-left: 1px solid var(--color-rule); }
.overview-item:hover { background: var(--color-paper); }
.overview-item.is-active::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--color-accent); }
.overview-item > span { color: var(--color-muted); font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.overview-item strong { margin: 2px 0 1px; font-family: var(--font-display); font-size: 41px; font-weight: 500; letter-spacing: -.05em; line-height: 1.08; font-variant-numeric: tabular-nums; }
.overview-item small { color: var(--color-muted); font-size: 11px; }

/* Table keeps each conversation scannable without exposing full transcripts. */
.inbox { border: 1px solid var(--color-rule); background: var(--color-surface); }
.inbox-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 25px 25px 18px; }
.inbox-top .section-index { margin-bottom: 4px; }
.inbox h2 { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 500; letter-spacing: -.035em; }
.inbox h2 span { position: relative; top: -5px; margin-left: 4px; padding: 3px 7px; border: 1px solid var(--color-rule); border-radius: 20px; color: var(--color-muted); font-family: var(--font-ui); font-size: 10px; font-weight: 600; letter-spacing: 0; }
.search-form { min-width: min(330px,100%); }
.search-label { display: block; margin-bottom: 5px; color: var(--color-muted); font-size: 10px; font-weight: 650; }
.search-control { display: flex; align-items: center; min-height: 44px; border: 1px solid var(--color-rule-strong); background: var(--color-surface); }
.search-control > span { padding-left: 12px; color: var(--color-muted); font-size: 20px; line-height: 1; }
.search-control input { width: 100%; min-width: 0; padding: 9px 8px; color: var(--color-ink); border: 0; background: transparent; outline: 0; font-size: 12px; }
.search-control input::placeholder { color: var(--color-muted); }
.search-control button { align-self: stretch; padding: 0 14px; background: var(--color-rail); border: 0; color: var(--color-rail-text); font-size: 11px; font-weight: 700; }
.search-control button:hover { background: var(--color-rail-soft); }
.filter-strip { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; padding: 0 25px 18px; }
.filter-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 12px; border: 1px solid transparent; color: var(--color-muted); text-decoration: none; font-size: 11px; font-weight: 640; white-space: nowrap; }
.filter-chip:hover { background: var(--color-paper); color: var(--color-ink); }
.filter-chip.is-selected { border-color: var(--color-rule); background: var(--color-paper); color: var(--color-ink); }
.clear-search { margin-left: auto; color: var(--color-accent); font-size: 11px; text-decoration: none; }
.table-scroll { width: 100%; overflow-x: auto; }
.conversation-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.conversation-table th { padding: 12px 13px; text-align: left; background: var(--color-paper); border-top: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule); color: var(--color-muted); font-size: 9px; font-weight: 760; letter-spacing: .1em; white-space: nowrap; }
.conversation-table th:first-child, .conversation-table td:first-child { padding-left: 25px; width: 24%; }
.conversation-table th:nth-child(2) { width: 12%; }
.conversation-table th:nth-child(3) { width: 20%; }
.conversation-table th:nth-child(4) { width: 11%; }
.conversation-table th:nth-child(5) { width: 17%; }
.conversation-table th:nth-child(6) { width: 13%; }
.conversation-table th:last-child { width: 3%; }
.conversation-table td { padding: 17px 13px 18px; vertical-align: top; border-bottom: 1px solid var(--color-rule); overflow-wrap: anywhere; font-size: 12px; }
.conversation-table tr:last-child td { border-bottom: 0; }
.conversation-table tbody tr:hover { background: var(--color-paper); }
.lead-name { display: block; margin-bottom: 4px; color: var(--color-ink); font-size: 13px; font-weight: 720; text-decoration: none; }
.lead-name:hover, .source-link:hover, .row-action a:hover { color: var(--color-accent); }
.lead-identity { display: flex; align-items: flex-start; gap: 10px; }
.lead-copy { min-width: 0; }
.lead-avatar { position: relative; display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; overflow: hidden; border-radius: 50%; background: var(--color-paper); border: 1px solid var(--color-rule); color: var(--color-muted); font-size: 11px; font-weight: 650; }
.lead-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lead-summary { display: -webkit-box; color: var(--color-muted); line-height: 1.42; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.topic-text { color: var(--color-ink-2); }
.source-kind { display: block; margin-bottom: 5px; color: var(--color-blue); font-size: 9px; font-weight: 800; letter-spacing: .11em; }
.source-kind.is-ad { color: var(--color-accent); }
.source-name, .source-id { display: block; }
.source-name { color: var(--color-ink); font-weight: 650; }
.source-id { margin-top: 2px; color: var(--color-muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.source-link { text-decoration: underline; text-decoration-color: var(--color-rule-strong); text-underline-offset: 3px; }
.source-unknown { color: var(--color-muted); font-size: 11px; }
.phone-text, .date-primary, .date-secondary { font-variant-numeric: tabular-nums; }
.date-primary, .date-secondary { display: block; white-space: nowrap; }
.date-secondary { margin-top: 5px; color: var(--color-muted); font-size: 10px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 2px; font-size: 10px; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-new { color: var(--color-blue); background: var(--color-blue-wash); }
.status-waiting { color: var(--color-amber); background: var(--color-amber-wash); }
.status-answered { color: var(--color-green); background: var(--color-green-wash); }
.row-action { text-align: center; }
.row-action a { text-decoration: none; color: var(--color-muted); font-size: 17px; }
.empty-state { padding: 68px 20px 72px; text-align: center; border-top: 1px solid var(--color-rule); }
.empty-state > span { display: block; color: var(--color-accent); font-family: var(--font-display); font-size: 48px; line-height: 1; }
.empty-state h3 { margin: 10px 0 3px; font-family: var(--font-display); font-size: 25px; font-weight: 500; }
.empty-state p { margin-bottom: 0; color: var(--color-muted); }
.inbox-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; padding: 14px 25px; border-top: 1px solid var(--color-rule); color: var(--color-muted); font-size: 11px; }
.footer-separator { margin: 0 5px; }
.pagination { display: flex; align-items: center; gap: 15px; }
.pagination a { color: var(--color-ink); text-decoration: none; font-weight: 700; }
.pagination a:hover { color: var(--color-accent); }

/* Detail: full timeline in the wide reading column, facts in the narrower file. */
.back-link { display: inline-block; margin-top: 36px; color: var(--color-muted); font-size: 12px; text-decoration: none; }
.back-link:hover { color: var(--color-accent); }
.detail-top { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 24px 0 28px; }
.detail-top h1 { font-size: clamp(37px,3.1vw,52px); }
.detail-top .status { margin-bottom: 5px; }
.detail-bullet { margin: 0 5px; color: var(--color-accent); }
.detail-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(310px,.8fr); gap: 22px; align-items: start; }
.thread-panel, .detail-card { border: 1px solid var(--color-rule); background: var(--color-surface); }
.thread-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 17px 24px; border-bottom: 1px solid var(--color-rule); color: var(--color-accent); font-size: 10px; font-weight: 750; letter-spacing: .13em; }
.thread-heading small { color: var(--color-muted); font-size: 10px; font-weight: 500; letter-spacing: 0; }
.timeline { padding: 26px 26px 34px; }
.message { max-width: 78%; margin-bottom: 20px; padding: 15px 17px 13px; background: var(--color-paper); border-left: 2px solid var(--color-rule-strong); overflow-wrap: anywhere; }
.message.outgoing { margin-left: auto; border-left: 0; border-right: 2px solid var(--color-green); background: var(--color-green-wash); }
.message-name { margin-bottom: 5px; color: var(--color-ink-2); font-size: 10px; font-weight: 750; }
.message-body { margin: 0; white-space: pre-wrap; font-size: 13px; }
.message-media { margin-top: 8px; color: var(--color-muted); font-size: 11px; }
.message-time { display: block; margin-top: 9px; color: var(--color-muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.detail-aside { display: grid; gap: 16px; }
.detail-card { padding: 22px 24px; }
.detail-card .card-index { margin-bottom: 7px; }
.detail-card h2 { margin: 0 0 12px; font-family: var(--font-display); font-size: 24px; font-weight: 500; letter-spacing: -.035em; }
.summary-card { border-top: 2px solid var(--color-accent); }
.summary-card p:last-child { margin: 0; color: var(--color-ink-2); font-size: 13px; }
.facts { margin: 0; }
.facts > div { padding: 11px 0; border-bottom: 1px solid var(--color-rule); }
.facts > div:last-child { border: 0; padding-bottom: 0; }
.facts dt { margin-bottom: 5px; color: var(--color-muted); font-size: 9px; font-weight: 750; letter-spacing: .1em; }
.facts dd { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.facts dd small, .fact-ad-title { display: block; }
.facts dd small { margin-top: 3px; color: var(--color-muted); font-size: 10px; }
.fact-ad-title { font-weight: 700; }
.edit-card label, .login-card label { display: block; margin: 13px 0 5px; color: var(--color-muted); font-size: 10px; font-weight: 750; letter-spacing: .04em; }
.field { width: 100%; min-height: 42px; padding: 10px 11px; border: 1px solid var(--color-rule-strong); border-radius: 0; background: var(--color-surface); color: var(--color-ink); }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 42px; padding: 10px 15px; border: 0; border-radius: 0; background: var(--color-rail); color: var(--color-rail-text); font-size: 12px; font-weight: 700; }
.button:hover { background: var(--color-rail-soft); }
.edit-card .button { width: 100%; margin-top: 19px; }

/* Login borrows the same editorial language, with less density. */
.is-login { background: var(--color-paper); }
.login-masthead { display: flex; align-items: center; gap: 11px; min-height: 72px; padding: 0 clamp(25px,5vw,70px); border-bottom: 1px solid var(--color-rule); color: var(--color-ink); font-size: 12px; font-weight: 800; letter-spacing: .17em; }
.login-mark { font-family: var(--font-display); font-size: 33px; font-weight: 500; letter-spacing: -.09em; line-height: 1; }
.login-masthead small { display: block; margin-top: 2px; color: var(--color-muted); font-size: 9px; font-weight: 650; letter-spacing: .12em; }
.is-login .page { margin: 0; padding: 0 clamp(25px,5vw,70px); }
.login-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(330px,420px); align-items: center; gap: clamp(35px,10vw,150px); max-width: 1370px; min-height: calc(100vh - 72px); margin: auto; }
.login-intro { padding: 40px 0; }
.login-intro h1 { margin: 0 0 20px; font-size: clamp(48px,5.7vw,86px); line-height: 1.04; }
.login-intro h1 em { color: var(--color-accent); font-weight: 400; }
.login-intro > p:not(.eyebrow) { max-width: 365px; color: var(--color-muted); font-size: 14px; }
.login-rule { display: flex; gap: 22px; width: min(440px,100%); margin-top: 64px; padding-top: 14px; border-top: 1px solid var(--color-rule-strong); color: var(--color-muted); font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.login-card { padding: 40px; background: var(--color-surface); border: 1px solid var(--color-rule); border-top: 3px solid var(--color-accent); }
.login-card .card-index { margin-bottom: 19px; }
.login-card h2 { margin-bottom: 6px; font-family: var(--font-display); font-size: 35px; font-weight: 500; letter-spacing: -.045em; }
.login-card > p:not(.form-error) { color: var(--color-muted); font-size: 12px; }
.login-card .field { margin-bottom: 9px; }
.login-card .button { width: 100%; margin-top: 18px; }
.form-error { padding: 10px; background: var(--color-accent-wash); color: var(--color-accent); font-size: 12px; }

@media (max-width: 1200px) {
  .conversation-table { min-width: 960px; }
  .detail-layout { grid-template-columns: minmax(0,1fr) 310px; }
}
@media (max-width: 1100px) {
  .app-rail { display: none; }
  .mobile-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 24px; background: var(--color-rail); color: var(--color-rail-text); }
  .mobile-bar a { text-decoration: none; font-size: 12px; font-weight: 700; white-space: nowrap; }
  .mobile-bar button { min-height: 44px; padding: 7px 0 7px 10px; border: 0; background: none; color: var(--color-rail-text); font-size: 12px; font-weight: 700; }
  .mobile-brand { letter-spacing: .1em; }
  .mobile-brand span { color: var(--color-rail-muted); font-weight: 500; }
  .page { margin-left: 0; }
  .table-scroll { overflow-x: visible; }
  .conversation-table, .conversation-table tbody, .conversation-table tr, .conversation-table td { display: block; min-width: 0; width: 100%; }
  .conversation-table tbody { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .conversation-table thead { display: none; }
  .conversation-table tr { position: relative; padding: 15px 17px 16px; border-top: 1px solid var(--color-rule); }
  .conversation-table tr:nth-child(odd) { border-right: 1px solid var(--color-rule); }
  .conversation-table td { padding: 0; border: 0; font-size: 11px; }
  .conversation-table td:first-child { width: 100%; padding: 0 35px 8px 0; }
  .conversation-table td:first-child::before { display: none; }
  .conversation-table td::before { content: attr(data-label); display: block; margin: 9px 0 2px; color: var(--color-muted); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  .conversation-table td:nth-child(2), .conversation-table td:nth-child(4) { display: inline-block; vertical-align: top; width: 48%; }
  .conversation-table td:nth-child(3) { padding: 5px 0; }
  .conversation-table td:nth-child(5) { padding-top: 4px; }
  .conversation-table td:nth-child(6) { padding-top: 7px; }
  .conversation-table td:nth-child(6)::before { display: none; }
  .conversation-table td.row-action { position: absolute; top: 13px; right: 16px; width: auto; }
  .conversation-table td.row-action::before { display: none; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-aside .edit-card { grid-column: 1 / -1; }
  .login-layout { gap: 40px; }
}
@media (max-width: 620px) {
  .page { padding: 0 16px 42px; }
  .mobile-bar { padding: 12px 16px; }
  .workspace-header { padding: 32px 0 18px; }
  .header-meta { display: none; }
  h1 { font-size: 42px; }
  .sync-banner { align-items: flex-start; margin-bottom: 18px; font-size: 10px; }
  .sync-indicator { margin-top: 4px; }
  .overview { grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: 20px; }
  .overview-item { min-height: 108px; padding: 15px 16px; }
  .overview-item:nth-child(3) { border-left: 0; }
  .overview-item:nth-child(n+3) { border-top: 1px solid var(--color-rule); }
  .overview-item strong { font-size: 33px; }
  .overview-item > span { font-size: 9px; }
  .overview-item small { font-size: 10px; }
  .inbox-top { display: block; padding: 18px 16px 14px; }
  .inbox h2 { font-size: 25px; }
  .search-form { margin-top: 16px; }
  .filter-strip { padding: 0 12px 12px; gap: 1px; }
  .filter-chip { padding: 7px 6px; font-size: 10px; }
  .clear-search { margin-left: 4px; }
  .conversation-table tbody { display: block; }
  .conversation-table thead { display: none; }
  .conversation-table tr:nth-child(odd) { border-right: 0; }
  .lead-summary { max-width: 100%; }
  .inbox-footer { padding: 13px 16px; }
  .detail-top { display: block; padding-bottom: 18px; }
  .detail-top .status { margin-top: 14px; }
  .thread-heading { padding: 14px 16px; }
  .timeline { padding: 17px 16px; }
  .message { max-width: 95%; }
  .detail-aside { display: grid; grid-template-columns: 1fr; }
  .detail-aside .edit-card { grid-column: auto; }
  .detail-card { padding: 19px; }
  .is-login .page { padding: 0 20px 38px; }
  .login-masthead { min-height: 64px; padding: 0 20px; }
  .login-layout { grid-template-columns: 1fr; min-height: 0; gap: 6px; }
  .login-intro { padding: 35px 0 12px; }
  .login-intro h1 { font-size: 52px; }
  .login-rule { margin-top: 25px; }
  .login-card { padding: 25px 22px; }
}
@media (max-width: 375px) {
  .filter-chip { padding: 7px 5px; font-size: 9px; }
  .overview-item { padding: 14px 12px; }
  .overview-item small { font-size: 9px; }
  .login-intro h1 { font-size: 46px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; } }
/* Customer workflow: the same paper, ink and typographic hierarchy. */
.mobile-work-nav { display:none; }
.crm-form label { display:block; margin:15px 0 5px; font-size:12px; font-weight:650; }
.crm-form label small { font-weight:400; }
.crm-form .field { width:100%; max-width:100%; }
textarea.field { resize:vertical; font:inherit; line-height:1.5; }
.crm-form .button { margin-top:16px; }
.form-grid,.report-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.evidence { border-top:1px solid var(--color-rule); margin-top:20px; padding-top:15px; font-size:12px; }
.evidence summary { cursor:pointer; font-weight:650; min-height:30px; }
.evidence blockquote { margin:5px 0; padding-left:10px; border-left:2px solid var(--color-rule-strong); overflow-wrap:anywhere; }
.evidence > div { padding:10px 0; }
.task-line { padding:14px 0; border-bottom:1px solid var(--color-rule); }
.task-line strong,.task-line small { display:block; overflow-wrap:anywhere; }
.task-line small { color:var(--color-muted); margin:5px 0; }
.is-done > strong { text-decoration:line-through; color:var(--color-muted); }
.text-button { display:inline-block; border:0; background:none; padding:8px 0; color:var(--color-accent); text-decoration:underline; font:inherit; font-size:12px; }
.media-card { display:grid; gap:8px; padding:12px; border:1px solid var(--color-rule-strong); font-size:12px; margin:8px 0; }
.media-card img,.media-card video { max-width:100%; max-height:300px; object-fit:contain; }
.media-card audio { max-width:100%; }
.message-unavailable { font-size:13px; color:var(--color-muted); margin-bottom:4px; font-style:italic; }
.workflow-section { margin-bottom:28px; }
.work-row { padding:20px 24px; border-top:1px solid var(--color-rule); display:flex; align-items:center; justify-content:space-between; gap:20px; }
.work-row > div { min-width:0; overflow-wrap:anywhere; }
.work-row p { margin:5px 0; font-size:13px; }
.work-row small { display:block; color:var(--color-muted); }
.plain-link { text-decoration:none; }
.plain-link:hover { background:var(--color-green-wash); }
.empty-copy,.limit-note { padding:18px 24px; color:var(--color-muted); }
.limit-note { font-size:11px; margin:0; }
.stage-strip { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); border-top:1px solid var(--color-rule); }
.stage-tab { padding:14px; border-right:1px solid var(--color-rule); text-decoration:none; }
.stage-tab small,.stage-tab strong { display:block; }
.stage-tab strong { font:30px var(--font-display); margin-top:8px; }
.stage-tab.is-selected { background:var(--color-green-wash); box-shadow:inset 0 -2px var(--color-green); }
.portfolio-layout { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:24px; align-items:start; }
.metric-line { display:flex; justify-content:space-between; gap:20px; padding:12px 0; border-bottom:1px solid var(--color-rule); }
.report-grid { margin-bottom:24px; }
.report-preview { white-space:pre-wrap; overflow-wrap:anywhere; font:13px/1.8 var(--font-ui); }
@media(max-width:1100px) { .mobile-work-nav { display:flex; gap:20px; padding:10px 24px; border-bottom:1px solid var(--color-rule); } .mobile-work-nav a { font-size:12px; padding:8px 0; } }
@media(max-width:800px) { .portfolio-layout { grid-template-columns:1fr; } .stage-strip { grid-template-columns:repeat(3,minmax(0,1fr)); } .work-row { padding:16px; flex-wrap:wrap; } }
@media(max-width:620px) { .report-grid { grid-template-columns:1fr; } .mobile-work-nav { padding:8px 16px; gap:18px; } .stage-tab { padding:10px; } }

.rail-link { background:transparent; border-left-color:transparent; color:var(--color-rail-muted); }
.rail-link[aria-current="page"],.rail-link:hover { background:var(--color-rail-soft); color:var(--color-rail-text); }
.rail-link[aria-current="page"] { border-left-color:var(--color-accent); }
.detail-jumps { display:flex; flex-wrap:wrap; gap:12px 22px; margin:0 0 22px; font-size:12px; }
.detail-jumps a { padding:6px 0; text-underline-offset:4px; }
.timeline { max-height:75vh; overflow-y:auto; overscroll-behavior:contain; }
.detail-card { scroll-margin-top:18px; }

.report-date-filter { display:flex; flex-wrap:wrap; gap:16px; align-items:end; margin-bottom:16px; }
.report-date-filter label { display:block; margin-bottom:6px; font-size:12px; font-weight:650; }
.report-date-filter .field { width:100%; }
@media(max-width:620px) { .report-date-filter > div { flex:1 1 130px; min-width:0; } }
/* Hallmark · genre: editorial · macrostructure: workbench · design-system: design.md · designed-as-app
   Reference: design/crm-redesign-reference.png (imagegen). */
:root { --color-paper:#f5f4ef; --color-surface:#fffefa; --color-rule:#dce0d9; --color-rail:#172f2b; --color-rail-soft:#29443e; --color-accent:#a15d42; --radius-panel:6px; --radius-control:5px; }
.app-rail { width:218px; padding:32px 18px 24px; }
.brand { display:block; padding:0 10px; }
.brand-symbol { display:block; font-size:43px; letter-spacing:-.065em; }
.brand-wordmark { display:block; margin-top:7px; font-size:10px; font-weight:450; letter-spacing:.36em; }
.brand-wordmark small { display:none; }
.rail-section-label { margin-top:44px; margin-bottom:16px; font-size:9px; letter-spacing:.15em; opacity:.8; }
.rail-nav { gap:8px; margin:0 -18px; }
.rail-link { min-height:49px; padding:13px 27px; gap:15px; font-size:13px; font-weight:450; border-left-width:3px; }
.rail-link[aria-current="page"] { font-weight:600; border-left-color:#b88166; }
.nav-icon { width:20px; height:20px; flex:0 0 20px; }
.rail-bottom { padding-top:22px; }
.page { margin-left:218px; padding:0 clamp(24px,3vw,48px) 24px; }
.workspace-utility { min-height:56px; display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid var(--color-rule); font-size:12px; }
.workspace-utility strong { font-weight:600; }
.utility-slash { padding:0 15px; color:var(--color-muted); }
.utility-private { color:var(--color-muted); font-size:11px; }
.workspace-header { padding:25px 0 20px; align-items:center; }
h1 { font-size:clamp(34px,3.3vw,48px); letter-spacing:-.04em; line-height:1.1; font-weight:400; margin-bottom:9px; }
.eyebrow { font-size:9px; letter-spacing:.16em; margin-bottom:9px; }
.lede { font-size:13px; color:var(--color-muted); }
.header-meta { font-size:9px; letter-spacing:.16em; }
.inbox,.detail-card,.login-card { border-radius:var(--radius-panel); }
.inbox { overflow:hidden; }
.inbox-top { padding:17px 20px; }
.inbox h2,.detail-card h2 { font-family:var(--font-display); font-size:23px; font-weight:500; letter-spacing:-.025em; }
.inbox-top p.muted { font-size:12px; margin:5px 0 0; max-width:760px; }
.field { border-radius:var(--radius-control); min-height:40px; background:var(--color-surface); }
.button { border-radius:var(--radius-control); min-height:40px; padding:10px 22px; font-size:12px; font-weight:550; }
.button:hover { background:var(--color-rail-soft); }
.overview { background:transparent; border:0; margin:4px 0 25px; }
.overview-item { min-height:114px; padding:16px 20px 12px; border-left:1px solid var(--color-rule); }
.overview-item:first-child { border-left:0; }
.overview-item > span { color:var(--color-ink); font-size:12px; letter-spacing:0; font-weight:500; }
.overview-item strong { font-size:41px; font-weight:400; line-height:1.1; margin:7px 0 5px; }
.overview-item small { font-size:11px; }
.overview-item.is-active { background:transparent; box-shadow:inset 0 -2px var(--color-green); }
.report-overview .overview-item { min-height:106px; }
.attention-metric strong { color:var(--color-accent); }
.date-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:16px 24px; padding:16px; border:1px solid var(--color-rule); border-radius:var(--radius-panel); background:var(--color-surface); }
.report-date-filter { margin:0; gap:16px; flex-wrap:wrap; align-items:center; }
.report-date-filter > div { display:flex; align-items:center; gap:10px; }
.report-date-filter label { font-size:11px; margin:0; white-space:nowrap; }
.report-date-filter input { width:147px; padding:9px 10px; font-size:12px; }
.date-presets { display:flex; flex-wrap:wrap; gap:3px; padding-left:18px; border-left:1px solid var(--color-rule); }
.date-presets a { padding:10px 12px; border-radius:4px; font-size:11px; text-decoration:none; color:var(--color-muted); }
.date-presets a:hover { background:var(--color-paper); }
.date-presets a.is-selected { color:var(--color-accent); background:var(--color-accent-wash); }
.period-caption { margin:10px 2px 0; font-size:10px; color:var(--color-muted); }
.period-caption span { margin-left:8px; }
.report-table-scroll { overflow-x:auto; }
.report-table { width:100%; border-collapse:collapse; font-size:12px; }
.report-table th { text-align:left; font-weight:500; background:#f0f2ee; color:var(--color-ink-2); }
.report-table th,.report-table td { padding:12px 18px; border-top:1px solid var(--color-rule); vertical-align:middle; }
.report-table td:not(:first-child),.report-table th:not(:first-child) { text-align:right; font-variant-numeric:tabular-nums; }
.report-source .report-table th:first-child { width:55%; }
.report-table strong { font-weight:500; }
.report-table tfoot { background:#f0f2ee; font-weight:600; }
.report-table tfoot th { font-weight:600; }
.source-monogram { display:inline-flex; justify-content:center; align-items:center; width:30px; height:30px; background:#e8ede6; border:1px solid #d7e0d4; border-radius:4px; margin-right:12px; color:var(--color-muted); font-size:12px; vertical-align:middle; }
.source-cell-copy { display:inline-block; vertical-align:middle; max-width:calc(100% - 50px); overflow-wrap:anywhere; }
.source-cell-copy small { display:block; font-size:10px; color:var(--color-muted); margin-top:3px; }
.report-table .report-empty { text-align:left; color:var(--color-muted); padding:28px 20px; }
.report-method { padding:12px 20px; border-top:1px solid var(--color-rule); color:var(--color-muted); font-size:11px; }
.report-method summary { cursor:pointer; }
.report-method p { margin:12px 0 0; max-width:780px; }
.report-grid { gap:20px; }
.report-ranking .report-table td:nth-child(2),.report-ranking .report-table th:nth-child(2) { text-align:left; }
.report-ranking .report-table th:first-child { width:40px; }
.report-ranking .inbox-top { padding:14px 18px; }
.report-ranking .limit-note { padding:12px 18px; font-size:10px; }
.weekly-preview > summary { list-style:none; cursor:pointer; padding:18px 20px; font-weight:500; font-size:13px; display:flex; justify-content:space-between; gap:16px; }
.weekly-preview > summary::-webkit-details-marker { display:none; }
.weekly-preview > summary span { color:var(--color-muted); font-size:11px; }
.weekly-preview > div { padding:0 20px 20px; }
.weekly-preview > div > p { font-size:12px; }
.workspace-footer { margin-top:30px; padding-top:16px; border-top:1px solid var(--color-rule); display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; color:var(--color-muted); font-size:10px; }
.conversation-table thead th { background:#f0f2ee; letter-spacing:.07em; font-size:9px; }
.conversation-table td { padding-top:17px; padding-bottom:17px; }
.lead-name { font-size:13px; font-weight:600; }
.lead-summary { font-size:11px; margin-top:5px; line-height:1.6; }
.search-control { border-radius:var(--radius-control); overflow:hidden; }
.status { border-radius:4px; font-size:10px; font-weight:500; }
.sync-banner { border-radius:5px; font-size:11px; }
.detail-top { padding-top:23px; }
.detail-layout { grid-template-columns:minmax(0,1.35fr) minmax(350px,1fr); gap:22px; }
.thread-panel { border-radius:var(--radius-panel); overflow:hidden; }
.thread-heading { padding:18px 20px; font-size:10px; }
.timeline { padding:22px; }
.message { padding:14px 16px; border-radius:0 5px 5px 0; }
.message.outgoing { border-radius:5px 0 0 5px; }
.message-body { font-size:13px; }
.detail-card { padding:22px; }
.card-index { font-size:9px; letter-spacing:.14em; }
.detail-card > p.muted { font-size:12px; line-height:1.7; }
.work-row { padding:17px 20px; }
@media(max-width:1250px) { .report-date-filter > div { display:block; } .report-date-filter label { margin-bottom:5px; } .report-date-filter { align-items:end; } .date-presets { margin-left:0; padding-left:0; border-left:0; } }
@media(max-width:1100px) { .page { margin-left:0; } .detail-layout { grid-template-columns:1fr; } .workspace-utility { min-height:44px; } }
@media(max-width:620px) {
 .page { padding:0 16px 24px; } .utility-private { display:none; } .workspace-utility { font-size:11px; }
 .workspace-header { padding:23px 0 18px; } h1 { font-size:36px; } .lede { font-size:12px; }
 .date-toolbar { padding:13px; gap:12px; } .report-date-filter { width:100%; gap:10px; } .report-date-filter > div { flex:1 1 125px; } .report-date-filter input { width:100%; min-width:0; } .report-date-filter .button { width:100%; } .date-presets { width:100%; justify-content:space-between; gap:0; } .date-presets a { padding:8px 6px; font-size:10px; }
 .period-caption { line-height:1.8; } .period-caption span { display:block; margin:0; }
 .overview-item { padding:14px 12px; min-height:108px; } .overview-item strong { font-size:35px; } .overview-item:nth-child(3) { border-left:0; } .overview-item small { font-size:10px; }
 .report-table th,.report-table td { padding:11px 12px; } .report-source .report-table { min-width:480px; } .report-ranking .report-table { font-size:11px; }
 .detail-card { padding:18px; } .timeline { padding:17px 14px; max-height:65vh; }
 .workspace-footer { font-size:9px; } .inbox-top { padding:17px; } .report-grid { gap:16px; }
}
.export-actions { display:flex; flex-wrap:wrap; gap:8px; }
.export-actions a { padding:9px 12px; border:1px solid var(--color-rule-strong); border-radius:4px; text-decoration:none; font-size:11px; background:var(--color-surface); white-space:nowrap; }
.contact-table-scroll { overflow-x:auto; }
.contact-table { width:100%; border-collapse:collapse; min-width:780px; font-size:12px; }
.contact-table th { background:#f0f2ee; text-align:left; font-size:10px; font-weight:550; }
.contact-table th,.contact-table td { padding:16px 18px; border-top:1px solid var(--color-rule); }
.contact-table td { overflow-wrap:anywhere; max-width:250px; }
.archive-form .text-button { font-size:10px; white-space:nowrap; }
.detail-actions { display:flex; justify-content:flex-end; gap:14px; align-items:center; margin-top:-28px; }
.detail-actions .muted { font-size:11px; }
.pipeline-board { display:grid; grid-auto-columns:280px; grid-auto-flow:column; gap:16px; overflow-x:auto; padding-bottom:20px; align-items:start; }
.pipeline-column { border:1px solid var(--color-rule); background:#edf0e9; border-radius:6px; padding:12px; }
.pipeline-column > header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:6px 3px 16px; }
.pipeline-column h2 { font-size:13px; margin:0; font-weight:600; }
.pipeline-column header > span { font-size:12px; color:var(--color-muted); font-variant-numeric:tabular-nums; }
.pipeline-card { background:var(--color-surface); padding:16px; border:1px solid var(--color-rule); border-radius:5px; margin-bottom:10px; }
.pipeline-card p { font-size:11px; line-height:1.6; margin:9px 0; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.pipeline-card small { font-size:10px; color:var(--color-muted); }
.pipeline-task { margin:10px 0; padding-top:9px; border-top:1px solid var(--color-rule); color:var(--color-accent); font-size:10px; }
.pipeline-card form { margin-top:14px; }
.pipeline-card .field { width:100%; font-size:11px; padding:8px; }
.pipeline-empty { font-size:12px; color:var(--color-muted); padding:14px 3px; }
.pipeline-more { display:block; padding:12px 3px; font-size:11px; color:var(--color-accent); }
.pipeline-board.single-stage { display:block; }
.single-stage .pipeline-column { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:12px; }
.single-stage .pipeline-column > header,.single-stage .pipeline-column > nav { grid-column:1/-1; }
.app-rail .rail-nav { gap:3px; }
.app-rail .rail-link { min-height:43px; padding-top:10px; padding-bottom:10px; }
@media(max-width:1100px) { .mobile-work-nav { flex-wrap:wrap; gap:4px 18px; } .conversation-table td:first-child { padding-right:65px; } .detail-aside { grid-row:1; } }
@media(max-width:620px) { .workspace-header .export-actions { margin-top:16px; } .detail-actions { margin-top:8px; justify-content:flex-start; flex-wrap:wrap; } .pipeline-board { grid-auto-columns:280px; } }
@media(max-width:1100px) {
 .detail-aside { display:contents; }
 .detail-aside #customer-profile { grid-row:1; }
 .detail-layout > .thread-panel { grid-row:2; }
}
