:root{--ink:#202124;--muted:#707377;--line:#dedede;--soft:#f5f5f3;--yellow:#f8c400;--yellow-dark:#e4b400;--graphite:#343437;--danger:#bf3030;--white:#fff}*{box-sizing:border-box}html{font-family:Arial,"Helvetica Neue",sans-serif;color:var(--ink);background:#efefed}body{margin:0;min-width:320px}.topbar{height:72px;padding:0 clamp(18px,4vw,56px);display:flex;align-items:center;gap:24px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.brand{text-decoration:none;color:var(--ink);font-size:25px;letter-spacing:-1px}.brand span{font-weight:900}.brand b{color:#d2a900}.top-title{display:flex;flex-direction:column;border-left:1px solid var(--line);padding-left:24px}.top-title strong{font-size:15px}.top-title span{font-size:12px;color:var(--muted);margin-top:2px}.ghost{border:1px solid #cfcfcd;background:#fff;border-radius:7px;padding:11px 16px;font-weight:700;font-size:14px;cursor:pointer}.topbar .ghost{margin-left:auto}main{max-width:1540px;margin:0 auto;background:#fff;min-height:calc(100vh - 72px)}.setup{padding:30px clamp(20px,4vw,56px);display:grid;grid-template-columns:1fr auto auto;gap:44px;align-items:end;border-bottom:1px solid var(--line)}.eyebrow{text-transform:uppercase;letter-spacing:.11em;color:#8a7100;font-weight:800;font-size:12px;margin:0 0 8px}.setup h1{font-size:clamp(29px,3vw,45px);line-height:1.02;letter-spacing:-.04em;margin:0}.length-control,.finish{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:700}.input-wrap{height:52px;min-width:168px;border:2px solid var(--ink);display:flex;align-items:center;border-radius:8px;background:#fff}.input-wrap input{width:116px;border:0;padding:0 14px;font-size:23px;font-weight:800;outline:0}.input-wrap b{font-size:14px;color:var(--muted)}.finish>div{height:52px;display:grid;grid-template-columns:30px auto;grid-template-rows:1fr 1fr;column-gap:10px;align-items:center;border:1px solid var(--line);padding:7px 14px;border-radius:8px;min-width:190px}.finish i{grid-row:1/3;width:28px;height:28px;background:repeating-linear-gradient(90deg,#2e2e30 0 3px,#464649 3px 5px);border-radius:50%}.finish b{font-size:14px;align-self:end}.finish small{font-weight:400;color:var(--muted);align-self:start}.workspace{display:grid;grid-template-columns:minmax(480px,1.15fr) minmax(430px,.85fr);min-height:720px}.catalog-panel{padding:28px clamp(20px,3vw,42px);border-right:1px solid var(--line);min-width:0}.build-panel{padding:28px clamp(20px,3vw,42px);background:#fafafa;min-width:0}.section-head,.section-head>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.section-head h2{font-size:21px;margin:0}.section-head>span{font-size:13px;color:var(--muted)}.step{width:27px;height:27px;display:grid;place-items:center;background:var(--yellow);border-radius:50%;font-weight:900}.filters{display:flex;gap:7px;margin:22px 0 18px;overflow:auto;padding-bottom:2px}.filter{border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 14px;white-space:nowrap;font-size:14px;cursor:pointer}.filter.active{background:var(--ink);color:#fff;border-color:var(--ink)}.catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.product{position:relative;border:1px solid var(--line);border-radius:10px;padding:10px;background:#fff;display:flex;flex-direction:column;min-width:0;transition:.18s}.product:hover{border-color:#999;box-shadow:0 5px 16px #0000000d;transform:translateY(-1px)}.product img{width:100%;height:128px;object-fit:contain;background:#fff}.product .kind{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;margin-top:6px}.product h3{font-size:14px;line-height:1.25;margin:4px 0;min-height:35px}.product .meta{font-size:12px;color:var(--muted);margin-bottom:11px}.product .buy{display:flex;align-items:center;justify-content:space-between;margin-top:auto}.product .price{font-weight:900;font-size:16px}.add{width:34px;height:34px;border:0;border-radius:7px;background:var(--yellow);font-size:23px;line-height:1;cursor:pointer}.add:hover,.primary:hover{background:var(--yellow-dark)}.wall{margin-top:22px}.ruler{display:flex;justify-content:space-between;color:#8b8b8b;font-size:11px;padding:0 2px 7px}.scene{height:300px;position:relative;display:flex;align-items:flex-end;gap:2px;padding:16px 12px 8px;overflow-x:auto;background:linear-gradient(#efefed 1px,transparent 1px),linear-gradient(90deg,#efefed 1px,transparent 1px),#fff;background-size:24px 24px;border:1px solid var(--line);border-bottom:0}.scene-empty{margin:auto;align-self:center;text-align:center;color:var(--muted);display:flex;flex-direction:column;gap:5px}.scene-empty b{color:var(--ink)}.scene-module{flex:0 0 auto;position:relative;display:flex;align-items:flex-end;justify-content:center;border:1px solid #c7c7c7;background:linear-gradient(90deg,#343437 0 74%,#eee 74%);box-shadow:1px 2px 4px #0002;color:#fff;cursor:pointer;min-width:27px}.scene-module.upper{height:105px;align-self:flex-start;margin-top:12px}.scene-module.lower{height:125px;border-top:7px solid #a98148}.scene-module.tall{height:250px}.scene-module span{font-size:10px;font-weight:800;padding:4px;writing-mode:vertical-rl;transform:rotate(180deg);opacity:.9}.scene-module.active{outline:3px solid var(--yellow);outline-offset:1px}.wall-line{height:7px;background:#d2d2cf;border:1px solid #c8c8c5}.meter{padding:18px 0;border-bottom:1px solid var(--line)}.meter>div:first-child{display:flex;justify-content:space-between;font-size:14px}.track{height:8px;background:#dededb;border-radius:99px;overflow:hidden;margin-top:10px}.track i{display:block;height:100%;width:0;background:var(--yellow);transition:.25s}.meter p{font-size:12px;color:var(--muted);margin:7px 0 0}.meter.over .track i{background:var(--danger)}.meter.over p,.meter.over b{color:var(--danger)}.selection{max-height:250px;overflow:auto}.selected-row{display:grid;grid-template-columns:44px 1fr auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #e7e7e5}.selected-row img{width:44px;height:44px;object-fit:contain;background:#fff;border-radius:5px}.selected-row h4{font-size:13px;margin:0 0 3px}.selected-row p{font-size:11px;color:var(--muted);margin:0}.row-actions{display:flex;align-items:center;gap:5px}.move,.remove{border:1px solid var(--line);background:#fff;border-radius:5px;height:29px;min-width:29px;cursor:pointer}.remove{color:var(--danger)}.summary{padding-top:18px}.summary>div{display:flex;justify-content:space-between;font-size:13px;margin:7px 0}.summary .total{font-size:18px;border-top:1px solid var(--line);padding-top:16px;margin-top:14px}.summary .total b{font-size:25px}.primary{border:0;background:var(--yellow);color:var(--ink);border-radius:8px;padding:14px 18px;font-size:15px;font-weight:900;cursor:pointer}.summary .primary{width:100%;margin-top:12px}.primary:disabled{background:#d7d7d5;color:#969694;cursor:not-allowed}.summary>p{font-size:11px;line-height:1.4;color:var(--muted);text-align:center}dialog{border:0;padding:0;background:transparent;max-width:560px;width:calc(100% - 32px)}dialog::backdrop{background:#1119}.dialog-card{position:relative;background:#fff;border-radius:14px;padding:30px}.dialog-close{position:absolute;right:16px;top:12px;border:0;background:none;font-size:27px;cursor:pointer}.dialog-icon{display:grid;place-items:center;width:44px;height:44px;background:var(--yellow);border-radius:50%;font-weight:900;font-size:24px}.dialog-card h2{font-size:28px;margin:15px 0 7px}.dialog-card>p,.dialog-card>small{color:var(--muted);line-height:1.45}.order-details{background:var(--soft);padding:14px;border-radius:8px;margin:18px 0;font-size:13px;max-height:250px;overflow:auto}.order-details div{display:flex;justify-content:space-between;gap:16px;margin:7px 0}.order-details .order-total{font-size:17px;font-weight:900;border-top:1px solid #ccc;padding-top:11px;margin-top:11px}.dialog-actions{display:flex;gap:8px}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);background:var(--ink);color:#fff;padding:12px 18px;border-radius:7px;opacity:0;pointer-events:none;transition:.2s;z-index:30}.toast.show{opacity:1;transform:translate(-50%,0)}@media(max-width:1050px){.workspace{grid-template-columns:1fr}.catalog-panel{border-right:0;border-bottom:1px solid var(--line)}.build-panel{padding-bottom:40px}.catalog{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:760px){.top-title{display:none}.setup{grid-template-columns:1fr 1fr;gap:20px}.setup>div:first-child{grid-column:1/-1}.catalog{grid-template-columns:repeat(2,minmax(0,1fr))}.product img{height:120px}.workspace{display:block}.scene{height:260px}.topbar{height:62px}.dialog-actions{flex-direction:column}}@media(max-width:440px){.setup{grid-template-columns:1fr}.setup>div:first-child{grid-column:auto}.length-control,.finish{width:100%}.finish>div,.input-wrap{width:100%}.catalog-panel,.build-panel{padding-left:14px;padding-right:14px}.catalog{gap:8px}.product{padding:8px}.product h3{font-size:13px}.product img{height:104px}.topbar{gap:10px}.topbar .ghost{font-size:12px;padding:9px}.summary .total{align-items:end;flex-direction:column}.summary .total b{font-size:27px}}
