@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');

:root {
  --ink: #35353c;
  --muted: #736a75;
  --green: #913d80;
  --sage: #f9edf6;
  --line: #eee1e9;
  --cream: #fffbfd;
  --white: #fff;
  --yellow: #ffcfb9;
  --red: #b33254;
  --shadow: 0 6px 26px #963d7a08;
  --brand-coral: #f77c78;
  --brand-peach: #ffc2a9;
  --brand-gradient: linear-gradient(120deg, #8e3d82, #a64482);
  --accent-gradient: linear-gradient(110deg, #934083, #e3799d 58%, #ffac92);
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(ellipse at 100% 0, #fff0ec 0, transparent 55%), var(--cream); }
::selection { background: #f4cfe7; color: #54244c; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button, a, input, select, textarea { outline-offset: 4px; }
button:focus-visible, a:focus-visible { outline: 3px solid #b25b9b; }
button:disabled { opacity: .48; cursor: not-allowed; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
input[type=radio], input[type=checkbox] { accent-color: var(--green); width: 18px; height: 18px; flex-shrink: 0; }

.sidebar { position: fixed; inset: 0 auto 0 0; width: 244px; background: #fff; border-right: 1px solid var(--line); padding: 34px 22px 24px; display: flex; flex-direction: column; z-index: 20; }
/* The original artwork is framed by its SVG viewBox, without changing the image. */
.brand { display: flex; align-items: center; min-height: 48px; }
.brand-art { display: block; width: 100%; height: auto; max-width: 100%; fill: none; stroke: none; overflow: hidden; flex-shrink: 1; mix-blend-mode: multiply; }
.brand-art-full { aspect-ratio: 1690 / 400; }
.brand .brand-art-full { width: 200px; }
.brand-art-symbol { display: none; width: 44px; aspect-ratio: 355 / 400; }
.brand-subtitle { font-size: 11px; letter-spacing: .15px; margin: 11px 0 38px; color: var(--muted); line-height: 1.6; text-align: center; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin: 0 10px 13px; line-height: 1.6; }
.nav-button { border: 0; background: transparent; color: #716875; display: flex; width: 100%; min-height: 48px; align-items: center; gap: 11px; text-align: left; font-size: 13px; font-weight: 550; border-radius: 10px; padding: 12px; margin-bottom: 7px; }
.nav-button.active { background: linear-gradient(110deg, #f7e9f5, #fff0e9); color: #853772; box-shadow: inset 3px 0 #a54a8c; font-weight: 700; }
.nav-button:hover { background: #fcf1f8; }
.nav-count { margin-left: auto; border-radius: 6px; background: #ebcfe4; padding: 3px 6px; font-size: 11px; }
.profile { border-top: 1px solid var(--line); display: grid; grid-template-columns: 35px minmax(0, 1fr); align-items: start; gap: 8px 10px; margin-top: 12px; padding-top: 12px; min-width: 0; }
.profile-details { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.profile-signout { grid-column: 1 / -1; width: 100%; }
.avatar { display: grid; place-items: center; width: 35px; height: 35px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(135deg, #f6d9ed, #ffe1d4); color: #8e3c77; font-size: 12px; font-weight: 700; }
.profile strong { font-size: 12px; display: block; line-height: 1.5; }
.profile small { display: block; font-size: 11px; line-height: 1.45; color: var(--muted); }
/* Reserve the footer before allocating the remaining viewport to navigation. */
@media (min-width: 681px) {
  .sidebar { height: 100vh; height: 100dvh; overflow: hidden; }
  .sidebar > .brand, .sidebar > .brand-subtitle, .sidebar > .profile { flex: 0 0 auto; }
  .sidebar > nav { flex: 1 1 0; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; padding: 4px; margin: -4px; }
}
.workspace { margin-left: 244px; min-width: 0; }
.topbar { min-height: 77px; padding: 16px 38px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; background: #ffffffed; font-size: 12px; color: var(--muted); }
.breadcrumb { display: flex; flex-wrap: wrap; min-width: 0; gap: 11px; align-items: center; }
.breadcrumb b { color: #5f5564; font-weight: 550; }
.top-right { display: flex; flex-wrap: wrap; min-width: 0; max-width: 100%; margin-left: auto; gap: 17px; align-items: center; justify-content: flex-end; }
.local-status { display: flex; flex: 0 1 320px; min-width: 0; max-width: 340px; align-items: flex-start; gap: 7px; font-size: 12px; line-height: 1.6; }
.local-status svg { width: 15px; height: 15px; margin-top: 2px; }
.save-status-copy { display: block; min-width: 0; overflow-wrap: anywhere; }
#save-state { display: block; }
.save-status-detail { display: block; margin-top: 3px; font-size: 11px; line-height: 1.6; color: var(--muted); }
#retry-save { max-width: 100%; white-space: normal; }
#retry-save[hidden], #save-detail[hidden] { display: none !important; }
main { max-width: 1490px; margin: auto; padding: 34px 38px 48px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; gap: 20px; }
.page-heading > div { min-width: 0; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: #a24687; margin: 0 0 10px; line-height: 1.6; }
h1 { font-family: Manrope, sans-serif; font-size: 30px; letter-spacing: -1.2px; font-weight: 750; margin: 0; line-height: 1.3; overflow-wrap: anywhere; }
h1 + p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 9px 0 0; }
h2 { font-family: Manrope, sans-serif; letter-spacing: -.5px; font-size: 19px; font-weight: 750; margin: 0; line-height: 1.4; }
h3 { font-size: 14px; margin: 0; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid var(--green); background: var(--brand-gradient); color: #fff; border-radius: 9px; padding: 12px 17px; font-size: 13px; font-weight: 600; text-decoration: none; min-height: 46px; line-height: 1.4; white-space: nowrap; }
.button:hover { filter: brightness(1.06); }
.button:active { filter: brightness(.97); }
.button svg { width: 17px; height: 17px; }
.button.secondary { background: white; border-color: #e4cddd; color: #873c77; }
.button.ghost { background: transparent; color: var(--green); border-color: transparent; }
.button.small { padding: 9px 12px; font-size: 12px; min-height: 44px; }
.button.wide { width: 100%; }
.icon-button { border: 1px solid var(--line); background: white; border-radius: 8px; min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; color: var(--muted); font-size: 23px; flex-shrink: 0; }
.demo-banner { border: 1px solid #f3dacc; background: #fff4ed; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 16px; border-radius: 11px; font-size: 12px; color: #855d45; margin-bottom: 23px; }
.demo-banner > span { display: flex; align-items: center; gap: 10px; line-height: 1.7; }
.text-link { background: transparent; padding: 8px 0; min-height: 44px; border: 0; color: var(--green); font-size: 12px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 24px; border: 1px solid var(--line); background: white; border-radius: 12px; overflow: hidden; }
.step { position: relative; display: flex; min-width: 0; min-height: 74px; align-items: center; gap: 10px; border: 0; background: white; padding: 15px; text-align: left; color: #746976; font-size: 12px; font-weight: 650; line-height: 1.4; border-right: 1px solid var(--line); }
.step:last-child { border: 0; }
.step.active { background: linear-gradient(115deg, #f9edf7, #fff3ed); color: #873979; }
.step.active:after { content: ''; height: 3px; background: var(--accent-gradient); bottom: 0; left: 0; right: 0; position: absolute; }
.step-index { width: 27px; height: 27px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid #e9d5e5; border-radius: 50%; font-size: 12px; }
.step.active .step-index { background: var(--brand-gradient); border-color: #913d80; color: white; }
.step small { display: block; font-size: 11px; font-weight: 400; margin-top: 4px; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 306px; gap: 24px; align-items: start; }
.form-layout > *, .summary > * { min-width: 0; }
.panel { background: white; border: 1px solid var(--line); border-radius: 15px; padding: 25px; box-shadow: var(--shadow); margin-bottom: 18px; min-width: 0; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.panel-title p { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 7px 0 0; }
.section-icon { color: #aa4a90; background: linear-gradient(135deg, #f5e6f3, #ffe8e0); width: 37px; height: 37px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; }
.section-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tag { font-size: 11px; background: #faf0f8; color: #8c567e; padding: 6px 8px; border-radius: 6px; white-space: nowrap; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 25px; }
.service-card { position: relative; border: 1px solid var(--line); background: white; border-radius: 11px; padding: 17px 12px; text-align: left; color: #776878; min-width: 0; }
.service-card > svg { margin-bottom: 13px; width: 24px; height: 24px; }
.service-card strong { display: block; font-size: 12px; margin-bottom: 6px; line-height: 1.5; }
.service-card small { font-size: 12px; line-height: 1.5; display: block; color: var(--muted); }
.service-card.selected { border-color: #b968a6; background: linear-gradient(135deg, #fdf0f9, #fff6f1); color: #8a3b7a; box-shadow: 0 0 0 1px #b968a614; }
.radio-dot { position: absolute; top: 13px; right: 12px; width: 14px; height: 14px; border: 1px solid #dac8d6; border-radius: 50%; }
.selected .radio-dot { border: 4px solid #a34b91; background: white; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 17px; }
.field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { min-width: 0; display: block; }
.field > span, .field-title { display: block; font-size: 12px; font-weight: 600; margin-bottom: 8px; color: #5e5362; line-height: 1.55; }
.field .optional { font-weight: 400; color: var(--muted); font-size: 12px; }
.field input, .field select, .field textarea { width: 100%; max-width: 100%; border: 1px solid #e2d1de; border-radius: 8px; background: #fff; padding: 12px; color: var(--ink); font-size: 14px; min-height: 46px; line-height: 1.45; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid #d68cbd38; border-color: #b55c9f; }
.field input[aria-invalid="true"] { border-color: var(--red); background: #fffafb; }
.field input[aria-invalid="true"]:focus { outline-color: #d8899b40; }
.field input:disabled { background: #f8f2f7; color: #786977; opacity: 1; }
.field input::placeholder, .field textarea::placeholder { color: #93808f; opacity: 1; }
.field input[type=number] { appearance: textfield; }
.field input::-webkit-inner-spin-button { opacity: 1; }
.field small, .help { display: block; font-size: 12px; line-height: 1.7; color: var(--muted); margin: 7px 0 0; }
.input-wrap { position: relative; min-width: 0; }
.input-wrap input { padding-right: 45px; }
input.money-input { font-variant-numeric: tabular-nums; }
.input-wrap input.money-input { padding-right: 12px; }
.unit { position: absolute; right: 12px; top: 15px; font-size: 12px; color: #8b7188; pointer-events: none; }
.divider { height: 1px; background: var(--line); margin: 25px 0; }
.choice-row { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-bottom: 17px; }
.radio-label { display: inline-flex; min-height: 44px; gap: 8px; align-items: center; font-size: 12px; color: #716472; cursor: pointer; line-height: 1.6; }
.estimate-strip { display: flex; align-items: flex-start; gap: 11px; background: linear-gradient(120deg, #fbf0f8, #fff6f0); border: 1px solid #f0dfe9; padding: 13px 15px; border-radius: 10px; font-size: 12px; line-height: 1.7; color: #80647b; margin-top: 18px; }
.estimate-strip svg { width: 18px; height: 18px; margin-top: 2px; }
.estimate-strip strong { color: #883a77; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 21px; }
.chip { font-size: 12px; border: 1px solid #e9d9e4; border-radius: 8px; background: white; color: #7e6b7c; padding: 10px 12px; min-height: 44px; display: flex; gap: 7px; align-items: center; }
.chip.selected { color: #8b3b78; background: #f9eaf5; border-color: #d49bc3; }
.chip svg { width: 14px; height: 14px; }
.bottom-actions { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin: 23px 0; }
.bottom-actions small { font-size: 12px; color: var(--muted); }
.summary { position: sticky; top: 24px; }
.price-card { background: linear-gradient(140deg, #723c84, #8a3e79 66%, #97416f); color: #fff; border-radius: 15px; padding: 25px 23px; position: relative; overflow: hidden; box-shadow: 0 10px 28px #8e3f8024; }
.price-card:after { content: ''; position: absolute; width: 170px; height: 170px; right: -95px; top: -100px; border-radius: 50%; border: 28px solid #ffb49f1c; pointer-events: none; }
.price-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; color: #f8e8f4; }
.price-heading svg { width: 18px; height: 18px; color: #f7c5d7; }
.price-value { font-family: Manrope, sans-serif; font-size: clamp(26px, 2.4vw, 34px); font-weight: 650; letter-spacing: -1.2px; margin: 18px 0 7px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.price-caption { color: #f2dbe9; font-size: 12px; line-height: 1.6; }
.price-line { height: 1px; background: #ffffff24; margin: 22px 0 15px; }
.breakdown-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; font-size: 12px; line-height: 1.6; margin: 12px 0; color: #f5e0ef; }
.breakdown-row strong { font-weight: 550; white-space: nowrap; color: #fff7fc; }
.breakdown-row.subtotal { border-top: 1px solid #ffffff26; padding-top: 14px; margin-top: 16px; color: #fff4fb; }
.card-footer { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; line-height: 1.6; color: #f6e4f0; border: 1px solid #ffffff26; background: #ffffff08; padding: 11px; border-radius: 8px; margin-top: 18px; }
.card-footer svg { width: 15px; height: 15px; margin-top: 2px; }
.mini-card { padding: 20px; background: white; border: 1px solid var(--line); border-radius: 13px; margin-top: 16px; }
.mini-title { font-size: 12px; font-weight: 650; display: flex; align-items: center; gap: 8px; margin-bottom: 17px; }
.mini-title svg { width: 17px; height: 17px; color: #a34c90; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mini-stat strong { font-family: Manrope, sans-serif; font-size: 23px; font-weight: 600; }
.mini-stat span { display: block; font-size: 12px; line-height: 1.5; color: var(--muted); margin-top: 5px; }
.mini-note { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.soft-note { font-size: 12px; line-height: 1.7; color: var(--muted); display: flex; gap: 8px; padding: 16px 5px; }
.soft-note svg { width: 16px; height: 16px; margin-top: 3px; }
.stage { border: 1px solid #eedfe9; border-radius: 11px; padding: 17px; margin-top: 13px; background: #fffdfe; }
.stage-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.stage-head strong { font-size: 13px; line-height: 1.5; }
.stage-meta { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 10px 0 0; }
.stage .field-grid { gap: 12px; }
.stage .field > span { font-size: 12px; }
.stage .field input, .stage .field select { font-size: 14px; padding: 11px; min-width: 0; }
.stage-total { font-size: 13px; font-weight: 650; color: #913e80; white-space: nowrap; }
.stage-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 13px; }
.section-note { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 0 0 17px; }
.inline-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.error-box { background: #fff0f3; color: #a73553; border: 1px solid #f0cbd6; padding: 14px; border-radius: 10px; font-size: 12px; line-height: 1.7; margin-bottom: 18px; }
.warning { background: #fff5ec; border: 1px solid #f1d9c4; color: #8a623b; border-radius: 9px; padding: 13px; font-size: 12px; line-height: 1.7; margin: 12px 0; }
.transport-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 19px; }
.transport-option { display: flex; align-items: flex-start; gap: 10px; border: 1px solid #e8d6e2; border-radius: 11px; background: #fff; padding: 15px; min-height: 88px; cursor: pointer; color: #70586c; }
.transport-option input { margin: 2px 0 0; }
.transport-option strong { display: block; font-size: 13px; line-height: 1.5; }
.transport-option small { display: block; margin-top: 5px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.transport-option:has(input:checked), .transport-option.selected { border-color: #b968a6; background: linear-gradient(130deg, #fdf0f9, #fff5ef); box-shadow: 0 0 0 1px #b968a614; }
.transport-option:has(input:focus-visible) { outline: 3px solid #d68cbd38; outline-offset: 3px; }
.transport-note { font-size: 12px; line-height: 1.7; color: #845e7a; margin: 12px 0 0; padding: 13px 15px; border-radius: 9px; background: #fcf1f8; }
.summary-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 20px 0; overflow-wrap: anywhere; }
.summary-details small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.summary-details p { font-size: 13px; line-height: 1.6; margin: 0; }
.stage-table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 20px 0; table-layout: fixed; overflow-wrap: anywhere; }
.stage-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; padding: 12px 8px 12px 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.stage-table td { padding: 14px 8px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
.stage-table td:last-child { text-align: right; padding-right: 0; }
.stage-table small { font-size: 11px; color: var(--muted); display: block; margin-top: 5px; }
.two-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.full-width { grid-column: 1 / -1; }
.searchbar { display: flex; gap: 12px; align-items: center; margin: 23px 0; }
.searchbar input, .searchbar select { background: white; border: 1px solid var(--line); border-radius: 9px; padding: 12px; min-height: 46px; font-size: 14px; color: var(--ink); }
.searchbar input { flex: 1; min-width: 0; }
.record { display: flex; gap: 15px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.record-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: linear-gradient(135deg, #f7e7f3, #ffece3); color: #ae5497; display: grid; place-items: center; }
.record-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.record h3 { font-size: 13px; line-height: 1.6; }
.record p { font-size: 12px; color: var(--muted); margin: 7px 0 0; line-height: 1.6; }
.record-price { font-size: 15px; font-weight: 650; white-space: nowrap; }
.record-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.status-pill { font-size: 11px; display: inline-block; padding: 5px 8px; border-radius: 20px; background: #f8e7f2; color: #963e7b; margin-left: 9px; }
.empty-state { text-align: center; padding: 50px 20px; }
.empty-state svg { width: 36px; height: 36px; color: #bc76a7; margin-bottom: 15px; }
.empty-state p { font-size: 13px; color: var(--muted); line-height: 1.8; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.settings-grid .panel { margin: 0; }
.page-footer { margin: 27px 0 0; text-align: center; font-size: 11px; color: var(--muted); line-height: 1.8; }
.saved-meta { font-size: 12px; color: var(--muted); }
.check-field { display: flex; min-height: 44px; gap: 9px; align-items: center; font-size: 12px; line-height: 1.6; cursor: pointer; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 13px; }
#toast { position: fixed; bottom: 24px; left: calc(50% + 122px); transform: translateX(-50%); z-index: 200; border-radius: 10px; background: #69355e; color: #fff; width: max-content; max-width: min(90vw, 520px); padding: 14px 21px; font-size: 13px; line-height: 1.6; box-shadow: 0 10px 30px #39213226; opacity: 0; pointer-events: none; transition: opacity .2s; }
#toast.visible { opacity: 1; }
dialog { border: 1px solid var(--line); padding: 0; border-radius: 15px; max-width: 850px; width: calc(100% - 32px); max-height: 92vh; max-height: 92dvh; box-shadow: 0 30px 100px #3a203333; }
dialog::backdrop { background: #362433b8; backdrop-filter: blur(3px); }
.dialog-toolbar { position: sticky; top: 0; z-index: 1; background: #fff5fa; border-bottom: 1px solid var(--line); padding: 15px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; }
.dialog-toolbar > div { display: flex; align-items: center; gap: 10px; }
#proposal-content { padding: 42px 48px; color: var(--ink); background: white; }
.proposal-brand { font-family: Manrope, sans-serif; color: var(--green); font-size: 25px; font-weight: 700; overflow-wrap: anywhere; }
.proposal-kicker { font-size: 11px; letter-spacing: 1.6px; margin: 37px 0 12px; color: #a64d8b; }
.proposal-title { font-family: Manrope, sans-serif; font-size: 30px; letter-spacing: -1px; line-height: 1.3; white-space: pre-line; }
.proposal-header { display: flex; justify-content: space-between; gap: 18px; }
.proposal-header > * { min-width: 0; }
.proposal-header small { font-size: 12px; line-height: 1.8; color: var(--muted); }
.proposal-price { background: linear-gradient(115deg, #f9eaf5, #fff0e6); border-radius: 12px; padding: 23px; margin: 25px 0; display: flex; justify-content: space-between; gap: 15px; align-items: center; flex-wrap: wrap; }
.proposal-price strong { font-size: 27px; font-family: Manrope, sans-serif; overflow-wrap: anywhere; }
.proposal-price span { font-size: 12px; color: #875475; }
.proposal-section { font-size: 13px; line-height: 1.8; margin: 25px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.proposal-section h3 { font-size: 14px; white-space: normal; margin-bottom: 9px; }
.proposal-note { font-size: 12px; border-top: 1px solid var(--line); padding-top: 20px; line-height: 1.8; color: var(--muted); overflow-wrap: anywhere; }
.calculation-help { border: 1px solid var(--line); border-radius: 10px; padding: 0 15px; margin-top: 14px; background: #fffcfe; }
.calculation-help > summary { min-height: 48px; padding: 13px 0; color: #8d3e7b; font-size: 12px; font-weight: 600; line-height: 1.7; cursor: pointer; }
.calculation-help > summary:focus-visible { outline: 3px solid #d68cbd38; outline-offset: 3px; border-radius: 4px; }
.calculation-help p { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 0 0 15px; overflow-wrap: anywhere; }
.formula { font-size: 12px; line-height: 1.8; padding: 15px; background: #fcf1f8; border-radius: 10px; color: #805f78; overflow-wrap: anywhere; }
#print-only { display: none; }
.mobile-logo { display: none; }
.no-margin { margin: 0; }

@media (min-width: 1500px) {
  main { padding-top: 43px; }
  .form-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
  .service-card { padding: 20px 16px; }
  .price-value { font-size: 37px; }
  .panel { padding: 29px; }
}
@media (max-width: 1200px) {
  main { padding: 29px 26px 44px; }
  .topbar { padding: 16px 26px; }
  .form-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 19px; }
  .panel { padding: 21px; }
  .step { padding: 14px 10px; gap: 8px; }
  .step small { font-size: 10px; }
  .price-card { padding: 23px 20px; }
  .service-card { padding: 15px 11px; }
  .service-card small { font-size: 11px; }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .sidebar { width: 200px; padding: 27px 12px; }
  .sidebar .brand-art-full, .brand-subtitle, .nav-label, .nav-count { display: none; }
  .sidebar .brand-art-symbol { display: block; }
  .brand { justify-content: center; margin-bottom: 39px; }
  .profile { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .profile .avatar { display: none; }
  .nav-button { justify-content: center; flex-direction: column; gap: 6px; padding: 12px 5px; }
  .nav-button span { font-size: 12px; line-height: 1.5; text-align: center; }
  .nav-button svg { width: 23px; height: 23px; }
  .workspace { margin-left: 200px; }
  .breadcrumb { display: none; }
  .mobile-logo { display: block; width: 205px; max-width: 100%; min-width: 0; flex: 0 1 205px; }
  .top-right { gap: 12px; }
  #toast { left: 50%; }
}
@media (min-width: 681px) and (max-height: 720px) {
  .sidebar { padding-top: 12px; padding-bottom: 12px; }
  .sidebar .brand { margin-bottom: 8px; }
  .sidebar .brand-subtitle { margin-top: 0; margin-bottom: 14px; }
  .profile { margin-top: 8px; padding-top: 8px; }
}
@media (max-width: 950px) {
  .form-layout { grid-template-columns: 1fr; }
  .summary { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .price-card { grid-row: span 2; }
  .mini-card { margin: 0; }
  .soft-note { padding: 3px; }
  .step small { display: none; }
  .step { min-height: 65px; }
  .topbar { min-height: 69px; }
  .page-heading { margin-bottom: 22px; }
  h1 { font-size: 28px; }
  .price-value { font-size: 32px; }
  .service-card small { font-size: 12px; }
  .field input, .field select, .field textarea, .stage .field input, .stage .field select, .searchbar input, .searchbar select { font-size: 16px; }
  .record { flex-wrap: wrap; }
  .record-actions { width: 100%; justify-content: flex-end; }
}
@media (max-width: 680px) {
  .sidebar { inset: auto 0 0; width: auto; height: auto; min-height: 75px; padding: 7px max(12px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); flex-direction: row; background: #fff; border-right: 0; border-top: 1px solid var(--line); box-shadow: 0 -4px 22px #913d800a; }
  .sidebar .brand { display: none; }
  .sidebar .profile { display: none; }
  .sidebar nav { display: flex; justify-content: space-around; width: 100%; gap: 7px; }
  .nav-button { flex: 1; flex-direction: column; gap: 5px; min-height: 60px; font-size: 11px; padding: 8px 6px; margin: 0; border-radius: 9px; min-width: 0; }
  .nav-button span { display: block !important; font-size: 11px; line-height: 1.5; }
  .nav-button .nav-count { display: none !important; }
  .nav-button svg { width: 21px; height: 21px; }
  .workspace { margin-left: 0; }
  .topbar { padding: 14px 20px; min-height: 65px; }
  main { padding: 27px 20px calc(108px + env(safe-area-inset-bottom)); }
  .summary { display: block; }
  .mini-card { margin-top: 16px; }
  .soft-note { padding: 16px 5px; }
  .price-value { font-size: 34px; }
  .two-buttons { grid-template-columns: 1fr; }
  .searchbar { flex-wrap: wrap; }
  .searchbar select { width: 100%; }
  .record-icon { display: none; }
  .record-main { flex-basis: 60%; }
  .dialog-toolbar { padding: 12px 15px; font-size: 12px; }
  .dialog-toolbar .button { font-size: 12px; white-space: normal; }
  #proposal-content { padding: 28px 22px; }
  .proposal-title { font-size: 26px; }
  .proposal-header { flex-direction: column; }
  .proposal-price { padding: 19px; }
  #toast { bottom: calc(91px + env(safe-area-inset-bottom)); text-align: center; }
}
@media (max-width: 560px) {
  .topbar { padding: 14px 16px; gap: 10px; }
  .mobile-logo { width: 200px; flex-basis: 200px; }
  main { padding-left: 16px; padding-right: 16px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 15px; }
  .page-heading > div { flex-basis: 100%; }
  .page-heading .button { min-height: 44px; font-size: 12px; padding: 10px 14px; }
  h1 { font-size: 27px; }
  .eyebrow { font-size: 10px; letter-spacing: 1px; }
  .demo-banner { padding: 13px 14px; align-items: flex-start; flex-direction: column; gap: 4px; }
  .demo-banner > span { align-items: flex-start; }
  .demo-banner svg { margin-top: 3px; width: 18px; height: 18px; }
  .text-link { text-align: left; }
  .steps { margin-bottom: 20px; }
  .step { padding: 13px 6px; min-height: 90px; font-size: 12px; gap: 7px; justify-content: flex-start; flex-direction: column; text-align: center; }
  .step-index { width: 26px; height: 26px; }
  .panel { padding: 21px 17px; border-radius: 13px; }
  .panel-title { align-items: flex-start; margin-bottom: 20px; }
  .panel-title h2 { font-size: 18px; }
  .section-icon { width: 33px; height: 33px; border-radius: 9px; }
  .section-title { gap: 10px; }
  .tag { display: none; }
  .service-grid { grid-template-columns: 1fr; gap: 9px; }
  .service-card { padding: 15px 34px 15px 52px; min-height: 83px; }
  .service-card > svg { position: absolute; left: 16px; top: 21px; width: 23px; height: 23px; margin: 0; }
  .service-card strong { font-size: 13px; margin-bottom: 4px; }
  .service-card small { font-size: 12px; }
  .radio-dot { top: 19px; right: 14px; }
  .field-grid, .field-grid.three { grid-template-columns: 1fr; gap: 18px; }
  .field input, .field select, .field textarea, .stage .field input, .stage .field select { padding: 12px; }
  .field .input-wrap input:not(.money-input) { padding-right: 48px; }
  .field > span, .field-title, .stage .field > span { font-size: 13px; }
  .choice-row { gap: 5px 16px; }
  .radio-label, .check-field { font-size: 13px; }
  .stage { padding: 16px 14px; }
  .stage .field-grid { gap: 16px; }
  .stage-actions { gap: 6px; }
  .stage-total { display: block; width: 100%; margin: 4px 0; }
  .transport-options { grid-template-columns: 1fr; gap: 10px; }
  .transport-option { min-height: 81px; }
  .bottom-actions { margin: 20px 0; gap: 10px; }
  .bottom-actions .button { font-size: 12px; padding: 11px 12px; white-space: normal; }
  .bottom-actions small { display: none; }
  .summary-details { gap: 18px; }
  .stage-table { font-size: 12px; }
  .stage-table th { font-size: 11px; }
  .record-price { font-size: 14px; }
  .record-actions .button { white-space: normal; }
  .dialog-toolbar { flex-wrap: wrap; gap: 8px; }
  .dialog-toolbar > div { margin-left: auto; }
  .proposal-brand { font-size: 23px; }
  .proposal-price strong { font-size: 25px; }
}
@media (max-width: 360px) {
  main { padding-left: 12px; padding-right: 12px; }
  .topbar { padding-left: 14px; padding-right: 14px; }
  .mobile-logo { width: 180px; flex-basis: 180px; }
  .panel { padding-left: 15px; padding-right: 15px; }
  .step { font-size: 11px; }
  .summary-details { grid-template-columns: 1fr; }
  .bottom-actions { flex-wrap: wrap; }
  .bottom-actions .button { width: 100%; }
  .record-price { width: 100%; }
  .record-actions { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  body > * { display: none !important; }
  #print-only { display: block !important; padding: 8mm; color: #35353c; font-family: Arial, sans-serif; background: white; }
  #print-only .proposal-price { background: #f9eaf5 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print-only .proposal-section, #print-only tr { break-inside: avoid; }
  #print-only .proposal-title { font-size: 27px; }
  #print-only .proposal-section { font-size: 11px; }
  #print-only .summary-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #print-only .proposal-header { flex-direction: row; }
  #print-only .stage-table { font-size: 11px; }
  #print-only .stage-table th, #print-only .help, #print-only .summary-details small, #print-only .summary-details p { font-size: 10px; }
  .proposal-kicker { margin-top: 25px; }
  .proposal-note { font-size: 10px; }
  @page { size: A4; margin: 10mm; }
}
