@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    color-scheme: light;
    font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
    background: #fff;
    color: #010205;
    --ink: #010205;
    --text: #363636;
    --muted: #878c91;
    --line: #dddedf;
    --soft: #f5f6f4;
    --accent: #99ea48;
    --accent-deep: #77b248;
    --page: #fafafb;
    --surface: #fff;
    --surface-soft: #f5f6f4;
    --sidebar: #010205;
    --shadow: #01020512;
}

[data-theme="dark"] {
    color-scheme: dark;
    --ink: #f4f6f2;
    --text: #cbd0ca;
    --muted: #929991;
    --line: #30352f;
    --soft: #20241f;
    --page: #111411;
    --surface: #191d19;
    --surface-soft: #20241f;
    --sidebar: #080a08;
    --shadow: #00000045;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--surface); color: var(--ink); }
a { color: inherit; }
.dashboard-body { background: var(--page); }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 22px 20px; background: var(--sidebar); color: #fff; overflow: hidden; }
.sidebar::after { content: ''; position: absolute; right: -74px; bottom: 90px; width: 150px; height: 150px; border-radius: 50%; background: var(--accent); opacity: .12; }
.sidebar-brand { position: relative; z-index: 1; display: block; margin: 0 7px 44px; text-decoration: none; }
.sidebar-brand img { display: block; width: 178px; max-width: 100%; height: auto; filter: brightness(0) invert(1); }
.sidebar-nav { position: relative; z-index: 1; display: grid; gap: 7px; }
.nav-item { min-height: 45px; display: flex; align-items: center; gap: 12px; padding: 0 13px; border-radius: 10px; color: #b8bdc1; font-size: .86rem; font-weight: 650; text-decoration: none; transition: .18s ease; }
.nav-item > span { width: 18px; color: var(--accent); font-size: 1rem; text-align: center; }
.nav-item small { margin-left: auto; color: #747a7e; font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.nav-item:hover, .nav-item.active { background: #ffffff12; color: #fff; }
.nav-item.active { box-shadow: inset 3px 0 0 var(--accent); }
.nav-disabled { cursor: default; opacity: .65; }
.sidebar-user { position: relative; z-index: 1; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: auto; padding: 16px 8px 0; border-top: 1px solid #ffffff1c; }
.user-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: #010205; font-size: .78rem; font-weight: 800; text-decoration: none; }
.sidebar-user strong, .sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { color: #fff; font-size: .72rem; }
.sidebar-user small { margin-top: 3px; color: #878c91; font-size: .6rem; }
.sidebar-profile { min-width: 0; text-decoration: none; }
.sidebar-profile:hover strong { color: var(--accent); }
.sidebar-user form { margin: 0; }
.sidebar-user button { padding: 5px; border: 0; background: transparent; color: #aeb3b7; font-size: 1rem; cursor: pointer; }
.sidebar-user button:hover { color: var(--accent); }
.app-main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.app-header { position: sticky; z-index: 30; top: 0; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 clamp(24px, 4vw, 54px); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(16px); }
.header-workspace, .header-tools, .workspace-title { display: flex; align-items: center; }
.header-workspace { min-width: 0; gap: 13px; }
.workspace-meta { min-width: 0; display: grid; gap: 3px; }
.workspace-meta > span { color: var(--muted); font-size: .62rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.workspace-title { min-width: 0; gap: 8px; }
.workspace-title img { width: 20px; height: 20px; border-radius: 5px; object-fit: contain; }
.workspace-title strong { overflow: hidden; font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.header-tools { gap: 13px; }
.header-clock { min-width: 105px; color: var(--muted); font-size: .67rem; font-weight: 650; text-align: right; }
.header-status { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: .72rem; font-weight: 650; }
.header-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-deep); box-shadow: 0 0 0 4px #99ea4828; }
.icon-button { position: relative; width: 37px; height: 37px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; cursor: pointer; }
.icon-button:hover { border-color: var(--accent-deep); background: var(--soft); }
.menu-toggle { display: none; }
.notification-control { position: relative; }
.notification-control > .icon-button > i { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-deep); box-shadow: 0 0 0 2px var(--surface); }
.notification-popover { position: absolute; z-index: 60; top: calc(100% + 10px); right: 0; width: min(310px, calc(100vw - 30px)); padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 18px 50px var(--shadow); }
.notification-popover[hidden] { display: none; }
.notification-popover > div { display: flex; justify-content: space-between; gap: 20px; }
.notification-popover > div span { color: var(--muted); font-size: .66rem; }
.notification-popover p { margin: 20px 0 3px; color: var(--muted); font-size: .76rem; text-align: center; }
.sidebar-overlay { display: none; }
.dashboard-page { flex: 1; width: 100%; padding: 38px clamp(24px, 4vw, 54px) 70px; }
.app-footer { padding: 16px 24px 22px; color: var(--muted); font-size: .62rem; letter-spacing: .02em; text-align: center; }
.app-footer strong { color: var(--text); font-weight: 700; }
.topbar { min-height: 86px; padding: 20px clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #fffffff2; backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: clamp(174px, 16vw, 210px); height: auto; object-fit: contain; }
.topbar-actions { display: flex; align-items: center; gap: 18px; color: var(--text); }
.page { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 80px; }
.hero { min-height: calc(100vh - 210px); display: grid; grid-template-columns: 1.35fr .75fr; align-items: center; gap: clamp(48px, 9vw, 120px); position: relative; }
.hero::before { content: ''; position: absolute; z-index: -1; right: 1%; top: 12%; width: 250px; height: 250px; border-radius: 50%; background: var(--accent); filter: blur(1px); opacity: .22; }
.hero-logo { width: min(420px, 72%); height: auto; margin-bottom: 44px; }
h1, h2 { margin: 0; letter-spacing: -.045em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 5.7vw, 5.45rem); line-height: 1.02; font-weight: 600; }
h2 { font-size: 1.45rem; font-weight: 700; }
.lead { color: var(--text); font-size: 1.16rem; line-height: 1.75; max-width: 680px; margin: 26px 0 34px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--text); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px #99ea4830; }
.hero-card, .card { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 24px 70px var(--shadow); }
.hero-card { padding: 36px; transform: rotate(1.5deg); background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 18px 18px 0 var(--accent); }
.phase-label { display: inline-block; padding: 7px 11px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-card strong { display: block; font-size: 1.7rem; margin: 20px 0 22px; }
.hero-card ul { padding-left: 20px; }
.hero-card li { margin: 12px 0; color: #dddedf; }
.hero-card li::marker { color: var(--accent); }
.button { display: inline-flex; justify-content: center; border: 1px solid var(--ink); border-radius: 8px; padding: 13px 20px; background: var(--ink); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: .18s ease; }
.button:hover { border-color: var(--accent); background: var(--accent); color: var(--ink); transform: translateY(-1px); }
.button-secondary { padding: 8px 12px; background: #fff; color: var(--ink); border-color: var(--line); }
.button-danger { border-color: #b93232; background: #b93232; }
.button-danger:hover { border-color: #8d2020; background: #8d2020; color: #fff; }
.login-body { background: #fafafb; }
.login-body .topbar { display: none; }
.login-body .page { width: 100%; padding: 0; }
.auth-shell { min-height: 100vh; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 43%) 1fr; }
.auth-panel { display: grid; place-items: center; padding: 48px clamp(28px, 6vw, 92px); background: #fff; }
.auth-card { width: min(500px, 100%); padding: 42px; border-top: 5px solid var(--accent); }
.auth-logo { display: block; width: min(260px, 72%); height: auto; margin: 0 auto 42px; }
.auth-card h1 { font-size: 2.6rem; }
.auth-visual { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: clamp(54px, 8vw, 120px); background: var(--ink); color: #fff; overflow: hidden; }
.auth-visual::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(#ffffff22 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(to bottom, #000, transparent 82%); }
.visual-copy { position: relative; z-index: 2; max-width: 620px; }
.visual-copy > span { display: inline-flex; padding: 7px 11px; border: 1px solid #99ea4866; border-radius: 999px; color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.visual-copy h2 { margin-top: 26px; color: #fff; font-size: clamp(2.5rem, 4.6vw, 5.2rem); font-weight: 600; line-height: 1.04; }
.visual-copy p { max-width: 520px; margin-top: 26px; color: #b6bbbf; font-size: 1.05rem; line-height: 1.75; }
.visual-orbit { position: absolute; border: 1px solid #99ea4830; border-radius: 50%; }
.orbit-one { width: 520px; height: 520px; right: -160px; top: -210px; }
.orbit-two { width: 290px; height: 290px; right: 60px; top: -95px; border-width: 54px; opacity: .38; }
.visual-dashboard-card { position: relative; z-index: 2; width: min(470px, 82%); display: grid; gap: 12px; margin: 64px 0 0 auto; padding: 22px; border: 1px solid #ffffff1d; border-radius: 18px; background: #ffffff0d; box-shadow: 0 28px 80px #0008; transform: rotate(-2deg); backdrop-filter: blur(12px); }
.visual-dashboard-card > div { display: flex; gap: 6px; }
.visual-dashboard-card i { width: 7px; height: 7px; border-radius: 50%; background: #687075; }
.visual-dashboard-card i:first-child { background: var(--accent); }
.visual-dashboard-card strong { margin: 7px 0; color: #fff; }
.visual-dashboard-card > span { height: 9px; border-radius: 999px; background: #ffffff17; }
.visual-dashboard-card > span:nth-of-type(1) { width: 92%; }
.visual-dashboard-card > span:nth-of-type(2) { width: 68%; }
.visual-dashboard-card > span:nth-of-type(3) { width: 81%; background: #99ea4838; }
.muted, .hint { color: var(--muted); }
.form-stack { display: grid; gap: 18px; margin-top: 28px; }
label { display: grid; gap: 8px; color: var(--text); font-size: .9rem; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 13px 14px; background: var(--surface); color: var(--ink); font: inherit; }
textarea { resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: 3px solid #99ea4845; border-color: var(--accent-deep); }
.checkbox { grid-template-columns: auto 1fr; align-items: center; }
.checkbox input { width: auto; accent-color: var(--accent-deep); }
.alert { margin-bottom: 22px; padding: 14px 18px; border-radius: 10px; }
.alert ul { margin: 0; padding-left: 20px; }
.alert-success { border: 1px solid #8bd743; background: #edffdc; color: #24420a; }
.alert-error { border: 1px solid #e5a0a0; background: #fff0f0; color: #7a1e1e; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 34px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.dashboard-heading h1 { font-size: clamp(2.25rem, 4vw, 3.75rem); }
.badge { border: 1px solid #7dca35; border-radius: 999px; padding: 8px 13px; background: #edffdc; color: #26480a; font-weight: 700; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.kpi-card { min-height: 112px; display: flex; align-items: center; gap: 15px; padding: 21px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 10px 32px var(--shadow); }
.kpi-icon { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #f0f1ef; color: var(--ink); font-weight: 800; }
.kpi-card strong, .kpi-card span { display: block; }
.kpi-card strong { margin-bottom: 5px; font-size: 1.6rem; line-height: 1; }
.kpi-card span { color: var(--muted); font-size: .67rem; line-height: 1.35; }
.kpi-accent { border-color: #87cf40; background: var(--accent); }
.kpi-accent .kpi-icon { background: var(--ink); color: var(--accent); }
.kpi-accent span { color: #294409; }
.dashboard-grid { display: grid; grid-template-columns: 1.5fr .8fr; gap: 22px; }
.card { padding: 28px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-heading > span { display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: 50%; background: var(--accent); font-weight: 800; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
th, td { padding: 13px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { color: var(--text); }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--accent-deep); }
.spaced-card, .invitation-link { margin-top: 22px; }
.invitation-link { display: grid; gap: 12px; border-color: var(--accent-deep); background: #f7ffef; }
.overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.overview-card { min-width: 0; }
.activity-overview { grid-column: 1 / -1; }
.overview-list { display: grid; }
.overview-row { min-width: 0; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.overview-row:last-child { border-bottom: 0; }
.overview-row p { min-width: 0; margin: 0; }
.overview-row strong, .overview-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-row strong { font-size: .78rem; }
.overview-row small { margin-top: 5px; color: var(--muted); font-size: .65rem; }
.overview-link { text-decoration: none; }
.overview-link:hover strong { text-decoration: underline; text-decoration-color: var(--accent-deep); text-underline-offset: 3px; }
.lead-initial { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--soft); font-size: .75rem; font-weight: 800; }
.users-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(340px, .65fr); gap: 22px; align-items: start; }
.compact-heading { align-items: center; }
.compact-heading h1 { font-size: clamp(2.25rem, 4vw, 3.8rem); }
.compact-heading .muted { margin: 12px 0 0; }
.pipeline-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.pipeline-summary > div { min-height: 88px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.pipeline-summary strong, .pipeline-summary span { display: block; }
.pipeline-summary strong { margin-bottom: 10px; font-size: 1.45rem; }
.pipeline-summary span { color: var(--muted); font-size: .64rem; line-height: 1.35; }
.table-secondary { display: block; margin-top: 4px; color: var(--muted); font-size: .68rem; font-weight: 500; }
.table-link, .back-link { color: var(--ink); font-size: .75rem; font-weight: 750; text-decoration-color: var(--accent-deep); text-underline-offset: 4px; }
.empty-state { padding: 38px 12px; color: var(--muted); text-align: center; }
.lead-status { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 999px; background: #eff0ef; color: #3e4448; font-size: .66rem; font-weight: 750; white-space: nowrap; }
.status-in_progress { background: #eaf6ff; color: #17587b; }
.status-needs_response { background: #fff4d8; color: #755000; }
.status-offer_sent { background: #eeeaff; color: #4a3586; }
.status-offer_accepted { background: #edffdc; color: #315d0b; }
.status-offer_rejected, .status-request_rejected { background: #fff0f0; color: #852424; }
.pagination { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; color: var(--muted); font-size: .75rem; }
.pagination a { color: var(--ink); font-weight: 700; }
.back-link { display: inline-block; margin-bottom: 26px; }
.lead-heading { margin-bottom: 22px; }
.lead-detail-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr); gap: 22px; align-items: start; }
.lead-side-column { display: grid; gap: 22px; }
.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 25px 0; }
.detail-list > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.detail-list dt { margin-bottom: 7px; color: var(--muted); font-size: .65rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.detail-list dd { margin: 0; color: var(--text); }
.answer-list { display: grid; gap: 12px; margin-top: 24px; }
.answer-list > div { padding: 17px; border-radius: 10px; background: var(--soft); }
.answer-list span { color: var(--muted); font-size: .66rem; font-weight: 750; text-transform: uppercase; }
.answer-list p { margin: 8px 0 0; color: var(--text); line-height: 1.55; white-space: pre-line; }
.audit-list { display: grid; gap: 18px; margin-top: 24px; }
.audit-list > div { display: grid; grid-template-columns: 10px 1fr; gap: 11px; }
.audit-list i { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #99ea482b; }
.audit-list p { margin: 0; }
.audit-list strong, .audit-list span { display: block; }
.audit-list strong { font-size: .75rem; }
.audit-list span { margin-top: 4px; color: var(--muted); font-size: .62rem; }
.forms-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .85fr); gap: 22px; align-items: start; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 12px; }
.offer-total { display: block; margin: 24px 0 8px; font-size: 2rem; letter-spacing: -.04em; }
.offer-summary-card .button { margin-top: 18px; }
.offer-status { display: inline-flex; align-items: center; width: fit-content; padding: 7px 11px; border-radius: 999px; background: var(--soft); color: var(--text); font-size: .66rem; font-weight: 750; }
.offer-status-draft { background: var(--soft); }
.offer-status-sent { background: #eaf6ff; color: #17587b; }
.offer-status-accepted { background: #edffdc; color: #315d0b; }
.offer-status-rejected { background: #fff0f0; color: #852424; }
.offer-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); gap: 22px; align-items: start; }
.offer-main-column { display: grid; gap: 22px; }
.offer-document { min-height: 520px; padding: clamp(28px, 4vw, 54px); }
.offer-document-head { display: flex; justify-content: space-between; gap: 28px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.offer-document-head > div { display: grid; gap: 7px; }
.offer-document-head > div:last-child { text-align: right; }
.offer-document-head span { color: var(--muted); font-size: .65rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.offer-document-head strong { font-size: 1.5rem; }
.offer-copy { padding-top: 34px; }
.offer-copy p { margin: 14px 0 0; color: var(--text); line-height: 1.75; white-space: pre-line; }
.version-list { display: grid; margin-top: 22px; }
.version-list article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.version-list article:last-child { border-bottom: 0; }
.version-list article > div { display: grid; gap: 5px; }
.version-list article > div:last-child { text-align: right; }
.version-list span { overflow: hidden; color: var(--muted); font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.share-offer-card input { margin: 20px 0 12px; background: var(--soft); font-size: .68rem; }
.share-offer-card .button { width: 100%; }
.decision-details-card > p:not(.eyebrow) { color: var(--text); line-height: 1.65; white-space: pre-line; }
.decision-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0 0; }
.decision-meta div { padding-top: 14px; border-top: 1px solid var(--line); }
.decision-meta dt { color: var(--muted); font-size: .62rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.decision-meta dd { margin: 6px 0 0; color: var(--text); font-size: .72rem; word-break: break-word; }
.public-offer-shell { width: min(900px, 100%); margin: 0 auto; padding: 34px 0 50px; }
.public-offer-brand { padding: 12px 0 34px; text-align: center; }
.public-offer-brand img { width: min(250px, 65%); height: auto; }
.public-offer-brand p { margin: 18px 0 0; color: var(--muted); font-size: .72rem; }
.public-offer-document { min-height: 0; }
.public-offer-title { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.public-offer-title h1 { font-size: clamp(2.25rem, 5vw, 4.2rem); }
.print-offer-button { margin-top: 40px; }
.offer-decision-card { margin-top: 22px; padding: clamp(28px, 4vw, 44px); }
.offer-decision-card h2 { font-size: 1.8rem; }
.decision-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.decision-result { display: flex; align-items: center; gap: 20px; margin-top: 22px; }
.decision-result > span { flex: 0 0 auto; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #010205; font-size: 1.45rem; font-weight: 900; }
.decision-result-rejected > span { background: #b93232; color: #fff; }
.decision-result-expired > span { background: #f0b429; color: #010205; }
.decision-result .eyebrow { margin-bottom: 8px; }
.public-offer-footer { padding: 24px 0 0; color: var(--muted); font-size: .62rem; text-align: center; }
[data-theme="dark"] .offer-status-sent { background: #173044; color: #9ed9fa; }
[data-theme="dark"] .offer-status-accepted { background: #1d2b14; color: #bafa7c; }
[data-theme="dark"] .offer-status-rejected { background: #351b1b; color: #ffb8b8; }
[data-theme="dark"] .public-offer-brand img { filter: brightness(0) invert(1); }
.field-picker { display: grid; gap: 4px; margin: 0; padding: 0; border: 0; }
.field-picker legend { margin-bottom: 8px; color: var(--text); font-size: .9rem; font-weight: 650; }
.field-picker > div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; background: var(--soft); }
.field-picker .checkbox { display: flex; }
.required-choice { color: var(--muted); font-size: .68rem; }
.form-list { display: grid; gap: 14px; margin-top: 24px; }
.form-list article { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.form-list strong, .form-list span { display: block; }
.form-list span { margin-top: 5px; color: var(--muted); font-size: .66rem; }
.form-list a { color: var(--ink); font-size: .72rem; font-weight: 750; }
.form-list input { grid-column: 1 / -1; padding: 9px 10px; background: var(--soft); font-size: .66rem; }
.public-form-body { background: #fafafb; }
.public-form-body .topbar { min-height: 74px; }
.public-form-shell { width: min(720px, 100%); min-height: calc(100vh - 130px); display: grid; grid-template-columns: 1fr; gap: 34px; align-content: center; margin: 0 auto; padding: 38px 0; }
.public-form-intro { text-align: center; }
.public-form-intro .eyebrow { justify-content: center; }
.public-form-intro img { display: block; width: min(260px, 70%); margin: 0 auto 42px; }
.public-form-intro h1 { font-size: clamp(2.8rem, 5vw, 5.2rem); }
.public-form-intro > p:last-child { max-width: 640px; margin: 20px auto 0; color: var(--text); font-size: 1.05rem; line-height: 1.75; }
.public-form-card { border-top: 5px solid var(--accent); }
.public-form-card label > small { margin-left: 5px; color: var(--muted); font-size: .62rem; font-weight: 500; }
.privacy-note { margin: 0; color: var(--muted); font-size: .66rem; line-height: 1.5; text-align: center; }
.thank-you-card { width: min(650px, 100%); margin: 7vh auto; padding: 55px; text-align: center; }
.thank-you-card > img { width: min(270px, 70%); margin-bottom: 44px; }
.success-mark { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 28px; border-radius: 50%; background: var(--accent); font-size: 1.4rem; font-weight: 900; }
.thank-you-card .eyebrow { justify-content: center; }
.thank-you-card h1 { font-size: 3.4rem; }
.thank-you-card > p:not(.eyebrow) { margin: 20px auto 28px; color: var(--text); line-height: 1.7; }
.profile-card { width: min(720px, 100%); }
.form-divider { display: flex; align-items: center; gap: 12px; margin-top: 8px; color: var(--muted); font-size: .68rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.form-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.form-divider + .hint { margin: -8px 0 0; font-size: .72rem; }
[data-theme="dark"] .topbar,
[data-theme="dark"] .auth-panel,
[data-theme="dark"] .button-secondary { background: var(--surface); }
[data-theme="dark"] .login-body,
[data-theme="dark"] .public-form-body { background: var(--page); }
[data-theme="dark"] .workspace-title img,
[data-theme="dark"] .auth-logo,
[data-theme="dark"] .public-form-intro img,
[data-theme="dark"] .thank-you-card > img { filter: brightness(0) invert(1); }
[data-theme="dark"] .kpi-icon,
[data-theme="dark"] .lead-status { background: var(--soft); color: var(--ink); }
[data-theme="dark"] .kpi-accent { border-color: #87cf40; background: var(--accent); color: #010205; }
[data-theme="dark"] .kpi-accent .kpi-icon { background: #010205; color: var(--accent); }
[data-theme="dark"] .badge { background: #26351a; color: #bafa7c; }
[data-theme="dark"] .invitation-link { background: #172012; }
[data-theme="dark"] .alert-success { background: #1d2b14; color: #c5f59b; }
[data-theme="dark"] .alert-error { background: #351b1b; color: #ffb8b8; }
[data-theme="dark"] .status-in_progress { background: #173044; color: #9ed9fa; }
[data-theme="dark"] .status-needs_response { background: #382f18; color: #f3d47c; }
[data-theme="dark"] .status-offer_sent { background: #28233d; color: #cfc3ff; }
[data-theme="dark"] .status-offer_accepted { background: #1d2b14; color: #bafa7c; }
[data-theme="dark"] .status-offer_rejected,
[data-theme="dark"] .status-request_rejected { background: #351b1b; color: #ffb8b8; }

@media (max-width: 1050px) {
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auth-layout { grid-template-columns: minmax(380px, 48%) 1fr; }
    .auth-visual { padding: 54px; }
    .header-status { display: none; }
}
@media (max-width: 960px) {
    .app-shell { display: block; }
    .sidebar { position: fixed; z-index: 50; top: 0; left: 0; width: min(292px, 86vw); height: 100vh; padding: 28px 22px 20px; transform: translateX(-105%); transition: transform .22s ease; }
    .sidebar.is-open { transform: translateX(0); }
    .sidebar-overlay { position: fixed; z-index: 40; inset: 0; display: block; border: 0; background: #01020588; opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s ease; }
    .sidebar-open { overflow: hidden; }
    .sidebar-open .sidebar-overlay { opacity: 1; visibility: visible; }
    .menu-toggle { display: grid; }
    .app-header { padding: 0 22px; }
}
@media (max-width: 800px) {
    .hero, .dashboard-grid, .auth-layout, .lead-detail-grid, .forms-grid, .public-form-shell, .overview-grid, .users-grid, .offer-layout { grid-template-columns: 1fr; }
    .hero { padding: 48px 0 64px; }
    .hero-logo { margin-bottom: 32px; }
    .hero-card { margin: 0 10px 18px 0; box-shadow: 10px 10px 0 var(--accent); }
    .topbar-actions > span { display: none; }
    .page { padding-top: 34px; }
    .app-header { min-height: 66px; }
    .dashboard-page { width: 100%; padding: 28px 15px 60px; }
    .dashboard-heading { align-items: start; gap: 18px; flex-direction: column; }
    .auth-panel { min-height: 100vh; padding: 30px 20px; }
    .auth-card { padding: 30px 24px; }
    .auth-visual { display: none; }
    .pipeline-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .public-form-intro img { margin-bottom: 38px; }
    .public-form-shell { gap: 34px; }
    .activity-overview { grid-column: auto; }
    .offer-document { min-height: 0; }
}
@media (max-width: 620px) {
    .header-clock { display: none; }
    .workspace-title strong { max-width: 34vw; }
}
@media (max-width: 520px) {
    .kpi-grid, .detail-list { grid-template-columns: 1fr; }
    .pipeline-summary { grid-template-columns: 1fr 1fr; }
    .thank-you-card { padding: 38px 22px; }
    .app-header { gap: 10px; padding: 0 14px; }
    .header-tools { gap: 7px; }
    .workspace-title img { display: none; }
    .dashboard-page { padding-right: 12px; padding-left: 12px; }
    .form-row, .version-list article { grid-template-columns: 1fr; }
    .decision-actions, .decision-meta { grid-template-columns: 1fr; }
    .version-list article > div:last-child { text-align: left; }
    .offer-document-head { flex-direction: column; }
    .offer-document-head > div:last-child { text-align: left; }
    .public-offer-title { flex-direction: column; }
}

@media print {
    @page { margin: 16mm; }
    body, .public-form-body, .page { background: #fff !important; color: #010205 !important; }
    .page { width: 100%; padding: 0; }
    .public-offer-shell { width: 100%; padding: 0; }
    .public-offer-brand { padding-top: 0; }
    .public-offer-brand img { width: 190px; filter: none !important; }
    .public-offer-document { border: 0; box-shadow: none; padding: 0; }
    .alert, .offer-decision-card, .decision-result, .public-offer-footer, .print-offer-button { display: none !important; }
    .offer-document-head, .offer-copy { break-inside: avoid; }
    .offer-document h1, .offer-document h2, .offer-document p, .offer-document strong, .offer-document span { color: #010205 !important; }
}
