:root{font-family:Arial,Helvetica,sans-serif;color:#20372e;background:#f5f8f5;font-size:16px;--green:#214d39;--border:#cedbd2;--muted:#64776d}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,summary,label{touch-action:manipulation}button,a,summary,input,select,textarea{outline-offset:4px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #78a991}button{cursor:pointer}button:disabled{cursor:default;opacity:.48}a{color:var(--green)}.site-header{display:flex;align-items:center;gap:32px;background:#fff;padding:17px 30px;border-bottom:1px solid var(--border)}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:#19372a;font-size:23px;font-weight:700;white-space:nowrap}.brand b{font-weight:400}.mark{display:flex;align-items:center;justify-content:center;width:37px;height:39px;background:#214d39;color:#caff8c;border-radius:10px;font:bold italic 40px Georgia;line-height:1}.site-header nav{margin-left:auto;display:flex;gap:22px;align-items:center;flex-wrap:wrap}.site-header nav a{font-size:14px;text-decoration:none;white-space:nowrap}.site-header [aria-current]{font-weight:700;border-bottom:2px solid #316d51;padding:9px 0}main{max-width:1400px;margin:auto;padding:28px 30px 35px}.intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.eyebrow{font-size:11px;letter-spacing:.14em;color:#64776d;margin:0 0 8px}h1{font-size:31px;letter-spacing:-.8px;margin:0 0 8px;line-height:1.2}.intro p:not(.eyebrow){margin:0;color:var(--muted)}.privacy{font-size:12px;color:var(--muted);background:#e8f0e9;border-radius:25px;padding:10px 13px}.workspace{display:grid;grid-template-columns:310px minmax(0,1fr);gap:25px;align-items:start}.controls{background:white;border:1px solid var(--border);border-radius:15px;overflow:hidden}.controls section{padding:22px;border-bottom:1px solid #e3ebe5}.controls section:last-child{border:0}h2{font-size:16px;display:flex;align-items:center;gap:10px;margin:0 0 18px}.step{display:flex;align-items:center;justify-content:center;font-weight:400;border:1px solid var(--border);border-radius:50%;font-size:12px;width:27px;height:27px;color:#64776d}.drop-zone{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:10px;min-height:170px;padding:18px;border:1.5px dashed #a4bbab;border-radius:9px;background:#f5f9f5;cursor:pointer;position:relative}.drop-zone:focus-within,.drop-zone.dragging{background:#e6f0e8;outline:3px solid #78a991;outline-offset:2px}.drop-zone span:not(.upload-icon){font-size:13px;color:var(--muted)}.upload-icon{font-size:29px;color:#316d51;line-height:1}.drop-zone input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.small{font-size:12px;line-height:1.6;color:var(--muted);margin:11px 0}.controls details{border-top:1px solid #e3ebe5;padding:12px 0 0;margin-top:12px}.controls details:last-child{padding-bottom:0}summary{cursor:pointer;font-size:14px;font-weight:600;line-height:1.5}details[open]>summary{margin-bottom:15px}textarea,select,input[type=text]{width:100%;border:1px solid #bdcfc2;border-radius:6px;background:white;padding:10px;color:#20372e}textarea{resize:vertical;margin-bottom:10px}select{margin:8px 0 0;max-width:100%}label[for=widthInput]{display:flex;justify-content:space-between;font-weight:600;margin-bottom:10px}.unit{font-weight:400;font-size:12px;color:var(--muted)}.width-field{display:flex;align-items:center;border:1px solid #bdcfc2;border-radius:7px;overflow:hidden}.width-field input{border:0;font-size:24px;min-width:0;padding:12px}.width-field>span{color:var(--muted);padding-right:15px}.width-field:focus-within{outline:3px solid #78a991;outline-offset:2px}.width-field input:focus{outline:0}.height-line{font-size:14px;margin:15px 0 20px}.height-line span{color:var(--muted);font-size:12px}.height-line strong{margin-left:5px}fieldset{border:0;margin:0;padding:0}legend{font-weight:600;font-size:14px;margin-bottom:10px}.quality-options{display:flex;gap:6px}.quality-options label{flex:1;position:relative;cursor:pointer}.quality-options input{position:absolute;opacity:0}.quality-options span{display:block;text-align:center;border:1px solid var(--border);border-radius:7px;padding:10px 3px;font-size:14px}.quality-options small{display:block;font-size:12px;color:var(--muted);margin-top:5px}.quality-options input:checked+span{border:1.5px solid #316d51;background:#e6f0e8;padding:9.5px 2.5px}.quality-options input:focus-visible+span{outline:3px solid #78a991;outline-offset:2px}.primary,.secondary{padding:12px 15px;border-radius:7px;font-weight:600;border:1px solid var(--border)}.primary{display:flex;justify-content:space-between;width:100%;background:#214d39;color:white;border-color:#214d39;font-size:16px;text-decoration:none;justify-content:center}.primary[aria-disabled=true]{opacity:.48;cursor:default;pointer-events:none}.secondary{font-size:14px;background:#f6f9f6}.status{font-size:13px;line-height:1.5;margin:10px 0 0}.status.error{color:#944228}.view-area{min-width:0}.preview-panel{border:1px solid var(--border);border-radius:15px;overflow:hidden;background:#e2ece4}.preview-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 18px;background:#f4f8f4;border-bottom:1px solid var(--border)}.preview-switch{display:flex;padding:3px;border:1px solid var(--border);border-radius:8px;background:#fff}.preview-switch button{padding:8px 13px;border:0;border-radius:5px;background:transparent;color:#64776d;font-size:14px}.preview-switch [aria-pressed=true]{background:#214d39;color:white}.preview-kind{font-size:12px;color:var(--muted)}.preview{height:405px;display:flex;align-items:center;justify-content:center;padding:25px;overflow:hidden;background-image:linear-gradient(#ffffff45 1px,transparent 1px),linear-gradient(90deg,#ffffff45 1px,transparent 1px);background-size:25px 25px}.preview>svg,.preview>img{max-width:100%;width:100%;height:100%;object-fit:contain}.preview svg .geometry{stroke:#214d39;stroke-width:1.4;vector-effect:non-scaling-stroke;fill:none}.preview svg .open{stroke:#b96535;stroke-width:1.8}.preview svg .box{stroke:#7b9b88;stroke-dasharray:5 4;stroke-width:1;vector-effect:non-scaling-stroke;fill:none}.empty{text-align:center;color:#64776d}.empty svg{width:220px;stroke:#759981;stroke-width:1.4;fill:none}.empty p{font-size:15px;margin:16px 0 9px}.empty>span{font-size:12px}.dimension-bar{padding:13px 18px;background:#f4f8f4;color:#526e5b;font-size:14px;border-top:1px solid var(--border)}.report{background:white;border:1px solid var(--border);border-radius:12px;margin-top:16px;padding:21px}.report h2{margin-bottom:13px}.stats{display:flex;gap:12px;flex-wrap:wrap}.stat{font-size:13px;padding:8px 12px;background:#eef5ef;border-radius:6px}.stat.open{color:#945029;background:#fff3e8}.warning{font-size:14px;line-height:1.6;background:#fff7ec;border-left:3px solid #c68740;padding:10px 12px;margin-top:10px}.report details{margin-top:16px;padding-top:15px;border-top:1px solid #e3ebe5}.report dl{font-size:12px;display:grid;grid-template-columns:160px minmax(0,1fr);gap:9px 14px;line-height:1.4}.report dt{color:var(--muted)}.report dd{margin:0;overflow-wrap:anywhere}.report details>a{font-size:12px}.lesson{border:1px solid var(--border);border-radius:10px;background:#fff;margin-top:15px;padding:17px 21px}.lesson>summary{font-size:14px}.lesson-content{font-size:14px;line-height:1.7;color:#52675b}.lesson-content p{margin:15px 0}.flow{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.flow>div{position:relative;text-align:center;background:#f1f6f1;border-radius:8px;padding:12px 7px}.flow svg{width:95px;height:70px;max-width:100%}.flow strong{display:block;font-size:14px;color:#214d39}.flow span{display:block;font-size:12px;line-height:1.4;margin-top:5px}.flow>div:not(:last-child):after{content:'→';position:absolute;right:-14px;top:50%;color:#5e8169;font-size:17px;z-index:1}.lesson-content ol{padding-left:22px}.lesson-content li{padding-left:5px;margin-bottom:8px}footer{text-align:center;border-top:1px solid var(--border);padding:18px;font-size:11px;color:var(--muted)}pre{font-size:11px;white-space:pre-wrap;word-break:break-word}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}/* Keep export visible; only the drawing and size controls scroll on desktop. */
@media(min-width:1050px) and (min-height:650px){.controls{position:sticky;top:18px;display:flex;flex-direction:column;max-height:calc(100dvh - 215px)}.control-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.controls .export-section{flex-shrink:0;border-top:1px solid #e3ebe5;max-height:45dvh;overflow-y:auto}.controls .export-section h2{margin-bottom:12px}.controls .export-section .small{margin:8px 0}.controls .export-section .status{margin-top:8px}}@media(max-width:850px){.site-header{gap:15px;flex-wrap:wrap;padding:15px 20px}.site-header nav{gap:16px}.intro{align-items:flex-start}.privacy{display:none}main{padding:24px 20px}.workspace{grid-template-columns:265px minmax(0,1fr);gap:17px}.controls section{padding:18px}.preview-kind{display:none}.preview{height:345px}.flow{grid-template-columns:repeat(2,1fr)}.flow>div:after{display:none}.report dl{grid-template-columns:130px minmax(0,1fr)}}@media(max-width:620px){.site-header nav{margin:0;width:100%;gap:17px}.site-header nav a{font-size:14px}.workspace{display:flex;flex-direction:column}.controls,.view-area{width:100%}.preview{height:320px}.intro{margin-bottom:20px}h1{font-size:28px}.controls section{padding:20px}.preview-bar{padding:12px}.report dl{grid-template-columns:110px minmax(0,1fr)}}
