:root {
  --ink: #17131f;
  --muted: #746f7d;
  --line: #e9e5ed;
  --paper: #fbf9fc;
  --white: #ffffff;
  --purple: #6d3ee8;
  --purple-dark: #3b176f;
  --purple-soft: #eee7ff;
  --green: #1f9d68;
  --red: #c55267;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.modal-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.copy-fallback { position: fixed; left: -9999px; top: -9999px; }

.brand-mark { font-size: 25px; font-weight: 900; letter-spacing: -1.5px; padding: 0 12px; }
.brand-mark span { color: #a981ff; }
.brand-mark.dark { color: var(--ink); padding: 0; }
.eyebrow { margin: 0 0 9px; color: var(--purple); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.eyebrow.light { color: #cdbbff; }

.primary-button, .secondary-button, .ghost-button { border: 0; border-radius: 12px; min-height: 46px; padding: 0 20px; font-weight: 750; transition: transform .2s, box-shadow .2s, opacity .2s; }
.primary-button { color: white; background: var(--purple); box-shadow: 0 10px 24px #6d3ee82b; }
.primary-button:hover, .secondary-button:hover { transform: translateY(-1px); box-shadow: 0 13px 28px #6d3ee83d; }
.primary-button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.secondary-button { color: var(--purple); background: var(--purple-soft); }
.ghost-button { background: transparent; color: var(--muted); }
.full-button { width: 100%; }
.button-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

label { display: flex; flex-direction: column; gap: 7px; color: #4f4858; font-size: 11px; font-weight: 700; }
input, textarea { width: 100%; border: 1px solid #ded9e3; border-radius: 10px; background: #fdfcfe; color: var(--ink); padding: 11px 12px; outline: none; transition: border-color .2s, box-shadow .2s; font-weight: 450; }
input:focus, textarea:focus { border-color: #9c79ed; box-shadow: 0 0 0 3px #6d3ee812; }
textarea { resize: vertical; line-height: 1.5; }
label small { color: var(--muted); font-weight: 450; }
fieldset { border: 0; padding: 25px 0 0; margin: 0; }
fieldset + fieldset { margin-top: 24px; border-top: 1px solid var(--line); }
legend { padding: 0; font-size: 13px; font-weight: 800; margin-bottom: 15px; }
fieldset > label + label { margin-top: 13px; }
.form-grid { display: grid; gap: 13px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.error-banner { background: #fff1f3; color: #a53d52; padding: 11px 14px; border-radius: 10px; font-size: 12px; margin: 14px 0; }
.error-banner p { margin: 0; }
.error-banner p + p { margin-top: 5px; }
.error-banner.centered { max-width: 520px; margin: 20px auto 0; text-align: center; }
.flash { margin-top: 18px; border-radius: 12px; padding: 13px 16px; font-size: 12px; font-weight: 650; }
.flash.success { background: #e9f8f1; color: #18704b; }
.flash.error { background: #fff1f3; color: #a53d52; }

/* Instalação */
.install-body { min-height: 100vh; background: linear-gradient(135deg, #f7f2fd, #fff 60%); }
.install-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(330px, .85fr) minmax(520px, 1.15fr); }
.install-copy { color: white; background: linear-gradient(145deg, #1b0e28, #431b72 62%, #6d3ee8); padding: clamp(35px, 7vw, 90px); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.install-copy::after { content: ""; position: absolute; width: 330px; height: 330px; border: 1px solid #ffffff17; border-radius: 50%; right: -170px; bottom: -120px; box-shadow: 0 0 0 55px #ffffff08, 0 0 0 110px #ffffff05; }
.install-copy .brand-mark { position: absolute; top: 35px; left: clamp(23px, 7vw, 78px); padding: 0; }
.install-copy h1 { max-width: 560px; margin: 12px 0 17px; font-size: clamp(45px, 6vw, 76px); line-height: .98; letter-spacing: -.06em; }
.install-copy > p:not(.eyebrow) { max-width: 520px; margin: 0; color: #d7c9e4; font-size: 15px; line-height: 1.8; }
.install-steps { margin-top: 45px; display: flex; flex-direction: column; gap: 13px; }
.install-steps span { color: #d9cde4; font-size: 12px; }
.install-steps b { display: inline-grid; width: 34px; height: 34px; margin-right: 10px; place-items: center; border: 1px solid #ffffff22; border-radius: 10px; color: #c7afff; font-size: 9px; }
.install-card { width: min(680px, calc(100% - 40px)); align-self: center; justify-self: center; margin: 38px 0; background: white; border: 1px solid var(--line); border-radius: 24px; padding: 28px 34px 35px; box-shadow: 0 25px 80px #3b176f14; }
.form-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.form-header.compact { padding: 0 0 20px; }
.form-header h2 { margin: 0; font-size: 26px; letter-spacing: -.035em; }
.step-badge { border-radius: 100px; padding: 7px 11px; background: var(--purple-soft); color: var(--purple); font-size: 10px; font-weight: 800; }
.installer-form fieldset:first-child { padding-top: 23px; }
.installer-form > .full-button { margin-top: 26px; }
.install-success { text-align: center; padding: 45px 20px; }
.success-icon { width: 58px; height: 58px; border-radius: 50%; background: #e8f8f0; color: var(--green); display: grid; place-items: center; margin: 0 auto 20px; font-size: 24px; font-weight: 900; }
.install-success h2 { margin: 7px 0 12px; font-size: 32px; letter-spacing: -.04em; }
.install-success > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; font-size: 13px; }
.install-success .button-link { margin-top: 16px; }

/* Login */
.login-body { min-height: 100vh; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.login-brand-panel { color: white; background: linear-gradient(145deg, #180d23, #3a1764 58%, #7040e7); padding: clamp(35px, 7vw, 95px); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-brand-panel::after { content: ""; position: absolute; width: 430px; height: 430px; border-radius: 50%; border: 1px solid #ffffff19; right: -180px; top: -200px; box-shadow: 0 0 0 65px #ffffff07, 0 0 0 130px #ffffff04; }
.login-brand-panel .brand-mark { padding: 0; }
.login-brand-panel h1 { max-width: 620px; margin: 12px 0 20px; font-size: clamp(50px, 7vw, 90px); line-height: .96; letter-spacing: -.065em; }
.login-brand-panel p:not(.eyebrow) { max-width: 520px; color: #dacde5; font-size: 15px; line-height: 1.8; }
.login-brand-panel small { color: #a997b8; font-size: 10px; }
.login-card-wrap { display: grid; place-items: center; padding: 30px; }
.login-card { width: min(420px, 100%); }
.login-card h2 { margin: 10px 0 8px; font-size: 36px; letter-spacing: -.05em; }
.login-card > p:not(.eyebrow) { color: var(--muted); margin: 0 0 28px; font-size: 13px; }
.login-card label + label { margin-top: 13px; }
.login-card .full-button { margin-top: 20px; }

/* Painel */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 238px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; background: #17121f; color: white; padding: 30px 18px 22px; display: flex; flex-direction: column; }
.sidebar nav { margin-top: 54px; display: flex; flex-direction: column; gap: 8px; }
.nav-item { min-height: 46px; border-radius: 12px; display: flex; align-items: center; gap: 12px; padding: 0 13px; color: #c9c2d2; text-decoration: none; font-size: 14px; }
.nav-item span { color: #736b7d; font-size: 11px; font-weight: 700; }
.nav-item.active { background: linear-gradient(135deg, #7040e7, #5930c7); color: white; box-shadow: 0 12px 28px #5e33ce47; }
.nav-item.active span { color: #d5c5ff; }
.nav-item b { margin-left: auto; font-size: 9px; text-transform: uppercase; color: #756d7e; }
.nav-item.locked { opacity: .66; cursor: not-allowed; }
.nav-divider { height: 1px; background: #2c2534; margin: 8px 10px; }
.sidebar-profile { margin-top: auto; display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; border-top: 1px solid #2e2735; padding: 20px 8px 0; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--purple); display: grid; place-items: center; font-weight: 800; }
.sidebar-profile strong, .sidebar-profile small { display: block; }
.sidebar-profile strong { font-size: 13px; }
.sidebar-profile small { color: #8f8798; font-size: 10px; margin-top: 2px; }
.sidebar-profile a { color: #8f8798; font-size: 11px; text-decoration: none; }
.dashboard { padding: 42px clamp(24px, 5vw, 70px) 64px; min-width: 0; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.topbar h1 { margin: 0; font-size: clamp(31px, 4vw, 46px); letter-spacing: -.04em; }
.topbar p:not(.eyebrow) { color: var(--muted); margin: 8px 0 0; font-size: 14px; }
.metric-grid { margin-top: 34px; display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 13px; }
.metric-card { background: white; min-height: 146px; border: 1px solid var(--line); border-radius: 20px; padding: 23px; display: flex; flex-direction: column; justify-content: center; box-shadow: 0 12px 35px #2d153308; }
.metric-card span, .metric-card small { color: var(--muted); font-size: 12px; }
.metric-card strong { font-size: 30px; letter-spacing: -.04em; margin: 8px 0 5px; }
.metric-card.highlight { color: white; border: 0; background: linear-gradient(135deg, #34105f, #6c3fe1 82%); position: relative; overflow: hidden; }
.metric-card.highlight::after { content: ""; position: absolute; width: 160px; height: 160px; border: 1px solid #ffffff20; border-radius: 50%; right: -35px; top: -70px; box-shadow: 0 0 0 25px #ffffff08; }
.metric-card.highlight span, .metric-card.highlight small { color: #d9caff; }
.metric-card.highlight strong { font-size: 35px; }
.proposal-panel { margin-top: 18px; background: white; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 14px 38px #2d153308; }
.panel-heading { min-height: 91px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; font-size: 18px; }
.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.filter-row { background: #f5f2f6; padding: 4px; border-radius: 10px; display: flex; gap: 3px; }
.filter-row a { border-radius: 8px; padding: 8px 12px; color: var(--muted); font-size: 11px; text-decoration: none; }
.filter-row a.selected { color: var(--ink); background: white; box-shadow: 0 3px 10px #2d153312; font-weight: 700; }
.empty-state { padding: 62px 24px 70px; text-align: center; }
.empty-symbol { width: 54px; height: 54px; border-radius: 17px; margin: 0 auto 18px; display: grid; place-items: center; color: var(--purple); background: var(--purple-soft); font-size: 22px; }
.empty-state h3 { margin: 0 0 8px; font-size: 18px; }
.empty-state p { max-width: 440px; margin: 0 auto 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.proposal-list { padding: 4px 20px 12px; }
.proposal-row { min-height: 82px; display: grid; grid-template-columns: 42px minmax(200px, 1.5fr) minmax(100px, .6fr) 90px 102px 34px; align-items: center; gap: 14px; border-bottom: 1px solid #f0edf2; }
.proposal-row:last-child { border-bottom: 0; }
.proposal-code { width: 36px; height: 36px; border-radius: 11px; background: var(--purple-soft); color: var(--purple); display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.proposal-main strong, .proposal-main span { display: block; }
.proposal-main strong { font-size: 13px; }
.proposal-main span { color: var(--muted); margin-top: 4px; font-size: 10px; }
.proposal-value span, .proposal-value strong { display: block; }
.proposal-value span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.proposal-value strong { margin-top: 3px; font-size: 13px; }
.status-pill { justify-self: start; border-radius: 100px; padding: 7px 10px; font-size: 10px; font-weight: 700; }
.status-pill.sent { background: #fff4dc; color: #a66a00; }
.status-pill.accepted { background: #e6f7ef; color: #18704b; }
.status-pill.refused { background: #fdecef; color: #a43d51; }
.status-pill.draft { background: #eeebf0; color: #6f6876; }
.copy-button { border: 1px solid var(--line); background: white; border-radius: 9px; padding: 8px 10px; color: #5f5868; font-size: 10px; }
.open-link { text-decoration: none; width: 30px; height: 30px; background: #f5f1fa; color: var(--purple); border-radius: 9px; display: grid; place-items: center; }

/* Formulário e modais */
.modal-backdrop, .decision-modal { position: fixed; inset: 0; z-index: 50; background: #150d20a6; backdrop-filter: blur(5px); display: none; place-items: center; padding: 18px; }
.modal-backdrop.is-open, .decision-modal.is-open { display: grid; }
.proposal-form-card { width: min(820px, 100%); max-height: min(90vh, 900px); background: white; border-radius: 22px; overflow: hidden; box-shadow: 0 35px 100px #130b1e66; }
.proposal-form-card > .form-header { padding: 0 28px; min-height: 92px; }
.close-button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f2eef5; color: #6f6777; font-size: 21px; }
.proposal-form-card form { display: flex; flex-direction: column; max-height: calc(min(90vh, 900px) - 92px); }
.form-scroll { overflow-y: auto; padding: 4px 28px 28px; }
.legend-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.legend-row legend { margin: 0; }
.legend-row button { border: 0; background: transparent; color: var(--purple); font-size: 11px; font-weight: 750; }
.service-editor-list { display: flex; flex-direction: column; gap: 10px; }
.service-editor { border: 1px solid var(--line); border-radius: 14px; padding: 15px; display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.service-number { width: 31px; height: 31px; border-radius: 9px; background: var(--purple-soft); color: var(--purple); display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.service-fields > label + label { margin-top: 10px; }
.service-values { display: grid; grid-template-columns: 120px 170px 1fr; gap: 10px; align-items: end; margin-top: 10px; }
.remove-item { justify-self: start; margin-bottom: 10px; border: 0; background: transparent; color: var(--red); font-size: 10px; }
.form-total { margin-top: 12px; border-radius: 12px; padding: 16px; background: #241334; color: white; display: flex; align-items: center; justify-content: space-between; }
.form-total span { color: #c9b8dd; font-size: 11px; }
.form-total strong { font-size: 22px; }
.form-footer { border-top: 1px solid var(--line); padding: 16px 28px; display: flex; justify-content: flex-end; gap: 8px; background: white; }

/* Proposta pública */
.public-page { min-height: 100vh; background: white; }
.public-nav { max-width: 1140px; height: 92px; margin: auto; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; }
.proposal-label { text-align: right; }
.proposal-label span, .proposal-label strong { display: block; }
.proposal-label span { color: var(--muted); font-size: 9px; letter-spacing: .15em; }
.proposal-label strong { margin-top: 4px; font-size: 12px; }
.proposal-hero { min-height: 430px; color: white; background: linear-gradient(120deg, #1d0e2b, #421874 55%, #7546e7); padding: 86px max(30px, calc((100vw - 1080px) / 2)); position: relative; overflow: hidden; }
.hero-orb { position: absolute; width: 390px; height: 390px; right: -60px; bottom: -240px; border: 1px solid #ffffff21; border-radius: 50%; box-shadow: 0 0 0 60px #ffffff08, 0 0 0 120px #ffffff05; }
.proposal-hero > *:not(.hero-orb) { position: relative; z-index: 1; }
.proposal-hero > p:first-of-type { color: #cdbbff; font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.proposal-hero h1 { max-width: 760px; margin: 21px 0 8px; font-size: clamp(47px, 8vw, 82px); line-height: .98; letter-spacing: -.055em; }
.proposal-hero .contact-name { color: #d8cae9; font-size: 15px; }
.hero-meta { position: absolute !important; bottom: 37px; display: flex; gap: 32px; color: #c5b5d7; font-size: 10px; }
.proposal-document { max-width: 1080px; margin: auto; padding: 90px 30px; }
.proposal-intro { max-width: 710px; }
.proposal-intro h2 { margin: 10px 0 18px; font-size: clamp(33px, 5vw, 55px); line-height: 1.05; letter-spacing: -.05em; }
.proposal-intro > p:last-child { color: var(--muted); font-size: 16px; line-height: 1.8; }
.scope-block, .terms-block { margin-top: 100px; }
.section-title { display: flex; align-items: flex-start; gap: 16px; }
.section-title > span { width: 38px; height: 38px; border-radius: 10px; background: var(--purple-soft); color: var(--purple); display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.section-title p { margin: 0 0 5px; color: var(--purple); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.section-title h2 { margin: 0; font-size: 26px; letter-spacing: -.035em; }
.scope-list { margin-top: 31px; border-top: 1px solid var(--line); }
.scope-item { display: grid; grid-template-columns: 55px 1fr auto; gap: 18px; align-items: center; min-height: 132px; border-bottom: 1px solid var(--line); }
.scope-index { color: #b3abbc; font-size: 12px; font-weight: 700; }
.scope-item h3 { margin: 0; font-size: 18px; }
.scope-item p { max-width: 630px; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.scope-price { text-align: right; }
.scope-price small, .scope-price strong { display: block; }
.scope-price small { color: var(--muted); font-size: 9px; margin-bottom: 3px; }
.scope-price strong { font-size: 17px; }
.investment-block { margin-top: 100px; min-height: 300px; border-radius: 28px; color: white; background: linear-gradient(120deg, #1d0f2a, #4b2472); padding: clamp(30px, 6vw, 65px); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; position: relative; overflow: hidden; }
.investment-block::after { content: ""; position: absolute; width: 240px; height: 240px; left: 35%; bottom: -185px; border: 1px solid #ffffff15; border-radius: 50%; box-shadow: 0 0 0 45px #ffffff06; }
.investment-block h2 { max-width: 470px; margin: 10px 0 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; letter-spacing: -.045em; }
.investment-value { min-width: 260px; border-left: 1px solid #ffffff23; padding-left: 45px; }
.investment-value span, .investment-value strong, .investment-value small { display: block; }
.investment-value span, .investment-value small { color: #cdbddb; font-size: 11px; }
.investment-value strong { margin: 7px 0; font-size: clamp(34px, 5vw, 48px); letter-spacing: -.05em; }
.terms-grid { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.terms-grid article { background: var(--paper); border: 1px solid var(--line); border-radius: 15px; padding: 20px; }
.terms-grid article.wide { grid-column: 1 / -1; }
.terms-grid span, .terms-grid strong { display: block; }
.terms-grid span { color: var(--purple); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.terms-grid strong { margin-top: 8px; font-size: 13px; line-height: 1.6; }
.decision-block { margin-top: 100px; border-top: 1px solid var(--line); padding-top: 80px; text-align: center; }
.decision-block h2 { margin: 8px 0; font-size: clamp(32px, 5vw, 50px); letter-spacing: -.05em; }
.decision-block > p:not(.eyebrow) { color: var(--muted); font-size: 13px; }
.decision-buttons { margin-top: 28px; display: flex; justify-content: center; gap: 10px; }
.accept-button, .refuse-button, .refuse-confirm { border-radius: 12px; min-height: 50px; padding: 0 24px; font-weight: 750; }
.accept-button { border: 0; color: white; background: var(--purple); box-shadow: 0 12px 28px #6d3ee833; }
.accept-button span { margin-left: 15px; }
.refuse-button { border: 1px solid var(--line); color: #6a6372; background: white; }
.decision-form { width: min(480px, 100%); padding: 30px; background: white; border-radius: 20px; position: relative; text-align: left; box-shadow: 0 30px 90px #150d2040; }
.decision-form .close-button { position: absolute; right: 22px; top: 22px; }
.decision-form h3 { margin: 8px 0; font-size: 25px; letter-spacing: -.035em; }
.decision-form > p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.6; margin-bottom: 20px; }
.decision-form label + label { margin-top: 12px; }
.decision-form > button:last-child { margin-top: 17px; }
.refuse-confirm { border: 0; background: #2b2531; color: white; box-shadow: none; }
.decision-complete { margin-top: 100px; padding: 70px 30px; border-radius: 25px; text-align: center; }
.decision-complete.success { background: #effaf5; }
.decision-complete.declined { background: #f7f4f7; }
.decision-icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: white; color: var(--green); font-weight: 900; box-shadow: 0 10px 24px #15472e12; }
.decision-complete h2 { margin: 9px 0; font-size: 35px; letter-spacing: -.04em; }
.decision-complete > p:last-child { color: var(--muted); font-size: 13px; }
.public-footer { max-width: 1080px; min-height: 130px; margin: auto; padding: 30px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; align-items: center; }
.public-footer p { color: var(--muted); font-size: 12px; text-align: right; }
.public-footer small { color: #aaa2b1; font-size: 9px; grid-column: 2; text-align: right; }

@media (max-width: 1050px) {
  .install-shell { grid-template-columns: .8fr 1.2fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .proposal-row { grid-template-columns: 42px 1fr 100px 90px 34px; }
  .proposal-value { display: none; }
  .investment-block { grid-template-columns: 1fr; }
  .investment-value { border-left: 0; border-top: 1px solid #ffffff23; padding: 25px 0 0; }
}

@media (max-width: 760px) {
  .install-shell, .login-shell { display: block; }
  .install-copy { min-height: 470px; padding: 95px 25px 55px; }
  .install-copy .brand-mark { left: 25px; top: 28px; }
  .install-copy h1 { font-size: 52px; }
  .install-card { width: calc(100% - 24px); margin: -24px auto 24px; position: relative; z-index: 2; padding: 22px 18px 28px; }
  .login-brand-panel { min-height: 390px; padding: 28px 23px 55px; }
  .login-brand-panel h1 { font-size: 50px; }
  .login-brand-panel small { display: none; }
  .login-card-wrap { padding: 45px 22px; }
  .login-card h2 { font-size: 32px; }
  .app-shell { display: block; padding-bottom: 78px; }
  .sidebar { position: fixed; z-index: 20; top: auto; bottom: 0; width: 100%; height: 70px; padding: 8px 14px; flex-direction: row; align-items: center; border-top: 1px solid #2d2535; }
  .sidebar > .brand-mark, .sidebar-profile, .nav-divider { display: none; }
  .sidebar nav { margin: 0; width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .nav-item { min-height: 53px; padding: 6px; justify-content: center; flex-direction: column; gap: 2px; font-size: 10px; }
  .nav-item span { font-size: 8px; }
  .nav-item b { display: none; }
  .dashboard { padding: 25px 16px 40px; }
  .topbar { align-items: flex-start; }
  .topbar .primary-button { width: 48px; padding: 0; font-size: 0; }
  .topbar .primary-button::after { content: "+"; font-size: 22px; }
  .metric-grid { margin-top: 24px; grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { min-height: 125px; padding: 17px; }
  .metric-card.highlight { grid-column: 1 / -1; }
  .metric-card strong { font-size: 25px; }
  .metric-grid .metric-card:last-child { grid-column: 1 / -1; min-height: 105px; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
  .filter-row { width: 100%; overflow-x: auto; }
  .filter-row a { flex: 1; text-align: center; white-space: nowrap; }
  .proposal-list { padding: 5px 13px 10px; }
  .proposal-row { padding: 13px 0; grid-template-columns: 36px 1fr auto; gap: 10px; }
  .status-pill { grid-column: 2; }
  .copy-button { grid-column: 2; justify-self: start; }
  .open-link { grid-row: 1 / 3; grid-column: 3; }
  .proposal-form-card { height: calc(100dvh - 14px); max-height: none; border-radius: 18px 18px 0 0; align-self: end; }
  .proposal-form-card form { max-height: calc(100dvh - 106px); }
  .proposal-form-card > .form-header, .form-scroll, .form-footer { padding-left: 18px; padding-right: 18px; }
  .form-grid.two { grid-template-columns: 1fr; }
  .service-editor { grid-template-columns: 1fr; }
  .service-values { grid-template-columns: 1fr 1fr; }
  .remove-item { grid-column: 1 / -1; margin: 0; }
  .public-nav { height: 74px; padding: 0 20px; }
  .proposal-hero { min-height: 400px; padding: 70px 20px; }
  .proposal-hero h1 { font-size: clamp(43px, 15vw, 64px); }
  .hero-meta { bottom: 28px; gap: 12px; flex-direction: column; }
  .proposal-document { padding: 65px 20px; }
  .scope-block, .terms-block, .investment-block, .decision-block, .decision-complete { margin-top: 72px; }
  .scope-item { grid-template-columns: 35px 1fr; padding: 22px 0; }
  .scope-price { grid-column: 2; text-align: left; }
  .investment-block { border-radius: 21px; }
  .terms-grid { grid-template-columns: 1fr; }
  .terms-grid article.wide { grid-column: auto; }
  .decision-buttons { flex-direction: column; }
  .decision-buttons button { width: 100%; }
  .public-footer { grid-template-columns: 1fr; gap: 4px; }
  .public-footer p, .public-footer small { grid-column: 1; text-align: left; }
}
