@font-face{font-family:Inter;src:url(brand/inter-400.woff2)}@font-face{font-family:Inter;src:url(brand/inter-600.woff2);font-weight:600}@font-face{font-family:Josefin;src:url(brand/josefin-sans-700.woff2);font-weight:700}*{box-sizing:border-box}body{margin:0;background:#f7f7f7;color:#231f20;font:14px Inter,Arial,sans-serif}header{background:#231f20;color:white;display:flex;align-items:center;gap:22px;padding:20px 28px}header img{width:180px;max-height:60px}h1{font:700 25px Josefin;margin:0 0 5px}header span{font-size:12px;color:#ddd}.actions{margin-left:auto;display:flex;gap:8px}button,input,select,textarea{font:inherit;border:1px solid #d9d9d9;border-radius:7px;padding:10px;background:white;color:#231f20}button{cursor:pointer;font-weight:600}button:hover{border-color:#e70033;background:#fff4f6}button.primary,button.active{background:#e70033;color:white;border-color:#e70033}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #e7003380;outline-offset:2px}nav{display:flex;gap:8px;padding:12px 28px;border-bottom:1px solid #d9d9d9;background:white}#plan{display:grid;grid-template-columns:300px minmax(250px,1fr) 280px;height:calc(100dvh - 156px);min-height:580px}aside{overflow:auto;background:white;padding:18px;border-right:1px solid #d9d9d9}#inspector{border-left:1px solid #d9d9d9;border-right:0}section{margin-bottom:22px;padding-bottom:20px;border-bottom:1px solid #eee}h2{font:700 20px Josefin;margin:5px 0 15px}h3{font-size:15px}label{display:block;font-size:12px;font-weight:600;margin:12px 0}label input,label select,label textarea{display:block;width:100%;margin-top:5px;font-weight:400}textarea{min-height:85px;resize:vertical}input[type=checkbox]{display:inline;width:auto}.row{display:flex;gap:6px;align-items:center;margin:7px 0}.row>*{min-width:0;flex:1}.wide,#search{width:100%;margin-top:7px}.hint{font-size:12px;line-height:1.6;color:#666}.workspace{display:flex;min-width:0;flex-direction:column}.toolbar{display:flex;align-items:center;gap:15px;padding:8px 15px;background:white}.toolbar .row{margin-left:auto}.toolbar button{padding:7px 11px}#canvasWrap{position:relative;flex:1;overflow:hidden;background:#ecebea;min-height:300px}canvas{display:block;touch-action:none;width:100%;height:100%}#status{padding:12px;background:#fff;border-top:1px solid #ddd}.notice{font-size:11px;color:#66554c;margin:0;padding:10px 14px;background:#fff5df;line-height:1.6}.palette{width:100%;display:flex;align-items:center;gap:9px;text-align:left;margin:7px 0;padding:10px;touch-action:none}.palette small{display:block;font-weight:400;font-size:10px;color:#666;margin-top:4px}.symbol{border-radius:7px;background:#fce6eb;color:#b00027;padding:8px;min-width:38px;text-align:center}.hidden{display:none!important}.page{max-width:1080px;margin:25px auto;padding:25px;background:white;border-radius:12px}.page p{line-height:1.7;color:#666}.check{padding:13px;border:1px solid #ddd;border-left:4px solid #bd7e16;border-radius:7px;margin:10px 0}.check.ok{border-left-color:#387363}.check.bad{border-left-color:#e70033}.check strong{display:block}.check p{margin:5px 0;font-size:12px}.check .row{max-width:750px}.check select{flex:0 0 190px}.pill{display:inline-block;background:#fff0cc;padding:9px 12px;border-radius:20px;margin:0 5px 8px 0}table{width:100%;border-collapse:collapse;margin-top:20px}th,td{text-align:left;padding:12px;border-bottom:1px solid #ddd;font-size:12px;vertical-align:top}a{color:#b10029}.danger{color:#b10029}.listButton{width:100%;text-align:left;margin:5px 0}.dragGhost{position:fixed;pointer-events:none;z-index:99;background:#e70033;color:white;padding:12px;border-radius:8px}@media(max-width:1100px){#plan{grid-template-columns:265px 1fr}#inspector{grid-column:1/-1;max-height:350px}#plan{height:auto}.workspace{min-height:650px}aside{max-height:650px}}@media(max-width:650px){header{padding:15px;flex-wrap:wrap;gap:14px}header img{width:135px}h1{font-size:20px}.actions{margin:0}nav{padding:10px;overflow:auto}nav button{white-space:nowrap}#plan{display:flex;flex-direction:column}aside{max-height:none}.workspace{min-height:520px;order:-1}#canvasWrap{height:400px}.page{margin:10px;padding:15px;overflow:auto}header span{display:none}.check .row{display:block}.check input,.check select{width:100%;margin-bottom:8px}}

/* Working-surface review: readable controls and compact navigation. */
label{font-size:14px}.palette small{font-size:12px}.notice{font-size:12px}.page{font-size:16px}.page .check p,td,th{font-size:14px}.toolbar{flex-wrap:wrap}.toolbar button{font-size:12px}#palette{max-height:380px;overflow:auto}#componentsHeading{scroll-margin-top:15px}#fireControls{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}#fireControls>.hint,#fireControls>label:last-of-type{grid-column:1/-1}@media(max-width:650px){#fireControls{grid-template-columns:1fr}nav{position:sticky;top:0;z-index:5}.page table{min-width:300px}.toolbar{gap:8px}#palette{max-height:300px}}

/* Keep the drawing surface independent of canvas bitmap dimensions. */
#canvasWrap>canvas{position:absolute;inset:0;width:100%;height:100%}.workspace{min-height:0}#canvasWrap{min-width:0}
@media(max-width:1100px){.workspace{min-height:650px}}@media(max-width:650px){.workspace{min-height:520px}}

.sensor-group{border:1px solid #ddd;border-radius:7px;margin:8px 0;background:white}.sensor-group summary{cursor:pointer;padding:12px 10px;font-weight:600;font-size:13px}.sensor-group summary span{float:right;color:#666;font-size:12px}.sensor-group[open] summary{border-bottom:1px solid #eee}.sensor-group .palette{width:calc(100% - 12px);margin:6px}.sensor-group summary:focus-visible{outline:3px solid #e7003380;outline-offset:2px}

/* Prominent, consistent switch between planning tools. */
header a.planner-switch{display:inline-flex;align-items:center;justify-content:center;gap:12px;flex-shrink:0;padding:13px 18px;min-height:48px;background:#e70033;color:#fff;border:2px solid #fff;border-radius:8px;text-decoration:none;font:600 16px Inter,Arial,sans-serif;white-space:nowrap;box-shadow:0 2px 8px #0003}header a.planner-switch:hover{background:#bb0029}header a.planner-switch:focus-visible{outline:3px solid #fff;outline-offset:4px}header a.planner-switch span{display:inline;font-size:22px;color:inherit}@media(max-width:850px){header{flex-wrap:wrap}header a.planner-switch{width:100%}}

header{flex-wrap:wrap}.actions{flex-wrap:wrap;align-items:center}header>.actions>a{color:#fff}

.shared-project{margin:0;padding:10px 22px;background:#fff;border-bottom:1px solid #ddd;color:#231f20;font:14px Inter,Arial,sans-serif}.shared-project summary{cursor:pointer;font-weight:600}.shared-project .project-fields{display:flex;gap:15px;flex-wrap:wrap}.shared-project label{flex:1;min-width:180px}.shared-project p{font-size:12px;max-width:900px}.shared-project #autosaveStatus{display:block;margin-top:6px;font-size:12px}.shared-project details{margin-bottom:6px}
body.wide-workspace #plan{grid-template-columns:minmax(0,1fr)}body.wide-workspace #plan>aside{display:none}body.wide-workspace #plan{height:calc(100dvh - 200px);min-height:600px}
.project-review{padding:12px 0}.project-review summary{font-weight:600;cursor:pointer}.project-review article{border-bottom:1px solid #ddd;padding:12px 0}.project-review p{max-width:85ch}.project-review ul{padding-left:22px}
