:root {
  color-scheme: light;
  --canvas: #f4f2ec;
  --surface: #fffefb;
  --surface-soft: #f8f6f0;
  --ink: #1d2421;
  --ink-soft: #5e6862;
  --ink-faint: #87908b;
  --line: #dedfd8;
  --line-strong: #c9ccc4;
  --brand: #184f45;
  --brand-deep: #103b34;
  --brand-wash: #e6f0ec;
  --accent: #ca6b3e;
  --accent-wash: #f7e9df;
  --warning: #8b5c12;
  --warning-wash: #fbf0d6;
  --danger: #9c3e35;
  --danger-wash: #f8e6e2;
  --success: #257153;
  --success-wash: #e4f2ea;
  --shadow: 0 18px 44px rgb(25 39 33 / 8%);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: 14px; line-height: 1.45; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { outline-color: var(--brand); outline-offset: 2px; }
button { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; color: white; background: var(--brand); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.app-shell { min-height: 100vh; display: grid; grid-template: 64px minmax(0, 1fr) / 224px minmax(0, 1fr); }
.topbar { position: sticky; z-index: 20; top: 0; grid-column: 1 / -1; display: grid; grid-template-columns: 224px minmax(0, 1fr) auto; align-items: center; min-height: 64px; border-bottom: 1px solid var(--line); background: rgb(255 254 251 / 92%); backdrop-filter: blur(14px); }
.brand { height: 100%; display: flex; gap: 11px; align-items: center; padding: 0 20px; color: var(--ink); text-decoration: none; border-right: 1px solid var(--line); }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; color: white; background: var(--brand); border-radius: 9px 9px 9px 3px; font-family: Georgia, serif; font-size: 17px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: -.01em; }
.brand small { margin-top: -1px; color: var(--ink-faint); font-size: 11px; }
.topbar-context { display: flex; align-items: center; gap: 12px; padding: 0 24px; min-width: 0; }
.company-name { overflow: hidden; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
.mode-badge { display: inline-flex; gap: 7px; align-items: center; padding: 5px 9px; color: var(--warning); background: var(--warning-wash); border: 1px solid #ead7a4; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.mode-dot { width: 6px; height: 6px; background: currentColor; border-radius: 50%; box-shadow: 0 0 0 3px rgb(139 92 18 / 13%); }
.topbar-logout { margin-left: auto; padding: 5px 0; color: var(--ink-soft); background: none; border: 0; font-size: 11px; font-weight: 700; cursor: pointer; }
.topbar-logout:hover { color: var(--brand); }
.app-shell.is-auth-view { grid-template-columns: 1fr; }
.app-shell.is-auth-view .sidebar { display: none; }
.app-shell.is-auth-view .workspace { grid-column: 1 / -1; }

.sidebar { position: sticky; top: 64px; height: calc(100vh - 64px); display: flex; flex-direction: column; justify-content: space-between; padding: 18px 12px; border-right: 1px solid var(--line); background: var(--surface); }
.sidebar nav { display: grid; gap: 4px; }
.nav-item { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 42px; padding: 0 11px; color: var(--ink-soft); text-decoration: none; border-radius: 9px; font-weight: 560; }
.nav-item svg { width: 18px; }
.nav-item:hover { color: var(--ink); background: var(--surface-soft); }
.nav-item.is-active { color: var(--brand-deep); background: var(--brand-wash); font-weight: 700; }
.nav-count { min-width: 21px; padding: 2px 6px; color: var(--ink-soft); background: #ecece6; border-radius: 999px; font-size: 11px; text-align: center; }
.nav-count:empty { display: none; }
.nav-count-alert:not(:empty) { color: var(--danger); background: var(--danger-wash); }
.sidebar-status { padding: 14px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-md); }
.eyebrow { margin: 0 0 6px; color: var(--ink-faint); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.status-line { display: flex; align-items: center; gap: 8px; }
.status-indicator { width: 8px; height: 8px; background: var(--ink-faint); border-radius: 50%; }
.status-indicator.is-live { background: var(--success); box-shadow: 0 0 0 4px rgb(37 113 83 / 12%); }
.status-indicator.is-paused { background: var(--accent); box-shadow: 0 0 0 4px rgb(202 107 62 / 12%); }
.sidebar-status p { min-height: 30px; margin: 7px 0 12px; color: var(--ink-soft); font-size: 11px; line-height: 1.35; }

.workspace { min-width: 0; }
.workspace-content { min-height: calc(100vh - 64px); display: grid; grid-template-columns: minmax(570px, 1fr) minmax(370px, 440px); }
.content-column { min-width: 0; padding: 30px 32px 42px; }
.detail-panel { position: sticky; top: 64px; height: calc(100vh - 64px); overflow: auto; background: var(--surface); border-left: 1px solid var(--line); }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { letter-spacing: -.025em; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 3vw, 40px); font-weight: 500; line-height: 1.08; }
h2 { margin: 0; font-size: 19px; line-height: 1.2; }
h3 { margin: 0; font-size: 14px; }
.page-description { max-width: 600px; margin: 7px 0 0; color: var(--ink-soft); }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.updated-at { color: var(--ink-faint); font-size: 11px; white-space: nowrap; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.icon-button:hover { color: var(--ink); border-color: var(--line-strong); }
.icon-button:disabled { opacity: .45; cursor: default; }
.mobile-nav-button { display: none; margin-right: 14px; }

.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(100px, 1fr)); gap: 10px; margin-bottom: 18px; }
.metric-card { min-height: 82px; padding: 13px 14px; background: rgb(255 254 251 / 72%); border: 1px solid var(--line); border-radius: var(--radius-md); }
.metric-card span { display: block; color: var(--ink-soft); font-size: 11px; }
.metric-card strong { display: block; margin-top: 7px; font-family: Georgia, serif; font-size: 25px; font-weight: 500; line-height: 1; }
.metric-card.is-attention { background: var(--warning-wash); border-color: #ead7a4; }
.metric-card.is-attention strong { color: var(--warning); }

.toolbar { display: flex; gap: 10px; margin-bottom: 12px; }
.search-field { position: relative; flex: 1; }
.search-field svg { position: absolute; top: 11px; left: 12px; width: 17px; color: var(--ink-faint); }
.search-field input, .filter-field select { width: 100%; height: 40px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.search-field input { padding: 0 12px 0 38px; }
.search-field input::placeholder { color: var(--ink-faint); }
.filter-field select { min-width: 144px; padding: 0 32px 0 11px; }

.table-shell { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 4px 20px rgb(25 39 33 / 3%); }
.organization-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.organization-table th { height: 42px; padding: 0 14px; color: var(--ink-faint); background: var(--surface-soft); border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.organization-table th:first-child { width: 31%; }
.organization-table th:nth-child(2) { width: 19%; }
.organization-table th:nth-child(3) { width: 14%; }
.organization-table th:nth-child(4) { width: 29%; }
.organization-table th:last-child { width: 7%; }
.organization-table td { height: 74px; padding: 10px 14px; border-bottom: 1px solid #e9e9e4; vertical-align: middle; }
.organization-table tr:last-child td { border-bottom: 0; }
.organization-table tbody tr { cursor: pointer; transition: background 120ms ease; }
.organization-table tbody tr:hover, .organization-table tbody tr:focus-within { background: #fbfaf6; }
.organization-table tbody tr.is-selected { background: var(--brand-wash); box-shadow: inset 3px 0 var(--brand); }
.organization-button { width: 100%; padding: 0; color: inherit; background: none; border: 0; text-align: left; cursor: pointer; }
.organization-name { display: block; overflow: hidden; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.organization-meta { display: block; overflow: hidden; margin-top: 3px; color: var(--ink-faint); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.people-count { font-weight: 700; }
.people-count small { display: block; color: var(--ink-faint); font-size: 10px; font-weight: 500; }
.next-step { color: var(--ink-soft); font-size: 12px; line-height: 1.3; }
.row-arrow { color: var(--ink-faint); font-size: 17px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.status-pill::before { content: ""; flex: 0 0 auto; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.status-ready, .status-qualified, .status-active, .status-replied { color: var(--success); background: var(--success-wash); }
.status-needs-review, .status-outcome-unknown, .status-exception { color: var(--danger); background: var(--danger-wash); }
.status-researching, .status-researched, .status-scheduled, .status-ai { color: #346a85; background: #e5f0f5; }
.status-waiting, .status-paused, .status-owner, .status-disqualified { color: var(--warning); background: var(--warning-wash); }
.status-pending { color: var(--warning); background: var(--warning-wash); }
.status-neutral { color: var(--ink-soft); background: #ecece8; }
.empty-state { padding: 56px 20px; text-align: center; }
.empty-state h2 { margin-top: 11px; }
.empty-state p { margin: 6px 0 0; color: var(--ink-soft); }
.empty-illustration { display: inline-grid; place-items: center; width: 44px; height: 44px; color: var(--brand); background: var(--brand-wash); border-radius: 14px; font-size: 22px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 13px; color: var(--ink-faint); font-size: 11px; }
.pagination > div { display: flex; gap: 7px; }

.button { min-height: 36px; padding: 0 13px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 700; cursor: pointer; }
.button:disabled { opacity: .5; cursor: default; }
.button-primary { color: white; background: var(--brand); border-color: var(--brand); }
.button-primary:hover:not(:disabled) { background: var(--brand-deep); }
.button-subtle { color: var(--ink-soft); background: var(--surface); border-color: var(--line); }
.button-subtle:hover:not(:disabled) { color: var(--ink); border-color: var(--line-strong); }
.button-danger { color: var(--danger); background: var(--danger-wash); border-color: #edc4bd; }
.button-full { width: 100%; }

.loading-view, .detail-loading { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink-soft); }
.loading-view { min-height: calc(100vh - 64px); }
.detail-loading { min-height: 50vh; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 1400ms; } }
.message-view { max-width: 470px; margin: 14vh auto; padding: 30px; text-align: center; }
.message-view h1 { margin-top: 14px; font-size: 28px; }
.message-view p { color: var(--ink-soft); }
.message-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 20px; font-weight: 800; }
.message-icon-error { color: var(--danger); background: var(--danger-wash); }

.login-view { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 70% 18%, rgb(230 240 236 / 85%), transparent 34%), var(--canvas); }
.login-card { width: min(410px, 100%); padding: 35px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.login-card h1 { font-size: 34px; }
.login-card > p:not(.eyebrow) { margin: 10px 0 24px; color: var(--ink-soft); }
.login-mark { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 28px; color: white; background: var(--brand); border-radius: 13px 13px 13px 4px; font-family: Georgia, serif; font-size: 23px; }
.login-card .field { display: block; margin-bottom: 14px; }
.login-card input { width: 100%; height: 43px; padding: 0 11px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 9px; }
.login-card .button { min-height: 42px; }

.detail-placeholder { display: grid; align-content: center; justify-items: center; min-height: 78vh; padding: 40px; text-align: center; }
.detail-placeholder p { max-width: 280px; margin: 8px 0 0; color: var(--ink-soft); }
.placeholder-mark { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 15px; color: var(--brand); background: var(--brand-wash); border-radius: 15px; font-size: 20px; }
.detail-header { position: sticky; z-index: 4; top: 0; padding: 22px 24px 18px; background: rgb(255 254 251 / 95%); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.detail-header-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.detail-close { display: none; }
.detail-title-row { display: flex; align-items: center; gap: 10px; }
.detail-subtitle { margin: 6px 0 0; color: var(--ink-soft); font-size: 12px; }
.detail-tabs { display: flex; gap: 18px; margin-top: 17px; overflow-x: auto; }
.detail-tab { position: relative; padding: 0 0 8px; color: var(--ink-faint); background: none; border: 0; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.detail-tab.is-active { color: var(--brand); }
.detail-tab.is-active::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; content: ""; background: var(--brand); border-radius: 2px; }
.detail-body { padding: 20px 24px 36px; }
.detail-section { margin-bottom: 26px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.section-heading h3 { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.section-heading span { color: var(--ink-faint); font-size: 10px; }
.data-list { margin: 0; background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-md); }
.data-row { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.data-row:last-child { border-bottom: 0; }
.data-row dt { color: var(--ink-faint); font-size: 11px; }
.data-row dd { margin: 0; font-size: 12px; }
.source-link { color: var(--brand); font-weight: 650; text-decoration: underline; text-decoration-color: rgb(24 79 69 / 30%); text-underline-offset: 2px; }
.person-list { display: grid; gap: 8px; }
.person-card { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 11px; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; color: var(--brand); background: var(--brand-wash); border-radius: 50%; font-size: 11px; font-weight: 800; }
.person-card strong, .person-card small { display: block; }
.person-card strong { overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.person-card small { overflow: hidden; margin-top: 2px; color: var(--ink-faint); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.email-state { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; }
.email-state-verified, .email-state-deliverability_verified { color: var(--success); }
.email-state-unverified, .email-state-source_observed { color: var(--warning); }
.email-state-missing { color: var(--ink-faint); }
.source-note { grid-column: 2 / -1; margin-top: -3px; color: var(--ink-faint); font-size: 9px; }
.source-note a { color: var(--brand); text-decoration: underline; text-decoration-color: rgb(24 79 69 / 25%); text-underline-offset: 2px; }
.provenance-note { margin: 9px 2px 0; color: var(--ink-faint); font-size: 10px; line-height: 1.45; }

.preview-card { overflow: hidden; background: white; border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 10px 28px rgb(25 39 33 / 7%); }
.preview-meta { padding: 14px 15px; background: var(--surface-soft); border-bottom: 1px solid var(--line); }
.preview-meta-row { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 8px; margin: 4px 0; font-size: 11px; }
.preview-meta-row > span:first-child { color: var(--ink-faint); }
.preview-subject { padding: 13px 15px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 750; }
.preview-body { padding: 18px 15px 21px; color: #28302d; font-family: Georgia, serif; font-size: 14px; line-height: 1.62; white-space: pre-wrap; }
.readiness-card { margin-top: 10px; padding: 12px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 11px; }
.readiness-card ul { margin: 8px 0 0; padding-left: 17px; color: var(--ink-soft); font-size: 11px; }
.readiness-card li + li { margin-top: 4px; }
.schedule-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 10px 12px; color: var(--ink-soft); background: var(--surface-soft); border-radius: 9px; font-size: 11px; }

.thread { display: grid; gap: 10px; }
.message { max-width: 88%; padding: 12px 13px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px 12px 12px 3px; }
.message.is-outbound { justify-self: end; background: var(--brand-wash); border-color: #cedfd8; border-radius: 12px 12px 3px 12px; }
.message-header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; color: var(--ink-faint); font-size: 9px; }
.message-body { font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
.activity-list { position: relative; display: grid; gap: 0; }
.activity-item { position: relative; display: grid; grid-template-columns: 13px minmax(0, 1fr); gap: 9px; padding: 0 0 14px; color: var(--ink-soft); font-size: 11px; }
.activity-item::before { position: absolute; top: 11px; bottom: -2px; left: 4px; width: 1px; content: ""; background: var(--line); }
.activity-item:last-child::before { display: none; }
.activity-dot { position: relative; z-index: 1; width: 9px; height: 9px; margin-top: 3px; background: var(--surface); border: 2px solid var(--brand); border-radius: 50%; }
.activity-item time { display: block; margin-top: 2px; color: var(--ink-faint); font-size: 9px; }
.steer-card { padding: 14px; background: var(--brand-wash); border: 1px solid #cedfd8; border-radius: 12px; }
.steer-card p { margin: 4px 0 10px; color: var(--ink-soft); font-size: 11px; }
.steer-card textarea { width: 100%; resize: vertical; padding: 9px 10px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; font-size: 12px; }
.steer-actions { display: flex; justify-content: flex-end; margin-top: 8px; }

.action-dialog { width: min(470px, calc(100vw - 28px)); padding: 0; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow); }
.action-dialog::backdrop { background: rgb(24 31 28 / 45%); backdrop-filter: blur(2px); }
.action-dialog form { padding: 22px; }
.dialog-heading { display: flex; gap: 12px; align-items: center; }
.dialog-heading h2 { font-size: 21px; }
.dialog-mark { display: grid; place-items: center; width: 40px; height: 40px; color: var(--warning); background: var(--warning-wash); border-radius: 12px; font-weight: 800; }
.action-dialog > form > p { color: var(--ink-soft); font-size: 12px; }
.field span { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; }
.field textarea { width: 100%; resize: vertical; padding: 10px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 9px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.form-error { margin: 8px 0 0; color: var(--danger) !important; }
.toast-region { position: fixed; z-index: 80; right: 18px; bottom: 18px; display: grid; gap: 8px; width: min(360px, calc(100vw - 36px)); }
.toast { padding: 12px 14px; color: white; background: #25322d; border-radius: 10px; box-shadow: var(--shadow); font-size: 12px; }
.toast.is-error { background: var(--danger); }

@media (max-width: 1180px) {
  .workspace-content { grid-template-columns: minmax(560px, 1fr) 380px; }
  .content-column { padding-right: 24px; padding-left: 24px; }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .app-shell { grid-template-columns: 72px minmax(0, 1fr); }
  .topbar { grid-template-columns: 72px minmax(0, 1fr) auto; }
  .brand { justify-content: center; padding: 0; }
  .brand > span:last-child { display: none; }
  .sidebar { padding-right: 8px; padding-left: 8px; }
  .nav-item { grid-template-columns: 1fr; justify-items: center; padding: 0; }
  .nav-item span:not(.nav-count) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .nav-count { position: absolute; transform: translate(13px, -11px); }
  .sidebar-status { padding: 10px 6px; text-align: center; }
  .sidebar-status .eyebrow, .sidebar-status p, .sidebar-status button { display: none; }
  .status-line { justify-content: center; }
  .status-line strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .workspace-content { grid-template-columns: minmax(0, 1fr); }
  .detail-panel { position: fixed; z-index: 35; inset: 64px 0 0 72px; height: auto; transform: translateX(102%); transition: transform 180ms ease; box-shadow: var(--shadow); }
  .detail-panel.is-open { transform: translateX(0); }
  .detail-close { display: grid; }
}

@media (max-width: 680px) {
  .app-shell { display: block; padding-top: 58px; }
  .topbar { position: fixed; top: 0; right: 0; left: 0; min-height: 58px; grid-template-columns: auto minmax(0, 1fr) auto; }
  .brand { width: 58px; border-right: 0; }
  .brand-mark { width: 28px; height: 28px; }
  .topbar-context { justify-content: flex-start; padding: 0 4px; }
  .company-name { max-width: 130px; }
  .mode-badge { padding: 4px 7px; font-size: 9px; }
  .topbar-logout { display: none; }
  .mobile-nav-button { display: grid; }
  .sidebar { position: fixed; z-index: 50; inset: 58px auto 0 0; width: 244px; height: auto; padding: 14px 12px; transform: translateX(-102%); transition: transform 180ms ease; box-shadow: var(--shadow); }
  .sidebar.is-open { transform: translateX(0); }
  .nav-item { grid-template-columns: 22px minmax(0, 1fr) auto; justify-items: start; padding: 0 11px; }
  .nav-item span:not(.nav-count) { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .nav-count { position: static; transform: none; }
  .sidebar-status { padding: 14px; text-align: left; }
  .sidebar-status .eyebrow, .sidebar-status p, .sidebar-status button { display: block; }
  .status-line { justify-content: flex-start; }
  .status-line strong { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .workspace { min-height: calc(100vh - 58px); }
  .login-view { min-height: calc(100vh - 58px); padding: 18px; }
  .login-card { padding: 26px 22px; }
  .workspace-content { min-height: calc(100vh - 58px); }
  .content-column { padding: 22px 14px 34px; }
  .page-heading { align-items: flex-start; }
  .page-description { font-size: 12px; }
  .updated-at { display: none; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); overflow-x: auto; }
  .metric-card { min-width: 120px; }
  .toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 130px; }
  .filter-field select { min-width: 0; }
  .table-shell { border-radius: 13px; }
  .organization-table thead { display: none; }
  .organization-table, .organization-table tbody, .organization-table tr, .organization-table td { display: block; width: 100%; }
  .organization-table tr { position: relative; padding: 13px 44px 13px 14px; border-bottom: 1px solid var(--line); }
  .organization-table tr:last-child { border-bottom: 0; }
  .organization-table td { height: auto; padding: 0; border: 0; }
  .organization-table td:nth-child(2) { margin-top: 8px; }
  .organization-table td:nth-child(3) { position: absolute; top: 15px; right: 42px; width: auto; }
  .organization-table td:nth-child(4) { margin-top: 8px; }
  .organization-table td:last-child { position: absolute; top: 29px; right: 16px; width: auto; }
  .people-count small { display: none; }
  .detail-panel { inset: 58px 0 0 0; }
  .detail-header { padding: 18px 17px 14px; }
  .detail-body { padding: 17px 17px 30px; }
  .pagination { align-items: flex-start; }
}
