@font-face {
  font-family: 'Source Sans Variable';
  src: url('fonts/SourceSans3VF-Upright.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --ink: #1d304f;
  --ink-soft: #42536a;
  --muted: #626f82;
  --canvas: #f5f6f3;
  --surface: #fff;
  --line: #dfe4e8;
  --lime: #d4dd67;
  --lime-soft: #f3f5da;
  --blue-soft: #eaf1f7;
  --error: #a0313e;
  --success: #246250;
  --radius: 14px;
  --shadow: 0 8px 28px rgb(29 48 79 / 4%);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 32px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: 'Source Sans Variable', 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
a { color: inherit; text-underline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 650; letter-spacing: -.025em; line-height: 1.2; }
h1 { font-size: clamp(30px, 3vw, 42px); margin-bottom: 12px; }
h2 { font-size: 23px; margin-bottom: 12px; }
h3 { font-size: 18px; margin-bottom: 8px; }
p { margin-bottom: 16px; }
small { font-size: 13px; }
[hidden], .hidden { display: none !important; }
:focus-visible { outline: 3px solid #476c97; outline-offset: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 1px; }
.visually-hidden, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 18px; z-index: 100; background: var(--ink); color: white; padding: 12px 22px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.icon { width: 20px; height: 20px; vertical-align: middle; }
.muted, .field-hint, .section-description { color: var(--muted); }
.eyebrow { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 16px; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 20px; background: var(--blue-soft); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 8px; font-weight: 650; font-size: 15px; line-height: 1.3; text-decoration: none; transition: background .15s, box-shadow .15s; }
.btn-primary { color: var(--ink); background: var(--lime); }
.btn-primary:hover { background: #c9d452; box-shadow: 0 3px 10px rgb(29 48 79 / 9%); }
.btn-navy { color: white; background: var(--ink); }
.btn-navy:hover { background: #2c4568; }
.btn-secondary { background: white; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: #f0f3f5; border-color: #aebbc9; }
.btn-quiet { background: transparent; color: var(--ink-soft); }
.btn-quiet:hover { background: #edf0f2; }
.btn-danger { background: white; border-color: #e5c8cd; color: var(--error); }
.btn-danger:hover { background: #fff1f2; }
.btn-small { min-height: 36px; font-size: 14px; padding: 7px 12px; }
.is-loading { opacity: .7; cursor: wait; }
.btn .icon:last-child { width: 17px; height: 17px; }
.preview-banner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px; padding: 7px 16px; background: var(--ink); color: white; font-size: 12px; letter-spacing: .015em; }
.preview-banner .status-dot { background: var(--lime); }
.preview-banner span:last-child { color: #d0dce9; }
.brand { display: block; width: 180px; flex-shrink: 0; }
.brand img { width: 100%; }
.public-header { max-width: 1280px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 104px; padding: 0 40px; border-bottom: 1px solid var(--line); }
.public-nav { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 600; }
.public-nav a { text-decoration: none; }
.public-nav a:hover { text-decoration: underline; }
.public-nav .help-link { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.help-link .icon { width: 16px; height: 16px; }
.site-footer { max-width: 1280px; margin: auto; padding: 28px 40px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--muted); font-size: 12px; }

/* Prospecting: a quiet introduction and one continuous, accessible form. */
.prospecting-layout { max-width: 1200px; margin: 0 auto; padding: 48px 32px 32px; display: grid; grid-template-columns: minmax(240px, 310px) minmax(0, 1fr); gap: 64px; align-items: start; }
.prospecting-intro { position: sticky; top: 32px; padding-top: 20px; }
.prospecting-intro h1 { font-size: clamp(34px, 3.5vw, 48px); line-height: 1.08; letter-spacing: -.04em; margin: 0 0 22px; }
.prospecting-intro > p { color: var(--ink-soft); max-width: 290px; font-size: 17px; line-height: 1.65; }
.intro-steps { list-style: none; margin: 34px 0; padding: 0; }
.intro-steps li { display: flex; gap: 14px; padding: 0 0 24px; position: relative; }
.intro-steps li:not(:last-child)::after { content: ''; position: absolute; left: 16px; top: 38px; height: calc(100% - 44px); width: 1px; background: #ced7dd; }
.step-number { flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #ccd5dd; border-radius: 50%; background: var(--canvas); font-size: 13px; font-weight: 600; }
.intro-steps li:first-child .step-number { background: var(--lime); border-color: var(--lime); }
.intro-steps strong { display: block; font-weight: 650; margin-bottom: 3px; }
.intro-steps p, .intro-steps small, .intro-steps span:not(.step-number) { color: var(--muted); font-size: 14px; }
.intro-steps p { margin: 0; }
.intro-brand { max-width: 210px; margin: 28px 0; opacity: .85; }
.intro-help { border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted); font-size: 14px; }
.intro-help a { display: inline-block; color: var(--ink); font-weight: 600; }
.prospecting-main { min-width: 0; }
.form-sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.form-sheet-header { padding: 28px 32px 22px; background: #fafbf9; border-bottom: 1px solid var(--line); }
.form-sheet-header h2 { font-size: 23px; margin-bottom: 6px; }
.form-sheet-header p { color: var(--muted); margin: 0; font-size: 14px; }
.form-progress { margin-top: 19px; color: var(--muted); font-size: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.form-progress progress { appearance: none; border: none; height: 5px; width: 100%; border-radius: 5px; overflow: hidden; background: #e7ebed; }
.form-progress progress::-webkit-progress-bar { background: #e7ebed; border-radius: 5px; }
.form-progress progress::-webkit-progress-value { background: #758533; border-radius: 5px; transition: width .2s; }
.form-progress progress::-moz-progress-bar { background: #758533; border-radius: 5px; }
.form-sheet > .form-progress { padding: 20px 32px 0; margin-top: 0; }
.form-progress-caption { display: flex; justify-content: space-between; width: 100%; font-weight: 600; color: var(--ink-soft); }
.form-progress > p { font-size: 11px; margin: 0; }
.form-sheet > .error-summary { margin: 22px 32px 0; }
.form-section { border: 0; border-bottom: 1px solid var(--line); padding: 28px 32px 30px; margin: 0; min-width: 0; }
.form-section:last-of-type { border-bottom: 0; }
.section-heading { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 650; margin-bottom: 8px; }
legend.section-heading { float: left; width: 100%; padding: 0; }
legend.section-heading + * { clear: both; }
.section-number { display: inline-flex; justify-content: center; align-items: center; width: 28px; height: 28px; background: var(--blue-soft); color: #526d88; border-radius: 7px; font-size: 12px; letter-spacing: .02em; }
.section-description { font-size: 14px; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 20px; }
.field { min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .field-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.optional { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 4px; }
.field input:not([type=checkbox]):not([type=hidden]), .field select, .field textarea, .search-field input, .filter-select { width: 100%; min-width: 0; border: 1px solid #8796a6; border-radius: 7px; background: white; color: var(--ink); padding: 10px 12px; min-height: 44px; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder, .search-field input::placeholder { color: var(--muted); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #697d91; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #66829e; }
.field [aria-invalid=true] { border-color: var(--error) !important; background: #fffafb !important; }
.field-hint { font-size: 12px; margin: 6px 0 0; }
.field-error { display: block; color: var(--error); font-size: 13px; font-weight: 500; margin: 6px 0 0; }
.phone-fields { display: grid; grid-template-columns: 102px minmax(0, 1fr); gap: 8px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; }
.checkbox-row input { flex-shrink: 0; accent-color: var(--ink); width: 19px; height: 19px; margin: 2px 0 0; }
.checkbox-row label { font-weight: 400; margin: 0; }
.checkbox-row button, .text-button { color: var(--ink); font-weight: 600; border: 0; padding: 0; background: none; text-decoration: underline; text-underline-offset: 3px; }
.consent-field { margin-top: 6px; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 26px; }
.submit-row .btn { min-width: 190px; }
.form-status { color: var(--muted); font-size: 13px; max-width: 220px; margin: 0; }
.form-bottom-note { color: var(--muted); font-size: 12px; text-align: center; margin-top: 20px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 15px 18px; border-radius: 9px; margin-bottom: 22px; border: 1px solid #d4dfe9; background: #eef4f9; font-size: 14px; }
.alert p:last-child { margin-bottom: 0; }
.alert-error, .error-summary { background: #fff3f4; color: #8e2532; border-color: #edc8ce; }
.alert-success { color: #245d4d; background: #ecf5f0; border-color: #c9e3d4; }
.error-summary { display: block; }
.error-summary h2 { font-size: 18px; }
.error-summary ul { padding-left: 20px; margin-bottom: 0; }
.error-summary li + li { margin-top: 5px; }

/* Shared dialogs retain an inline fallback when JavaScript is unavailable. */
.policy-section { max-width: 1136px; margin: 0 auto 32px; background: white; border: 1px solid var(--line); padding: 32px; border-radius: var(--radius); }
.prospecting-layout > .policy-section { grid-column: 1/-1; width: 100%; }
.policy-section:not(.modal) .modal-panel, .interest-section:not(.modal) .modal-panel { max-width: none; max-height: none; width: 100%; box-shadow: none; padding: 0; border-radius: 0; overflow: visible; }
.modal { position: fixed; inset: 0; z-index: 60; background: rgb(14 29 47 / 60%); display: grid; place-items: center; padding: 24px; margin: 0; max-width: none; border: 0; border-radius: 0; overflow-y: auto; }
.modal-panel { position: relative; width: min(100%, 700px); max-height: calc(100dvh - 48px); overflow-y: auto; border-radius: 16px; background: white; padding: 36px; box-shadow: 0 24px 100px rgb(10 25 44 / 25%); }
.modal-close { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #edf1f3; font-size: 23px; color: var(--ink); }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin-top: 24px; }
.policy-content { color: var(--ink-soft); font-size: 14px; line-height: 1.75; }
.policy-content h2, .policy-content h3 { margin-top: 24px; color: var(--ink); }
.policy-content a { overflow-wrap: anywhere; }
.confirm-dialog { padding: 32px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); max-width: 440px; width: calc(100% - 32px); box-shadow: 0 24px 100px rgb(10 25 44 / 25%); }
.confirm-dialog::backdrop { background: rgb(14 29 47 / 60%); }
.confirm-dialog h2 { font-size: 25px; }
.confirm-dialog p { color: var(--muted); }
.dialog-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--lime-soft); display: grid; place-items: center; margin-bottom: 20px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; }

/* Staff workspace. */
.workspace { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.workspace-sidebar { background: white; border-right: 1px solid var(--line); padding: 15px 18px 20px; display: flex; flex-direction: column; align-self: start; position: sticky; top: 0; height: 100vh; min-height: 650px; }
.sidebar-brand { width: 186px; align-self: center; margin: 0 0 29px; }
.sidebar-label { font-size: 10px; font-weight: 650; letter-spacing: .16em; color: var(--muted); padding: 0 12px; margin-bottom: 14px; }
.workspace-nav { display: flex; flex-direction: column; gap: 6px; }
.workspace-nav a { display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 550; color: var(--ink-soft); }
.workspace-nav a.active { background: var(--lime-soft); color: var(--ink); font-weight: 650; }
.workspace-nav a:hover { background: #f1f3f4; }
.workspace-nav a.active:hover { background: #edf0c7; }
.workspace-nav .icon { width: 18px; height: 18px; }
.sidebar-bottom { margin-top: auto; padding-top: 30px; }
.sidebar-note { display: flex; gap: 10px; align-items: flex-start; padding: 16px 13px; background: #f5f7f8; border-radius: 10px; margin-bottom: 15px; font-size: 13px; }
.sidebar-note .icon { margin-top: 3px; color: #73879a; }
.sidebar-note p { margin: 0; color: var(--muted); }
.sidebar-note strong { color: var(--ink-soft); font-weight: 550; }
.sidebar-public-link { display: flex; gap: 6px; align-items: center; text-decoration: none; color: var(--ink-soft); font-size: 12px; padding: 4px 10px 23px; }
.sidebar-public-link .icon { width: 15px; height: 15px; }
.staff-profile { border-top: 1px solid var(--line); padding: 20px 6px 12px; display: flex; align-items: center; gap: 10px; min-width: 0; }
.staff-profile strong { display: block; max-width: 137px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.staff-profile div > span { display: block; color: var(--muted); font-size: 11px; }
.avatar { display: inline-flex; flex-shrink: 0; width: 38px; height: 38px; justify-content: center; align-items: center; background: #edf1f6; color: #4b617b; border: 1px solid #e3e9ee; border-radius: 11px; font-size: 12px; font-weight: 650; }
.avatar-small { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: white; }
.avatar-large { width: 60px; height: 60px; border-radius: 16px; background: var(--lime-soft); color: var(--ink); font-size: 20px; }
.logout-button { width: 100%; justify-content: flex-start; padding-left: 8px; min-height: 34px; font-size: 12px; }
.logout-button .icon { width: 15px; height: 15px; }
.workspace-main { min-width: 0; }
.workspace-topbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 21px 40px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); background: #fafbf9; }
.workspace-topbar strong { color: var(--ink-soft); font-weight: 550; }
.workspace-topbar .breadcrumb { display: flex; align-items: center; gap: 10px; }
.breadcrumb .icon { width: 13px; height: 13px; }
.workspace-content { max-width: 1480px; margin: auto; padding: 36px 40px 48px; }
.page-heading { display: flex; align-items: flex-end; gap: 22px; justify-content: space-between; margin-bottom: 28px; }
.page-heading .eyebrow { margin-bottom: 9px; font-size: 10px; }
.page-heading h1 { font-size: 34px; margin-bottom: 7px; }
.page-heading p { margin-bottom: 0; color: var(--muted); font-size: 15px; }
.page-heading > .btn { flex-shrink: 0; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.metric-card { display: block; text-decoration: none; padding: 21px 22px 18px; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.metric-card:hover { border-color: #aabbcc; transform: translateY(-2px); }
.metric-card.featured { background: var(--ink); color: white; border-color: var(--ink); }
.metric-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.metric-label .icon { width: 17px; height: 17px; }
.metric-value { display: block; font-size: 34px; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; margin: 16px 0 10px; font-variant-numeric: tabular-nums; }
.metric-note { display: flex; gap: 6px; align-items: center; font-size: 11px; color: var(--muted); }
.featured .metric-label, .featured .metric-note { color: #c5d2e0; }
.featured .metric-label .icon { color: var(--lime); }
.metric-note .status-dot { width: 5px; height: 5px; }
.data-card, .detail-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.data-card-heading { padding: 24px 24px 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.data-card-heading h2 { margin: 0; font-size: 20px; }
.data-card-heading p { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.record-count { display: inline-flex; justify-content: center; align-items: center; min-width: 26px; padding: 2px 7px; margin-left: 7px; font-size: 11px; font-weight: 600; vertical-align: middle; border-radius: 6px; background: #eef1f3; color: var(--muted); letter-spacing: 0; }
.filter-bar { display: flex; align-items: flex-end; gap: 10px; padding: 20px 24px; }
.search-field { position: relative; flex: 1; max-width: 430px; }
.search-field label, .filter-control label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.search-field .icon { position: absolute; left: 12px; bottom: 13px; width: 17px; height: 17px; color: var(--muted); }
.search-field input { padding-left: 39px; font-size: 14px; }
.filter-select { min-width: 185px; font-size: 14px; }
.filter-bar .btn { white-space: nowrap; }
.table-scroll { width: 100%; overflow-x: auto; }
.prospect-table { width: 100%; border-collapse: collapse; text-align: left; }
.prospect-table th { padding: 11px 22px; color: var(--muted); background: #f8f9fa; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 600; letter-spacing: .035em; white-space: nowrap; }
.prospect-table td { padding: 17px 22px; border-bottom: 1px solid #edf0f3; font-size: 13px; }
.prospect-table tbody tr:last-child td { border-bottom: 0; }
.prospect-table tbody tr:hover { background: #fafbf9; }
.person-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person-info { min-width: 0; }
.person-info a { font-weight: 600; font-size: 14px; text-decoration: none; color: var(--ink); display: block; overflow-wrap: anywhere; }
.person-info a:hover { text-decoration: underline; }
.person-info span { color: var(--muted); font-size: 12px; display: block; overflow-wrap: anywhere; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; font-size: 11px; font-weight: 600; border-radius: 6px; white-space: nowrap; background: #f0f1f2; color: #596777; }
.status-dot { width: 6px; height: 6px; background: currentColor; display: inline-block; border-radius: 50%; flex-shrink: 0; }
.status-start_process { background: #eef2f8; color: #425f84; }
.status-pending_authorization { background: #faf1dc; color: #85601c; }
.status-not_reviewed { background: #f0f3d6; color: #606c20; }
.status-approved { background: #e7f3ed; color: #2e6c55; }
.status-rejected { background: #f2eeef; color: #75545b; }
.status-unknown { background: #fff0e7; color: #924819; }
.row-action { display: inline-flex; gap: 7px; align-items: center; text-decoration: none; white-space: nowrap; font-weight: 600; font-size: 12px; }
.row-action .icon { width: 15px; height: 15px; }
.row-action:hover { text-decoration: underline; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.pagination-controls { display: flex; gap: 6px; align-items: center; }
.pagination-controls .btn { min-height: 32px; font-size: 12px; padding: 6px 10px; }
.pagination-current { padding: 0 8px; }
.empty-state { padding: 56px 24px; text-align: center; }
.empty-state > .icon { width: 32px; height: 32px; color: #8397a9; margin-bottom: 18px; }
.empty-state h3 { font-size: 20px; }
.empty-state p { color: var(--muted); font-size: 14px; max-width: 360px; margin: 0 auto 20px; }
.workspace-footnote { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--muted); margin-top: 20px; }
.workspace-footnote .icon { width: 15px; height: 15px; margin-top: 2px; }
.workspace-page > .site-footer { max-width: none; margin-left: 236px; border-top: 1px solid var(--line); }

/* A readable prospect file with the next action beside the information. */
.back-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); margin-bottom: 23px; text-decoration: none; }
.back-link .icon { width: 16px; height: 16px; }
.detail-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.detail-heading h1 { font-size: 32px; margin-bottom: 4px; overflow-wrap: anywhere; }
.detail-heading p { color: var(--muted); font-size: 13px; margin: 0; }
.detail-heading .status-badge { margin-left: auto; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.detail-stack { display: grid; gap: 24px; min-width: 0; }
.detail-card { padding: 26px; }
.detail-card h2 { font-size: 19px; margin-bottom: 6px; }
.detail-card > p { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.detail-card-heading { display: flex; gap: 9px; align-items: center; margin-bottom: 23px; }
.detail-card-heading h2 { margin: 0; }
.detail-card-heading .icon { color: #6b829a; width: 18px; height: 18px; }
.detail-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; margin: 0; }
.detail-fields div { min-width: 0; }
.detail-fields dt { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.detail-fields dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; white-space: pre-line; }
.detail-fields .full { grid-column: 1/-1; }
.name-editor { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 26px; }
.name-editor summary { font-size: 13px; font-weight: 600; cursor: pointer; }
.name-editor form { margin-top: 20px; }
.name-editor .form-grid { gap: 14px; }
.name-editor .btn { margin-top: 18px; }
.action-card { border-top: 3px solid var(--lime); }
.action-card .eyebrow { font-size: 10px; margin-bottom: 12px; }
.action-card h2 { font-size: 22px; margin-bottom: 12px; }
.action-card .btn { width: 100%; margin-top: 10px; }
.action-explanation { color: var(--muted); font-size: 13px; line-height: 1.6; margin-bottom: 18px; }
.action-note { font-size: 11px; color: var(--muted); margin-top: 15px; line-height: 1.55; }
.stage-list { list-style: none; margin: 22px 0 0; padding: 0; }
.stage-list li { display: flex; gap: 9px; align-items: center; font-size: 12px; color: var(--muted); padding: 9px 0; }
.stage-list li.current { font-weight: 650; color: var(--ink); }
.stage-list .status-dot { background: #cbd5df; }
.stage-list .current .status-dot { background: #7a8935; box-shadow: 0 0 0 4px var(--lime-soft); }
.notification-list { list-style: none; padding: 0; margin: 0; }
.notification-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.notification-list li:first-child { padding-top: 0; }
.notification-list li:last-child { border: 0; padding-bottom: 0; }
.notification-title { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.notification-list p { color: var(--muted); font-size: 12px; margin: 7px 0 0; }
.notification-list .notification-error { color: var(--error); }
.message-status { font-size: 11px; font-weight: 600; border-radius: 5px; padding: 4px 8px; color: var(--ink-soft); background: #edf1f5; }
.message-failed { color: var(--error); background: #fcebed; }
.message-sent { color: var(--success); background: #e7f3ed; }
.message-pending { color: #85601c; background: #faf1dc; }
.message-simulated { color: #56638a; background: #eff0f7; }

/* Entry and outcome screens share the same identity and spacing. */
.login-layout { max-width: 1050px; margin: 56px auto 72px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: white; }
.login-intro { padding: 60px 48px; background: var(--ink); color: white; position: relative; display: flex; flex-direction: column; min-height: 530px; }
.login-intro .eyebrow { color: #bfcddd; font-size: 11px; }
.login-intro h1 { font-size: 43px; font-weight: 550; max-width: 300px; line-height: 1.08; margin: 20px 0 20px; }
.login-intro > p { color: #c2cede; font-size: 16px; max-width: 280px; }
.login-intro img { width: 240px; margin-top: auto; padding-top: 40px; align-self: flex-end; opacity: .85; }
.login-form-panel { padding: 64px 48px; align-self: center; }
.login-form-panel h2 { font-size: 28px; margin-bottom: 8px; }
.login-form-panel > p { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.login-form-panel .field + .field { margin-top: 20px; }
.login-form-panel .btn-primary { width: 100%; margin-top: 28px; }
.password-control { position: relative; }
.password-control input { padding-right: 65px !important; }
.password-toggle { position: absolute; right: 8px; top: 7px; min-height: 30px; padding: 0 7px; border: 0; color: var(--ink-soft); background: transparent; font-size: 12px; font-weight: 600; }
.login-note { display: flex; gap: 7px; align-items: center; margin-top: 22px; color: var(--muted); font-size: 12px; }
.login-note .icon { width: 14px; height: 14px; }
.status-page { max-width: 900px; padding: 48px 24px 64px; margin: auto; }
.status-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 48px; box-shadow: var(--shadow); }
.status-card h1 { font-size: 35px; max-width: 650px; }
.status-content { color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.status-content p { margin-bottom: 20px; }
.status-content strong { color: var(--ink); }
.status-card .eyebrow { margin-bottom: 12px; }
.status-icon { width: 56px; height: 56px; display: grid; place-items: center; background: var(--lime-soft); border-radius: 16px; margin-bottom: 25px; color: var(--ink); }
.status-icon .icon { width: 26px; height: 26px; }
.status-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.status-brand { width: 190px; margin-top: 35px; margin-left: auto; }
.status-mountain { width: 190px; margin: 35px 0 0 auto; }
.email-badge { display: inline-flex; padding: 8px 14px; background: var(--blue-soft); border-radius: 8px; font-weight: 600; margin-bottom: 16px; overflow-wrap: anywhere; }
.personal-greeting { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.decision-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 28px 0; }
.decision-option { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fafbf9; }
.decision-option:first-child { border-color: #dbe2a1; background: #fbfcf3; }
.decision-option h2 { font-size: 20px; }
.decision-option p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.decision-note { font-size: 13px; }
.disclaimer-block { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 24px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.notice-box { color: var(--ink-soft); margin-bottom: 15px; }
.disclaimer-body ul { padding-left: 20px; }
.disclaimer-body li { padding-bottom: 8px; }
.modal-subtitle { font-size: 14px; color: var(--muted); }
.interest-section.modal { border: 0; border-radius: 0; margin: 0; }
.interest-panel { max-width: 510px; }
.captcha-field { margin-top: 22px; }
.next-step, .status-next { background: #f6f8f8; border: 1px solid var(--line); padding: 20px; border-radius: 10px; margin-top: 28px; }
.next-step h2, .status-next h2 { font-size: 18px; }
.next-step p:last-child, .status-next p:last-child { margin-bottom: 0; }
.authorization-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 28px 0; }
.option-card { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fafbf9; }
.option-card p { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.authorization-disclaimer { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 24px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.authorization-disclaimer h2 { font-size: 18px; color: var(--ink); }
.authorization-disclaimer ul { padding-left: 20px; }
.authorization-disclaimer li { margin-bottom: 10px; }
.email-pill { overflow-wrap: anywhere; }
.interest-section { border: 1px solid var(--line); padding: 24px; border-radius: 12px; margin-top: 24px; }
.interest-section .btn { margin-top: 18px; }

/* Overview and communications: shared visual language, fewer navigation layers. */
.workspace.workspace-overview { display: block; }
.overview-header { max-width: 1480px; margin: auto; min-height: 95px; padding: 0 40px; display: flex; align-items: center; gap: 30px; border-bottom: 1px solid var(--line); }
.overview-header .brand { width: 153px; }
.overview-header-label { color: var(--muted); font-size: 10px; letter-spacing: .17em; border-left: 1px solid var(--line); padding-left: 30px; }
.overview-account { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.overview-staff-name { max-width: 180px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; font-size: 13px; font-weight: 600; }
.overview-account .btn { font-size: 12px; padding: 9px 11px; }
.overview-account .btn .icon { width: 16px; height: 16px; }
.workspace-page.overview-page > .site-footer { max-width: 1480px; margin-left: auto; margin-right: auto; }
.follow-up-section { margin-bottom: 32px; }
.follow-up-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 17px; }
.follow-up-heading .eyebrow { font-size: 10px; margin-bottom: 5px; }
.follow-up-heading h2 { margin: 0 0 4px; font-size: 23px; }
.follow-up-heading p { font-size: 13px; color: var(--muted); margin: 0; }
.follow-up-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.follow-up-card { background: #fffef8; border: 1px solid #dedfc5; padding: 20px 22px 0; border-radius: 12px; overflow: hidden; }
.follow-up-card-top { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.age-pill { display: inline-flex; align-items: center; gap: 5px; color: #766021; font-size: 11px; font-weight: 650; }
.age-pill .icon { width: 14px; height: 14px; }
.follow-up-owner { font-size: 10px; color: var(--muted); }
.follow-up-card h3 { margin-bottom: 4px; font-size: 18px; overflow-wrap: anywhere; }
.follow-up-card h3 a { text-decoration: none; }
.follow-up-card h3 a:hover { text-decoration: underline; }
.follow-up-card > p { font-size: 12px; color: var(--muted); margin-bottom: 13px; overflow-wrap: anywhere; }
.follow-up-action { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 49px; margin-top: 18px; border-top: 1px solid #e4e5d3; text-decoration: none; font-size: 12px; font-weight: 650; }
.follow-up-action:hover { text-decoration: underline; }
.follow-up-action .icon { width: 16px; height: 16px; }
.follow-up-clear { display: flex; gap: 13px; padding: 21px 24px; border: 1px solid var(--line); background: #f9fbf6; border-radius: 12px; }
.follow-up-clear > .icon { color: var(--success); margin-top: 3px; }
.follow-up-clear strong { font-size: 14px; font-weight: 600; }
.follow-up-clear p { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.date-unknown-note { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; color: var(--muted); font-size: 12px; margin: 13px 0 0; }
.date-unknown-note .icon { width: 14px; height: 14px; margin-right: 3px; }
.stage-age { display: block; font-size: 11px; color: #766021; margin-top: 5px; }
.status-pending_offering { color: #66478b; background: #f1ecf7; }
.status-offering_accepted { color: var(--success); background: #e7f3ed; }
.alert-follow-up { background: #fbf8eb; border-color: #e3ddc1; color: #71591e; }
.alert-follow-up strong { font-weight: 650; }
.document-list { margin-top: 22px; }
.document-item { display: flex; align-items: flex-start; gap: 14px; border-top: 1px solid var(--line); padding: 22px 0; }
.document-item:last-child { padding-bottom: 0; }
.document-symbol { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 41px; height: 46px; border: 1px solid #dce4ec; border-radius: 8px; color: #54708c; background: #f3f6f9; }
.document-item-content { min-width: 0; flex: 1; }
.document-item h3 { font-size: 17px; margin: 1px 0 6px; }
.document-item p { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.document-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.document-actions .btn { font-size: 12px; padding-left: 10px; padding-right: 10px; }
.action-card > .btn { width: 100%; margin-bottom: 10px; }
.communication-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 24px; }
.email-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.email-card-heading { display: flex; align-items: center; gap: 13px; padding: 23px 26px; border-bottom: 1px solid var(--line); background: #fafbf9; }
.email-card-heading h2 { font-size: 20px; margin: 0 0 3px; }
.email-card-heading p { font-size: 12px; color: var(--muted); margin: 0; }
.preview-label { color: var(--muted); font-size: 9px; letter-spacing: .12em; margin-left: auto; padding: 5px 7px; border: 1px dashed #b1bbc4; border-radius: 4px; }
.email-envelope { padding: 22px 26px; margin: 0; border-bottom: 1px solid var(--line); }
.email-envelope > div { display: grid; grid-template-columns: 55px minmax(0, 1fr); gap: 15px; font-size: 13px; }
.email-envelope > div + div { margin-top: 17px; }
.email-envelope dt { color: var(--muted); }
.email-envelope dd { margin: 0; overflow-wrap: anywhere; }
.email-envelope dd strong { display: block; font-weight: 600; }
.email-envelope dd span { color: var(--muted); font-size: 12px; }
.email-preview-body { padding: 30px 26px; }
.email-preview-text { font-size: 14px; color: var(--ink-soft); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.email-attachment { display: flex; align-items: center; gap: 12px; padding: 20px 26px; border-top: 1px solid var(--line); background: #fafbf9; }
.email-attachment > div { min-width: 0; }
.email-attachment strong { display: block; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.email-attachment div span { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.file-type { margin-left: auto; background: white; border: 1px solid var(--line); padding: 4px 7px; border-radius: 4px; color: var(--muted); font-size: 10px; }
.communication-aside { position: sticky; top: 24px; }
.communication-aside .detail-card { padding: 24px; }
.communication-aside .eyebrow { font-size: 10px; margin-bottom: 9px; }
.communication-aside h2 { font-size: 23px; }
.communication-facts { margin: 24px 0; }
.communication-facts > div + div { margin-top: 17px; }
.communication-facts dt { color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.communication-facts dd { font-size: 13px; margin: 0; }
.communication-confirm-form { border-top: 1px solid var(--line); padding-top: 22px; }
.communication-confirm-form .checkbox-row { font-size: 13px; }
.communication-confirm-form .btn, .communication-aside .detail-card > .btn { width: 100%; }
.communication-confirm-form .btn { margin-top: 22px; }
.communication-confirm-form .action-note { margin-bottom: 4px; }
.communication-help { display: flex; gap: 10px; padding: 0 9px; color: var(--muted); }
.communication-help .icon { width: 17px; height: 17px; margin-top: 2px; }
.communication-help p { font-size: 12px; line-height: 1.6; margin: 0; }
.review-notice { font-size: 12px; background: var(--lime-soft); border-radius: 8px; padding: 14px; }
.availability-notice { display: flex; align-items: flex-start; gap: 9px; padding: 15px; margin: 20px 0 12px; background: #f7f3e8; border: 1px solid #e3ddc1; border-radius: 8px; color: #71591e; }
.availability-notice .icon { width: 17px; height: 17px; margin-top: 2px; }
.availability-notice strong { display: block; font-size: 13px; }
.availability-notice p { font-size: 12px; margin: 7px 0 0; }
.offering-acceptance { padding: 25px; background: #fafcf0; border: 1px solid #dce3b1; border-radius: 12px; margin: 28px 0; }
.offering-acceptance h2 { font-size: 23px; margin-bottom: 20px; }
.offering-acceptance .btn { margin-top: 22px; }
.offering-decline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 24px; }
.offering-decline h2 { font-size: 18px; margin-bottom: 6px; }
.offering-decline p { color: var(--muted); font-size: 13px; margin: 0; }
@media (max-width: 1180px) {
  .overview-header { padding-left: 24px; padding-right: 24px; }
  .communication-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; }
  .follow-up-card { padding: 18px 18px 0; }
}
@media (max-width: 960px) {
  .overview-header-label { display: none; }
  .communication-aside { position: static; }
}
@media (max-width: 720px) {
  .overview-header { padding: 0 20px; min-height: 82px; gap: 15px; }
  .overview-header .brand { width: 130px; }
  .overview-staff-name { display: none; }
  .overview-account { gap: 5px; }
  .overview-account .avatar { display: none; }
  .follow-up-heading h2 { font-size: 21px; }
  .follow-up-heading > .btn { white-space: nowrap; }
  .follow-up-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .follow-up-card { padding: 18px 20px 0; }
  .follow-up-card-top { margin-bottom: 12px; }
  .follow-up-action { margin-top: 13px; }
  .follow-up-heading p, .date-unknown-note { font-size: 11px; }
  .communication-layout { display: flex; flex-direction: column; }
  .email-card, .communication-aside { width: 100%; }
  .communication-aside .detail-card { padding: 23px; }
  .email-card-heading, .email-envelope, .email-attachment { padding: 20px; }
  .email-preview-body { padding: 24px 20px; }
  .email-preview-text { font-size: 13px; }
  .email-card-heading .preview-label { display: none; }
  .document-item { gap: 10px; }
  .document-symbol { width: 34px; height: 40px; }
  .offering-acceptance { padding: 20px; }
  .offering-acceptance .btn { width: 100%; }
  .offering-decline { align-items: flex-start; }
}

@media (min-width: 1550px) {
  .workspace-content { padding-top: 48px; }
  .prospecting-layout { padding-top: 64px; }
}
@media (max-width: 1180px) {
  .workspace { grid-template-columns: 204px minmax(0, 1fr); }
  .workspace-sidebar { padding-left: 12px; padding-right: 12px; }
  .sidebar-brand { width: 170px; }
  .workspace-content { padding: 30px 24px; }
  .workspace-topbar { padding-left: 24px; padding-right: 24px; }
  .workspace-page > .site-footer { margin-left: 204px; }
  .metric-card { padding: 18px 16px; }
  .prospect-table th, .prospect-table td { padding-left: 15px; padding-right: 15px; }
  .prospect-table .promoter-column { display: none; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; }
  .detail-card { padding: 22px; }
  .prospecting-layout { gap: 36px; }
}
@media (max-width: 960px) {
  .prospecting-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding-left: 24px; padding-right: 24px; }
  .prospecting-intro h1 { font-size: 35px; }
  .form-sheet-header, .form-section { padding-left: 24px; padding-right: 24px; }
  .workspace { display: block; }
  .workspace-sidebar { position: static; height: auto; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); padding: 4px 24px 16px; display: block; }
  .sidebar-brand { width: 135px; margin: 0; }
  .sidebar-label, .sidebar-note, .sidebar-public-link, .staff-profile { display: none; }
  .workspace-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .workspace-nav a { padding: 9px 11px; font-size: 12px; }
  .workspace-nav a .icon { width: 15px; height: 15px; }
  .sidebar-bottom { position: absolute; top: 50px; right: 22px; padding: 0; margin: 0; }
  .workspace-page:not(:has(.preview-banner)) .sidebar-bottom { top: 20px; }
  .workspace-page > .site-footer { margin-left: 0; }
  .workspace-topbar { padding-top: 14px; padding-bottom: 14px; }
  .detail-layout { grid-template-columns: minmax(0,1fr) 260px; }
  .login-layout { margin-left: 24px; margin-right: 24px; }
  .login-intro, .login-form-panel { padding: 40px 32px; }
  .login-intro h1 { font-size: 38px; }
}
@media (max-width: 720px) {
  .public-header { padding: 0 20px; height: 83px; }
  .public-header .brand { width: 145px; }
  .public-nav { gap: 16px; font-size: 13px; }
  .public-nav > a:first-child { display: none; }
  .site-footer { padding: 24px; font-size: 11px; }
  .prospecting-layout { display: block; padding: 28px 20px 20px; }
  .prospecting-intro { position: static; padding: 0; }
  .prospecting-intro .eyebrow { font-size: 10px; margin-bottom: 12px; }
  .prospecting-intro h1 { font-size: 35px; max-width: 420px; margin-bottom: 14px; }
  .prospecting-intro > p { max-width: none; font-size: 15px; margin-bottom: 22px; }
  .intro-steps { display: flex; gap: 14px; margin: 0 0 26px; }
  .intro-steps li { flex: 1; display: block; padding: 0; }
  .intro-steps li::after { display: none; }
  .intro-steps .step-number { width: 27px; height: 27px; margin-bottom: 8px; font-size: 11px; }
  .intro-steps strong { font-size: 12px; }
  .intro-steps p, .intro-steps small, .intro-brand, .intro-help { display: none; }
  .form-sheet-header, .form-section { padding: 22px; }
  .form-sheet > .form-progress { padding-left: 22px; padding-right: 22px; }
  .form-sheet > .error-summary { margin-left: 22px; margin-right: 22px; }
  .form-sheet-header h2 { font-size: 21px; }
  .form-grid { gap: 18px 14px; }
  .section-heading { font-size: 19px; }
  .submit-row .btn { flex: 1; }
  .form-status { max-width: none; }
  .policy-section { margin: 0 20px 20px; padding: 24px; }
  .policy-section.modal { margin: 0; padding: 16px; }
  .modal { padding: 16px; }
  .modal-panel { padding: 30px 22px 22px; max-height: calc(100dvh - 32px); }
  .workspace-content { padding: 25px 20px; }
  .page-heading { align-items: flex-start; margin-bottom: 22px; }
  .page-heading h1 { font-size: 29px; }
  .page-heading p { font-size: 13px; }
  .page-heading > .btn { font-size: 0; min-width: 42px; padding: 10px; }
  .page-heading > .btn .icon { width: 20px; height: 20px; }
  .metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 22px; }
  .metric-card { padding: 17px; }
  .metric-value { font-size: 31px; margin-top: 11px; }
  .metric-label { font-size: 12px; }
  .filter-bar { flex-wrap: wrap; gap: 10px; padding: 18px; }
  .search-field { max-width: none; flex-basis: 100%; }
  .filter-control { flex: 1; }
  .filter-select { min-width: 0; }
  .filter-bar > .btn { font-size: 13px; padding-left: 13px; padding-right: 13px; }
  .data-card-heading { padding: 20px 18px 0; }
  .prospect-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .prospect-table tbody { display: block; }
  .prospect-table tr { display: grid; grid-template-columns: minmax(0,1fr) auto; padding: 17px 18px; gap: 11px; border-top: 1px solid var(--line); }
  .prospect-table td { display: block; padding: 0; border: 0; }
  .prospect-table td:first-child { grid-column: 1/-1; }
  .prospect-table .date-column { display: none; }
  .prospect-table .action-column { align-self: center; }
  .person-info span { font-size: 12px; }
  .person-info a { font-size: 15px; }
  .status-badge { font-size: 10px; }
  .pagination { padding: 16px 18px; flex-wrap: wrap; font-size: 11px; }
  .pagination-controls { margin-left: auto; }
  .detail-layout { display: flex; flex-direction: column; }
  .detail-stack, .detail-aside { width: 100%; }
  .detail-aside { order: -1; display: grid; grid-template-columns: 1fr; }
  .detail-aside .stage-card { display: none; }
  .detail-heading { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 12px; align-items: start; }
  .detail-heading h1 { font-size: 27px; }
  .detail-heading > div { flex: 1; min-width: 0; }
  .detail-heading .status-badge { margin: 0; grid-column: 2; justify-self: start; }
  .detail-card { padding: 22px; }
  .login-layout { display: block; margin: 28px 20px 40px; }
  .login-intro { min-height: 0; padding: 28px; }
  .login-intro h1 { font-size: 32px; max-width: none; margin: 8px 0 12px; }
  .login-intro p { max-width: none; font-size: 14px; margin: 0; }
  .login-intro img { display: none; }
  .login-form-panel { padding: 30px 28px; }
  .status-page { padding: 28px 20px 40px; }
  .status-card { padding: 28px; }
  .status-card h1 { font-size: 29px; }
  .status-content { font-size: 15px; }
  .authorization-options { grid-template-columns: 1fr; }
  .decision-options { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .form-grid { grid-template-columns: minmax(0,1fr); }
  .form-sheet-header, .form-section { padding: 20px 18px; }
  .form-section .field input:not([type=checkbox]):not([type=hidden]), .field select, .field textarea { font-size: 16px; }
  .workspace-sidebar { padding-left: 16px; padding-right: 16px; }
  .workspace-nav a { padding: 8px; gap: 6px; font-size: 11px; }
  .workspace-content { padding-left: 16px; padding-right: 16px; }
  .workspace-topbar { padding-left: 18px; padding-right: 18px; font-size: 12px; }
  .workspace-topbar > time { display: none; }
  .metrics-grid { gap: 10px; }
  .metric-card { padding: 15px; }
  .metric-note { font-size: 10px; }
  .metric-label .icon { display: none; }
  .detail-fields { grid-template-columns: 1fr; gap: 17px; }
  .status-card { padding: 24px; }
  .status-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
