:root {
  color-scheme: light;
  --ink: #171814;
  --paper: #f3f1e8;
  --paper-bright: #fbfaf5;
  --clay: #d86635;
  --clay-dark: #a7421e;
  --pine: #23534b;
  --wine: #7b3148;
  --muted: #696b63;
  --line: rgba(23, 24, 20, 0.18);
  --safe: #1f6a45;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; background: var(--paper); color: var(--ink); }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 50;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--paper-bright);
  border: 2px solid var(--ink);
  color: var(--ink);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible { outline: 3px solid #0b78d0; outline-offset: 3px; }

.topbar {
  height: 76px;
  padding: 0 clamp(20px, 4vw, 68px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--ink);
  color: white;
}

.brand { display: inline-flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; font-weight: 740; letter-spacing: 0.01em; }
.brand-mark { width: 42px; height: 24px; position: relative; display: inline-flex; align-items: end; gap: 3px; }
.brand-mark i { display: block; width: 12px; background: var(--clay); transform: skewX(-17deg); }
.brand-mark i:nth-child(1) { height: 13px; }
.brand-mark i:nth-child(2) { height: 19px; background: #eee7d5; }
.brand-mark i:nth-child(3) { height: 24px; background: #9bb2a1; }
.brand-mark.small { transform: scale(.75); transform-origin: left center; margin-right: -6px; }

.top-actions { display: flex; gap: 9px; align-items: center; }
.quiet-button, .outline-button, .demo-link { border: 0; background: transparent; cursor: pointer; }
.demo-link { min-height: 44px; }
.quiet-button { min-height: 44px; color: rgba(255,255,255,.78); padding: 11px 14px; }
.outline-button { min-height: 44px; color: white; border: 1px solid rgba(255,255,255,.42); padding: 10px 18px; border-radius: 2px; }
.outline-button { max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.outline-button:hover, .quiet-button:hover { color: white; border-color: white; }

.workspace {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(500px, 0.86fr) minmax(520px, 1.14fr);
  background: var(--ink);
  color: white;
  overflow: hidden;
}

.control-panel {
  padding: clamp(38px, 5vw, 78px) clamp(28px, 5vw, 78px) 62px;
  min-width: 0;
  position: relative;
}
.control-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 1px;
  background: rgba(255,255,255,.13);
}

.step-kicker { display: inline-flex; align-items: center; gap: 12px; color: rgba(255,255,255,.66); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.step-kicker span { color: var(--clay); font-weight: 800; }
.step-kicker.light { color: var(--muted); }
.eyebrow { margin: 28px 0 10px; color: #d9b29e; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; font-weight: 760; }
h1 { max-width: 680px; margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 4.7vw, 78px); line-height: .96; letter-spacing: -.045em; }
h1 em { color: #cfd5ca; font-weight: 400; }
.hero-copy { max-width: 620px; margin: 26px 0 30px; color: rgba(255,255,255,.7); font-size: 17px; line-height: 1.56; }

.vertical-picker { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid rgba(255,255,255,.2); border-bottom: 1px solid rgba(255,255,255,.2); }
.vertical-choice { min-width: 0; padding: 16px 13px 17px; border: 0; border-right: 1px solid rgba(255,255,255,.17); background: transparent; color: white; text-align: left; cursor: pointer; display: grid; grid-template-columns: 22px 1fr; gap: 9px; }
.vertical-choice:last-child { border-right: 0; }
.vertical-choice:hover { background: rgba(255,255,255,.045); }
.vertical-choice.active { background: var(--paper); color: var(--ink); box-shadow: inset 0 3px var(--clay); }
.choice-index { font-size: 10px; color: var(--clay); font-weight: 800; }
.vertical-choice strong { display: block; font-size: 14px; line-height: 1.15; }
.vertical-choice small { display: block; margin-top: 7px; font-size: 11px; line-height: 1.25; color: rgba(255,255,255,.48); }
.vertical-choice.active small { color: var(--muted); }

.task-row { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 18px; margin: 26px 0 18px; }
.task-row label { font-size: 13px; color: rgba(255,255,255,.65); }
.vertical-status { margin: -6px 0 18px; padding: 12px 14px; border-left: 3px solid #d0a15d; background: rgba(208,161,93,.12); color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.5; }
select, input[type="number"], input[type="text"], input[type="date"] { width: 100%; min-height: 46px; border: 1px solid rgba(255,255,255,.23); border-radius: 0; background: rgba(255,255,255,.06); color: white; padding: 10px 12px; }
select option { color: var(--ink); background: white; }

.upload-block { border: 1px solid rgba(255,255,255,.25); padding: 8px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; position: relative; }
.upload-block.inactive { opacity: .45; }
.upload-block.inactive .upload-label, .upload-block.inactive .demo-link { cursor: not-allowed; }
#photo-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-label { min-height: 74px; display: flex; align-items: center; gap: 16px; padding: 11px 14px; cursor: pointer; background: rgba(255,255,255,.045); }
.upload-label:hover { background: rgba(255,255,255,.075); }
.upload-plus { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border: 1px dashed rgba(255,255,255,.45); color: var(--clay); font-size: 27px; font-weight: 300; }
.upload-label strong { display: block; font-size: 14px; }
.upload-label small { display: block; color: rgba(255,255,255,.48); margin-top: 5px; font-size: 11px; }
.demo-link { color: #f2cfbd; text-decoration: underline; text-underline-offset: 4px; padding: 12px; font-size: 13px; }
.privacy-note { grid-column: 1 / -1; margin: 2px 8px 3px; font-size: 11px; color: rgba(255,255,255,.48); line-height: 1.45; }
.privacy-note span { color: #80b88a; margin-right: 7px; font-size: 8px; }
.field-error { grid-column: 1 / -1; color: #ffd0bd; border-left: 3px solid #ef7b4e; padding: 8px 10px; margin: 4px 0 0; background: rgba(216,102,53,.12); }

.measurement-panel { margin-top: 38px; border-top: 1px solid rgba(255,255,255,.19); padding-top: 28px; }
.section-heading { display: flex; gap: 14px; align-items: start; }
.section-heading .eyebrow { margin: 0 0 4px; }
.section-number { color: var(--clay); font-size: 11px; font-weight: 800; margin-top: 3px; }
.section-heading h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; }
.analysis-note { margin: 18px 0; padding: 13px 14px; color: rgba(255,255,255,.72); background: rgba(35,83,75,.38); border-left: 3px solid #79a599; line-height: 1.45; font-size: 13px; }
.analysis-note strong { color: white; }
.ai-analysis-panel { margin: 18px 0 22px; padding: 20px; border: 1px solid rgba(255,255,255,.21); background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(35,83,75,.2)); }
.ai-analysis-heading { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.ai-analysis-heading .eyebrow { margin: 1px 0 4px; }
.ai-analysis-heading h3 { margin: 0; color: white; font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.05; }
.ai-stamp { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #d0a15d; color: #f2cfbd; font-size: 9px; font-weight: 800; letter-spacing: .12em; line-height: 1.1; text-align: center; transform: rotate(-2deg); }
.ai-analysis-status { margin: 16px 0 12px; color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.5; }
.ai-consent { min-height: 46px; display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start; color: rgba(255,255,255,.72); font-size: 11px; line-height: 1.45; cursor: pointer; }
.ai-consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--clay); }
.ai-analysis-button, .ai-accept-button { width: 100%; min-height: 48px; margin-top: 13px; padding: 10px 14px; border: 1px solid #d0a15d; background: transparent; color: white; cursor: pointer; font-weight: 760; text-align: left; }
.ai-analysis-button:hover:not(:disabled), .ai-accept-button:hover:not(:disabled) { background: rgba(208,161,93,.14); }
.ai-analysis-button:disabled, .ai-accept-button:disabled { opacity: .48; cursor: not-allowed; }
.ai-accept-button { border-color: #79a599; background: rgba(35,83,75,.35); }
.ai-accept-status { min-height: 0; margin: 10px 0 0; color: #b7d7ce; font-size: 11px; line-height: 1.45; }
.ai-analysis-result { margin-top: 18px; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.74); }
.ai-result-lead { padding: 18px 0; }
.ai-result-lead > span { color: #f2cfbd; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ai-result-lead h4 { margin: 7px 0; color: white; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.ai-result-lead p { margin: 0; font-size: 12px; line-height: 1.55; }
.ai-result-section { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); }
.ai-result-section h5 { margin: 0 0 10px; color: rgba(255,255,255,.48); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.ai-result-section ul { margin: 0; padding-left: 18px; }
.ai-result-section li { margin: 8px 0; font-size: 11px; line-height: 1.45; }
.ai-result-section li b, .ai-result-section li span, .ai-result-section li small { display: block; }
.ai-result-section li b { color: white; font-size: 12px; }
.ai-result-section li small { margin-top: 2px; color: rgba(255,255,255,.46); }
.ai-observations { list-style: none; padding: 0 !important; }
.ai-observations li { display: grid; grid-template-columns: minmax(90px,.7fr) 1.3fr; gap: 4px 12px; padding-left: 0; }
.ai-observations li small { grid-column: 2; }
.ai-risks li[data-risk="high"] b { color: #ffc7b0; }
.ai-risks li[data-risk="medium"] b { color: #f2cfbd; }
.ai-materials li small, .ai-uncertainties { color: #d9c3a0; }
.ai-diy-state { display: inline-block; margin: 0; padding: 7px 10px; border-left: 3px solid #d0a15d; background: rgba(208,161,93,.12); color: white; font-size: 12px; }
.ai-empty { margin: 0; color: rgba(255,255,255,.5); font-size: 11px; line-height: 1.45; }
.reference-panel { margin: 22px 0; padding: 20px; border: 1px solid rgba(208,161,93,.42); background: linear-gradient(145deg, rgba(95,63,43,.22), rgba(255,255,255,.035)); }
.reference-heading { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.reference-heading .eyebrow { margin: 1px 0 4px; color: #d8b888; }
.reference-heading h3 { margin: 0; color: white; font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.05; }
.reference-stamp { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #79a599; color: #b7d7ce; font-size: 8px; font-weight: 800; letter-spacing: .1em; line-height: 1.1; text-align: center; transform: rotate(2deg); }
.reference-status, .reference-boundary, .reference-selection { color: rgba(255,255,255,.67); font-size: 11px; line-height: 1.5; }
.reference-status { margin: 16px 0 13px; }
.reference-search-form > label { color: rgba(255,255,255,.62); font-size: 11px; }
.reference-search-form > div { display: grid; grid-template-columns: minmax(0,1fr) auto; margin-top: 6px; }
.reference-search-form input { min-width: 0; border-right: 0; }
.reference-search-form button, .reference-select { min-height: 48px; border: 1px solid #d0a15d; background: #d86635; color: white; padding: 10px 14px; cursor: pointer; font-weight: 760; }
.reference-search-form button:hover:not(:disabled), .reference-select:hover { background: #e17445; }
.reference-search-form button:disabled { opacity: .5; cursor: not-allowed; }
.reference-boundary { margin: 11px 0 0; padding-left: 12px; border-left: 2px solid #79a599; color: rgba(255,255,255,.5); }
.reference-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.reference-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.18); background: rgba(12,14,12,.38); }
.reference-card[data-selected="true"] { border-color: #79a599; box-shadow: inset 0 0 0 2px rgba(121,165,153,.24); }
.reference-image { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: cover; background: #252923; }
.reference-image-missing { background: repeating-linear-gradient(135deg, rgba(121,165,153,.16) 0 12px, rgba(255,255,255,.035) 12px 24px); }
.reference-card-body { min-width: 0; flex: 1; display: flex; flex-direction: column; padding: 12px; }
.reference-card h4 { margin: 0; color: white; font-family: var(--serif); font-size: 18px; font-weight: 400; line-height: 1.15; overflow-wrap: anywhere; }
.reference-card p { margin: 7px 0 0; color: rgba(255,255,255,.58); font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.reference-meta { margin-top: auto; padding-top: 11px; display: grid; gap: 7px; }
.reference-links { display: flex; flex-wrap: wrap; gap: 7px 12px; }
.reference-links a { color: #b7d7ce; font-size: 10px; text-underline-offset: 3px; }
.reference-select { width: 100%; min-height: 44px; padding: 8px 10px; text-align: left; font-size: 11px; }
.reference-selection { min-height: 0; margin: 12px 0 0; color: #b7d7ce; }
.materials-panel { margin: 22px 0; padding: 20px; border: 1px solid rgba(109,150,132,.48); background: linear-gradient(145deg, rgba(35,83,75,.2), rgba(255,255,255,.035)); }
.materials-heading { display: flex; gap: 16px; align-items: flex-start; }
.materials-heading h3 { margin: 3px 0 0; font-family: var(--serif); font-size: 29px; line-height: 1; font-weight: 400; }
.materials-stamp { flex: 0 0 42px; min-height: 42px; display: grid; place-items: center; border: 1px solid #6d9684; color: #b9dfd4; font-size: 8px; line-height: 1.05; font-weight: 850; letter-spacing: .12em; text-align: center; transform: rotate(-2deg); }
.materials-status { margin: 16px 0 0; color: #c8d4cd; font-size: 12px; line-height: 1.5; }
.materials-boundary { margin: 11px 0 0; padding-left: 12px; border-left: 2px solid #6d9684; color: #95aaa0; font-size: 10px; line-height: 1.5; }
.materials-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.material-card { min-width: 0; display: grid; grid-template-columns: 10px 1fr; border: 1px solid rgba(255,255,255,.16); background: rgba(0,0,0,.16); }
.material-card[data-selected="true"] { border-color: #8fc0a9; box-shadow: inset 0 0 0 1px #8fc0a9; }
.material-edge { background: #8b735d; }
.material-card:nth-child(3n+2) .material-edge { background: #6d9684; }
.material-card:nth-child(3n) .material-edge { background: #b15a39; }
.material-body { min-width: 0; padding: 14px; }
.material-code { display: flex; justify-content: space-between; gap: 8px; color: #94aaa0; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.material-body h4 { margin: 10px 0 6px; font-family: var(--serif); font-size: 21px; font-weight: 400; line-height: 1.05; }
.material-body > p { margin: 0; color: #b5bdb7; font-size: 11px; line-height: 1.45; }
.material-price { display: block; margin-top: 12px; color: #f3f1e8; font-size: 14px; }
.material-properties { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.material-properties li { padding: 4px 6px; border: 1px solid rgba(255,255,255,.14); color: #aeb9b3; font-size: 9px; line-height: 1.25; }
.material-select, .materials-retry { min-height: 44px; margin-top: 14px; width: 100%; border: 1px solid #6d9684; background: transparent; color: #dce9e2; font-weight: 750; cursor: pointer; }
.material-select:hover, .material-select:focus-visible, .materials-retry:hover, .materials-retry:focus-visible { background: #315e53; color: #fff; }
.material-card[data-selected="true"] .material-select { background: #315e53; color: #fff; }
.materials-selection { min-height: 0; margin: 12px 0 0; color: #b9dfd4; font-size: 12px; line-height: 1.5; }
.materials-retry { width: auto; padding: 0 18px; }
.measure-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.measure-grid label, .auction-grid label { color: rgba(255,255,255,.62); font-size: 11px; line-height: 1.35; }
.measure-grid input, .measure-grid select { margin-top: 6px; }
.primary-button { width: 100%; min-height: 58px; margin-top: 18px; padding: 0 20px; border: 0; background: var(--clay); color: white; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 760; }
.primary-button:hover { background: #e17445; }
.primary-button b { font-size: 24px; font-weight: 400; }

.visual-stage { min-width: 0; position: relative; padding: clamp(32px, 5vw, 76px); display: grid; place-items: center; background: #d8d0bd; color: var(--ink); overflow: hidden; }
.visual-stage::before { content: ""; position: absolute; inset: 0; opacity: .32; background-image: linear-gradient(rgba(23,24,20,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(23,24,20,.08) 1px, transparent 1px); background-size: 24px 24px; }
.stage-ruler { position: absolute; top: 24px; left: 9%; right: 9%; display: grid; grid-template-columns: auto 1fr 1fr 1fr auto; align-items: center; gap: 8px; color: rgba(23,24,20,.48); font-size: 10px; }
.stage-ruler i { height: 1px; background: rgba(23,24,20,.25); }
.photo-frame { position: relative; z-index: 2; width: min(100%, 740px); aspect-ratio: 4 / 3; background: #bfb6a3; border: 10px solid var(--paper-bright); box-shadow: 0 30px 70px rgba(23,24,20,.23); overflow: hidden; transform: rotate(-1.4deg); }
#photo-preview { width: 100%; height: 100%; object-fit: cover; }
.room-illustration { position: relative; width: 100%; height: 100%; background: linear-gradient(90deg,#b8b0a1 0 22%,#d7d2c7 22% 100%); overflow: hidden; }
.room-light { position: absolute; inset: 0; background: radial-gradient(circle at 62% 35%, rgba(255,251,220,.95), transparent 48%); }
.window { position: absolute; left: 31%; top: 12%; width: 49%; height: 57%; background: #dce7e4; border: 8px solid #f3f0e7; box-shadow: inset 0 0 30px rgba(77,118,119,.15); display: grid; grid-template-columns: 1fr 1fr; }
.window i:first-child { border-right: 4px solid #f3f0e7; }
.window::after { content: ""; position: absolute; left: 0; right: 0; top: 48%; border-top: 4px solid #f3f0e7; }
.curtain { position: absolute; z-index: 2; top: 8%; width: 19%; height: 67%; background: repeating-linear-gradient(90deg,#e8e0cf 0 13%,#cfc3ac 14% 23%,#f0e9d9 24% 36%); filter: drop-shadow(4px 4px 5px rgba(34,34,27,.15)); }
.curtain-left { left: 21%; clip-path: polygon(0 0,100% 0,79% 100%,7% 100%); }
.curtain-right { right: 11%; clip-path: polygon(0 0,100% 0,95% 100%,18% 100%); }
.sofa { position: absolute; z-index: 3; left: 12%; bottom: 9%; width: 64%; height: 25%; border-radius: 14px 14px 2px 2px; background: #365a55; box-shadow: inset 0 8px rgba(255,255,255,.05); }
.sofa::before { content: ""; position: absolute; left: 8%; right: 8%; top: -37%; height: 55%; background: #3e6660; border-radius: 13px 13px 2px 2px; }
.sofa i { position: absolute; z-index: 2; width: 24%; height: 55%; top: -18%; background: #cb754f; transform: rotate(-4deg); }
.sofa i:nth-child(1) { left: 10%; }
.sofa i:nth-child(2) { right: 11%; background: #9aa68d; transform: rotate(5deg); }
.floor-line { position: absolute; left: 0; right: 0; bottom: 0; height: 12%; background: repeating-linear-gradient(9deg,#8e765d 0 3px,#a88e72 4px 17px); }
.frame-label { position: absolute; z-index: 5; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: end; gap: 10px; color: white; text-shadow: 0 1px 4px rgba(0,0,0,.5); font-size: 12px; }
.frame-label b { padding: 5px 7px; background: var(--clay); text-shadow: none; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.material-strip { position: absolute; z-index: 3; width: 130px; height: 250px; right: 3.5%; bottom: 10%; transform: rotate(7deg); box-shadow: 0 18px 30px rgba(23,24,20,.25); }
.swatch { position: absolute; inset: 0; clip-path: polygon(0 0,100% 7%,84% 100%,8% 93%); }
.swatch-a { background: #8f3f36; transform: translate(-24px,-18px) rotate(-7deg); }
.swatch-b { background: #d9caaa; transform: translate(-11px,-8px) rotate(-3deg); }
.swatch-c { background: repeating-linear-gradient(90deg,#365c55 0 4px,#2b4c47 5px 9px); }
.thread-line { position: absolute; width: 160px; height: 70px; left: -110px; bottom: -25px; border: 2px solid var(--clay); border-top-color: transparent; border-radius: 50%; transform: rotate(17deg); }
.visual-stage.atelier-stage { background: #bda17e; }
.visual-stage.atelier-stage::before { background-image: linear-gradient(rgba(82,51,35,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(82,51,35,.08) 1px, transparent 1px); background-size: 24px 24px; }
.atelier-illustration { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(135deg,#d5bd9b,#927255); }
.work-mat { position: absolute; inset: 6%; background: #cbb18e; border: 2px dashed rgba(67,43,30,.22); transform: rotate(-2deg); }
.bag-body { position: absolute; width: 58%; height: 46%; left: 21%; bottom: 13%; border-radius: 8px 8px 38px 38px; background: linear-gradient(135deg,#735040,#35251f); box-shadow: 0 25px 38px rgba(45,29,21,.3); }
.bag-handle { position: absolute; z-index: 1; width: 35%; height: 35%; left: 32.5%; top: 11%; border: 28px solid #483128; border-bottom: 0; border-radius: 50% 50% 0 0; box-shadow: inset 0 0 0 6px #795444; }
.bag-flap { position: absolute; inset: 0 0 auto; height: 50%; background: #775140; clip-path: polygon(0 0,100% 0,77% 100%,24% 100%); }
.bag-clasp { position: absolute; z-index: 2; width: 44px; height: 47px; left: calc(50% - 22px); top: 38%; border-radius: 6px; background: #c39a54; box-shadow: inset 0 0 0 8px rgba(83,55,29,.22); }
.damage-line { position: absolute; z-index: 3; width: 23%; height: 45px; right: 7%; bottom: 23%; border-top: 4px dashed #e98a56; border-bottom: 2px solid rgba(235,198,167,.65); transform: rotate(13deg); }
.damage-line::before, .damage-line::after { content: ""; position: absolute; top: -9px; width: 12px; height: 12px; border-radius: 50%; background: var(--clay); }
.damage-line::before { left: -3px; } .damage-line::after { right: -3px; }
.repair-pencil { position: absolute; width: 32%; height: 13px; right: -2%; top: 24%; background: #242822; transform: rotate(-28deg); box-shadow: inset -45px 0 #d86635; }
.thread-spool { position: absolute; width: 74px; height: 60px; left: 7%; bottom: 8%; border-radius: 10px; background: repeating-linear-gradient(0deg,#3b625b 0 4px,#274942 5px 9px); transform: rotate(8deg); }
.atelier-stage .swatch-a { background: #593a2e; }
.atelier-stage .swatch-b { background: #bb936d; }
.atelier-stage .swatch-c { background: repeating-linear-gradient(90deg,#d86635 0 3px,#9c442b 4px 8px); }
.included-positions { grid-column: 1 / -1; margin: 2px 0 0; padding: 13px 15px; border-left: 3px solid var(--clay); background: rgba(255,255,255,.07); color: rgba(255,255,255,.64); font-size: 11px; line-height: 1.5; }
.included-positions strong { color: white; }
.visual-stage.wedding-stage { background: #d4c2ad; }
.visual-stage.wedding-stage::before { background-image: linear-gradient(rgba(85,46,45,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(85,46,45,.06) 1px, transparent 1px); background-size: 32px 32px; }
.wedding-illustration { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(145deg,#c9b096,#eee3d3); }
.wedding-paper { position: absolute; inset: 5% 7%; background: #f4eee3; border: 1px solid rgba(56,45,39,.18); box-shadow: 0 24px 35px rgba(61,42,31,.18); transform: rotate(-1.3deg); }
.dress-shape { position: absolute; z-index: 2; width: 28%; height: 58%; left: 15%; bottom: 9%; background: linear-gradient(100deg,#fbf8ef,#dcd1c1); clip-path: polygon(45% 0,58% 0,62% 14%,72% 29%,96% 100%,4% 100%,31% 29%,39% 14%); filter: drop-shadow(10px 15px 10px rgba(48,37,30,.12)); }
.dress-shape i { position: absolute; width: 28%; height: 34%; left: 36%; top: 8%; border-left: 1px solid rgba(91,70,57,.28); border-right: 1px solid rgba(91,70,57,.2); }
.suit-shape { position: absolute; z-index: 2; width: 25%; height: 48%; left: 47%; bottom: 12%; background: #262925; clip-path: polygon(20% 0,45% 9%,50% 21%,56% 9%,82% 0,100% 100%,0 100%); box-shadow: 12px 18px 22px rgba(38,29,24,.18); }
.suit-shape i, .suit-shape b { position: absolute; top: 6%; width: 31%; height: 42%; border-bottom: 2px solid rgba(255,255,255,.23); }
.suit-shape i { left: 21%; transform: skewY(32deg); } .suit-shape b { right: 19%; transform: skewY(-32deg); }
.flower-shape { position: absolute; z-index: 3; width: 20%; aspect-ratio: 1; right: 8%; bottom: 15%; }
.flower-shape i { position: absolute; width: 50%; height: 50%; border-radius: 50% 45% 50% 40%; background: #894c4a; box-shadow: 42px 7px #b96c5b, 18px 40px #d5a284, -22px 30px #b78d65; }
.flower-shape b { position: absolute; width: 110%; height: 9px; left: -14%; top: 70%; background: #385b4d; transform: rotate(35deg); }
.rings-shape { position: absolute; z-index: 3; width: 120px; height: 80px; right: 8%; top: 12%; }
.rings-shape i { position: absolute; width: 54px; height: 54px; border: 7px solid #b88e3f; border-radius: 50%; }
.rings-shape i:last-child { left: 40px; top: 13px; border-color: #80673f; }
.concept-ribbon { position: absolute; z-index: 4; width: 79%; height: 33%; left: 10%; top: 40%; border: 4px solid #9b4d48; border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: rotate(9deg); opacity: .78; }
.concept-ribbon::after { content: ""; position: absolute; right: -8px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: #9b4d48; }
.wedding-stage .swatch-a { background: #8f4e4b; }
.wedding-stage .swatch-b { background: #efe6d7; }
.wedding-stage .swatch-c { background: repeating-linear-gradient(90deg,#b8934e 0 2px,#7d653d 3px 7px); }
.stage-caption { position: absolute; z-index: 4; left: 6%; bottom: 4%; max-width: 250px; }
.stage-caption span { font-family: var(--serif); font-size: 23px; line-height: 1.05; }
.stage-caption p { font-size: 10px; line-height: 1.45; color: rgba(23,24,20,.61); }

.results-section { padding: 76px clamp(20px, 6vw, 92px) 88px; background: var(--paper-bright); }
.results-intro { max-width: 800px; }
.results-intro h2, .platform-map h2 { font-family: var(--serif); font-size: clamp(38px, 5vw, 68px); line-height: .98; font-weight: 400; letter-spacing: -.035em; margin: 18px 0; }
.results-intro p { color: var(--muted); max-width: 720px; line-height: 1.6; }
.option-tabs { margin-top: 38px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.option-tab { min-width: 0; border: 0; border-right: 1px solid var(--line); padding: 18px; background: transparent; text-align: left; cursor: pointer; }
.option-tab:last-child { border-right: 0; }
.option-tab strong, .option-tab span { display: block; }
.option-tab strong { font-family: var(--serif); font-size: 22px; font-weight: 400; }
.option-tab span { margin-top: 6px; font-size: 12px; color: var(--muted); }
.option-tab[aria-selected="true"] { background: var(--ink); color: white; box-shadow: inset 0 4px var(--clay); }
.option-tab[aria-selected="true"] span { color: rgba(255,255,255,.57); }

.estimate-card { border: 1px solid var(--line); border-top: 0; display: grid; grid-template-columns: .75fr 1.25fr; min-width: 0; }
.estimate-summary { padding: 32px; background: #e5dfcf; position: relative; overflow: hidden; }
.estimate-summary::after { content: ""; position: absolute; width: 190px; height: 190px; right: -70px; bottom: -80px; border: 28px solid rgba(216,102,53,.25); border-radius: 50%; }
.estimate-summary .status-pill { display: inline-flex; padding: 6px 9px; background: var(--paper-bright); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.estimate-summary h3 { margin: 26px 0 6px; font-family: var(--serif); font-size: 36px; font-weight: 400; }
.estimate-summary .price { margin: 0 0 20px; font-size: 27px; font-weight: 760; }
.estimate-summary .caption { color: var(--muted); font-size: 12px; line-height: 1.45; }
.budget-message { position: relative; z-index: 2; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(23,24,20,.18); font-size: 13px; line-height: 1.45; }
.estimate-lines { padding: 28px 32px; min-width: 0; }
.estimate-lines h4 { margin: 0 0 18px; font-size: 12px; text-transform: uppercase; letter-spacing: .11em; color: var(--muted); }
.line-row { display: grid; grid-template-columns: minmax(140px,1fr) 90px 180px; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.line-row span:nth-child(2) { color: var(--muted); text-align: right; }
.line-row strong { text-align: right; }
.assumptions { margin: 18px 0 0; padding-left: 18px; color: var(--muted); font-size: 11px; line-height: 1.6; }

.save-panel { margin-top: 22px; border: 1px solid var(--line); border-left: 5px solid var(--clay); padding: 20px 22px; display: grid; grid-template-columns: 70px minmax(240px, 1fr) auto; gap: 18px 22px; align-items: center; background: #f3eee4; }
.save-stamp { width: 62px; height: 62px; border: 2px solid var(--clay-dark); border-radius: 50%; display: grid; place-items: center; text-align: center; color: var(--clay-dark); font-size: 10px; font-weight: 850; line-height: 1.15; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-7deg); }
.save-copy .eyebrow { margin: 0 0 5px; color: var(--clay-dark); }
.save-copy h3 { margin: 0; font-family: var(--serif); font-size: 25px; font-weight: 400; }
.save-copy > p:last-child { margin: 6px 0 0; max-width: 620px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.save-button { min-height: 48px; padding: 0 18px; border: 0; background: var(--ink); color: white; font-weight: 780; cursor: pointer; }
.save-button:hover { box-shadow: inset 0 -4px var(--clay); }
.save-button:disabled { opacity: .58; cursor: wait; }
.save-status { grid-column: 2 / -1; margin: -8px 0 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.45; }
.media-consent { grid-column: 2 / -1; display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: 11px; line-height: 1.45; }
.media-consent input { width: 20px; height: 20px; margin: 0; accent-color: var(--clay-dark); }
.save-panel[data-state="saved"] .save-status { color: #35584d; }
.save-panel[data-state="error"] .save-status { color: #873d2b; }

.route-choice { margin-top: 56px; padding: 34px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: .7fr 1.3fr; gap: 28px; align-items: end; }
.route-choice .eyebrow { color: var(--clay-dark); margin: 0 0 7px; }
.route-choice h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 36px; }
.route-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.route-button { min-height: 92px; border: 1px solid var(--ink); background: transparent; text-align: left; padding: 18px; cursor: pointer; }
.route-button.strong { background: var(--ink); color: white; }
.route-button:hover { box-shadow: inset 0 -4px var(--clay); }
.route-button span { display: block; font-weight: 800; }
.route-button small { display: block; margin-top: 7px; color: var(--muted); line-height: 1.35; }
.route-button.strong small { color: rgba(255,255,255,.58); }

.route-result { border: 1px solid var(--line); display: grid; grid-template-columns: .65fr 1.35fr; }
.route-result-header { padding: 28px; background: var(--ink); color: white; }
.route-result-header > span { color: var(--clay); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.route-result-header h3 { font-family: var(--serif); font-size: 34px; line-height: 1.05; font-weight: 400; margin: 18px 0; }
.route-result-header p { color: rgba(255,255,255,.58); line-height: 1.55; font-size: 12px; }
.diy-steps { list-style: none; margin: 0; padding: 20px 28px; counter-reset: steps; }
.diy-steps li { counter-increment: steps; display: grid; grid-template-columns: 34px 160px 1fr; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--line); align-items: start; }
.diy-steps li::before { content: counter(steps, decimal-leading-zero); color: var(--clay-dark); font-size: 11px; font-weight: 800; }
.diy-steps b { font-size: 13px; }
.diy-steps span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.safety-callout { grid-column: 2; margin: 0 28px 28px; padding: 18px; background: #f4dfd5; border-left: 4px solid var(--clay); }
.safety-callout p { margin: 5px 0 0; color: #633725; font-size: 12px; line-height: 1.5; }
.brief-summary { margin: 0; padding: 20px 28px 0; display: grid; grid-template-columns: 180px 1fr; align-content: start; }
.brief-summary dt, .brief-summary dd { padding: 12px 0; margin: 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.brief-summary dt { color: var(--muted); }
.brief-summary dd { font-weight: 700; }
.auction-grid { grid-column: 2; padding: 22px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auction-grid label { color: var(--muted); }
.auction-grid input { color: var(--ink); border-color: var(--line); background: white; margin-top: 6px; }
.checkbox-line { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; }
.checkbox-line input { width: 20px; height: 20px; margin: 0; }
.market-action { grid-column: 2; min-height: 55px; margin: 0 28px 10px; padding: 0 20px; border: 1px solid var(--ink); background: var(--ink); color: white; cursor: pointer; font-weight: 820; }
.market-action:hover { background: var(--clay-dark); border-color: var(--clay-dark); }
.market-action:disabled { border-style: dashed; border-color: var(--line); background: #eeeae1; color: var(--muted); cursor: not-allowed; }
.market-status { grid-column: 2; margin: 0 28px 28px; color: var(--muted); font-size: 11px; }
.market-status.is-success { color: #315b3c; font-weight: 760; }
.market-status.is-error { color: #7b251c; }

.platform-map { padding: 88px clamp(20px,6vw,92px); background: #d9d0bc; }
.map-title { max-width: 820px; }
.map-title .eyebrow { color: var(--clay-dark); }
.map-flow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 48px 0; padding: 23px 0; border-top: 1px solid rgba(23,24,20,.25); border-bottom: 1px solid rgba(23,24,20,.25); }
.map-flow span { font-family: var(--serif); font-size: clamp(18px,2vw,28px); }
.map-flow b { color: var(--clay-dark); font-size: 20px; }
.vertical-details { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: rgba(23,24,20,.23); border: 1px solid rgba(23,24,20,.23); }
.vertical-details article { background: #d9d0bc; padding: 28px; min-height: 220px; }
.vertical-details span { color: var(--clay-dark); font-size: 11px; font-weight: 800; }
.vertical-details h3 { font-family: var(--serif); font-size: 31px; font-weight: 400; margin: 34px 0 12px; }
.vertical-details p { color: #595a52; line-height: 1.55; font-size: 13px; }

.footer { background: var(--ink); color: white; padding: 32px clamp(20px,5vw,68px); display: flex; justify-content: space-between; align-items: end; gap: 30px; font-size: 12px; }
.footer > div { display: grid; grid-template-columns: auto 1fr; align-items: center; }
.footer > div p { grid-column: 1 / -1; color: rgba(255,255,255,.45); margin: 8px 0 0; }
.footer > p { margin: 0; color: rgba(255,255,255,.56); }
.footer a { color: white; text-underline-offset: 4px; }
.work-dialog { width: min(920px, calc(100vw - 32px)); max-height: min(820px, calc(100vh - 32px)); padding: 0; border: 0; background: transparent; color: var(--ink); overflow: auto; }
.work-dialog::backdrop { background: rgba(13, 15, 12, .72); backdrop-filter: blur(3px); }
.dialog-shell { position: relative; min-height: 470px; padding: 44px; display: grid; grid-template-columns: 110px minmax(240px, .9fr) minmax(280px, 1.1fr); gap: 28px; align-items: start; background: var(--paper-bright); border-top: 7px solid var(--clay); box-shadow: 0 28px 90px rgba(0,0,0,.35); }
.dialog-close { position: absolute; z-index: 2; right: 16px; top: 14px; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; font-size: 27px; line-height: 1; cursor: pointer; }
.dialog-close:hover { background: var(--ink); color: white; }
.dialog-mark { width: 94px; height: 130px; padding: 16px 10px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; background: var(--ink); color: white; transform: rotate(-2deg); box-shadow: inset 0 -5px var(--clay); }
.dialog-mark span { font-family: var(--serif); font-size: 31px; }
.dialog-mark small { color: var(--clay); font-weight: 850; letter-spacing: .12em; }
.dialog-intro .eyebrow, .projects-heading .eyebrow { margin: 2px 0 12px; color: var(--clay-dark); }
.dialog-intro h2, .projects-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(34px, 5vw, 52px); line-height: .98; font-weight: 400; letter-spacing: -.025em; }
.dialog-intro > p:last-child, .projects-heading > p:last-child { color: var(--muted); font-size: 12px; line-height: 1.55; }
.auth-form { display: grid; gap: 14px; padding-top: 4px; }
.auth-form label { color: var(--muted); font-size: 11px; }
.auth-form label small,
.registration-form label small { display: block; margin-top: 6px; color: var(--muted); line-height: 1.45; }
.auth-form input, .auth-form select { width: 100%; margin-top: 6px; padding: 13px 14px; border: 1px solid var(--line); background: white; color: var(--ink); }
.auth-form .primary-button { margin-top: 4px; }
.registration-form { grid-column: 3; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.form-divider { display: grid; gap: 4px; }
.form-divider span { color: var(--clay-dark); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.form-divider p, .registration-status { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.registration-submit { margin-top: 4px; }
.registration-status { padding: 10px 12px; border-left: 4px solid #315b3c; background: #e0e8dc; color: #315b3c; }
.owner-card { padding: 24px; border: 1px solid var(--line); background: #e5dfcf; }
.owner-card p { margin: 0; color: var(--muted); font-size: 11px; }
.owner-card h3 { margin: 8px 0; font-family: var(--serif); font-size: 32px; font-weight: 400; overflow-wrap: anywhere; }
.owner-card span { display: block; color: var(--clay-dark); font-size: 11px; font-weight: 800; }
.outline-dark-button { width: 100%; min-height: 46px; margin-top: 28px; border: 1px solid var(--ink); background: transparent; cursor: pointer; font-weight: 760; }
.outline-dark-button:hover { background: var(--ink); color: white; }
.audit-open-button { margin-top: 24px; background: var(--ink); color: white; }
.audit-open-button + .outline-dark-button { margin-top: 10px; }
.user-management { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.user-management h4 { margin: 0 0 10px; font-family: var(--serif); font-size: 21px; font-weight: 400; }
.user-decision { min-height: 44px; padding: 0 10px; border: 1px solid var(--ink); background: transparent; cursor: pointer; font-size: 10px; font-weight: 780; }
.user-decision.approve { background: var(--ink); color: white; }
.user-request { padding: 10px 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; border-top: 1px solid rgba(23,24,20,.13); }
.user-request > div:first-child span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.user-request > div:last-child { display: flex; gap: 6px; }
.dialog-boundary { grid-column: 2 / -1; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.5; }
.audit-dialog { width: min(1120px, calc(100vw - 32px)); }
.audit-shell { display: block; padding: 42px 46px 38px; background-color: #eee8dc; background-image: repeating-linear-gradient(0deg, transparent 0, transparent 27px, rgba(23,24,20,.035) 28px); }
.audit-heading { max-width: 720px; padding-right: 60px; }
.audit-heading .eyebrow { margin: 0 0 10px; color: var(--clay-dark); }
.audit-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(38px,5vw,58px); line-height: .95; font-weight: 400; }
.audit-heading > p:last-child { max-width: 650px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.readiness-block { position: relative; margin-top: 30px; padding: 24px 26px; display: flex; align-items: center; gap: 28px; overflow: hidden; border: 2px solid #7b251c; background: #f3ded8; }
.readiness-block::after { content: ''; position: absolute; width: 190px; height: 190px; right: -60px; top: -75px; border: 1px solid rgba(123,37,28,.24); border-radius: 50%; }
.readiness-stamp { flex: 0 0 auto; padding: 9px 12px 7px; border: 2px solid #7b251c; color: #7b251c; font-size: 11px; font-weight: 900; letter-spacing: .12em; transform: rotate(-2deg); }
.readiness-block p { margin: 0; color: #7b251c; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.readiness-block h3 { margin: 4px 0 0; font-family: var(--serif); font-size: 27px; font-weight: 400; }
.readiness-gates { margin-top: 12px; display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.readiness-gate { min-height: 118px; padding: 18px 20px; display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-content: start; background: var(--paper-bright); }
.readiness-gate > span { align-self: start; padding: 4px 6px; background: #7b251c; color: white; font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.readiness-gate.is-passed > span { background: #315b3c; }
.readiness-gate strong { font-size: 13px; }
.readiness-gate p { grid-column: 2; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.audit-register { margin-top: 34px; }
.audit-register-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.audit-register-head h3 { margin: 0; font-family: var(--serif); font-size: 29px; font-weight: 400; }
.audit-register-head p { margin: 0; color: var(--muted); font-size: 10px; text-align: right; }
.audit-events { position: relative; }
.audit-events::before { content: ''; position: absolute; left: 35px; top: 0; bottom: 0; width: 2px; background: var(--clay); }
.audit-event { position: relative; min-height: 82px; padding: 14px 0; display: grid; grid-template-columns: 70px minmax(240px,1fr) auto; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); }
.audit-sequence { position: relative; z-index: 1; width: 40px; margin-left: 15px; padding: 5px 0; background: #eee8dc; color: var(--clay-dark); font-size: 10px; font-weight: 900; text-align: center; }
.audit-event-content strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 400; }
.audit-event-content p { margin: 4px 0; color: var(--muted); font-size: 10px; }
.audit-event-content code { font-size: 9px; color: #62645c; overflow-wrap: anywhere; }
.audit-reason { padding: 6px 8px; border: 1px solid var(--line); font-size: 9px; font-weight: 800; }
.audit-event.is-completed .audit-reason { border-color: #65836c; color: #315b3c; }
.audit-event.is-rejected .audit-reason { border-color: #9b5047; color: #7b251c; }
.audit-empty { padding: 34px 12px 34px 70px; color: var(--muted); }
.audit-empty.is-error { color: #7b251c; }
.audit-boundary { margin: 26px 0 0; padding: 16px 18px; border-left: 5px solid var(--clay); background: #ded5c3; color: var(--muted); font-size: 10px; line-height: 1.5; }
.projects-dialog { width: min(1040px, calc(100vw - 32px)); }
.projects-shell { display: block; min-height: 430px; }
.projects-heading { max-width: 720px; padding-right: 60px; }
.projects-list { margin-top: 30px; border-top: 1px solid var(--line); }
.project-row { min-height: 92px; padding: 18px 0; display: grid; grid-template-columns: 58px minmax(180px, 1fr) 160px 120px auto; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); }
.project-index { color: var(--clay-dark); font-size: 11px; font-weight: 850; }
.project-main strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 400; }
.project-main small, .project-meta { color: var(--muted); font-size: 11px; line-height: 1.4; }
.project-open { min-height: 42px; padding: 0 14px; border: 1px solid var(--ink); background: transparent; cursor: pointer; font-weight: 750; }
.project-open:hover { background: var(--ink); color: white; }
.projects-empty { padding: 42px 0; color: var(--muted); }
.projects-note { margin: 24px 0 0; padding: 14px 16px; border-left: 4px solid var(--clay); background: #f3eee4; color: var(--muted); font-size: 11px; }
.market-dialog { width: min(1120px, calc(100vw - 32px)); }
.market-shell { display: block; min-height: 480px; padding: 42px 46px 38px; background: #eee8dc; }
.market-heading { max-width: 760px; padding-right: 60px; }
.market-heading .eyebrow { margin: 0 0 10px; color: var(--clay-dark); }
.market-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(38px,5vw,58px); line-height: .95; font-weight: 400; }
.market-heading > p:last-child { color: var(--muted); font-size: 12px; line-height: 1.55; }
.market-list { margin-top: 30px; display: grid; gap: 14px; }
.market-card { border: 1px solid var(--line); background: var(--paper-bright); }
.market-card > header { padding: 20px 22px; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.market-card > header span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.market-card h3 { margin: 5px 0 0; font-family: var(--serif); font-size: 25px; font-weight: 400; }
.auction-state { align-self: start; padding: 7px 8px 5px; border: 2px solid var(--clay-dark); color: var(--clay-dark); font-size: 8px; letter-spacing: .08em; white-space: nowrap; transform: rotate(-1deg); }
.auction-state.is-awarded { border-color: #315b3c; color: #315b3c; }
.market-card > dl { margin: 0; padding: 16px 22px; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; border-bottom: 1px solid var(--line); }
.market-card > dl div { min-width: 0; }
.market-card dt { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.market-card dd { margin: 5px 0 0; font-size: 12px; overflow-wrap: anywhere; }
.market-card > h4 { margin: 18px 22px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.market-bids { margin: 0; padding: 0 22px 14px; list-style: none; }
.market-bids li { min-height: 72px; padding: 12px 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); }
.market-bids li:last-child { border-bottom: 0; }
.market-bids strong, .market-bids span, .market-bids small { display: block; }
.market-bids span, .market-bids small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.market-bids li > div:last-child { text-align: right; }
.market-bids li > div:last-child b { display: block; font-family: var(--serif); font-size: 19px; font-weight: 400; }
.market-small-action { min-height: 44px; margin-top: 7px; padding: 0 14px; border: 1px solid var(--ink); background: var(--ink); color: white; cursor: pointer; font-weight: 760; }
.market-small-action.is-thread { background: transparent; color: var(--ink); }
.notification-button #notification-count { display: inline-grid; min-width: 22px; min-height: 22px; margin-left: 5px; padding: 0 5px; place-items: center; border-radius: 99px; background: var(--clay-dark); color: white; font-size: 10px; }
.notification-button #notification-count[hidden] { display: none; }
.conversation-dialog { width: min(860px, calc(100vw - 32px)); }
.conversation-shell, .notifications-shell { display: block; min-height: 430px; padding: 40px 44px 32px; background: #eee8dc; }
.conversation-heading { max-width: 680px; padding-right: 52px; }
.conversation-heading .eyebrow { margin: 0 0 9px; color: var(--clay-dark); }
.conversation-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(35px, 5vw, 52px); line-height: .98; font-weight: 400; }
.conversation-heading > p:last-child { color: var(--muted); font-size: 12px; line-height: 1.5; }
.conversation-thread { max-height: min(430px, 48vh); margin-top: 24px; padding: 18px; overflow: auto; border: 1px solid var(--line); background: var(--paper-bright); }
.conversation-empty { margin: 22px 0; color: var(--muted); text-align: center; font-size: 12px; }
.conversation-message { width: min(82%, 620px); margin: 0 0 14px; padding: 13px 15px; border-left: 3px solid var(--clay); background: #f2eee5; }
.conversation-message.is-own { margin-left: auto; border-left: 0; border-right: 3px solid var(--ink); background: #e3ded2; }
.conversation-message header { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 9px; }
.conversation-message p { margin: 7px 0 0; white-space: normal; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; }
.conversation-form { margin-top: 14px; padding: 16px 18px; border: 1px solid var(--line); background: #e4ddcf; }
.conversation-form label { display: block; color: var(--muted); font-size: 10px; }
.conversation-form textarea { width: 100%; min-height: 88px; margin-top: 7px; padding: 12px; resize: vertical; border: 1px solid var(--line); background: white; color: var(--ink); font: inherit; }
.conversation-form > div { margin-top: 9px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.conversation-form > div span { color: var(--muted); font-size: 10px; }
.conversation-boundary { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.5; }
.notifications-list { margin-top: 24px; display: grid; gap: 10px; }
.notification-row { min-height: 72px; padding: 13px 15px; display: grid; grid-template-columns: 10px minmax(0,1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--line); background: var(--paper-bright); }
.notification-row > i { width: 9px; height: 9px; border-radius: 50%; background: transparent; }
.notification-row.is-unread > i { background: var(--clay-dark); }
.notification-row strong, .notification-row small { display: block; }
.notification-row small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.orders-dialog { width: min(1180px, calc(100vw - 32px)); }
.orders-shell { display: block; min-height: 560px; padding: 42px 46px 34px; background: #eee8dc; }
.orders-heading { max-width: 790px; padding-right: 58px; }
.orders-heading .eyebrow { margin: 0 0 10px; color: var(--clay-dark); }
.orders-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(38px,5vw,58px); line-height: .96; font-weight: 400; }
.orders-heading > p:last-child { color: var(--muted); font-size: 12px; line-height: 1.55; }
.orders-layout { min-height: 420px; margin-top: 28px; display: grid; grid-template-columns: 250px minmax(0,1fr); border: 1px solid var(--line); background: var(--paper-bright); }
.orders-navigation { padding: 10px; display: flex; flex-direction: column; gap: 7px; border-right: 1px solid var(--line); background: #ddd5c6; }
.order-nav-item { min-height: 86px; padding: 13px 14px; border: 1px solid transparent; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.order-nav-item:hover { border-color: var(--line); background: #eae4d9; }
.order-nav-item.is-active { border-color: var(--ink); background: var(--paper-bright); box-shadow: inset 4px 0 var(--clay); }
.order-nav-item span, .order-nav-item strong, .order-nav-item small { display: block; }
.order-nav-item span { color: var(--clay-dark); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.order-nav-item strong { margin-top: 5px; font-family: var(--serif); font-size: 17px; font-weight: 500; line-height: 1.08; }
.order-nav-item small { margin-top: 7px; color: var(--muted); font-size: 9px; }
.order-detail { min-width: 0; }
.order-workspace { padding: 25px 28px 28px; }
.order-workspace > header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.order-workspace > header span { color: var(--muted); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.order-workspace > header h3 { margin: 6px 0 0; font-family: var(--serif); font-size: clamp(27px,3vw,37px); line-height: 1; font-weight: 400; }
.order-workspace > header p { margin: 8px 0 0; color: var(--muted); font-size: 10px; }
.order-status { flex: 0 0 auto; padding: 8px 9px 6px; border: 2px solid var(--clay-dark); color: var(--clay-dark); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-1deg); }
.order-status.is-completed { border-color: #315b3c; color: #315b3c; }
.order-status.is-cancelled, .order-status.is-disputed { border-color: #7b251c; color: #7b251c; }
.order-steps { margin: 24px 0 0; padding: 0; display: flex; list-style: none; }
.order-steps li { position: relative; flex: 1 1 0; min-width: 0; padding-top: 26px; color: var(--muted); font-size: 8px; text-align: center; }
.order-steps li::before { content: ""; position: absolute; top: 10px; left: 0; right: 0; height: 2px; background: var(--line); }
.order-steps li:first-child::before { left: 50%; }
.order-steps li:last-child::before { right: 50%; }
.order-steps li span { position: absolute; z-index: 1; top: 1px; left: 50%; width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper-bright); transform: translateX(-50%); }
.order-steps li.is-done::before, .order-steps li.is-done + li::before { background: #315b3c; }
.order-steps li.is-done span { border-color: #315b3c; background: #315b3c; color: white; }
.order-steps li.is-current { color: var(--ink); }
.order-steps li.is-current span { border: 2px solid var(--clay-dark); color: var(--clay-dark); font-weight: 850; }
.order-steps b { font-weight: 750; }
.order-terms { margin-top: 24px; display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); }
.order-terms > div { min-width: 0; padding: 14px; border-right: 1px solid var(--line); }
.order-terms > div:last-child { border-right: 0; background: var(--ink); color: white; }
.order-terms small, .order-terms strong { display: block; }
.order-terms small { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.order-terms .is-total small { color: #c8c1b4; }
.order-terms strong { margin-top: 6px; font-family: var(--serif); font-size: 18px; font-weight: 400; overflow-wrap: anywhere; }
.order-spec { margin: 14px 0 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.order-spec > div { min-width: 0; padding: 12px 14px; background: #f0ece4; }
.order-spec dt { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.order-spec dd { margin: 4px 0 0; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.order-confirmations { margin-top: 14px; padding: 14px; border-left: 4px solid var(--clay); background: #e8e1d4; }
.order-confirmations h4 { margin: 0; font-size: 10px; text-transform: uppercase; }
.order-confirmations > div { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.order-confirmations span { min-height: 32px; padding: 8px 10px; border: 1px dashed var(--line); color: var(--muted); font-size: 9px; }
.order-confirmations span.is-confirmed { border-style: solid; border-color: #315b3c; color: #315b3c; font-weight: 800; }
.order-actions { margin-top: 16px; display: flex; gap: 9px; flex-wrap: wrap; }
.order-action { min-height: 46px; padding: 0 17px; border: 1px solid var(--ink); cursor: pointer; font-weight: 800; }
.order-action.is-primary { background: var(--ink); color: white; }
.order-action.is-danger { margin-left: auto; border-color: #7b251c; background: transparent; color: #7b251c; }
.order-action:disabled { opacity: .55; cursor: wait; }
.order-no-action { margin: 16px 0 0; color: var(--muted); font-size: 11px; }
.order-history { margin-top: 20px; border-top: 1px solid var(--line); }
.order-history summary { min-height: 44px; padding: 14px 0; cursor: pointer; font-size: 10px; font-weight: 800; }
.order-history ol { margin: 0; padding: 0; list-style: none; }
.order-history li { padding: 10px 0; border-top: 1px solid var(--line); }
.order-history li span, .order-history li small { display: block; }
.order-history li span { font-size: 11px; }
.order-history li small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.order-history li p { margin: 7px 0 0; font-size: 10px; }
.order-terminal { margin: 18px 0 0; padding: 13px 14px; border-left: 4px solid #7b251c; background: #f0dfd8; color: #6b2d25; font-size: 11px; }
.order-review-form { margin-top: 18px; padding: 18px; display: grid; grid-template-columns: 150px 1fr; gap: 12px; border: 1px solid var(--line); background: #f1eadb; }
.order-review-form h4 { grid-column: 1 / -1; margin: 0; font-family: Georgia,serif; font-size: 21px; }
.order-review-form label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; }
.order-review-form select, .order-review-form textarea { width: 100%; padding: 11px; border: 1px solid var(--line); background: white; color: var(--ink); }
.order-review-form button { grid-column: 2; justify-self: end; }
.order-review-form p { grid-column: 1 / -1; margin: 0; color: #7b251c; font-size: 10px; }
.order-reviewed { margin: 18px 0 0; padding: 14px; border-left: 4px solid #587d6c; background: #dfebe3; font-size: 11px; }
.order-empty { margin: 0; padding: 48px 28px; color: var(--muted); font-size: 12px; }
.orders-boundary { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.5; }
.profile-dialog { width: min(1000px,calc(100vw - 32px)); }
.dialog-shell.profile-shell { display: block; padding: 44px; }
.profile-heading { padding-right: 48px; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.profile-heading h2 { margin: 5px 0 9px; font-family: Georgia,serif; font-size: 44px; line-height: 1; }
.profile-heading p:last-child { max-width: 720px; color: var(--muted); }
.profile-public { margin-top: 22px; }
.profile-summary { padding: 18px; display: flex; justify-content: space-between; gap: 20px; border: 1px solid var(--line); background: var(--ink); color: white; }
.profile-summary div { display: grid; gap: 5px; }
.profile-summary span, .profile-summary small { color: #bbb8ae; font-size: 10px; }
.profile-summary strong { font-size: 22px; }
.profile-summary > b { align-self: center; color: #f4c5a9; font-size: 12px; text-align: right; }
.profile-about { margin: 18px 0; max-width: 760px; line-height: 1.6; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.profile-tags span { padding: 7px 10px; border: 1px solid var(--line); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.profile-tags .is-open { border-color: #587d6c; background: #dfebe3; color: #315a48; }
.profile-portfolio, .profile-reviews { margin-top: 24px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.profile-portfolio h3, .profile-reviews h3 { grid-column: 1 / -1; margin: 0 0 5px; font-family: Georgia,serif; font-size: 25px; }
.profile-portfolio article, .profile-reviews article { padding: 16px; display: grid; gap: 7px; border: 1px solid var(--line); background: #f4efe4; }
.profile-portfolio article span, .profile-reviews article small { color: var(--muted); font-size: 9px; }
.profile-portfolio article p, .profile-reviews article p { margin: 0; font-size: 11px; line-height: 1.5; }
.profile-reviews article b { color: var(--clay-dark); letter-spacing: .08em; }
.profile-empty { padding: 16px; border: 1px dashed var(--line); color: var(--muted); font-size: 11px; }
.profile-form { min-width: 0; margin-top: 28px; padding-top: 22px; display: grid; gap: 14px; border-top: 1px solid var(--line); }
.profile-form label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; }
.profile-form input, .profile-form textarea { width: 100%; padding: 11px; border: 1px solid var(--line); background: white; color: var(--ink); }
.profile-form small { line-height: 1.5; }
.profile-grid { display: grid; grid-template-columns: 1fr 180px; gap: 12px; }
.profile-verticals, .profile-toggles { min-width: 0; padding: 13px; display: flex; flex-wrap: wrap; gap: 14px; border: 1px solid var(--line); }
.profile-verticals legend { padding: 0 7px; color: var(--muted); font-size: 10px; }
.profile-verticals label, .profile-toggles label { display: flex; align-items: center; gap: 7px; }
.profile-verticals input, .profile-toggles input { width: 18px; height: 18px; }
.profile-submit-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.profile-submit-row span { color: var(--muted); font-size: 10px; }
.profile-submit-row button { margin: 0; min-height: 44px; }
.profile-submit-row .market-action { grid-column: auto; }
.profile-boundary { margin: 24px 0 0; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.5; }
.profile-report { min-height: 44px; justify-self: start; margin-top: 6px; padding: 10px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--clay-dark); cursor: pointer; font: inherit; font-size: 10px; font-weight: 800; }
.profile-reviews article.is-restricted { border-color: #965444; background: #f0dfd8; }
.moderation-chip { width: max-content; padding: 6px 8px; border: 1px solid #8b8171; background: #ece5d8; color: #514a40; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.moderation-chip.is-open, .moderation-chip.is-appealed { border-color: #a06d2d; background: #f6e8cb; color: #75490f; }
.moderation-chip.is-restricted, .moderation-chip.is-upheld { border-color: #8b3d32; background: #f0d9d4; color: #702a22; }
.moderation-chip.is-restored, .moderation-chip.is-dismissed { border-color: #587d6c; background: #dfebe3; color: #315a48; }
.profile-restriction { margin-bottom: 16px; padding: 16px 18px; display: grid; gap: 5px; border-left: 5px solid #8b3d32; background: #f0d9d4; color: #702a22; }
.profile-restriction span { font-size: 10px; line-height: 1.5; }
.profile-moderation { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.profile-moderation h3 { margin: 0 0 12px; font-family: Georgia,serif; font-size: 25px; }
.profile-moderation article { margin-top: 10px; padding: 16px; display: grid; gap: 10px; border: 1px solid var(--line); background: #f4efe4; }
.profile-moderation p, .profile-moderation small { margin: 0; font-size: 10px; line-height: 1.5; }
.profile-moderation form { display: grid; grid-template-columns: 1fr auto; gap: 9px 12px; align-items: end; }
.profile-moderation label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; }
.profile-moderation textarea { width: 100%; padding: 10px; border: 1px solid var(--line); background: white; }
.profile-moderation form span { grid-column: 1 / -1; font-size: 10px; color: #702a22; }
.report-dialog { width: min(720px,calc(100vw - 32px)); }
.moderation-dialog { width: min(1120px,calc(100vw - 32px)); }
.report-shell, .moderation-shell { display: block; padding: 44px; }
.moderation-heading { padding-right: 48px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.moderation-heading h2 { margin: 5px 0 9px; font-family: Georgia,serif; font-size: 44px; line-height: 1; }
.moderation-heading p:last-child { max-width: 760px; color: var(--muted); line-height: 1.5; }
.report-form { margin-top: 22px; display: grid; gap: 14px; }
.report-form label, .moderation-decision label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; }
.report-form select, .report-form textarea, .moderation-decision select, .moderation-decision textarea { width: 100%; padding: 11px; border: 1px solid var(--line); background: white; color: var(--ink); }
.moderation-submit { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.moderation-submit span { color: #702a22; font-size: 10px; }
.moderation-submit .market-action { grid-column: auto; margin: 0; }
.moderation-boundary { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.5; }
.moderation-list { margin-top: 22px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.moderation-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-top: 6px solid var(--clay); background: #f4efe4; box-shadow: 4px 4px 0 #d6cdbd; }
.moderation-card > header { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.moderation-card > header span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.moderation-card h3 { margin: 5px 0 0; font-family: Georgia,serif; font-size: 23px; overflow-wrap: anywhere; }
.moderation-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.moderation-card dl div, .moderation-card section { padding: 11px; border: 1px solid var(--line); background: #fbf8f1; }
.moderation-card dt, .moderation-card h4 { margin: 0; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.moderation-card dd, .moderation-card p { margin: 5px 0 0; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.moderation-card .moderation-appeal { border-left: 4px solid #a06d2d; background: #f6e8cb; }
.moderation-decision { margin-top: 14px; padding-top: 14px; display: grid; grid-template-columns: 180px 1fr; gap: 10px; border-top: 1px solid var(--line); }
.moderation-decision button { grid-column: 2; justify-self: end; margin: 0; }
.moderation-decision span { grid-column: 1 / -1; color: #702a22; font-size: 10px; }
.moderation-closed, .moderation-empty { color: var(--muted); font-size: 11px; }
.bid-state { color: var(--clay-dark) !important; font-weight: 800; }
.market-empty-bids { color: var(--muted); font-size: 11px; }
.bid-form { padding: 18px 22px; display: grid; grid-template-columns: repeat(3, minmax(120px,1fr)) 1.4fr auto; gap: 12px; align-items: end; border-top: 1px solid var(--line); background: #e5dfcf; }
.bid-form label { color: var(--muted); font-size: 9px; }
.bid-form input { width: 100%; margin-top: 5px; padding: 10px; border: 1px solid var(--line); background: white; }
.bid-form .market-action { grid-column: auto; min-height: 44px; margin: 0; }
.toast { position: fixed; z-index: 60; right: 24px; bottom: 24px; max-width: 360px; background: var(--ink); color: white; border-left: 4px solid var(--clay); padding: 16px 18px; box-shadow: 0 14px 40px rgba(0,0,0,.28); font-size: 13px; line-height: 1.45; }
.noscript { margin: 0; padding: 14px; background: #fff0d7; color: #5f3d19; text-align: center; }

@media (max-width: 1120px) {
  .workspace { grid-template-columns: minmax(460px, .98fr) minmax(360px, 1.02fr); }
  .control-panel { padding-left: 42px; padding-right: 42px; }
  .visual-stage { padding: 52px 34px; }
  .material-strip { width: 90px; height: 180px; right: 2.5%; }
  .stage-caption { left: 4%; }
  .vertical-choice small { display: none; }
}

@media (max-width: 900px) {
  .topbar { height: 68px; padding: 0 28px; }
  .workspace { min-height: auto; display: flex; flex-direction: column; overflow: visible; }
  .map-flow { flex-wrap: wrap; justify-content: flex-start; }
  .visual-stage { order: -1; min-height: 620px; padding: 64px 72px 34px; grid-template-rows: auto auto; align-content: center; row-gap: 22px; }
  .photo-frame { width: min(100%, 640px); grid-row: 1; }
  .material-strip { width: 104px; height: 195px; right: 5%; bottom: 8%; }
  .stage-caption { position: relative; left: auto; bottom: auto; grid-row: 2; place-self: start center; width: min(100%, 640px); max-width: none; display: flex; align-items: end; gap: 22px; }
  .stage-caption span { flex: 0 0 190px; }
  .stage-caption p { margin: 0; }
  .control-panel { padding: 48px 46px 64px; }
  .control-panel::before { display: none; }
  h1 { max-width: 760px; font-size: clamp(50px,8vw,70px); }
  .vertical-choice small { display: block; }
  .task-row { grid-template-columns: 190px 1fr; }
  .results-section, .platform-map { padding-left: 46px; padding-right: 46px; }
  .estimate-card { grid-template-columns: 1fr; }
  .estimate-summary { min-height: 260px; }
  .save-panel { grid-template-columns: 70px 1fr; }
  .save-button { grid-column: 2; justify-self: start; }
  .save-status { grid-column: 2; }
  .route-result { grid-template-columns: 1fr; }
  .route-result-header { display: grid; grid-template-columns: 90px 1fr; gap: 0 18px; align-items: start; }
  .route-result-header > span { grid-row: 1 / 3; }
  .route-result-header h3 { margin: 0; }
  .route-result-header p { grid-column: 2; }
  .safety-callout, .auction-grid, .market-action, .market-status { grid-column: 1; }
  .vertical-details article { padding: 22px; }
  .dialog-shell { grid-template-columns: 82px 1fr; padding: 38px; }
  .dialog-mark { width: 72px; height: 100px; }
  .auth-form, .owner-card, .registration-form { grid-column: 2; }
  .dialog-boundary { grid-column: 2; }
  .project-row { grid-template-columns: 44px 1fr 120px auto; }
  .project-meta.date { display: none; }
  .audit-shell { padding: 38px; }
  .market-shell { padding: 38px; }
  .orders-shell { padding: 38px; }
  .orders-layout { grid-template-columns: 1fr; }
  .orders-navigation { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 38%); overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .order-nav-item.is-active { box-shadow: inset 0 -4px var(--clay); }
  .bid-form { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 600px) {
  .notification-button { min-width: 44px; justify-content: center; }
  .notification-button::before { content: "✦"; font-size: 16px; }
  .notification-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .notification-button #notification-count { min-width: 18px; min-height: 18px; margin-left: -3px; padding: 0 4px; }
  .top-actions .outline-button { max-width: 72px; }
}

@media (max-width: 700px) {
  .visual-stage { min-height: 450px; padding: 55px 38px 82px; }
  .material-strip { display: none; }
  .route-choice { grid-template-columns: 1fr; }
  .line-row { grid-template-columns: minmax(110px,1fr) 80px 135px; }
  .diy-steps li { grid-template-columns: 30px 1fr; }
  .diy-steps span { grid-column: 2; }
  .map-flow { flex-wrap: wrap; justify-content: flex-start; }
  .vertical-details { grid-template-columns: 1fr; }
  .vertical-details article { min-height: auto; }
  .moderation-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .topbar { height: 62px; padding: 0 16px; }
  .brand { gap: 8px; font-size: 14px; }
  .brand-mark { transform: scale(.82); transform-origin: left center; margin-right: -5px; }
  .brand > span:last-child { display: none; }
  .top-actions { gap: 3px; }
  .top-actions .outline-button { width: 72px; min-width: 0; max-width: 72px; }
  .top-actions .quiet-button { width: 44px; min-width: 44px; padding: 0; justify-content: center; font-size: 0; }
  #orders-button::before { content: "З"; font-size: 11px; font-weight: 900; }
  #market-button::before { content: "Т"; font-size: 11px; font-weight: 900; }
  #my-projects-button::before { content: "П"; font-size: 11px; font-weight: 900; }
  #profile-button::before { content: "М"; font-size: 11px; font-weight: 900; }
  #moderation-button::before { content: "К"; font-size: 11px; font-weight: 900; }
  .outline-button { max-width: 118px; padding: 8px 7px; font-size: 11px; }
  .visual-stage { min-height: 390px; padding: 42px 22px 20px; row-gap: 13px; }
  .stage-ruler { top: 14px; }
  .photo-frame { width: 100%; border-width: 6px; transform: rotate(-.7deg); }
  .stage-caption { width: 100%; display: flex; gap: 16px; align-items: end; }
  .stage-caption span { font-size: 16px; flex: 0 0 135px; }
  .stage-caption p { margin: 0; font-size: 9px; }
  .control-panel { padding: 36px 18px 52px; }
  .step-kicker { font-size: 10px; }
  .eyebrow { margin-top: 22px; font-size: 10px; }
  h1 { font-size: clamp(39px,12.8vw,54px); line-height: .98; }
  .hero-copy { margin: 20px 0 24px; font-size: 14px; line-height: 1.5; }
  .vertical-picker { grid-template-columns: 1fr; border-bottom: 0; }
  .vertical-choice { min-height: 58px; grid-template-columns: 28px 1fr; align-items: center; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.17); padding: 12px; }
  .vertical-choice.active { box-shadow: inset 4px 0 var(--clay); }
  .vertical-choice small { margin-top: 3px; }
  .task-row { grid-template-columns: 1fr; gap: 7px; margin-top: 22px; }
  .upload-block { grid-template-columns: 1fr; }
  .upload-label { min-height: 66px; }
  .demo-link { justify-self: start; padding: 8px 12px 11px; }
  .measure-grid { grid-template-columns: 1fr; }
  .ai-analysis-panel { padding: 16px 14px; }
  .ai-analysis-heading h3 { font-size: 22px; }
  .reference-panel { padding: 16px 14px; }
  .materials-panel { padding: 16px 14px; }
  .reference-heading h3 { font-size: 22px; }
  .reference-search-form > div { grid-template-columns: 1fr; gap: 8px; }
  .reference-search-form input { border-right: 1px solid rgba(255,255,255,.23); }
  .reference-results { grid-template-columns: 1fr; }
  .materials-list { grid-template-columns: 1fr; }
  .ai-observations li { grid-template-columns: 1fr; }
  .ai-observations li small { grid-column: 1; }
  .section-heading h2 { font-size: 25px; }
  .results-section, .platform-map { padding: 56px 18px 64px; }
  .results-intro h2, .platform-map h2 { font-size: 42px; }
  .option-tabs { grid-template-columns: 1fr; }
  .option-tab { display: grid; grid-template-columns: 1fr auto; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); padding: 14px; }
  .option-tab:last-child { border-bottom: 0; }
  .option-tab strong { font-size: 19px; }
  .option-tab span { margin-top: 0; text-align: right; }
  .estimate-summary, .estimate-lines { padding: 22px 18px; }
  .estimate-summary h3 { font-size: 30px; }
  .estimate-summary .price { font-size: 23px; }
  .save-panel { padding: 18px; grid-template-columns: 52px 1fr; gap: 13px; }
  .save-stamp { width: 48px; height: 48px; font-size: 8px; }
  .save-copy h3 { font-size: 21px; }
  .save-button, .save-status { grid-column: 1 / -1; }
  .save-button { width: 100%; }
  .save-status { margin-top: 0; }
  .line-row { grid-template-columns: 1fr auto; gap: 5px 12px; }
  .line-row span:nth-child(2) { text-align: left; }
  .line-row strong { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .route-choice { margin-top: 42px; }
  .route-buttons { grid-template-columns: 1fr; }
  .route-result-header { display: block; padding: 22px 18px; }
  .route-result-header h3 { margin: 13px 0; font-size: 29px; }
  .diy-steps { padding: 12px 18px; }
  .safety-callout, .market-action, .market-status { margin-left: 18px; margin-right: 18px; }
  .brief-summary { padding: 12px 18px 0; grid-template-columns: 120px 1fr; }
  .auction-grid { padding: 20px 18px; grid-template-columns: 1fr; }
  .checkbox-line { grid-column: 1; }
  .map-flow { display: grid; grid-template-columns: 1fr auto; }
  .map-flow span:last-child { grid-column: 1; }
  .map-flow b:last-of-type { display: none; }
  .footer { align-items: start; flex-direction: column; padding: 28px 18px; }
  .toast { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .work-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .work-dialog.profile-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .dialog-shell { min-height: 0; padding: 28px 18px 22px; display: grid; grid-template-columns: 50px 1fr; gap: 17px 14px; }
  .dialog-close { right: 8px; top: 8px; width: 44px; height: 44px; }
  .dialog-mark { width: 48px; height: 72px; padding: 9px 5px; }
  .dialog-mark span { font-size: 20px; }
  .dialog-intro { padding-right: 28px; }
  .dialog-intro h2, .projects-heading h2 { font-size: 35px; }
  .auth-form, .owner-card, .registration-form, .dialog-boundary { grid-column: 1 / -1; }
  .projects-shell { display: block; padding-top: 34px; }
  .projects-heading { padding-right: 32px; }
  .project-row { grid-template-columns: 34px 1fr auto; gap: 10px; }
  .project-main { grid-column: 2 / -1; }
  .project-meta { grid-column: 2; }
  .project-open { grid-column: 3; grid-row: 2; }
  .audit-shell { display: block; padding: 30px 18px 24px; }
  .market-shell { display: block; padding: 30px 18px 24px; }
  .orders-shell { display: block; padding: 30px 14px 22px; }
  .orders-heading { padding-right: 34px; }
  .orders-heading h2 { font-size: clamp(32px, 11vw, 43px); }
  .orders-layout { margin-top: 20px; }
  .orders-navigation { grid-auto-columns: minmax(190px, 78%); padding: 7px; }
  .order-workspace { padding: 20px 14px 22px; }
  .order-workspace > header { flex-direction: column; }
  .order-status { align-self: flex-start; }
  .order-steps { display: grid; grid-template-columns: 1fr; gap: 0; }
  .order-steps li { min-height: 38px; padding: 10px 0 10px 35px; text-align: left; }
  .order-steps li::before { top: 0; bottom: 0; left: 10px !important; right: auto !important; width: 2px; height: auto; }
  .order-steps li:first-child::before { top: 50%; }
  .order-steps li:last-child::before { bottom: 50%; }
  .order-steps li span { top: 50%; left: 10px; transform: translate(-50%,-50%); }
  .order-terms { grid-template-columns: 1fr 1fr; }
  .order-terms > div { border-bottom: 1px solid var(--line); }
  .order-terms > div:nth-child(2) { border-right: 0; }
  .order-terms > div:nth-child(3), .order-terms > div:nth-child(4) { border-bottom: 0; }
  .order-spec { grid-template-columns: 1fr; }
  .order-confirmations > div, .order-actions { flex-direction: column; }
  .order-confirmations span, .order-action { width: 100%; }
  .order-action.is-danger { margin-left: 0; }
  .order-review-form { grid-template-columns: 1fr; padding: 14px; }
  .order-review-form button { grid-column: 1; width: 100%; }
  .profile-shell { padding: 30px 16px 22px; }
  .profile-heading h2 { font-size: 36px; }
  .profile-summary { flex-direction: column; }
  .profile-summary > b { align-self: flex-start; text-align: left; }
  .profile-portfolio, .profile-reviews, .profile-grid { grid-template-columns: 1fr; }
  .profile-submit-row { align-items: stretch; flex-direction: column; }
  .profile-submit-row button { width: 100%; }
  .profile-moderation form, .moderation-decision { grid-template-columns: 1fr; }
  .profile-moderation form button, .moderation-decision button { grid-column: 1; width: 100%; }
  .report-shell, .moderation-shell { padding: 30px 16px 22px; }
  .moderation-heading h2 { font-size: 35px; }
  .moderation-card { padding: 15px; box-shadow: 2px 2px 0 #d6cdbd; }
  .moderation-card > header, .moderation-submit { align-items: stretch; flex-direction: column; }
  .moderation-card dl { grid-template-columns: 1fr; }
  .moderation-submit button { width: 100%; }
  .conversation-shell, .notifications-shell { padding: 30px 14px 22px; }
  .conversation-message { width: 94%; }
  .conversation-form > div { align-items: stretch; flex-direction: column; }
  .conversation-form button { width: 100%; }
  .notification-row { grid-template-columns: 9px minmax(0,1fr); }
  .notification-row button { grid-column: 2; width: 100%; }
  .market-heading { padding-right: 32px; }
  .bid-form { grid-template-columns: 1fr; }
  .market-card > header { flex-direction: column; }
  .auction-state { align-self: flex-start; }
  .market-card > dl { grid-template-columns: 1fr; }
  .user-request { grid-template-columns: 1fr; }
  .user-request > div:last-child { flex-wrap: wrap; }
  .audit-heading { padding-right: 32px; }
  .readiness-block { align-items: flex-start; flex-direction: column; gap: 14px; padding: 20px; }
  .readiness-gates { grid-template-columns: 1fr; }
  .readiness-gate { min-height: 0; }
  .audit-register-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .audit-register-head p { text-align: left; line-height: 1.4; }
  .audit-events::before { left: 24px; }
  .audit-event { grid-template-columns: 50px 1fr; gap: 10px; }
  .audit-sequence { width: 34px; margin-left: 7px; }
  .audit-reason { grid-column: 2; justify-self: start; }
}

@media (max-width: 360px) {
  .topbar { padding-left: 8px; padding-right: 8px; }
  .top-actions { gap: 2px; }
  .top-actions .quiet-button { width: 34px; min-width: 34px; }
  .top-actions .outline-button { width: 60px; max-width: 60px; font-size: 9px; }
  .moderation-card { padding: 12px; }
}

@media (max-width: 340px) {
  .topbar { padding: 0 12px; }
  .brand-mark { width: 30px; transform: scale(.68); }
  .top-actions { gap: 1px; }
  .top-actions .outline-button { width: 44px; max-width: 44px; padding-left: 3px; padding-right: 3px; font-size: 0; }
  #auth-button::before { content: "Вх"; font-size: 10px; font-weight: 900; }
  .visual-stage { min-height: 340px; padding: 38px 14px 16px; }
  .stage-caption span { flex-basis: 118px; font-size: 14px; }
  .stage-caption p { font-size: 8px; }
  .control-panel { padding-left: 14px; padding-right: 14px; }
  h1 { font-size: 38px; }
  .hero-copy { font-size: 13px; }
  .upload-label { padding-left: 9px; gap: 10px; }
  .upload-plus { flex-basis: 36px; height: 36px; }
  .results-section, .platform-map { padding-left: 14px; padding-right: 14px; }
  .results-intro h2, .platform-map h2 { font-size: 36px; }
  .option-tab { padding: 12px 10px; }
  .estimate-summary, .estimate-lines { padding-left: 14px; padding-right: 14px; }
  .brief-summary { grid-template-columns: 1fr; }
  .brief-summary dt { padding-bottom: 2px; border-bottom: 0; }
  .brief-summary dd { padding-top: 2px; }
}

@media (max-width: 900px) {
  .conversation-shell, .notifications-shell { display: block; padding: 30px 18px 24px; }
  .conversation-heading { padding-right: 46px; }
  .conversation-thread { max-height: min(390px, 44vh); }
  .conversation-form, .conversation-boundary { width: 100%; }
}

@media (max-width: 560px) {
  .conversation-shell, .notifications-shell { padding: 30px 14px 22px; }
  .conversation-heading h2 { font-size: clamp(32px, 11vw, 42px); overflow-wrap: anywhere; }
  .conversation-heading > p:last-child { font-size: 11px; }
  .conversation-thread { padding: 12px; }
  .conversation-message { width: 100%; }
  .conversation-form { padding: 14px 12px; }
}

@media (max-width: 340px) {
  .conversation-heading h2 { font-size: 29px; overflow-wrap: normal; hyphens: auto; }
}

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