:root{--red:#c91a27;--ink:#242723;--muted:#5f665f;--line:#d6d9d1;--paper:#f6f5f1;--white:#fff;--soft:#eeeee8;font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:weight}
*{box-sizing:border-box}body{margin:0;-webkit-font-smoothing:antialiased}button,input{font:inherit}button{color:inherit;cursor:pointer}button:disabled{opacity:.46;cursor:default}button,a,input{touch-action:manipulation}button,a{transition:background .15s,border-color .15s,box-shadow .15s}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--red);outline-offset:3px}button svg,.foot svg,.exit svg,.prop-title svg{display:block;flex-shrink:0}button{border:0;background:none}h1,h2,p{margin:0}main:focus{outline:none}.skip{position:absolute;left:16px;top:-80px;z-index:20;background:white;color:var(--ink);padding:12px}.skip:focus{top:8px}.top{height:84px;background:white;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 clamp(20px,5.1vw,88px);gap:12px}.brandline,.account,.brand,.exit,.foot span,.section-label,.prop-title,.btn,.back,.control,.arrow,.avatar,.toolgroup button,.stagebar,.stagebar>div,.edtitle,.actions,.modal-head,.modal-actions{display:flex;align-items:center}.brandline{gap:25px}.brand{padding:0}.brand img{width:167px;height:auto;display:block}.brand-section{padding-left:24px;border-left:1px solid var(--line);font-size:13px;font-weight:600;color:var(--muted)}.account{gap:10px;font-size:13px;font-weight:650}.avatar,.arrow,.control,.exit{justify-content:center}.avatar{width:33px;height:33px;border:1px solid #d5d6ce;border-radius:50%;background:#f0f0e9;font-size:11px}.exit{margin-left:9px;width:36px;height:36px;border:1px solid var(--line);border-radius:8px;color:var(--muted)}.exit:hover,.control:hover,.btn:hover,.back:hover{background:#eeeee8}.exit svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#main{min-height:calc(100svh - 84px);display:flex;flex-direction:column}.landing{width:min(1110px,calc(100% - clamp(40px,10.2vw,176px)));margin:0 auto;flex:1;padding:clamp(48px,8.5vh,95px) 0 65px}.intro{margin-bottom:38px}.kicker,.section-label,.rowhead{font-size:11px;font-weight:750;letter-spacing:.11em;text-transform:uppercase;color:var(--muted)}.kicker{display:flex;align-items:center;gap:10px;margin-bottom:13px}.kicker i{width:25px;height:2px;background:var(--red)}h1{font-size:clamp(40px,5.4vw,71px);letter-spacing:-.065em;line-height:1.05;font-weight:750}h1 span{color:var(--red)}.cards{display:grid;grid-template-columns:1fr 1fr;gap:23px}.navcard{text-align:left;display:flex;flex-direction:column;background:white;padding:0;border:1px solid #cfd2c9;border-radius:12px;overflow:hidden;box-shadow:0 3px 10px #23251c07}.navcard:hover{border-color:#9b9d91;box-shadow:0 7px 20px #23251c12}.navcard:hover .arrow{transform:translateX(3px)}.art{height:clamp(170px,17vw,224px);border-bottom:1px solid var(--line);width:100%;overflow:hidden}.art svg{width:100%;height:100%;display:block}.art-plan{background:#f0f1e9}.art-folder{background:#ebece6}.card-info{display:flex;align-items:center;justify-content:space-between;padding:27px 28px 29px;gap:17px;min-height:128px}.card-info h2,.list-title h1{letter-spacing:-.055em}.card-info h2{font-size:clamp(24px,2.4vw,34px);font-weight:740;line-height:1.12}.card-info p,.empty-list p,.propnote,dialog p{color:var(--muted);line-height:1.55}.card-info p{font-size:14px;margin-top:8px;max-width:350px}.arrow{width:44px;height:44px;border-radius:50%;border:1px solid var(--line);flex-shrink:0;transition:transform .18s}.primary{background:var(--red)!important;color:white!important;border-color:var(--red)!important}.primary:hover{background:#ab1521!important}.foot{border-top:1px solid var(--line);padding:20px clamp(20px,5.1vw,88px);display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.foot span{gap:7px}.foot span:first-child{font-weight:750}.btn,.back,.control{border:1px solid var(--line);justify-content:center;gap:8px;background:white;border-radius:7px;min-height:39px;padding:9px 14px;font-size:13px;font-weight:680}.control{width:36px;min-height:36px;padding:6px}.back{width:max-content;background:transparent;border:0;padding-left:0}.list-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:24px 0 32px}.list-title h1{font-size:clamp(37px,4vw,55px)}.rowhead,.projectrow{display:grid;gap:16px;align-items:center}.rowhead{grid-template-columns:1fr 175px;padding:12px 45px 12px 20px;font-size:10px}.projectrow{grid-template-columns:44px minmax(0,1fr) 165px 20px;text-align:left;padding:16px 20px;width:100%;background:white;border:1px solid var(--line);border-bottom:0}.projectrow:last-of-type{border-bottom:1px solid var(--line)}.projectrow:hover{background:#f9f9f4}.project-icon{width:40px;height:40px;display:grid;place-items:center;background:var(--soft);border-radius:7px}.rowname,.rowdate{min-width:0;overflow-wrap:anywhere}.rowname strong{font-size:16px}.projectrow small,.edtitle small{display:block;color:var(--muted);font-size:12px;margin-top:3px}.rowdate{font-size:13px}.empty-list{text-align:center;background:white;border:1px solid var(--line);border-radius:10px;padding:48px 16px}.empty-list svg{color:var(--red);margin-bottom:10px}.empty-list h2{font-size:21px}.empty-list p{margin-top:7px}
body[data-view="edit"] .top{height:64px;padding:0 25px}body[data-view="edit"] .brand img{width:135px}body[data-view="edit"] #main{min-height:calc(100svh - 64px)}.edbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 24px;background:var(--paper);border-bottom:1px solid var(--line)}.edtitle{gap:12px;min-width:0}.edtitle>div{min-width:0}.edtitle .control{flex-shrink:0}#titlebtn{padding:0;display:flex;gap:8px;align-items:center;font-size:19px;font-weight:750;text-align:left;overflow-wrap:anywhere;line-height:1.2}.actions{gap:8px;flex-wrap:wrap}.workspace{display:grid;grid-template-columns:165px minmax(0,1fr) 224px;min-height:calc(100svh - 141px);flex:1}.tools,.inspector,.stagebar{background:white}.tools{padding:22px 11px;border-right:1px solid var(--line)}.section-label{margin:0 8px 16px;font-size:10px}.toolgroup{display:grid;gap:4px;padding:10px 0;border-top:1px solid var(--line)}.toolgroup:first-child{padding-top:0;border:0}.toolgroup button{gap:9px;border-radius:6px;min-height:36px;padding:8px 10px;font-size:12px;font-weight:630;text-align:left}.toolgroup button:hover{background:var(--soft)}.toolgroup [aria-pressed=true]{background:#fbe9e9;color:#ad1722}.stage{display:flex;flex-direction:column;min-width:0}.stagebar{justify-content:space-between;padding:7px 12px;border-bottom:1px solid var(--line)}.stagebar>div{gap:5px}.stagebar .control{border-color:transparent}.board{position:relative;flex:1;min-height:430px;background:#fafbf8}.board svg#canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;user-select:none;cursor:crosshair}.stagefoot{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding:10px 15px;font-size:12px;color:var(--muted);background:#fafaf7}.stagefoot span:last-child{font-family:monospace}.inspector{padding:22px 17px;border-left:1px solid var(--line)}.inspector .section-label{margin-left:0}.prop-title{gap:8px;margin:0 0 18px;color:var(--ink)}.prop-title h2{font-size:17px;letter-spacing:-.04em}.prop-title svg{color:var(--red)}.field{display:grid;gap:6px;font-size:12px;font-weight:650;margin-bottom:13px}.field input{width:100%;height:39px;border:1px solid #bcc2b9;border-radius:6px;background:white;padding:8px 10px;color:var(--ink);font-weight:500}.checkbox{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.checkbox input{accent-color:var(--red)}.view-options{border-top:1px solid var(--line);margin-top:20px;padding-top:15px}.propnote{font-size:12px;margin:12px 0}.apply{width:100%}.remove{color:#ac1823;border:0;padding-left:0;margin-top:8px}.inspector .primary{width:100%}
dialog{border:1px solid var(--line);padding:25px;width:min(425px,calc(100% - 32px));border-radius:13px;box-shadow:0 24px 90px #14211433;color:var(--ink)}dialog::backdrop{background:#20261f6b}.modal-head{justify-content:space-between;margin-bottom:21px}.modal-head h2{font-size:25px;letter-spacing:-.05em}.modal-head .control{border:0}.modal-actions{gap:8px;justify-content:flex-end;margin-top:22px}.danger{color:#a71922}#toast{position:fixed;z-index:12;bottom:20px;left:50%;transform:translateX(-50%);padding:12px 19px;border-radius:8px;color:white;background:#272b28;font-size:13px;max-width:min(520px,calc(100% - 24px));width:max-content;opacity:0;pointer-events:none}#toast.on{opacity:1}.sheet-render{position:absolute;left:-100000px;top:0;width:1080px;background:white}.sheet-render svg{display:block}#print-sheets{display:none}
@media(max-width:950px){.workspace{grid-template-columns:62px minmax(0,1fr) 193px}.tools{padding:15px 7px}.tools .section-label,.toolgroup button span{display:none}.toolgroup button{justify-content:center}.card-info{padding:21px}.actions .btn{padding:8px 10px}}
@media(max-width:680px){.top{height:68px;padding:0 18px}.brand img{width:135px}.brand-section,#username{display:none}.account{gap:4px}.exit{margin-left:3px}.landing{width:calc(100% - 32px);padding:38px 0}.intro{margin-bottom:25px}.cards{grid-template-columns:1fr;gap:15px}.art{height:139px}.card-info{padding:18px 20px;min-height:auto}.card-info p{font-size:13px}.arrow{height:39px;width:39px}.foot{padding:15px 18px}.rowhead{display:none}.projectrow{grid-template-columns:34px minmax(0,1fr) 15px;padding:13px 9px;gap:8px}.rowdate{grid-row:2;grid-column:2;font-size:11px}.rowdate small{display:inline;margin-left:4px}.projectrow>svg{grid-column:3;grid-row:1}.list-title{align-items:flex-start}.list-title .btn{font-size:12px}.workspace{grid-template-columns:1fr;display:flex;flex-direction:column}.tools{padding:6px 8px;border-bottom:1px solid var(--line);border-right:0;overflow-x:auto}.tools #toolset,.toolgroup{display:flex;gap:3px}.toolgroup{padding:0 4px;border:0;border-right:1px solid var(--line)}.toolgroup:first-child{border-right:1px solid var(--line)}.toolgroup button{min-width:40px;min-height:40px;padding:7px}.stage{order:1}.inspector{order:2;border-top:1px solid var(--line);border-left:0;padding:16px}.inspector .field{display:inline-grid;width:calc(50% - 9px);margin-right:8px}.inspector .section-label{display:none}.prop-title{margin-bottom:12px}.edbar{padding:10px 12px;align-items:flex-start;flex-direction:column;gap:9px}.edtitle{gap:8px}.actions{width:100%;gap:5px}.actions .btn{flex:1;min-height:36px}.actions svg{width:16px}.edtitle small{font-size:11px}.board{height:49svh;min-height:310px;flex:none}.stagefoot{min-height:43px;font-size:11px}.stagebar{padding:2px 8px}body[data-view="edit"] .top{height:52px;padding:0 14px}body[data-view="edit"] .brand img{width:115px}.stagebar .control{min-height:32px}.view-options{margin-top:8px}.intro h1{font-size:44px}}
@page{size:A4 landscape;margin:0}@media print{html,body{margin:0!important;padding:0!important;background:white!important}body>*:not(#print-sheets){display:none!important}#print-sheets{display:block!important}.print-page{width:297mm;height:209.9mm;page-break-after:always;break-after:page;overflow:hidden}.print-page:last-child{page-break-after:auto;break-after:auto}.print-page svg{display:block;width:297mm;height:209.9mm}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
@media print{dialog,#toast{display:none!important}}
#titlebtn svg{flex:0 0 14px;width:14px;height:14px}.tools .toolgroup button{white-space:nowrap}svg#canvas{display:block}#hint{min-width:0}.stagefoot span:last-child{white-space:nowrap}
body[data-view="edit"] .brand-section{padding-left:18px}.empty-list>svg{width:34px;height:34px}.foot span svg{width:14px;height:14px}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@font-face{font-family:PlanSans;src:url(plan.ttf) format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:PlanSans;src:url(plan-bold.ttf) format("truetype");font-weight:700;font-display:swap}
[hidden]{display:none!important}.actions{flex-wrap:wrap}.edtitle{flex:1}.stagebar,.stagebar>div{flex-wrap:wrap}.stagebar{gap:4px}.stagebar .checkbox{white-space:nowrap;margin:0 3px;font-size:11px}.stagebar .checkbox input{width:15px;height:15px}.tools .toolgroup button{white-space:normal}
#wallbox{display:flex;align-items:center;position:absolute;z-index:1;max-width:140px;padding:3px 6px;gap:3px;background:white;border:1px solid #b62231;border-radius:5px;box-shadow:0 2px 6px #2221;color:#a91b28}
#wallbox input{border:0;outline:0;width:90px;padding:3px;font:600 13px system-ui;color:#242822;background:transparent}#wallbox input::placeholder{color:#5d655d}
.field select{width:100%;height:38px;padding:5px 7px;border:1px solid #bcc2b9;border-radius:6px;background:white;font:inherit;color:#242822}.seg,.placement-actions,.refhead{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.seg{margin:7px 0 13px}.seg button,.ref-toggle{border:1px solid #c8cdc3;border-radius:5px;padding:5px 8px;font-size:12px}.seg button[aria-pressed=true]{background:#fcecee;color:#9e1424;border-color:#d8838a}.placement-actions{margin:14px 0}.placement-title{font-size:18px;margin-bottom:12px}.ref-line,.refhead,.measure-error{font-size:12px}.refbox{border-top:1px solid #d6d9d0;padding:10px 0}.refhead{justify-content:space-between;margin-bottom:8px}.refhead button{font-size:19px}.ref-toggle{font-size:11px}.measure-error{color:#aa1723;margin-top:7px}.meta-dialog{width:min(650px,94vw);max-height:86svh}.meta-dialog fieldset{margin:0 0 16px;padding:12px 14px 1px;border:1px solid #d6d9d0;border-radius:7px}.meta-dialog legend{color:#5a615a;font-size:12px;font-weight:750;padding:0 5px}.meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 13px}
.preview-dialog{width:min(1220px,96vw);max-width:none;max-height:94svh;padding:0;background:white}.preview-head,.preview-nav{display:flex;align-items:center;justify-content:space-between;padding:15px 20px;border-bottom:1px solid #d6d9d0;gap:9px}.preview-head h2{font-size:23px}.preview-head small{color:#60675f}.preview-grid{display:grid;grid-template-columns:minmax(0,1fr) 235px}.preview-view{min-width:0;background:#e9ebe5;padding:18px}.preview-nav{font-size:12px;padding:12px 0 0;border:0}.preview-options{padding:18px;display:flex;flex-direction:column;gap:10px}.preview-options .field,.preview-options .propnote{margin:0}.preview-options .checkbox{margin:3px 0 7px}#preview-paper{background:white;box-shadow:0 2px 12px #252b231c;aspect-ratio:297/210}#preview-paper>svg{display:block;width:100%;height:auto}.preview-options .btn{min-height:37px}.inspector{max-height:calc(100svh - 145px);overflow:auto}
@media(max-width:850px){.edbar{flex-wrap:wrap}.workspace{grid-template-columns:62px minmax(0,1fr) 187px}.preview-grid{grid-template-columns:1fr}.preview-options{display:grid;grid-template-columns:1fr 1fr}.preview-view{padding:10px}.preview-options>p,.preview-options>.checkbox{grid-column:span 2}}
@media(max-width:680px){.inspector{max-height:none}.meta-grid{grid-template-columns:1fr}.preview-head{padding:10px 14px}.preview-options{padding:12px}.stagebar .checkbox{font-size:10px}.actions .btn{font-size:11px}.actions{gap:4px}.refbox .field{width:100%}}@media print{body:has(#print-sheets) dialog{display:none!important}.print-page svg{width:297mm;height:210mm}}

.stagebar .rotate-control{min-height:32px;padding:3px 7px;font-size:.74rem;gap:4px}.stagebar .rotate-control svg{width:16px;height:16px}

#preview-paper{margin:0 auto;width:min(100%,calc(66svh * 297 / 210));aspect-ratio:297/210}#preview-paper[data-orientation="portrait"]{width:min(100%,calc(66svh * 210 / 297));aspect-ratio:210/297}
@media(max-width:680px){#preview-paper,#preview-paper[data-orientation="portrait"]{width:100%}}
@page efPortrait{size:210mm 297mm;margin:0}@page efLandscape{size:297mm 210mm;margin:0}
@media print{
  dialog::backdrop{display:none!important;background:transparent!important}
  .print-page.portrait{page:efPortrait;width:210mm;height:297mm}
  .print-page.landscape{page:efLandscape;width:297mm;height:210mm}
  .print-page.portrait svg,.print-page.landscape svg{width:100%;height:100%}
}

.frame-add{display:flex;gap:4px;flex-wrap:wrap}.frame-add .btn{font-size:12px;padding:5px 8px;min-height:30px}.frame-slots{padding:6px 0}.frame-slots summary{cursor:pointer;font-weight:600}.frame-slot{border-bottom:1px solid #ddd;padding:7px 0}.frame-slot .field{margin:3px 0}button[hidden]{display:none!important}

.view-size{display:inline-flex;align-items:center;gap:3px;font-size:11px;white-space:nowrap}.view-size input{border:1px solid #c3c8bf;border-radius:4px;width:4.3em;padding:4px;background:white}.ef-dimension{cursor:move}.ef-dimension text,[data-module-label],[data-point-label]{cursor:text}.ef-dimension:hover text{fill:#a21d28}.ef-dimension:hover line:not([stroke="transparent"]){stroke:#a21d28}#dim-error{color:#9e2430}.frame-add{gap:4px}

.point-preview{display:block;width:62px;height:62px;margin:8px 0 2px;border:1px solid var(--line);border-radius:6px;background:#fafbf8}

#point-palette{border-top:1px solid var(--line);padding-top:12px}
#point-palette[hidden]{display:none}
.palette-title{font-size:11px;font-weight:650;margin:0 5px 7px}
.palette-options{display:grid;gap:3px}
.palette-options button{display:flex;align-items:center;gap:7px;text-align:left;padding:5px 7px;border:1px solid transparent;border-radius:5px;font:inherit;font-size:12px;min-height:30px;cursor:pointer;background:white;color:inherit}
.palette-options button:is(:hover,:focus-visible){background:var(--soft)}
.palette-options button[aria-pressed=true]{background:#fbe9e9;color:#a91926;border-color:#eac0c2}
.palette-options svg{width:24px;height:22px;flex:none}
@media(min-width:681px) and (max-width:950px){.workspace:has(#point-palette:not([hidden])){grid-template-columns:139px minmax(0,1fr) 187px}.palette-options button{padding:4px;gap:5px}}
@media(max-width:680px){.tools{min-width:0;overflow-x:visible}.tools #toolset{overflow-x:auto}.tools .toolgroup{flex-shrink:0}#point-palette{padding-top:6px;margin-top:4px}.palette-title{margin-bottom:3px}.palette-options{grid-template-columns:repeat(3,minmax(0,1fr))}.palette-options button{min-width:0;min-height:36px;font-size:11px;padding:3px;gap:4px}.palette-options span{overflow-wrap:anywhere}}

#canvas.symbol-cursor, #canvas.symbol-cursor *{cursor:none}
#canvas.edit-cursor, #canvas.edit-cursor *{cursor:pointer}

.wall-position{margin:0 0 16px}
.wall-position fieldset{margin:0;min-width:0;padding:9px 10px 10px;border:1px solid var(--line);border-radius:7px}
.wall-position legend{padding:0 4px;font-size:.78rem;font-weight:650}
.wall-position .seg{display:flex;gap:4px;margin:0 0 8px}
.wall-position .seg button{flex:1}
.wall-position .field{margin:0 0 8px}
.wall-position-error{margin:7px 0 0;color:#a21d2a;font-size:.78rem}
