:root{--ink:#302e2c;--muted:#7c7771;--paper:#f6f4ef;--line:#e7e3dd;--red:#742d37;--red-light:#f8f0f0;--green:#5f7766;--font:Arial,Helvetica,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:14px;line-height:1.5}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #a77760;outline-offset:4px}input:focus,select:focus{outline:2px solid #aa7a7f;outline-offset:1px}input[aria-invalid=true]{border-color:#b52635;background:#fff3f3}[hidden]{display:none!important}.site-header{height:90px;padding:0 max(32px,calc((100vw - 1280px)/2));border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;background:#fdfcf9;gap:20px}.brand{display:flex;align-items:center;gap:12px;font-size:17px;font-weight:700;letter-spacing:2.4px}.brand-mark{display:grid;place-items:center;width:43px;height:43px;background:var(--red);color:#fff;font-family:Georgia,serif;font-size:23px;letter-spacing:-2px;border-radius:4px;font-weight:400}.brand small{font-size:8px;display:block;letter-spacing:1.15px;color:var(--muted);margin-top:4px}.header-actions{display:flex;align-items:center;gap:26px}.private-label{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:7px}.private-label svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5}.button{border:1px solid var(--line);border-radius:6px;display:inline-flex;align-items:center;justify-content:center;gap:18px;padding:11px 17px;font-weight:600;font-size:12px;transition:background .15s}.button:hover{filter:brightness(.97)}.secondary{background:white;color:var(--ink)}.primary{background:var(--red);border-color:var(--red);color:white}main{max-width:1216px;margin:auto;padding:44px 0 0}.intro{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:34px}.eyebrow{font-size:10px;letter-spacing:1.9px;font-weight:700;color:var(--muted);margin:0 0 12px}h1{font-family:Georgia,'Times New Roman',serif;font-size:38px;line-height:1.18;letter-spacing:-1.2px;font-weight:400;margin:0 0 12px;max-width:680px}.intro-copy{color:var(--muted);font-size:14px;margin:0}.demo-chip{border:1px solid #e2d6bf;color:#877249;background:#faf6ec;border-radius:30px;padding:6px 12px;white-space:nowrap;font-size:11px;align-self:flex-start;margin-top:32px}.demo-chip span{width:5px;height:5px;background:#aa8951;display:inline-block;border-radius:100%;margin-right:6px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:26px;align-items:start}.card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:30px;margin-bottom:24px}.section-title{display:flex;align-items:flex-start;gap:14px;margin-bottom:28px}.step{border:1px solid #e7d9d8;background:#fcf8f7;border-radius:50%;color:var(--red);height:30px;min-width:30px;display:grid;place-items:center;font-size:11px;margin-top:2px}.section-title h2,h2{font-family:Georgia,'Times New Roman',serif;font-size:25px;line-height:1.2;font-weight:400;letter-spacing:-.3px;margin:0 0 6px}.section-title p{font-size:12px;color:var(--muted);margin:0}h3{font-size:13px;font-weight:600;margin:0}label,.field-label,legend{font-size:12px;font-weight:600}input[type=number],input[type=text],select{width:100%;height:43px;padding:10px 12px;border:1px solid #dfdcd6;border-radius:5px;background:#fff;color:var(--ink);min-width:0}label input,label select{margin-top:8px}.field-label{display:block;margin-bottom:8px}fieldset{border:0;padding:0;margin:25px 0}legend{padding:0;margin:0 0 10px}.option-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.choice{min-height:90px;border:1px solid var(--line);border-radius:6px;background:#fff;text-align:left;padding:17px;display:flex;align-items:center;gap:14px;position:relative;color:var(--ink)}.choice svg{width:38px;min-width:38px;fill:none;stroke:#827872;stroke-width:1.3}.choice strong{display:block;font-size:13px;font-weight:600}.choice small{display:block;color:var(--muted);font-size:10px;line-height:1.6;margin-top:4px}.choice i{border:1px solid #d4cfc9;width:12px;height:12px;border-radius:50%;position:absolute;right:11px;top:11px}.choice.active{border-color:#9a5a61;background:#fcf8f7;box-shadow:0 0 0 1px #9a5a6110}.choice.active i{border:3px solid #fff;background:var(--red);box-shadow:0 0 0 1px var(--red)}.grade{min-height:104px}.grade-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin:0 7px 1px 0}.gold{background:#bd9a56}.silver{background:#a0a5a8}.hint{font-size:11px;line-height:1.65;color:var(--muted);margin:9px 0 0}.label-line{display:flex;align-items:center;justify-content:space-between;margin:24px 0 14px}.unit-tag{font-size:8px;letter-spacing:1.1px;color:#969088}.fields{display:grid;gap:16px}.three{grid-template-columns:repeat(3,minmax(0,1fr))}.two{grid-template-columns:repeat(2,minmax(0,1fr))}.input-unit{display:flex;position:relative;align-items:center;margin-top:8px}.input-unit input{margin:0;padding-right:39px}.input-unit span{position:absolute;right:11px;color:#969089;font-size:10px;font-weight:400;pointer-events:none}.input-unit.prefix span{right:auto;left:13px;font-size:14px}.input-unit.prefix input{padding-left:31px;padding-right:10px}.toggle-row{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:23px 0;padding:17px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.toggle-row strong,.drawer-row strong{font-size:12px}.toggle-row small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.switch{position:relative;width:35px;min-width:35px;height:21px;cursor:pointer}.switch input{position:absolute;opacity:0;inset:0;margin:0}.switch span{position:absolute;inset:0;border-radius:20px;background:#ddd9d3;pointer-events:none;transition:.15s}.switch span:after{content:'';width:15px;height:15px;background:white;border-radius:50%;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #0002;transition:.15s}.switch input:checked+span{background:var(--red)}.switch input:checked+span:after{transform:translateX(14px)}.switch input:focus-visible+span{outline:3px solid #aa7a7f;outline-offset:3px}.conditional{padding:17px;background:#f8f7f4;border:1px solid var(--line);border-radius:6px;margin:16px 0}.conditional h3{margin-bottom:5px}.conditional .fields{margin-top:12px}.hardware-inputs{margin-top:16px}.divider{border-top:1px solid var(--line);margin:26px 0 0}.segmented{display:flex;padding:4px;background:#f3f1ed;border-radius:6px;width:100%;gap:4px;margin-bottom:18px}.segmented button{flex:1;background:transparent;border:0;color:var(--muted);padding:9px;border-radius:4px;font-size:12px}.segmented button.active{background:white;box-shadow:0 1px 4px #0000000c;color:var(--red);font-weight:600}.finish-preview{display:flex;align-items:center;gap:12px;margin:15px 0}.swatch{width:36px;height:36px;border:1px solid #b6a184;border-radius:5px;flex-shrink:0}.swatch-a{background:repeating-linear-gradient(89deg,#c8ae8c 0,#c8ae8c 3px,#b99c79 4px,#c6a987 5px,#d1b798 8px)}.swatch-b{background:#eae5dc;border-color:#d6d0c7}.finish-preview strong{font-size:11px}.finish-preview strong span{font-size:10px;font-weight:400;color:var(--muted);margin-left:5px}.finish-preview small{display:block;font-size:10px;color:var(--muted);margin-top:1px}.rate-hint{margin-left:auto;font-size:10px;color:var(--muted)}.range-label{display:block;margin:20px 0 0;font-size:11px}.range-fields{grid-template-columns:1fr 80px;align-items:center}input[type=range]{width:100%;accent-color:var(--red)}.drawer-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:20px;border-bottom:1px solid var(--line)}.drawer-row .hint{margin-top:3px}.compact-input{width:75px;min-width:75px}.compact-input input{margin:0;text-align:center}.accessory-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 0;border-bottom:1px solid #efede8}.accessory-info{display:flex;align-items:center;gap:12px}.accessory-icon{width:34px;height:34px;background:#f7f5f0;border-radius:7px;display:grid;place-items:center;flex-shrink:0}.accessory-icon svg{width:20px;height:20px;stroke:#8c8074;fill:none;stroke-width:1.4}.accessory-info strong{font-size:12px;font-weight:500}.accessory-info small{font-size:10px;color:var(--muted);display:block;margin-top:2px}.quantity-control{display:flex;align-items:center;border:1px solid var(--line);border-radius:5px;height:34px;flex-shrink:0}.quantity-control button{height:32px;width:28px;background:#faf9f7;border:0;color:var(--muted);font-size:16px}.quantity-control input{width:47px;border:0;text-align:center;padding:3px;border-radius:0;height:32px;margin:0;-moz-appearance:textfield;font-size:12px}.quantity-control input::-webkit-inner-spin-button{appearance:none}.note{font-size:11px;background:#f5f3ee;border:1px solid var(--line);border-radius:5px;padding:12px 14px;color:#817567;line-height:1.7;margin:18px 0 0}.estimate-sidebar{position:sticky;top:24px}.summary-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:22px}.summary-heading{display:flex;justify-content:space-between;align-items:center}.summary-heading .eyebrow{font-size:9px;margin:0}.live-dot{font-size:9px;color:var(--green)}.live-dot:before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:#7c9c7c;margin-right:5px}.wardrobe-drawing{height:244px;display:flex;align-items:center;justify-content:center;margin-top:14px;background:radial-gradient(ellipse at 50% 58%,#f5f2eb,white 70%)}.wardrobe-drawing svg{width:100%;height:100%;max-width:310px}.drawing-caption{display:flex;justify-content:space-between;font-size:8px;color:#a29a90;margin:0 0 21px}.summary-spec{padding-bottom:18px;border-bottom:1px solid var(--line)}.summary-spec strong{font-size:13px;display:block}.summary-spec span{font-size:11px;color:var(--muted);display:block;margin-top:4px}.area-stats{display:grid;grid-template-columns:1fr 1fr;padding:16px 0;border-bottom:1px solid var(--line)}.area-stats div+div{border-left:1px solid var(--line);padding-left:16px}.area-stats small{display:block;font-size:9px;color:var(--muted)}.area-stats strong{display:block;margin-top:4px;font-size:15px;font-weight:500}.summary-groups{padding:15px 0;border-bottom:1px solid var(--line)}.summary-groups div{display:flex;justify-content:space-between;padding:4px 0;font-size:11px;color:var(--muted)}.summary-groups b{font-weight:400;color:#59544e}.summary-total{margin:20px 0}.summary-total>span{display:block;font-size:11px}.summary-total strong{display:block;font-family:Georgia,serif;color:var(--red);font-size:37px;font-weight:400;letter-spacing:-1px;line-height:1.35;margin:3px 0}.summary-total small{display:block;color:var(--muted);font-size:9px}.summary-card .primary{width:100%;justify-content:space-between;padding:13px 17px}.demo-note{text-align:center;font-size:9px;color:#a09587;line-height:1.7;margin:13px 0 0}.save-status{font-size:10px;text-align:center;color:#999189;margin:11px}.estimate-section{scroll-margin-top:25px;margin-top:2px}.estimate-title{display:flex;align-items:start;justify-content:space-between;gap:20px}.export-actions{display:flex;gap:8px}.export-actions .button{font-size:10px;padding:9px 13px}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:11px}th{text-align:right;padding:12px;color:var(--muted);font-weight:500;font-size:10px;background:#f8f6f2;white-space:nowrap}th:first-child{text-align:left;border-radius:4px 0 0 4px;width:44%}td{padding:12px;border-bottom:1px solid #f0ede8;text-align:right;font-variant-numeric:tabular-nums}td:first-child{text-align:left}td small{display:block;color:#a09689;font-size:9px;line-height:1.5;margin-top:4px;max-width:390px}.group-row td{font-size:9px;font-weight:600;letter-spacing:1px;color:var(--red);background:#fdfbf9;padding-top:17px}.amount{white-space:nowrap;font-weight:500}tfoot td{padding:11px 12px;border:0}tfoot tr:last-child{background:#f9f2f2;color:var(--red);font-size:16px;font-weight:600}.table-note{font-size:10px;color:var(--muted);margin:14px 0 22px}.method{border-top:1px solid var(--line);padding-top:17px}.method summary{font-size:12px;color:var(--muted);cursor:pointer}.method-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 30px;margin-top:23px}.method h3{font-size:12px}.method p{font-size:11px;color:var(--muted);line-height:1.7}footer{padding:5px 0 30px;display:flex;justify-content:space-between;color:#aaa195;font-size:10px}footer span:first-child{font-size:9px;letter-spacing:1px}.footer-dot{margin:0 10px}dialog{border:1px solid var(--line);border-radius:12px;max-width:680px;width:calc(100% - 28px);max-height:88vh;padding:28px;box-shadow:0 30px 90px #1f141440;color:var(--ink)}dialog::backdrop{background:#25211e66;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:start}.dialog-head .eyebrow{margin-bottom:5px}.icon-button{border:1px solid var(--line);border-radius:50%;background:white;width:30px;height:30px;font-size:21px;color:var(--muted)}.rate-group{margin-top:25px}.rate-group h3{padding-bottom:10px;border-bottom:1px solid var(--line);color:var(--red)}.rate-row{display:grid;grid-template-columns:1fr 105px;gap:16px;align-items:center;padding:9px 0}.rate-row label{font-size:11px;font-weight:500}.rate-row small{display:block;font-size:10px;color:var(--muted);font-weight:400}.rate-row input{height:35px;font-size:12px}.dialog-actions{display:flex;justify-content:space-between;position:sticky;bottom:-28px;background:#fff;padding:18px 0 3px;border-top:1px solid var(--line);margin-top:22px;gap:12px}#errors,#ratesError{font-size:11px;color:#9b2535;background:#fff2f2;border:1px solid #ecc7cb;border-radius:5px;padding:12px;margin-top:15px}#errors p{margin:0 0 5px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#342e2b;color:white;padding:11px 20px;border-radius:8px;box-shadow:0 5px 30px #0002;font-size:12px;z-index:10;width:max-content;max-width:90vw;text-align:center}.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}.print-only{display:none}
@media(min-width:1600px){main{padding-top:55px}.intro{margin-bottom:42px}}
@media(max-width:1280px){main{padding:35px 30px 0}.site-header{padding:0 30px}.workspace{grid-template-columns:minmax(0,1fr) 320px;gap:22px}.card{padding:25px}h1{font-size:35px}.choice{padding:15px 12px;gap:8px}.choice small{font-size:9px}}
@media(max-width:960px){.workspace{grid-template-columns:minmax(0,1fr) 285px;gap:17px}.card{padding:20px}.summary-card{padding:18px}.choice svg{display:none}.choice small{font-size:9px}.three{gap:9px}.fields{gap:10px}.intro{display:block}.demo-chip{display:inline-block;margin-top:18px}.brand small{display:none}.header-actions{gap:15px}.private-label{font-size:10px}.summary-total strong{font-size:31px}.wardrobe-drawing{height:210px}.export-actions{flex-wrap:wrap;justify-content:end}.rate-hint{font-size:9px}}
@media(max-width:740px){.site-header{height:72px;padding:0 18px}.brand{font-size:13px;letter-spacing:1.7px;gap:9px}.brand-mark{width:34px;height:36px;font-size:20px}.private-label{display:none}.header-actions .button{font-size:11px;padding:8px 10px}.workspace{display:flex;flex-direction:column;gap:0}.configuration,.estimate-sidebar{width:100%}.estimate-sidebar{position:static;margin:0 0 20px}.summary-card{padding:23px}.wardrobe-drawing{height:230px}.drawing-caption{justify-content:center;gap:20px}.summary-total strong{font-size:38px}.card{padding:23px 20px;margin-bottom:18px}main{padding:26px 16px 0}.intro{margin-bottom:23px}h1{font-size:32px;line-height:1.2;letter-spacing:-.7px;max-width:390px}.intro-copy{font-size:12px;max-width:320px}.eyebrow{font-size:8px;letter-spacing:1.7px}.demo-chip{margin-top:16px;font-size:10px}.section-title h2,h2{font-size:24px}.section-title{margin-bottom:23px}.choice{min-height:82px;padding:14px 12px}.choice strong{font-size:12px}.choice small{font-size:9px}.grade{min-height:108px}.grade small{max-width:125px}.three label{font-size:10px}.input-unit input{padding-left:10px;padding-right:29px;font-size:13px}.input-unit span{right:8px;font-size:9px}.option-grid{gap:9px}.conditional{padding:12px}.conditional .three{grid-template-columns:1fr}.conditional .three label{font-size:11px}.fields.two label{font-size:11px}.estimate-title{display:block}.export-actions{justify-content:start;margin-bottom:20px}.estimate-section table{min-width:570px}.estimate-section{padding:23px 16px}.table-note{font-size:9px}.method-grid{grid-template-columns:1fr;gap:10px}footer{font-size:9px}.rate-row{grid-template-columns:1fr 90px}.dialog-actions .button{font-size:10px;padding:10px}.rate-hint{font-size:9px}dialog{padding:22px}.dialog-actions{bottom:-22px}.range-fields{grid-template-columns:1fr 70px}.drawer-row .hint{max-width:220px}.accessory-info{gap:10px}.accessory-info strong{font-size:11px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
@media print{body{background:white;color:#000;font-size:11px}.site-header{height:65px;padding:0 0 10px;border-color:#ccc}.header-actions,.configuration,.intro,.export-actions,.summary-card .primary,.save-status,dialog,#toast,footer,.method,.summary-heading,.area-stats,.summary-groups,.summary-total{display:none!important}main{padding:10px 0;max-width:none}.workspace{display:block}.estimate-sidebar{position:static;width:100%;margin:0}.summary-card{border:0;padding:0}.summary-spec{border:0}.demo-note{text-align:left;font-size:10px;margin:8px 0;color:#742d37}.estimate-section{padding:10px 0;margin:0;border:0}.section-title{margin:10px 0 15px}.section-title .step{display:none}.table-scroll{overflow:visible}table{min-width:0!important;font-size:10px}th,td{padding:8px 6px}td small{font-size:8px}tr{break-inside:avoid}thead{display:table-header-group}tfoot{display:table-row-group}.table-note{font-size:8px}.brand small{display:block}.summary-spec strong{font-size:13px}.estimate-title p{font-size:10px}@page{size:A4;margin:14mm}}

.estimate-number-row{display:flex;align-items:end;gap:12px;margin-top:18px}.estimate-number-row label{flex:1;min-width:0}.estimate-number-row input{font-weight:600;color:var(--red);background:#faf8f5}.estimate-number-row button{min-height:43px}.estimate-reference{font-weight:600;color:var(--red);margin-bottom:8px}@media(max-width:500px){.estimate-number-row{align-items:stretch;flex-direction:column}}

.wardrobe-figure{margin:0}
@media print{
  .summary-card{display:grid;grid-template-columns:68mm minmax(0,1fr);column-gap:8mm;align-items:center;break-inside:avoid;page-break-inside:avoid;margin:0 0 5mm}
  .wardrobe-figure{grid-column:1;grid-row:1 / 3;break-inside:avoid;page-break-inside:avoid;margin:0}
  .wardrobe-drawing{display:flex!important;width:68mm;height:56mm;margin:0;background:none;print-color-adjust:exact;-webkit-print-color-adjust:exact}
  .wardrobe-drawing svg{display:block;width:100%;height:100%;max-width:none;overflow:visible}
  .drawing-caption{display:flex!important;justify-content:space-between;gap:2mm;font-size:8px;margin:2mm 0 0;color:#59544e}
  .summary-spec{grid-column:2;grid-row:1;align-self:end;padding:0 0 3mm}
  .summary-spec strong{font-size:14px}
  .summary-spec span{font-size:11px;color:#59544e}
  .summary-card .demo-note{grid-column:2;grid-row:2;align-self:start;margin:0;font-size:9px}
}
