:root {
  color-scheme: dark;
  --ink: #eef3ee;
  --muted: #99a69e;
  --bg: #0e1210;
  --panel: #171d19;
  --panel-2: #1d2520;
  --line: #303b34;
  --lime: #bbf04b;
  --lime-dark: #263317;
  --orange: #ff9f43;
  --red: #ff6b65;
  --shadow: 0 18px 60px rgba(0, 0, 0, .32);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); }
body { min-height: 100dvh; overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; }
.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; }

.app-shell { height: 100dvh; display: grid; grid-template-rows: 68px 52px minmax(0, 1fr); }
.topbar { position: relative; z-index: 10; display: grid; grid-template-columns: 210px minmax(180px, 1fr) auto; align-items: center; gap: 20px; padding: 0 18px; border-bottom: 1px solid var(--line); background: rgba(14, 18, 16, .94); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 1.13rem; font-weight: 780; letter-spacing: -.02em; text-decoration: none; }
.brand-mark { position: relative; display: grid; grid-template-columns: repeat(2, 9px); grid-template-rows: repeat(2, 9px); gap: 2px; width: 22px; height: 22px; transform: rotate(30deg) skew(-3deg); }
.brand-mark i { background: var(--lime); border-radius: 2px; box-shadow: inset -2px -2px 0 rgba(0,0,0,.2); }
.brand-mark i:nth-child(3) { grid-column: 1 / 3; }
.project-name-wrap { min-width: 0; display: flex; justify-content: center; align-items: center; gap: 12px; }
.project-name { width: min(330px, 42vw); border: 1px solid transparent; border-radius: 7px; padding: 8px 10px; background: transparent; color: var(--ink); text-align: center; font-size: .95rem; font-weight: 650; outline: none; }
.project-name:hover, .project-name:focus { border-color: var(--line); background: var(--panel); }
.save-state { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 7px; }

.button, .icon-button, .floating-button, .tool, .block-choice, .estimate-mobile-toggle { border: 1px solid var(--line); background: var(--panel); cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .12s ease; }
.button:hover, .icon-button:hover, .floating-button:hover, .tool:hover, .block-choice:hover { border-color: #536158; background: var(--panel-2); }
.button:active, .icon-button:active, .floating-button:active, .tool:active, .block-choice:active { transform: translateY(1px); }
.button:focus-visible, .icon-button:focus-visible, .floating-button:focus-visible, .tool:focus-visible, .block-choice:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.button { min-height: 40px; padding: 0 14px; border-radius: 8px; font-weight: 650; font-size: .86rem; }
.button.primary { color: #11170d; background: var(--lime); border-color: var(--lime); }
.button.danger { color: var(--red); }
.button:disabled, .icon-button:disabled { opacity: .35; cursor: not-allowed; }
.button svg, .icon-button svg, .floating-button svg, .tool svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; }
.quiet { background: transparent; }
.blueprint-button { border-color: #607832; background: var(--lime-dark); color: var(--lime); }

.workspace { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.build-area { min-width: 0; min-height: 0; display: grid; grid-template-columns: 176px minmax(0, 1fr); background: #101612; }
.tool-rail { position: relative; z-index: 2; min-height: 0; overflow-y: auto; padding: 18px 12px; border-right: 1px solid var(--line); background: var(--panel); }
.tool-group { display: grid; gap: 7px; }
.tool { min-height: 48px; padding: 7px 10px; border-radius: 9px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 650; }
.tool.active { color: var(--lime); border-color: #5b732d; background: var(--lime-dark); }
.rail-rule { height: 1px; margin: 16px 4px; background: var(--line); }
.block-choice { min-height: 70px; display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 10px; padding: 9px; border-radius: 10px; text-align: left; color: var(--muted); }
.block-choice strong, .block-choice small { display: block; }
.block-choice strong { color: var(--ink); font-size: .85rem; }
.block-choice small { margin-top: 3px; font-size: .68rem; }
.block-choice.active { border-color: #718f36; background: var(--lime-dark); }
.mini-block { position: relative; width: 27px; height: 22px; display: block; border: 1px solid #e8a16e; border-radius: 2px; background-color: #a94927; background-image: linear-gradient(rgba(241,202,157,.7) 1px, transparent 1px), linear-gradient(90deg, rgba(241,202,157,.65) 1px, transparent 1px); background-size: 100% 6px, 12px 6px; box-shadow: inset -5px -5px 0 rgba(72,25,13,.22); transform: skewY(-12deg); }
.mini-block.wall { width: 34px; height: 16px; background-color: #b7562f; }
.rail-action { width: 100%; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 7px; }

.canvas-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: radial-gradient(circle at 50% 30%, #253129 0, #172019 44%, #101511 78%); touch-action: manipulation; }
.canvas-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(187,240,75,.035), transparent 38%); }
#builderCanvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.canvas-stage.remove #builderCanvas { cursor: not-allowed; }
.canvas-top-controls { position: absolute; top: 14px; right: 14px; display: flex; gap: 7px; }
.floating-button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 9px; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.floating-button.text-icon { font-size: 1.45rem; line-height: 1; }
.instruction { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); max-width: calc(100% - 30px); padding: 9px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 999px; background: rgba(14,18,16,.78); box-shadow: 0 5px 20px rgba(0,0,0,.22); backdrop-filter: blur(10px); color: #d9e2da; font-size: .78rem; text-align: center; white-space: nowrap; }
.toast { position: absolute; left: 50%; top: 18px; z-index: 3; transform: translate(-50%, -12px); padding: 10px 14px; border: 1px solid #4a5a50; border-radius: 8px; background: #202923; box-shadow: var(--shadow); font-size: .8rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.estimate-panel { position: relative; z-index: 5; min-height: 0; overflow-y: auto; border-left: 1px solid var(--line); background: #121714; }
.estimate-content { padding: 24px 22px 28px; }
.estimate-mobile-toggle { display: none; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.eyebrow { margin: 0 0 5px; color: var(--muted); font-size: .72rem; font-weight: 760; text-transform: uppercase; letter-spacing: .12em; }
.panel-heading h1 { margin: 0; font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1; letter-spacing: -.055em; }
.estimate-badge { padding: 5px 7px; border: 1px solid #52652b; border-radius: 5px; color: var(--lime); background: var(--lime-dark); font-size: .67rem; font-weight: 800; letter-spacing: .07em; }
.designer-block-rate { margin: 14px 0 0; color: var(--muted); font-size: .82rem; }
.designer-block-rate strong { color: var(--ink); }
.designer-block-cost { text-align: right; white-space: nowrap; }
.designer-block-cost strong { color: var(--ink); font-size: .8rem; }
.estimate-note button { margin-top: 9px; }
.block-unit-price { color: var(--lime) !important; margin-top: 6px !important; font-size: .72rem !important; }
.estimate-close { display: none; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 23px 0; }
.metric { min-width: 0; padding: 10px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.metric span, .metric strong { display: block; }
.metric span { min-height: 26px; color: var(--muted); font-size: .67rem; line-height: 1.2; }
.metric strong { margin-top: 5px; font-size: .95rem; }
.breakdown { padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.breakdown-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 13px; }
.breakdown-title h2 { margin: 0; font-size: .94rem; }
.breakdown-title span { color: var(--muted); font-size: .67rem; }
.line-item { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 10px; margin: 12px 0; }
.line-item strong, .line-item small { display: block; }
.line-item strong { font-size: .79rem; }
.line-item small { margin-top: 2px; color: var(--muted); font-size: .67rem; }
.line-item > span:last-child { color: #c8d1ca; font-size: .74rem; }
.swatch { width: 10px; height: 24px; border-radius: 2px; }
.compact-swatch { background: #a94927; }
.wall-swatch { background: #c46135; }
.pricing { padding: 16px 0; border-bottom: 1px solid var(--line); }
.blueprint-pricing { padding-top: 13px; }
.pricing summary { cursor: pointer; color: #cbd5ce; font-size: .83rem; font-weight: 700; }
.pricing label { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; color: var(--muted); font-size: .76rem; }
.currency-input, .percent-input { display: inline-flex; align-items: center; height: 34px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); overflow: hidden; }
.currency-input b, .percent-input b { color: var(--muted); font-size: .74rem; font-weight: 600; }
.currency-input b { padding-left: 9px; }
.percent-input b { padding-right: 9px; }
.currency-input input, .percent-input input { width: 72px; height: 100%; padding: 0 7px; border: 0; outline: 0; background: transparent; color: var(--ink); text-align: right; }
.totals { padding-top: 13px; }
.totals > div { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; color: var(--muted); font-size: .78rem; }
.totals strong { color: var(--ink); font-size: .8rem; }
.totals .total-row { margin-top: 7px; padding-top: 13px; border-top: 1px dashed #3a463e; color: var(--ink); font-size: .9rem; }
.totals .total-row strong { color: var(--lime); font-size: 1rem; }
.estimate-note { margin: 16px 0 0; color: #78837b; font-size: .68rem; line-height: 1.45; }

dialog { width: min(640px, calc(100vw - 28px)); max-height: min(820px, calc(100dvh - 28px)); padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(3,5,4,.72); backdrop-filter: blur(3px); }
.dialog-card { max-height: min(820px, calc(100dvh - 28px)); overflow-y: auto; padding: 22px; }
.dialog-head { display: flex; justify-content: space-between; gap: 15px; }
.dialog-head h2 { margin: 0; font-size: 1.24rem; }
.dialog-card > p { color: var(--muted); font-size: .84rem; }
.wide-button { width: 100%; margin-top: 7px; }
.design-library { margin-top: 22px; }
.library-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.library-heading h3, .file-heading { margin: 0; font-size: .9rem; }
.library-heading span { color: var(--muted); font-size: .75rem; }
.saved-designs { display: grid; gap: 8px; }
.library-empty { margin: 0; padding: 18px; border: 1px dashed var(--line); border-radius: 9px; color: var(--muted); text-align: center; font-size: .76rem; }
.saved-design { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: #121713; }
.saved-design.current { border-color: #536b2b; background: #192016; }
.saved-design-copy { min-width: 0; }
.saved-design-copy strong, .saved-design-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved-design-copy strong { font-size: .8rem; }
.saved-design-copy small { margin-top: 3px; color: var(--muted); font-size: .75rem; }
.saved-design-actions { display: flex; gap: 5px; }
.library-button { min-height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); color: var(--ink); font-size: .75rem; font-weight: 700; cursor: pointer; }
.library-button:hover { border-color: #65736a; }
.library-button.delete { width: 32px; padding: 0; color: var(--red); }
.dialog-divider { height: 1px; margin: 22px 0 16px; background: var(--line); }
.dialog-actions { display: grid; gap: 9px; margin-top: 20px; }
.file-heading + .dialog-actions { margin-top: 10px; grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  body { overflow: hidden; }
  .app-shell { grid-template-rows: 58px 52px minmax(0, 1fr); }
  .topbar { grid-template-columns: auto 1fr auto; gap: 8px; padding: 0 10px; }
  .brand > span:last-child { display: none; }
  .project-name-wrap { justify-content: flex-start; }
  .project-name { width: min(46vw, 260px); text-align: left; }
  .save-state { display: none; }
  .workspace { grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: minmax(0, 1fr); }
  .build-area { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) 92px; }
  .canvas-stage { grid-row: 1; }
  .tool-rail { grid-row: 2; display: grid; grid-template-columns: 98px minmax(0, 1fr) 48px; align-items: center; gap: 8px; overflow: hidden; padding: 8px 9px max(8px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); border-right: 0; }
  .tool-group:first-child { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .tool { min-height: 70px; padding: 5px; flex-direction: column; justify-content: center; gap: 4px; font-size: .66rem; }
  .tool svg { width: 19px; height: 19px; }
  .rail-rule { display: none; }
  .block-tools { grid-template-columns: repeat(2, 1fr); gap: 5px; }
  .block-choice { min-height: 70px; grid-template-columns: 31px 1fr; gap: 6px; padding: 6px; }
  .block-choice strong { font-size: .73rem; }
  .block-choice small { font-size: .57rem; }
  .mini-block.wall { width: 29px; }
  .rail-action { width: 48px; min-height: 70px; margin: 0; padding: 5px; font-size: 0; }
  .rail-action svg { width: 22px; height: 22px; }
  .estimate-content { padding: 22px 15px; }
  .instruction { bottom: 15px; white-space: normal; }
  .block-choice { grid-template-columns: 1fr; }
  .block-choice .mini-block { display: none; }
}

@media (max-width: 639px) {
  .workspace { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(165px, 34dvh); }
  .estimate-panel { border-left: 0; border-top: 1px solid var(--line); }
  .estimate-content { padding: 15px 18px; }
  .estimate-content .metrics { margin-block: 14px; }
  .estimate-content .panel-heading h1 { font-size: 2rem; }
  .estimate-content .designer-block-rate { margin-top: 8px; }
  .estimate-content .metric { padding: 7px; }
  .estimate-content .metric span { min-height: 0; }
}

@media (max-width: 520px) {
  .top-actions .icon-button { display: none; }
  .button.quiet { padding-inline: 11px; }
  .blueprint-button { padding-inline: 10px; }
  .canvas-top-controls { top: 10px; right: 10px; }
  .floating-button { width: 38px; height: 38px; }
  .canvas-top-controls { max-width: calc(100% - 20px); gap: 5px; }
  .file-heading + .dialog-actions { grid-template-columns: 1fr; }
  .saved-design { grid-template-columns: 1fr; }
  .saved-design-actions { display: grid; grid-template-columns: 1fr 1fr 32px; }
  .tool-rail { grid-template-columns: 86px minmax(0, 1fr) 44px; }
  .rail-action { width: 44px; }
}

@media (max-width: 420px) {
  .project-name { width: min(30vw, 140px); padding-inline: 4px; }
  .top-actions { gap: 4px; }
  .blueprint-button, .button.quiet { padding-inline: 8px; font-size: .74rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

[hidden] { display: none !important; }
.online-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); background: var(--panel); }
.nav-links, .online-actions { display: flex; align-items: center; gap: 16px; }
.nav-links a { font-size: .875rem; color: var(--muted); text-decoration: none; white-space: nowrap; padding-block: 14px; }
.nav-links a[aria-current="page"] { color: var(--lime); box-shadow: inset 0 -2px var(--lime); }
.online-status { color: var(--muted); font-size: .875rem; }
.online-nav .button { min-height: 34px; }
.catalog { min-height: 0; overflow: auto; padding: 32px max(20px, calc((100vw - 1200px) / 2)); }
.catalog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 24px; }
.catalog-heading h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 8px; }
.catalog-heading p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.5; }
.catalog-search { display: flex; gap: 10px; max-width: 720px; }
.catalog-search input, .online-form input:not([type="checkbox"]), .online-form textarea { width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; }
.catalog-status { color: var(--muted); min-height: 24px; }
.catalog-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.design-card { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--panel); overflow-wrap: anywhere; }
.design-card h2 { margin: 0; font-size: 1.15rem; }
.design-card p { margin: 0; font-size: 1rem; line-height: 1.5; white-space: pre-wrap; }
.design-card .card-meta { color: var(--muted); font-size: .875rem; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.visibility-badge { align-self: flex-start; padding: 4px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: .875rem; }
.visibility-badge.published { color: var(--lime); border-color: #607832; }
.online-form label:not(.publish-choice) { display: block; margin-top: 18px; line-height: 1.6; font-size: .95rem; }
.online-form label > input:not([type="checkbox"]), .online-form label > textarea { display: block; margin-top: 5px; }
.publish-choice { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; font-size: 1rem; line-height: 1.4; }
.publish-choice input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--lime); }
.online-note, .muted { color: var(--muted); }
.online-note { font-size: .875rem; line-height: 1.5; }
.online-form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
#onlineMessage { white-space: pre-wrap; font-size: .95rem; line-height: 1.5; }
.sign-in-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
#accountArea { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: .875rem; overflow-wrap: anywhere; }
#accountArea a:not(.button) { color: var(--muted); }
.catalog-mode .project-name-wrap, .catalog-mode .top-actions { visibility: hidden; }
@media (max-width: 900px) { .online-status { display: none; } }
@media (max-width: 600px) {
  .online-nav { padding-inline: 10px; gap: 7px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: .875rem; }
  .online-nav .button { padding-inline: 9px; font-size: .875rem; }
  .catalog { padding: 22px 16px; }
  .catalog-list { grid-template-columns: 1fr; }
  .catalog-heading { flex-direction: column; gap: 14px; }
}
@media (max-width: 360px) {
  .app-shell { grid-template-rows: 58px 94px minmax(0, 1fr); }
  .online-nav { flex-wrap: wrap; justify-content: center; padding-bottom: 6px; }
}

/* The public pages share the designer's materials, colour and navigation. */
a.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; text-decoration: none; color: var(--ink); }
a.button.primary { color: #11170d; }
a:focus-visible { outline: 2px solid var(--lime); outline-offset: 5px; }
.brand-tagline, .header-start { display: none !important; }
.catalog-mode .topbar { grid-template-columns: auto 1fr auto; }
.catalog-mode .project-name-wrap, .catalog-mode .top-actions { display: none; }
.catalog-mode .brand-tagline { display: block !important; color: var(--muted); font-size: .86rem; }
.catalog-mode .header-start { display: inline-flex !important; }
.catalog-mode .brand > span:last-child { display: inline; }
.catalog-mode .online-actions { display: none; }
.nav-links { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.welcome-page, .costing-page { min-height: 0; overflow: auto; }
.welcome-page { background: #101612; }
.hero, .welcome-story, .welcome-steps, .welcome-invite, .welcome-footer { max-width: 1320px; margin-inline: auto; padding-inline: clamp(22px, 5vw, 72px); }
.hero { display: grid; grid-template-columns: 1.04fr 1fr; align-items: center; gap: clamp(26px, 4vw, 64px); padding-top: clamp(44px, 6vw, 88px); padding-bottom: 80px; }
.eyebrow { color: var(--lime); font-size: .7rem; font-weight: 700; letter-spacing: .12em; line-height: 1.5; }
.hero h1 { font-size: clamp(2.7rem, 4.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.055em; margin: 22px 0 28px; font-weight: 720; }
.hero h1 em { color: var(--lime); font-style: normal; }
.hero-intro { font-size: 1.15rem; font-weight: 550; letter-spacing: -.015em; }
.hero-description { color: #b1bdb4; max-width: 510px; font-size: 1rem; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 30px; }
.large-button { min-height: 52px; padding-inline: 21px; font-size: .95rem; }
.text-link { color: var(--ink); text-decoration-color: #55634c; text-underline-offset: 5px; font-size: .9rem; line-height: 1.6; }
.text-link:hover { color: var(--lime); }
.hero-note { margin-top: 17px; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.hero-preview { margin: 0; border: 1px solid #43503d; background: #e4e7dc; border-radius: 14px; overflow: hidden; color: #283628; }
.preview-caption { display: flex; align-items: center; gap: 7px; padding: 19px 20px; font-size: .7rem; border-bottom: 1px solid #cbd0c1; }
.preview-caption > span:last-child { margin-left: auto; font-size: .6rem; letter-spacing: .08em; }
.preview-dot { width: 7px; height: 7px; border-radius: 50%; background: #6b8740; }
.welcome-model { padding: 30px 0 20px; min-height: 250px; }
.welcome-model svg { width: 100%; height: auto; display: block; }
.welcome-model .view-title { fill: #697961; font: 11px sans-serif; letter-spacing: .1em; }
.welcome-model .axis { fill: #63715c; font: 12px sans-serif; }
.hero-preview figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between; padding: 22px; border-top: 1px solid #cbd0c1; }
.hero-preview figcaption strong { font-size: .85rem; display: block; }
.hero-preview figcaption span { display: block; font-size: .72rem; margin-top: 6px; color: #59674e; }
.hero-preview figcaption .button { color: #283628; background: transparent; border-color: #adb89d; font-size: .8rem; }
.hero-preview figcaption .button span { display: inline; color: inherit; margin-left: 8px; }
.welcome-story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding-block: 60px; border-block: 1px solid var(--line); }
.welcome-story h2, .welcome-invite h2 { font-size: clamp(1.9rem, 3.1vw, 2.8rem); line-height: 1.14; font-weight: 550; letter-spacing: -.035em; margin: 17px 0 0; }
.story-copy p { margin: 0 0 18px; color: #b1bdb4; font-size: 1rem; line-height: 1.8; }
.welcome-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-block: 70px; }
.step-number { font-size: .68rem; color: var(--lime); letter-spacing: .13em; }
.welcome-steps h2 { font-size: 1.4rem; letter-spacing: -.025em; margin: 20px 0 12px; font-weight: 600; }
.welcome-steps p { color: var(--muted); font-size: .94rem; line-height: 1.7; margin-bottom: 24px; }
.welcome-invite { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 48px; }
.welcome-invite h2 { margin-top: 10px; }
.welcome-footer { border-top: 1px solid var(--line); padding-block: 25px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px; font-size: .76rem; color: var(--muted); }
.welcome-footer span span { margin: 0 10px; color: var(--lime); }
.costing-page { padding: 44px max(22px, calc((100vw - 1120px) / 2)) 70px; }
.costing-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.costing-heading h1 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.04em; margin: 12px 0; }
.costing-heading p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.costing-empty { border: 1px dashed #485b3b; border-radius: 12px; padding: 32px; margin-bottom: 32px; }
.costing-empty h2 { margin-top: 0; font-weight: 550; }
.costing-empty p { color: var(--muted); line-height: 1.6; }
.cost-summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 28px; }
.cost-summary h2 { font-weight: 550; font-size: 1.65rem; margin: 8px 0 12px; overflow-wrap: anywhere; }
.cost-summary p:not(.eyebrow) { color: var(--muted); margin: 0; font-size: .85rem; line-height: 1.6; }
.cost-total { text-align: right; flex-shrink: 0; }
.cost-total span { display: block; color: var(--muted); font-size: .75rem; }
.cost-total strong { display: block; margin-block: 8px; color: var(--lime); font-size: 2.1rem; font-weight: 550; }
.cost-table-wrap { overflow-x: auto; }
.cost-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.cost-table caption { text-align: left; font-size: 1.2rem; font-weight: 550; margin-bottom: 18px; }
.cost-table th { color: var(--muted); font-weight: 500; text-align: left; font-size: .75rem; }
.cost-table td, .cost-table th { padding: 16px 14px; border-bottom: 1px solid var(--line); }
.cost-table td:first-child, .cost-table th:first-child { padding-left: 0; }
.cost-table td:not(:first-child), .cost-table th:not(:first-child) { text-align: right; white-space: nowrap; }
.cost-totals { margin: 22px 0 0 auto; max-width: 420px; }
.cost-totals div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; }
.cost-totals dt { color: var(--muted); font-size: .9rem; }
.cost-totals dd { margin: 0; white-space: nowrap; }
.cost-note { color: var(--muted); font-size: .8rem; line-height: 1.7; margin-block: 20px; }
.costing-status { color: var(--lime); font-size: .9rem; line-height: 1.6; min-height: 1.6em; }
.shared-rates { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; border-top: 1px solid var(--line); padding-top: 36px; margin-top: 36px; }
.rates-intro h2 { font-size: 1.8rem; font-weight: 550; letter-spacing: -.03em; }
.rates-intro p:not(.eyebrow) { color: var(--muted); font-size: .9rem; line-height: 1.7; }
#ratesFields { border: 0; padding: 0; margin: 0; min-width: 0; }
#ratesFields label { display: grid; grid-template-columns: 1fr 1.2fr 100px; gap: 10px; align-items: center; padding: 10px 0; font-size: .9rem; }
#ratesFields label span { color: var(--muted); font-size: .75rem; text-align: right; }
#ratesFields input { width: 100%; min-width: 0; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 11px 8px; text-align: right; }
#ratesFields input:disabled { opacity: 1; color: var(--ink); -webkit-text-fill-color: var(--ink); }
.rates-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.profit-preview { margin-top: 24px; padding: 20px; border: 1px solid #536b2b; border-radius: 10px; background: #192016; }
.profit-preview h3 { margin: 0; font-size: 1.1rem; }
.profit-preview .cost-totals { max-width: none; }
.profit-preview #profitAmount, .profit-preview #profitSuggested { color: var(--lime); font-weight: 700; }
.design-preview { aspect-ratio: 800 / 470; min-height: 160px; display: grid; align-items: center; text-align: center; overflow: hidden; border-radius: 8px; background: #e4e7dc; color: #354630; font-size: .9rem; }
.design-preview svg { display: block; width: 100%; height: auto; }
.design-preview .view-title { font: 700 13px sans-serif; fill: #475742; }
.design-preview .axis { font: 11px sans-serif; fill: #586a52; }
.finished-gallery { border-top: 1px solid var(--line); padding-top: 14px; }
.finished-gallery h3 { font-size: .95rem; margin: 0 0 10px; }
.finished-gallery .button { margin-top: 14px; font-size: .8rem; }
.finished-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 430px; overflow-y: auto; }
.finished-photo-grid figure { margin: 0; min-width: 0; }
.finished-photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--bg); }
.finished-photo-grid figcaption, .finished-photo-grid small { font-size: .75rem; line-height: 1.5; overflow-wrap: anywhere; }
.upload-preview { display: block; width: 100%; max-height: 260px; object-fit: contain; margin-top: 15px; background: var(--bg); }
.photo-review { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 24px; }
.photo-review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.photo-review-card { min-width: 0; border: 1px solid var(--line); padding: 16px; border-radius: 10px; }
.photo-review-card img { width: 100%; max-height: 260px; object-fit: contain; }
.photo-review-card p { overflow-wrap: anywhere; }
@media (max-width: 639px) { .photo-review-list { grid-template-columns: 1fr; } }
@media (max-width: 1000px) { .online-status { display: none; } .hero { gap: 26px; } .hero-actions { gap: 15px; } .shared-rates { gap: 30px; } }
@media (max-width: 760px) {
  .hero, .welcome-story, .welcome-steps, .shared-rates { grid-template-columns: 1fr; }
  .hero { padding-block: 42px; gap: 35px; }
  .hero h1 { font-size: clamp(2.8rem, 8.3vw, 4.6rem); }
  .hero-preview { max-width: 540px; width: 100%; }
  .welcome-story { gap: 28px; padding-block: 40px; }
  .welcome-steps { padding-block: 44px; gap: 36px; }
  .welcome-steps p { margin-bottom: 12px; }
  .costing-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .cost-summary { padding: 22px; flex-wrap: wrap; }
  .cost-total { text-align: left; }
  .catalog-mode .brand-tagline { display: none !important; }
  .catalog-mode .topbar { grid-template-columns: 1fr auto; }
  .online-nav { gap: 12px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: .8rem; }
  .online-nav .button { font-size: .75rem; white-space: nowrap; }
}
@media (max-width: 360px) {
  .app-shell { grid-template-rows: 58px 52px minmax(0, 1fr); }
  .online-nav { flex-wrap: nowrap; justify-content: space-between; padding-bottom: 0; }
  #ratesFields label { grid-template-columns: 1fr 1fr 85px; gap: 5px; font-size: .8rem; }
}
