:root {
  --canvas: #f6f3ed;
  --paper: #fffdfa;
  --ink: #172019;
  --muted: #677069;
  --line: #deddd6;
  --brand: #ff5a1f;
  --brand-dark: #df4210;
  --green: #1d6c4b;
  --green-soft: #e9f4ed;
  --orange-soft: #fff0e8;
  --shadow: 0 12px 34px rgba(28, 35, 29, .07);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .46; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.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; }
[hidden] { display: none !important; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 72px; padding: 0 clamp(22px, 5vw, 72px);
  border-bottom: 1px solid rgba(23, 32, 25, .1); background: rgba(255, 253, 250, .94);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 19px; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px 10px 10px 3px; background: var(--brand); color: white; font-size: 18px; }
.topbar nav { display: flex; height: 100%; gap: 34px; }
.topnav { display: grid; place-items: center; position: relative; color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.topnav.active { color: var(--ink); }
.topnav.active::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }
.topnav.upcoming { opacity: .45; }
.profile { justify-self: end; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; font-weight: 650; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: white; font-size: 12px; }
.profile-menu { position: relative; justify-self: end; }
.profile-menu summary { cursor: pointer; list-style: none; border-radius: 8px; }
.profile-menu summary::-webkit-details-marker { display: none; }
.profile-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-chevron { font-size: 18px; }
.profile-dropdown { position: absolute; top: calc(100% + 17px); right: 0; width: 270px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); }
.profile-dropdown > strong, .profile-dropdown > span { display: block; overflow-wrap: anywhere; }
.profile-dropdown > strong { margin-bottom: 5px; font-size: 15px; }
.profile-dropdown > span { color: var(--muted); font-size: 13px; }
.profile-dropdown > button { display: flex; justify-content: space-between; width: 100%; margin-top: 17px; padding: 13px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 14px; font-weight: 750; text-align: left; }

.page { width: min(1180px, calc(100% - 44px)); margin: 0 auto; padding: 70px 0 120px; }
.page-compact { width: min(1120px, calc(100% - 44px)); padding-top: 38px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 14px; font-size: clamp(38px, 6vw, 68px); line-height: .98; letter-spacing: -.065em; }
.kicker { margin-bottom: 10px; color: var(--brand-dark); font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.lead { max-width: 660px; margin-bottom: 0; color: var(--muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.5; }
.hero-row, .proposal-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 44px; }
.hero-row h1 { margin-bottom: 16px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 18px; border: 1px solid transparent; border-radius: 12px; font-weight: 800; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:not(:disabled):hover { transform: translateY(-1px); }
.button.primary { background: var(--ink); color: white; box-shadow: 0 8px 18px rgba(23, 32, 25, .18); }
.button.primary:not(:disabled):hover { background: #000; }
.button.secondary { border-color: var(--line); background: var(--paper); color: var(--ink); }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.project-card { display: flex; flex-direction: column; min-height: 255px; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); color: inherit; text-decoration: none; box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s ease; }
.project-card:hover { transform: translateY(-3px); border-color: #b9b8b1; }
.project-card-top { display: flex; align-items: center; justify-content: space-between; }
.project-card h2 { max-width: 490px; margin: 38px 0 10px; font-size: 27px; line-height: 1.1; letter-spacing: -.04em; }
.project-card p { color: var(--muted); }
.project-card footer { display: flex; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.project-card footer strong { color: var(--ink); }
.arrow { font-size: 25px; }
.status { display: inline-flex; padding: 7px 10px; border-radius: 999px; font-size: 11px; font-weight: 850; }
.status.pending { background: var(--orange-soft); color: #a53a12; }
.status.done { background: var(--green-soft); color: var(--green); }
.status.attention { background: #f8e8e5; color: #9a3025; }

.back { display: inline-flex; margin-bottom: 34px; color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.back:hover { color: var(--ink); }
.proposal-head { align-items: center; }
.proposal-head h1 { max-width: 780px; font-size: clamp(36px, 5vw, 58px); }
.download-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 22px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.download-toolbar > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.download-toolbar strong { font-size: 14px; }
.download-toolbar span, .allocation-note { color: var(--muted); font-size: 12px; }
.download-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.download-actions .button { font-size: 13px; }
.download-actions .button > span { color: var(--brand-dark); font-size: 22px; }
.allocation-note { margin: 0 0 22px; }
.download-error { color: #9a3025; font-size: 14px; }
.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; margin-bottom: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.summary-strip > div { display: flex; flex-direction: column; gap: 2px; padding: 19px 22px; border-right: 1px solid var(--line); }
.summary-strip > div:last-child { border-right: 0; }
.summary-strip strong { font-size: 25px; letter-spacing: -.04em; }
.summary-strip span { color: var(--muted); font-size: 12px; }
.summary-existing strong { color: var(--green); }
.summary-partial strong { color: #8a6308; }
.summary-new strong { color: var(--brand-dark); }

.module-section { margin-top: 34px; }
.module-heading { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.module-heading span { color: var(--brand-dark); font-size: 11px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.module-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.035em; }
.comparison-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); }
.comparison-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.comparison-table th { padding: 14px 20px; border-bottom: 1px solid var(--line); background: #eeece5; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.comparison-table th:nth-child(1) { width: 35%; }
.comparison-table th:nth-child(2) { width: 41%; }
.comparison-table th:nth-child(3) { width: 24%; }
.comparison-table td { padding: 22px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.comparison-table tbody tr:last-child td { border-bottom: 0; }
.comparison-row { transition: background .15s ease; }
.comparison-row:hover { background: #faf8f3; }
.comparison-row.is-decided { background: #fcfbf7; }
.comparison-row.is-decided .action-cell { box-shadow: inset 3px 0 var(--brand); }
.unit-label, .result-type { display: inline-flex; margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.ideal-cell h3, .catalog-cell h3 { margin: 0 0 11px; font-size: 17px; line-height: 1.25; letter-spacing: -.025em; }
.topic-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.topic-list li { position: relative; padding-left: 17px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.topic-list li::before { content: ""; position: absolute; top: .52em; left: 1px; width: 6px; height: 6px; border-radius: 50%; background: #b8b9b0; }
.source-topics li::before { background: var(--green); }
.catalog-course { margin: -4px 0 14px; color: var(--muted); font-size: 12px; }
.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.result-type.full { color: var(--green); }
.result-type.partial { color: #8a6308; }
.result-type.none { color: #8b7465; }
.score-inline { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; font-size: 13px; font-weight: 900; }
.score-inline.high { background: #dcefdc; color: #1b673f; }
.score-inline.medium { background: #fff0c7; color: #805a09; }
.score-inline.low { background: #eee9e1; color: #71675d; }
.scattered-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.scattered-list li { padding: 11px 12px; border: 1px solid #e5d7ad; border-radius: 10px; background: #fff9e8; }
.scattered-list strong, .scattered-list span { display: block; }
.scattered-list strong { margin-bottom: 3px; font-size: 13px; }
.scattered-list span, .topic-origin { color: var(--muted); font-size: 10px; line-height: 1.4; }
.topic-origin { margin-top: 7px; padding-top: 7px; border-top: 1px solid #eadfbe; }
.action-cell { vertical-align: middle !important; }
.choices.compact { display: grid; grid-template-columns: 1fr; align-content: start; }
.choice.compact { min-height: 58px; }
.choice.compact strong { font-size: 12px; }
.choice.compact small { font-size: 9px; }

.unit-list { display: grid; gap: 16px; }
.unit-card { display: grid; grid-template-columns: 72px minmax(0, 1fr) 280px; gap: 24px; padding: 25px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: 0 5px 16px rgba(28, 35, 29, .035); transition: border-color .16s ease, box-shadow .16s ease; }
.unit-card.is-decided { border-color: #c4c5bc; box-shadow: var(--shadow); }
.unit-number { display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: start; width: 58px; height: 58px; border-radius: 16px; background: var(--ink); color: white; }
.unit-number span { font-size: 20px; font-weight: 850; line-height: 1; }
.unit-number small { margin-top: 4px; color: #c9d0c9; font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.ideal-label, .source-label { margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.unit-main > h2 { margin-bottom: 7px; font-size: 22px; letter-spacing: -.035em; }
.unit-meta { margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.match-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 92px; padding: 16px 18px; border-radius: 15px; background: #f1f0ea; }
.source-copy h3 { margin-bottom: 5px; font-size: 16px; letter-spacing: -.02em; }
.source-copy p:last-child { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.no-source h3 { color: #704a33; }
.score { display: grid; flex: 0 0 auto; place-items: center; width: 72px; height: 62px; border-radius: 14px; }
.score strong { font-size: 20px; line-height: 1; }
.score span { font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.score.high { background: #dcefdc; color: #1b673f; }
.score.medium { background: #fff0c7; color: #805a09; }
.score.low { background: #eee9e1; color: #71675d; }
.choices { display: grid; align-content: center; gap: 10px; }
.choice { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 10px; width: 100%; min-height: 68px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: transparent; color: var(--ink); text-align: left; }
.choice:hover { border-color: #aaa99f; background: #faf8f3; }
.choice-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #eeece6; font-size: 17px; font-weight: 900; }
.choice strong, .choice small { display: block; }
.choice strong { font-size: 13px; }
.choice small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.choice.selected.use { border-color: #8fc3a7; background: var(--green-soft); }
.choice.selected.use .choice-icon { background: var(--green); color: white; }
.choice.selected.create { border-color: #f3aa89; background: var(--orange-soft); }
.choice.selected.create .choice-icon { background: var(--brand); color: white; }

.save-bar { position: sticky; bottom: 18px; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 26px; padding: 16px 18px 16px 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 253, 250, .96); box-shadow: 0 18px 48px rgba(20, 28, 22, .16); backdrop-filter: blur(18px); }
.save-bar > div { display: flex; flex-direction: column; gap: 3px; }
.save-bar strong { font-size: 14px; }
.save-bar span { color: var(--muted); font-size: 12px; }
.save-bar.ready { border-color: #a9c9b5; }
.save-bar .button span { color: inherit; font-size: 17px; }
.toast { position: fixed; right: 24px; bottom: 104px; z-index: 30; display: flex; flex-direction: column; gap: 4px; width: min(360px, calc(100% - 48px)); padding: 18px; border-radius: 16px; background: var(--ink); color: white; box-shadow: 0 18px 45px #0004; }
.toast span { color: #cfd6cf; font-size: 13px; }
.empty-state { max-width: 620px; margin: 80px auto; padding: 42px; text-align: center; }
.empty-state p { color: var(--muted); line-height: 1.6; }
.empty-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 18px; border-radius: 50%; background: var(--orange-soft); color: var(--brand-dark); font-size: 24px; }
.card { border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); }

.auth-page { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100svh; }
.auth-brand-panel { display: flex; flex-direction: column; justify-content: space-between; min-height: 100svh; padding: clamp(30px, 5vw, 70px); background: var(--ink); color: var(--paper); }
.auth-brand-panel .brand { color: var(--paper); }
.auth-brand-panel .brand-mark { width: 38px; height: 38px; }
.auth-intro { padding: 64px 0; }
.auth-intro .kicker { color: #ff925f; margin-bottom: 22px; }
.auth-intro h1 { font-size: clamp(36px, 4.8vw, 68px); line-height: 1.06; letter-spacing: -.055em; }
.auth-intro h1 > span { color: var(--brand); }
.auth-intro > p:last-child { max-width: 390px; margin: 27px 0 0; color: #bec7bf; font-size: 16px; line-height: 1.6; }
.auth-footnote { color: #9aa99d; font-size: 13px; }
.auth-form-panel { display: grid; place-items: center; padding: 48px clamp(28px, 5vw, 80px); background: var(--paper); }
.auth-form-wrap { width: min(100%, 390px); }
.auth-form-wrap h2 { margin-bottom: 12px; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.04em; line-height: 1.12; }
.auth-description { margin-bottom: 28px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.account-form { display: grid; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field > .field-hint { margin: 0; }
.account-form label { display: flex; flex-direction: column; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 700; }
.account-form input, .account-form select { width: 100%; min-width: 0; min-height: 48px; padding: 11px 13px; border: 1px solid #cfcec6; border-radius: 10px; background: var(--paper); color: var(--ink); font-size: 16px; font-weight: 450; }
.account-form input::placeholder { color: #858a83; }
.account-form input:focus, .account-form select:focus, .role-select:focus { border-color: var(--brand); outline: 3px solid #ff5a1f25; outline-offset: 1px; }
.password-field { display: flex; overflow: hidden; border: 1px solid #cfcec6; border-radius: 10px; }
.password-field:focus-within { border-color: var(--brand); outline: 3px solid #ff5a1f25; outline-offset: 1px; }
.password-field input, .password-field input:focus { border: 0; border-radius: 0; outline: 0; }
.password-field button { padding: 0 14px; border: 0; background: transparent; color: var(--brand-dark); font-size: 13px; font-weight: 750; }
.field-hint { margin: -11px 0 0; color: var(--muted); font-size: 13px; font-weight: 450; line-height: 1.4; }
.account-form label .field-hint { margin: 0; }
.form-error { margin: 0; padding: 12px 14px; border: 1px solid #edc1b2; border-radius: 10px; background: #fff0e8; color: #983213; font-size: 14px; font-weight: 450; line-height: 1.5; overflow-wrap: anywhere; }
.profile-dropdown .form-error { margin-top: 12px; }
.button.auth-submit { justify-content: space-between; min-height: 50px; margin-top: 2px; background: var(--brand); box-shadow: 0 7px 17px #ff5a1f20; }
.button.auth-submit:not(:disabled):hover { background: var(--brand-dark); }
.auth-help { margin: 23px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.auth-unavailable { display: grid; place-items: center; min-height: 100svh; padding: 20px; }
.auth-unavailable .empty-state { margin: 0; }
.auth-unavailable .brand-mark { margin: 0 auto 24px; }
.auth-unavailable h1 { font-size: 36px; line-height: 1.1; }

.admin-heading { margin-bottom: 30px; }
.admin-heading h1 { font-size: clamp(36px, 5vw, 56px); }
.admin-heading .lead { font-size: 18px; }
.admin-counts { display: flex; gap: 38px; margin: 0 0 36px; }
.admin-counts > div { display: flex; align-items: baseline; gap: 9px; }
.admin-counts strong { font-size: 30px; letter-spacing: -.04em; }
.admin-counts span { color: var(--muted); font-size: 14px; }
.admin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: start; gap: 24px; min-width: 0; max-width: 100%; }
.admin-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; min-width: 0; max-width: 100%; }
.admin-section { min-width: 0; max-width: 100%; overflow: hidden; }
.admin-section > header { padding: 24px 24px 18px; }
.admin-section h2, .admin-environment h2 { margin-bottom: 9px; font-size: 22px; letter-spacing: -.035em; }
.admin-section header p { max-width: 580px; margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.admin-table-wrap { position: relative; width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; }
.admin-table th { padding: 13px 16px; background: #eeece5; color: var(--muted); font-size: 12px; font-weight: 750; }
.admin-table th:first-child, .admin-table td:first-child { padding-left: 24px; }
.admin-table td { padding: 17px 16px; border-top: 1px solid var(--line); }
.admin-person { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.admin-person .avatar { flex: 0 0 32px; }
.admin-person > div { min-width: 0; }
.admin-person strong { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; font-size: 14px; overflow-wrap: anywhere; }
.admin-person > div > span { display: block; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.you-label { padding: 3px 5px; border-radius: 4px; background: #eeece5; color: var(--muted); font-size: 11px; font-weight: 600; }
.role-select { min-height: 37px; max-width: 152px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font-size: 13px; }
.role-select:disabled { color: var(--muted); cursor: not-allowed; }
.admin-toggle { min-height: 36px; padding-inline: 10px; border-radius: 8px; font-size: 12px; }
.status.inactive { background: #eeece5; color: var(--muted); }
.admin-table .status { font-size: 12px; }
.create-user-form { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px 24px 24px; }
.create-user-footer { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 20px; padding-top: 4px; }
.create-user-footer p { margin: 0; color: var(--muted); font-size: 13px; }
.create-user-form > .form-error { grid-column: 1 / -1; }
.admin-environment { min-width: 0; padding: 24px; box-shadow: none; }
.admin-environment > p:not(.kicker) { color: var(--muted); font-size: 14px; line-height: 1.55; }
.admin-environment dl { margin: 24px 0 0; }
.admin-environment dl > div { padding-block: 17px; border-top: 1px solid var(--line); }
.admin-environment dt { margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.admin-environment dd { margin: 0; font-size: 14px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.admin-environment .environment-note { margin-bottom: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px !important; }
.admin-notice { margin-bottom: 20px; padding: 13px 16px; border: 1px solid #bfdacb; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 14px; }
#admin-error:not([hidden]) { margin-bottom: 20px; }

.new-proposal-heading { margin-bottom: 32px; }
.new-proposal-heading h1 { font-size: clamp(36px, 4.5vw, 54px); }
.proposal-builder { display: grid; grid-template-columns: minmax(0, 1fr) 286px; align-items: start; gap: 24px; }
.proposal-builder-main, .proposal-builder-aside { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; min-width: 0; }
.proposal-builder-main > .admin-notice, .proposal-builder-main > .proposal-error { margin: 0; }
.proposal-form-card { min-width: 0; padding: 28px; }
.proposal-form fieldset { display: grid; gap: 22px; min-width: 0; margin: 0; padding: 0; border: 0; }
.proposal-form fieldset:disabled { opacity: .65; }
.account-form textarea { width: 100%; min-width: 0; padding: 12px 13px; border: 1px solid #cfcec6; border-radius: 10px; background: var(--paper); color: var(--ink); font-size: 16px; font-weight: 450; line-height: 1.5; resize: vertical; }
.account-form textarea:focus { border-color: var(--brand); outline: 3px solid #ff5a1f25; outline-offset: 1px; }
.account-form textarea::placeholder { color: #858a83; }
.proposal-dimensions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.proposal-form .openai-consent { display: flex; flex-direction: row; align-items: flex-start; gap: 11px; margin-top: 4px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #f6f3ed; font-size: 14px; font-weight: 550; line-height: 1.5; cursor: pointer; }
.proposal-form .openai-consent input { flex: 0 0 18px; width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--brand); }
.proposal-submit-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 17px; }
.proposal-submit-row > p { flex: 1 1 180px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.proposal-submit-row .button { flex: 0 0 auto; }
.proposal-service-card { min-width: 0; padding: 23px; box-shadow: none; }
.proposal-service-card h2 { margin-bottom: 13px; font-size: 21px; letter-spacing: -.035em; }
.proposal-service-card > p:not(.kicker), .generation-availability p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.catalog-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 22px 0; }
.catalog-counts > div { display: flex; flex-direction: column-reverse; gap: 5px; }
.catalog-counts dt { color: var(--muted); font-size: 12px; }
.catalog-counts dd { margin: 0; font-size: 23px; font-weight: 750; letter-spacing: -.04em; overflow-wrap: anywhere; }
.generation-availability { margin: 20px 0; padding-top: 20px; border-top: 1px solid var(--line); }
.generation-availability strong { font-size: 14px; }
.generation-availability p { margin: 8px 0 0; }
.proposal-service-card > .button { width: 100%; min-height: 40px; font-size: 13px; }
.recent-proposals { margin: 0; padding: 0; list-style: none; }
.recent-proposals li + li { border-top: 1px solid var(--line); }
.recent-proposals button { width: 100%; padding: 15px 0; border: 0; background: transparent; color: var(--ink); text-align: left; }
.recent-proposals strong, .recent-proposals button > span { display: block; }
.recent-proposals strong { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.recent-proposals button > span { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.recent-proposals button > .recent-open { margin-top: 9px; color: var(--brand-dark); font-size: 13px; font-weight: 650; }
.recent-empty { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.proposal-job { min-width: 0; padding: 25px 28px; border-color: #c6d4c8; }
.job-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.proposal-job h2 { margin-bottom: 13px; font-size: 23px; letter-spacing: -.035em; overflow-wrap: anywhere; }
.proposal-job p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.proposal-job .field-hint { margin: 0 0 18px; font-size: 13px; }
.proposal-job .button { min-height: 42px; font-size: 14px; }
.activity-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px var(--orange-soft); }
.clarification-list { display: grid; gap: 10px; margin: 15px 0 0; padding-left: 20px; font-size: 15px; line-height: 1.5; }
.uncertain-request { padding: 20px 24px; border: 1px solid #e9c18b; border-radius: 16px; background: #fff5e2; }
.uncertain-request strong { font-size: 15px; }
.uncertain-request p { margin: 10px 0 17px; color: #76603c; font-size: 14px; line-height: 1.5; }
.uncertain-request > div { display: flex; flex-wrap: wrap; gap: 10px; }
.uncertain-request .button { min-height: 40px; font-size: 13px; }

@media (max-width: 900px) {
  .proposal-builder { grid-template-columns: minmax(0, 1fr); }
  .proposal-builder-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .topbar { padding-inline: 22px; }
  .topbar nav { gap: 22px; }
  .profile-name { max-width: 100px; }
  .admin-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-environment dl { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .unit-card { grid-template-columns: 58px 1fr; }
  .choices { grid-column: 2; grid-template-columns: repeat(2, 1fr); }
  .summary-strip { grid-template-columns: repeat(2, 1fr); }
  .summary-strip > div:nth-child(2) { border-right: 0; }
  .summary-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .comparison-wrap { overflow-x: auto; }
  .comparison-table { min-width: 850px; }
}

@media (max-width: 680px) {
  .proposal-builder-aside { grid-template-columns: minmax(0, 1fr); }
  .proposal-form-card, .proposal-job { padding: 22px 20px; }
  .proposal-dimensions { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .proposal-submit-row { align-items: stretch; flex-direction: column; }
  .proposal-submit-row > p { flex: 0 0 auto; }
  .proposal-submit-row .button { width: 100%; }
  .topbar { grid-template-columns: 1fr auto; height: auto; min-height: 100px; padding: 12px 16px 0; }
  .topbar nav { display: flex; grid-column: 1 / -1; grid-row: 2; height: 42px; gap: 24px; margin-top: 5px; }
  .topbar .upcoming { display: none; }
  .profile-menu { grid-row: 1; grid-column: 2; }
  .profile-name, .profile-chevron { display: none; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-brand-panel { min-height: 0; padding: 25px 28px; }
  .auth-intro, .auth-footnote { display: none; }
  .auth-form-panel { align-items: start; padding: 38px 28px 60px; }
  .admin-counts { flex-wrap: wrap; gap: 12px 23px; }
  .admin-counts > div { flex-direction: column; gap: 0; }
  .admin-counts span { font-size: 13px; }
  .admin-table { min-width: 660px; }
  .admin-section > header, .admin-environment { padding: 20px; }
  .create-user-form { grid-template-columns: 1fr; padding: 0 20px 20px; }
  .create-user-footer { align-items: stretch; flex-direction: column; gap: 14px; }
  .page, .page-compact { width: min(100% - 28px, 1120px); padding-top: 34px; }
  .hero-row, .proposal-head { align-items: flex-start; flex-direction: column; }
  .project-grid { grid-template-columns: 1fr; }
  .unit-card { grid-template-columns: 1fr; padding: 18px; }
  .unit-number { width: 50px; height: 50px; }
  .choices { grid-column: 1; grid-template-columns: 1fr; }
  .match-card { align-items: flex-start; }
  .comparison-wrap { margin-inline: -2px; border-radius: 14px; }
  .comparison-table { min-width: 780px; }
  .save-bar { align-items: stretch; flex-direction: column; bottom: 8px; }
  .save-bar .button { width: 100%; }
}
