*{box-sizing:border-box}body{margin:0;background:#f5f6f7;color:#26343d;font:13px Arial,Helvetica,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #dbe0e3;border-radius:6px;background:#fff;padding:9px 12px;color:#34414a;transition:.15s}button:hover{background:#f3f4f5;border-color:#a5afb6}button:disabled{opacity:.35;cursor:default}.primary{background:#ffcb08;border-color:#ffcb08;color:#161a1d;font-weight:bold}.primary:hover{background:#efbc00}.nav{width:208px;background:#171c20;color:#b9c2c9;position:fixed;inset:0 auto 0 0;padding:30px 18px;display:flex;flex-direction:column}.brand{padding:0 10px 28px;border-bottom:1px solid #31383e}.brand b{font-size:27px;letter-spacing:-1.5px;color:#ffcb08;font-style:italic}.brand b span{margin-left:5px}.brand small{display:block;font-size:7px;letter-spacing:2px;margin-top:5px;color:#c2c9cd}.app-name{margin:27px 10px;color:#fff;font-size:20px;letter-spacing:1px}.app-name b{color:#ffcb08}.app-name span{display:block;font-size:9px;color:#87949e;letter-spacing:2px;margin-top:8px}.nav nav{display:grid;gap:7px}.nav button{display:flex;align-items:center;gap:12px;border:0;background:none;color:#aeb9c2;text-align:left;padding:13px 11px;font-size:12px}.nav button span{font-size:18px;width:18px}.nav button.active{background:#ffcb08;color:#182027;font-weight:bold}.nav em{font-size:10px;font-style:normal;background:#394048;border-radius:5px;padding:2px 5px;margin-left:auto;color:#fff}.nav-bottom{margin-top:auto;padding:22px 10px 0;font-size:11px}.nav-bottom>small{display:block;margin-top:8px;color:#73828e;font-size:10px}.avatar{display:flex;align-items:center;gap:12px;border-top:1px solid #343c43;padding-top:22px;margin-top:25px;color:#ffcb08;font-weight:bold}.avatar span{color:#e2e7ea;font-size:11px}.avatar small{display:block;color:#7e909d;margin-top:5px;font-weight:normal}main{margin-left:208px}header{display:flex;align-items:center;justify-content:space-between;padding:24px 28px;background:#fff;border-bottom:1px solid #e4e8eb}.breadcrumb{color:#95a0a8;font-size:10px;letter-spacing:.2px}h1{font-size:23px;font-weight:600;margin:7px 0 0;letter-spacing:-.5px}.header-actions{display:flex;align-items:center;gap:10px}#saved{font-size:10px;color:#6c8076;margin-right:9px}.project-bar{margin:22px 26px 0;display:flex;justify-content:space-between;align-items:center}.project-bar h2{font-size:15px;letter-spacing:.1px;margin:9px 0 6px}.project-bar p{font-size:11px;color:#88939a;margin:0}.tag{display:inline-block;background:#eef1f3;color:#75818b;padding:4px 6px;border-radius:3px;font-size:8px;font-weight:bold;letter-spacing:.7px}.tag.demo{background:#fff2bc;color:#927216}.steps{display:flex;gap:22px;margin:24px 26px 18px;color:#929ea6;align-items:center;font-size:10px}.steps b{font-size:11px;color:#a2abb2}.steps span{font-weight:normal;margin-left:7px;color:#65737d}.steps b:first-child{color:#b88d00}.steps i{font-style:normal;color:#d0d6da}.editor{margin:0 26px 24px;display:grid;grid-template-columns:108px minmax(0,1fr) 235px;border:1px solid #dfe4e7;background:white;border-radius:9px;overflow:hidden;height:calc(100vh - 258px);min-height:550px}.tools{border-right:1px solid #e4e8eb;padding:15px 8px;overflow:auto}.tools>small{font-size:8px;letter-spacing:1.3px;color:#9ba6ae;padding:0 6px}.tools button{display:flex;align-items:center;width:100%;text-align:left;gap:9px;border:0;padding:10px 6px;margin:3px 0;font-size:10px;background:transparent}.tools button span{font-size:20px;width:23px;text-align:center;color:#71818c}.tools button.selected{background:#fff5ce;color:#a17a00}.tools button.selected span{color:#aa8100}.canvas-col{min-width:0;display:flex;flex-direction:column}.canvas-tools{height:47px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;border-bottom:1px solid #e7ebed;flex-shrink:0}.canvas-tools>div{display:flex;gap:4px;align-items:center}.canvas-tools button{border:0;font-size:11px;padding:7px}.canvas-tools span{font-size:10px;color:#8b989f}.divider{height:18px;width:1px;background:#ddd;margin:0 5px}.canvas-tools .toggled{background:#f1f4f5}.canvas-hint{padding:12px 16px;color:#8a979e;font-size:10px;border-bottom:1px solid #f0f2f3}.live-dot{display:inline-block;background:#75aa8c;width:6px;height:6px;border-radius:50%;margin-right:6px}.canvas-scroll{position:relative;flex:1;overflow:auto;background:white;touch-action:none;display:flex;align-items:center}#drawing{min-width:100%;flex-shrink:0;height:auto;max-height:none;display:block;user-select:none}#drawing [data-port]{cursor:crosshair}#drawing [data-line]{cursor:pointer;pointer-events:stroke}.north{position:absolute;top:20px;left:20px;font-size:24px;color:#b1bbc0;pointer-events:none;text-align:center}.north small{display:block;font-size:6px;letter-spacing:.7px}.legend{display:flex;gap:15px;padding:12px 16px;flex-wrap:wrap;border-top:1px solid #eef1f3;font-size:9px}.legend>span{white-space:nowrap}.legend i{display:inline-block;width:15px;height:2px;vertical-align:middle;margin-right:5px}.legend small{display:none}.canvas-status{display:flex;justify-content:space-between;padding:11px 14px;background:#fafbfb;color:#82909a;font-size:9px;border-top:1px solid #e8edef}.canvas-status i{font-style:normal;margin:0 6px;color:#bcc5ca}.properties{border-left:1px solid #e3e8eb;padding:19px 17px;overflow:auto}.panel-head{font-size:13px;font-weight:bold;margin-bottom:20px;display:flex;justify-content:space-between;align-items:center}label{display:block;font-size:10px;color:#7b8992;margin:12px 0}input,select,textarea{display:block;width:100%;padding:9px;border:1px solid #dfe4e7;background:white;border-radius:5px;color:#34434c;margin-top:6px;min-width:0}input:focus,select:focus,textarea:focus{outline:2px solid #f1d367;outline-offset:1px}.two{display:grid;grid-template-columns:1fr 1fr;gap:8px}.two label{margin:4px 0}.two button{font-size:11px;padding:8px}.check{display:flex;align-items:center;gap:7px;margin:11px 0}.check input{width:auto;margin:0;accent-color:#e2b400}.subcard{padding:2px 10px 10px;background:#f7f9fa;border:1px solid #e7ecef;border-radius:6px;margin-bottom:10px}.subcard small{font-size:9px;color:#8d99a1}.subtle{border:0;background:transparent;font-size:9px;color:#a36b64;display:block;padding:6px 0}.danger{color:#b25952}.hint{font-size:11px;line-height:1.65;color:#8a969e}.actions{margin-top:18px}.instruction{background:#f7f9fa;padding:15px;border-radius:7px;margin:25px 0;font-size:10px}.instruction p{color:#89959d;margin:12px 0}.properties h4{font-size:11px;margin:22px 0 12px}.content{padding:28px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.section-heading p{color:#7b8992;font-size:12px}.section-heading input{max-width:450px}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px;margin-bottom:25px}.cards article,.stats article{background:#fff;padding:23px;border:1px solid #e1e6e9;border-radius:9px}.cards h3{font-size:15px;line-height:1.5}.cards p,.cards small{color:#8a979e;font-size:11px}.cards button{display:block;margin-top:18px}.stats{display:flex;gap:18px;margin-bottom:24px}.stats article{flex:1}.stats strong{display:block;font-size:26px;margin-bottom:10px;color:#293740}.stats span{font-size:11px;color:#8d99a1}table{border-collapse:collapse;width:100%;background:white;font-size:11px}th{background:#edf1f3;text-align:left;padding:14px;color:#75838c;font-weight:normal}td{padding:14px;border-bottom:1px solid #e8edf0}td small{display:block;color:#94a0a8;font-size:10px;margin-top:7px}td button{font-size:10px}.file-button{display:inline-block;border:1px solid #dce3e7;padding:10px 14px;border-radius:6px;background:white;cursor:pointer;color:#546571}.file-button input{display:none}.notice{padding:17px;background:#fff6d4;border:1px solid #efe0a2;border-radius:6px;margin:20px 0;line-height:1.7;font-size:12px}.issue{padding:10px 15px;background:#fff;border-left:2px solid #d8af30;color:#8c743a;font-size:11px}.content h3{margin-top:30px;font-size:15px}.content h2{font-size:19px}.narrow{max-width:850px}.narrow p{line-height:1.8;color:#7c8b95}.narrow>label{max-width:550px}.product-color{display:flex;align-items:center;justify-content:space-between}.product-color input{width:65px;height:32px;padding:2px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#25343e;color:white;border-radius:8px;padding:15px 22px;box-shadow:0 8px 30px #0002;z-index:99;opacity:0;pointer-events:none;transition:.2s;font-size:12px;max-width:80vw}#toast.show{opacity:1}@media(min-width:1600px){.editor{grid-template-columns:120px minmax(0,1fr) 280px}}@media(max-width:1100px){.nav{width:165px;padding:24px 10px}main{margin-left:165px}.editor{margin:0 12px;grid-template-columns:85px minmax(0,1fr) 200px}.tools button{gap:4px;font-size:9px}.steps{gap:10px}.header-actions #saved{display:none}.brand b{font-size:23px}.properties{padding:15px 12px}}@media(max-width:780px){.nav{position:static;width:auto;padding:12px 15px;display:block}.brand,.app-name,.nav-bottom{display:none}.nav nav{display:flex;overflow:auto;gap:4px}.nav button{white-space:nowrap;font-size:10px;padding:8px}.nav button span{font-size:14px}.nav em{display:none}main{margin:0}header{padding:16px}h1{font-size:20px}.header-actions button{font-size:10px;padding:8px}.header-actions>button:not(.primary){display:none}.project-bar{margin:16px}.project-bar h2{font-size:12px}.steps{margin:18px 16px;gap:6px;justify-content:space-between}.steps b{font-size:9px}.steps span{margin-left:3px}.steps i{display:none}.editor{grid-template-columns:75px minmax(0,1fr);height:auto;min-height:0}.canvas-col{height:480px}.properties{grid-column:1/-1;border-top:1px solid #ddd;max-height:450px}.tools button{display:block;text-align:center;font-size:9px;padding:4px}.tools button span{display:block;width:auto;font-size:18px}.tools>small{font-size:7px}.canvas-tools{padding:0 4px}.canvas-tools button{font-size:9px;padding:5px}.canvas-hint{line-height:1.5;font-size:9px;padding:8px}.canvas-status{font-size:8px;gap:8px}.content{padding:16px;overflow:auto}.stats{gap:8px}.stats article{padding:12px}.stats strong{font-size:19px}.stats span{font-size:9px}.section-heading{align-items:flex-start;flex-direction:column}.legend{font-size:8px;gap:9px;padding:9px}.north{display:none}}
/* v2: three tools, full canvas, contextual panels */
:root{color-scheme:dark}body{background:#13191e;color:#d4dce2;font-family:Arial,sans-serif}main{margin:0}button{background:#283139;color:#cdd7de;border-color:#3a454f}button:hover{background:#36424c;border-color:#576773}input,select,textarea{background:#1c242b;color:#e3e9ed;border-color:#3d4a54}label{color:#a9b8c2}.top-shell{height:54px;padding:0 24px;display:flex;align-items:center;border-bottom:1px solid #303941;background:#161d23;gap:34px}.wordmark{text-decoration:none;font-size:22px;font-weight:900;font-style:italic;color:#ffcb08;letter-spacing:-1px;white-space:nowrap}.wordmark span{font:10px Arial;letter-spacing:1.5px;color:#9baab4;border-left:1px solid #43505a;padding-left:15px;margin-left:15px}.top-shell nav{display:flex;height:100%;gap:8px}.top-shell nav button{border:0;background:none;border-bottom:2px solid transparent;border-radius:0;padding:0 15px;font-size:11px;color:#8e9da8}.top-shell nav button.active{border-bottom-color:#ffcb08;color:#ffda4c}.top-shell em{background:#3c3524;color:#f5c94f;border-radius:4px;font-size:9px;padding:3px;font-style:normal}.user-chip{margin-left:auto;background:#323b43;border-radius:50%;width:28px;height:28px;display:grid;place-items:center;font-size:10px;color:#d5c16d}header{height:72px;background:#1c242b;padding:12px 25px;border-color:#303b44}h1{font-size:15px;letter-spacing:0;color:#e0e6eb;margin:6px 0}.breadcrumb{font-size:8px;letter-spacing:1.1px;color:#82949f}.header-actions button{font-size:11px}.primary{background:#ffcb08;color:#181b1d;border-color:#ffcb08}.primary:hover{background:#ffda43}.editor-v2{margin:0 14px 12px;border:1px solid #34414b;border-radius:7px;overflow:hidden}.compact-toolbar{height:53px;background:#1d262d;display:flex;align-items:center;justify-content:space-between;padding:8px 12px;gap:20px}.main-tools,.minor-tools{display:flex;gap:7px;align-items:center}.main-tools button{padding:9px 15px;font-size:14px;display:flex;gap:11px;align-items:center;border-color:#3c4751}.main-tools button span{font-size:11px}.main-tools button.active{background:#443c23;color:#ffda4c;border-color:#9e8027}.minor-tools button{padding:7px 10px;border:0;background:none;font-size:12px}.minor-tools span{font-size:9px;color:#8fa0aa}.canvas-wrap{position:relative;background:white;height:calc(100vh - 230px);min-height:480px;overflow:hidden}.canvas-scroll{height:100%;display:block;overflow:hidden;background:#fff;color:#26343d}.canvas-scroll svg{height:100%;width:100%;touch-action:none;cursor:default}#drawing [data-obj]{cursor:move}#drawing [data-port]{cursor:crosshair}#drawing [data-hatch]{cursor:grab}#drawing [data-vertex],#drawing [data-mid]{cursor:crosshair}#drawing [data-route-point],#drawing [data-segment]{cursor:move}.canvas-note{position:absolute;top:12px;left:16px;background:#f5f7f9dc;border:1px solid #e4e9ed;padding:8px 12px;border-radius:5px;font-size:9px;color:#8b99a3;pointer-events:none;z-index:1}.floating-panel{position:absolute;z-index:5;background:#202a32;color:#d3dde4;border:1px solid #495862;border-radius:10px;box-shadow:0 12px 32px #0003}.properties{right:16px;top:16px;width:305px;max-height:calc(100% - 36px);padding:18px;overflow-y:auto;border-left:1px solid #495862}.properties.minimized{display:none}.panel-head{color:#eef3f6;gap:10px;margin-bottom:16px;font-size:12px}.panel-head button{padding:3px 8px;margin-left:auto;font-size:18px;background:none;border:0;color:#9fb1bd}.catalog{top:12px;left:16px;width:420px;max-height:90%;overflow:auto;padding:20px}.catalog-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.catalog-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:94px;font-size:11px;border-radius:7px;padding:10px;background:#2a353e}.catalog-grid button:hover{border-color:#e0b128}.catalog-grid svg{height:52px;width:100%;background:#f4f6f7;border-radius:4px;color:#202b33}.catalog-grid b{font-size:30px;font-weight:normal;color:#dfbd45}details{border:1px solid #3b4852;border-radius:6px;margin:10px 0;padding:0 10px}summary{padding:12px 0;cursor:pointer;font-size:11px;color:#e0e6ea}summary span{font-size:8px;float:right;color:#a1b0ba;max-width:145px}details details{border:0;border-top:1px solid #39464f;border-radius:0;padding:0 2px;margin:4px 0}details details summary{font-size:10px;color:#afbdc6}.properties .hint{font-size:10px;color:#8fa2af}.properties small{font-size:9px;color:#889da9}.full{width:100%;margin-top:12px}.object-quick{position:absolute;bottom:17px;left:50%;transform:translateX(-50%);display:flex;background:#202b33;border:1px solid #4f5e68;padding:5px;border-radius:7px;gap:3px;z-index:3;box-shadow:0 4px 14px #0002}.object-quick button{font-size:10px;border:0;white-space:nowrap}.pipe-guide{position:absolute;bottom:12px;left:12px;right:12px;background:#202a32;border:1px solid #4b5964;border-radius:8px;display:flex;gap:12px;align-items:center;padding:10px 15px;z-index:4}.pipe-guide label{flex:1;margin:0;font-size:9px}.pipe-guide select{font-size:10px;margin-top:3px}.pipe-guide button{font-size:10px;white-space:nowrap}.canvas-status{background:#1c252c;color:#8c9da8;border-color:#35424a;align-items:center;height:34px;padding:7px 15px}.canvas-status .legend{border:0;padding:0;color:#a6b5be;font-size:8px;gap:15px}.content{max-width:1500px;margin:auto}.content h2,.content h3{color:#dce4ea}.cards article,.stats article{background:#202a32;border-color:#35434e}.stats strong{color:#e3ebf0}.tag{background:#39434b;color:#b1c0ca}.notice{background:#35301f;color:#d0bd82;border-color:#5a4d27}.issue{background:#202a32;color:#cfbd87}table{background:#202a32;color:#c8d3db}th{background:#2b3741;color:#a3b2bd}td{border-color:#35424c}.file-button{background:#26333c;color:#c4d0d9;border-color:#3b4a55}.product-edit{display:grid;grid-template-columns:80px 1fr 110px 75px;gap:8px;align-items:center;margin:8px 0}.product-edit input{margin:0}.product-edit button,.product-edit select{font-size:10px}.narrow p{color:#a3b1bb}.tech-block table{background:#fff;color:#333}.tech-block th{background:#eee;color:#444}.tech-block td{border-color:#ddd}
@media(min-width:1600px){.canvas-wrap{height:calc(100vh - 230px)}}@media(max-width:900px){.top-shell{padding:0 12px;gap:12px}.wordmark span{display:none}.top-shell nav{gap:0}.top-shell nav button{padding:0 10px;font-size:10px}.minor-tools button{padding:5px}.properties{width:285px}.compact-toolbar{gap:8px}.main-tools button{padding:9px 10px}.canvas-wrap{min-height:450px}.header-actions #saved{display:none}}@media(max-width:600px){.top-shell{height:auto;min-height:49px;flex-wrap:wrap;gap:5px;padding:8px 10px}.wordmark{font-size:20px}.top-shell nav{order:3;width:100%;height:34px;justify-content:space-between}.top-shell nav button{padding:0 7px;font-size:10px}.user-chip{position:absolute;right:12px;top:8px}header{height:70px;padding:10px 12px}h1{font-size:11px;max-width:230px}.breadcrumb{font-size:7px}.header-actions button{font-size:9px;padding:8px}.editor-v2{margin:0 5px 8px}.compact-toolbar{height:80px;padding:6px;flex-wrap:wrap;gap:2px}.main-tools{width:100%;justify-content:space-between;gap:4px}.main-tools button{flex:1;justify-content:center;padding:9px 5px;gap:6px}.main-tools button span{font-size:10px}.minor-tools{justify-content:center;width:100%;gap:8px}.minor-tools button{font-size:10px;padding:3px 7px}.canvas-wrap{height:calc(100dvh - 275px);min-height:380px}.canvas-scroll{height:100%}.canvas-note{font-size:8px;top:6px;left:6px;padding:6px;max-width:90%}.properties{top:auto;right:5px;left:5px;bottom:8px;width:auto;max-height:72%;padding:14px}.object-quick{bottom:5px;left:50%;max-width:96%;overflow:auto;z-index:6}.object-quick button{font-size:9px;padding:6px}.catalog{left:5px;right:5px;width:auto;top:8px;max-height:92%;padding:15px}.catalog-grid button{min-height:80px}.catalog-grid svg{height:40px}.pipe-guide{flex-wrap:wrap;gap:7px;padding:8px;bottom:5px;left:5px;right:5px}.pipe-guide label{min-width:43%}.pipe-guide button{font-size:9px;padding:8px}.canvas-status{font-size:8px;padding:5px;height:30px}.canvas-status .legend{display:none}.product-edit{grid-template-columns:60px 1fr;gap:5px}.properties .actions{margin-bottom:30px}.section-heading input{width:100%}.stats article{min-width:90px}.stats strong{font-size:16px}}

.insertion{max-width:380px}.insertion label{font-size:12px}.insertion details{margin:8px 0}#drawing{touch-action:none}[data-size-handle]{cursor:nwse-resize}

#work-dialog{background:#1c2730;color:#eef3f6;border:1px solid #445562;border-radius:10px;padding:0;width:min(560px,94vw);max-height:88dvh;box-shadow:0 18px 90px #0007}#work-dialog::backdrop{background:#09111787}#work-dialog form{padding:18px}#work-dialog .panel-head{border-bottom:1px solid #3f4e58;padding-bottom:9px}#work-dialog h2{font-size:17px;margin:0}#work-dialog .work-body{max-height:62dvh;overflow:auto}#work-dialog label{display:block;font-size:12px;margin:8px 0}#work-dialog input,#work-dialog select{min-width:0;width:100%;box-sizing:border-box}#work-dialog .tick{display:flex;align-items:center;gap:8px}#work-dialog .tick input{width:auto}#work-dialog button,.work-actions button{margin:3px}#work-dialog footer{display:flex;justify-content:flex-end}#work-dialog [role=alert]{color:#ffcc9d}#work-dialog .two,.legend-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.legend-row{grid-template-columns:1fr 1.5fr 1fr;border-bottom:1px solid #39454e}.reference{position:relative}.reference img,.reference svg{display:block;width:100%}.reference svg{position:absolute;inset:0;height:100%;pointer-events:none}.work-actions{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:10px}.pipe-guide{flex-wrap:wrap}.canvas-wrap{outline:1px solid #465561}.candidates summary{cursor:pointer}#work-dialog .progress{color:#ffcb08}#work-dialog table{width:100%}#work-dialog .work-body>button{min-height:38px}.header-actions [data-work=import]{border-color:#bb9d37}

.header-actions[hidden]{display:none}.header-actions .type-size{padding:11px 15px;font-weight:700;border:1px solid #ffcb08;color:#ffdb45;font-size:13px}.work-actions [data-homefilter]{padding:10px 14px}.section-heading #search{min-width:230px}#work-dialog select,#work-dialog input{max-width:100%}.canvas-status .legend{flex-wrap:wrap}.top-shell+.content header p,main header p{font-size:12px;color:#aab8c3;margin:5px 0}body:has([data-homefilter]) table button{margin:3px}button[data-dir]{font-size:11px}
#drawing.pan-tool{cursor:grab}#drawing.pan-tool:active{cursor:grabbing}.minor-tools [aria-pressed=true]{background:#ffd13b;color:#151b1f}
.brand-home{border:0;background:#000;padding:0;display:flex;align-items:center}.brand-home img{display:block;width:133px;height:58px;object-fit:contain}.top-shell{background:#000;color:white}.landing{max-width:1080px;margin:auto}.landing header{margin:28px 0 18px}.landing .create{font-size:17px;padding:16px 22px}.destinations{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:35px}.recent-item{display:inline-grid;text-align:left;gap:8px;margin:4px;padding:15px}.editor-body{display:flex;min-height:0;flex:1}.editor-body>.canvas-wrap{min-width:0;flex:1}.live-legend{width:var(--legend-width);max-width:42%;flex:none;overflow:auto;max-height:78vh;padding:10px;background:#20272d;color:white;border-left:1px solid #56616a}.live-legend summary{cursor:pointer;padding:7px}.live-legend details{border-bottom:1px solid #51606b}.live-legend details.current{border-left:3px solid #ffcb08}.live-legend .legend-entry{padding:6px;display:grid;gap:5px}.legend-entry div{display:flex;gap:4px}.legend-entry input,.legend-entry select{min-width:0;width:100%}.legend-entry.focused{outline:1px solid #ffcb08}.live-legend label{display:flex;align-items:center;gap:6px}.live-legend button{font-size:12px}.canvas-scroll,#drawing{background:var(--board)!important}#drawing rect[width="1200"][height="740"][fill="white"]{fill:var(--board)}.dark-board #grid path:first-child{stroke:#717980}.dark-board #grid path:last-child{stroke:#afb8bd}.dark-board #drawing [data-obj]{filter:drop-shadow(0 0 1.5px white)}.dark-board #drawing rect[stroke="#536576"]{stroke:#b1c9d9}#drawing .found-item{filter:drop-shadow(0 0 3px #ffae00)}.review-field{border-left:3px solid #daa500!important}
@media(max-width:700px){.editor-body{position:relative}.live-legend{position:absolute;z-index:5;right:0;top:0;bottom:0;width:min(82vw,320px);max-width:none}.legend-width{display:none!important}.brand-home img{width:99px;height:45px}.landing header{align-items:flex-start;gap:14px;flex-direction:column}}
main.landing{padding:clamp(18px,4vw,54px);margin:0 auto}.landing header{padding:0 0 24px;min-height:0;border-bottom:1px solid #65717b55;background:transparent}.landing header h1{font-size:clamp(30px,4.4vw,52px);letter-spacing:-.05em}.landing .destinations button{padding:12px 15px}.landing #recent{padding-top:12px}.landing #recent h2{font-size:20px}.landing .recent-item{vertical-align:top;max-width:100%;min-height:62px}.landing .recent-item small{opacity:.75}.live-legend{height:calc(100vh - 230px);min-height:450px}.live-legend .panel-head{position:sticky;top:0;background:#20272d;z-index:1}.live-legend summary{color:white}.live-legend small{display:block;overflow-wrap:anywhere}.live-legend .legend-entry div input{flex:1}.dark-board #drawing [stroke="#ffcb08"]{filter:drop-shadow(0 0 1px white)}@media(max-width:700px){.live-legend{height:auto;min-height:0}.landing .destinations{display:grid;grid-template-columns:1fr 1fr}.landing .create{width:100%}}
.landing header{height:auto;min-height:0}.compact-toolbar{height:auto;flex-wrap:wrap}.legend-launch{border:1px solid #ffcb08;background:#ffcb08;color:#161a1d;font-weight:700;min-height:38px}.canvas-scroll,#drawing{touch-action:none;overscroll-behavior:contain;user-select:none}.board-street{position:absolute;bottom:0;left:0;width:100%;padding:4px 9px;background:#fffffff2;color:#161a1d;border:0;border-top:1px solid #85929b;border-radius:0;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.catalog .panel-head{position:sticky;top:0;z-index:1;background:#202930}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:700px){
 main.landing header{display:grid;grid-template-columns:minmax(0,1fr);padding-bottom:16px;margin:14px 0;height:auto}
 main.landing header .create{width:100%;min-height:46px;margin:0}
 .landing nav.destinations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 18px}.destinations button{height:auto;min-height:43px;line-height:1.25}
 .editor-v2 .compact-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;padding:6px;height:auto}
 .editor-v2 .main-tools{width:auto;min-width:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.editor-v2 .main-tools button{font-size:0;padding:6px 2px;min-width:0;min-height:38px;gap:0}
 .editor-v2 .main-tools button span{font-size:10px}.editor-v2 .minor-tools{grid-column:1/-1;display:flex;justify-content:flex-start;gap:3px;overflow-x:auto;white-space:nowrap}.minor-tools button{min-height:32px;flex-shrink:0}
 .editor-v2 .legend-launch{font-size:11px;padding:6px 8px}
 .editor-v2 .live-legend{z-index:12;box-shadow:-4px 0 14px #0004;animation:legend-slide .16s ease-out;overscroll-behavior:contain}
 .editor-v2 .catalog{width:min(350px,calc(100% - 12px));left:6px;right:auto;padding:9px;max-height:80%;overflow:auto;overscroll-behavior:contain}
 .catalog-grid{gap:5px}.catalog-grid button{padding:4px;min-height:56px;gap:3px}.catalog-grid svg{height:27px}.properties.floating-panel{max-height:48%;bottom:28px}
}
@keyframes legend-slide{from{transform:translateX(100%)}to{transform:translateX(0)}}
.account-tools{display:flex;align-items:center;justify-content:flex-end;gap:1rem;padding:.6rem 1rem}.account-tools a{color:inherit}
.registry-home .registry-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 24px}.registry-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.registry-head h2,.recent-strip h2{margin:0}.registry-head input{width:min(360px,100%)}.station-panel [data-found]{font-size:.85rem;margin:5px 0 10px}.station-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px;max-height:49vh;overflow:auto;padding:2px 5px 3px 1px}.station-cards .station-card{display:grid;text-align:left;gap:5px;padding:11px 13px;height:auto;white-space:normal;border-left:3px solid #ffcb08}.station-card[hidden]{display:none}.station-card small,.station-card span{font-weight:normal}.recent-strip{margin-top:24px}.recent-strip button{margin:6px 6px 0 0}.station-file dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 20px}.station-file dt{font-size:.8em;opacity:.8}.station-file dd{margin:3px 0;white-space:pre-line;overflow-wrap:anywhere}.station-file section{border-bottom:1px solid #69768155;padding-bottom:8px;margin-bottom:10px}@media(max-width:650px){.registry-head{align-items:stretch;flex-direction:column;gap:8px}.station-cards{grid-template-columns:1fr}.registry-head input{width:100%}.registry-actions button{flex:auto}.station-file dl{grid-template-columns:1fr}}

.connection-face{cursor:crosshair}.connection-face .face-hit{stroke:transparent;stroke-width:6;fill:none}.connection-face .face-glow{stroke:#0785ab;stroke-width:1.4;stroke-opacity:.35;fill:none;pointer-events:none}.connection-face circle{fill:white;stroke:#0785ab;stroke-width:1.5;pointer-events:none}.connection-face:hover .face-glow,.connection-face.chosen .face-glow{stroke:#009c75;stroke-width:4;stroke-opacity:1}.connection-face:hover circle,.connection-face.chosen circle{fill:#ffcb08;stroke:#004e45}

.pipe-tools{position:absolute;bottom:12px;left:12px;right:12px;z-index:6;display:flex;flex-wrap:wrap;gap:7px;align-items:center;background:#202c35f5;padding:10px;border:1px solid #56616b;border-radius:9px;box-shadow:0 4px 16px #0003;font-size:12px}.pipe-tools label{display:flex;align-items:center;gap:7px;margin:0}.pipe-tools input[type=range]{width:90px}.pipe-tools select{width:auto;max-width:170px}.pipe-tools input[type=number]{width:70px}.pipe-tools details{position:relative}.pipe-tools details[open]{padding:8px;background:#26343e;border-radius:6px}.pipe-tools details label{margin:7px 0}.pipe-context{position:fixed;z-index:1000;background:#23313b;color:#fff;border:1px solid #7a8995;border-radius:10px;box-shadow:0 8px 35px #0007;padding:16px;max-width:min(450px,calc(100vw - 20px));max-height:80vh;overflow:auto;font:13px Arial}.pipe-context p{margin:9px 0;line-height:1.4}.pipe-context button{margin:3px;padding:8px 10px}.pipe-context strong{display:block;padding-right:18px}.pipe-menu-row{display:flex;flex-wrap:wrap;gap:3px}.pipe-menu-close{position:absolute;right:4px;top:4px}.pipe-context label{display:flex;gap:8px;margin-top:12px;align-items:center}.pipe-context input{width:85px}.pipe-context select{width:100%;margin:10px 0}.pipe-quick{position:absolute;z-index:8;bottom:112px;left:12px;background:#23313bf5;border:1px solid #697b87;border-radius:9px;color:white;padding:12px;max-width:420px}.pipe-quick>div{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}.pipe-quick label{display:flex;gap:5px;margin:0;align-items:center}.pipe-quick input{width:auto}.pipe-quick small{display:block;margin-top:8px;color:#bac7d0}.pipe-findings{display:grid;gap:6px}.pipe-findings button{text-align:left}.connection-owner{opacity:.08}.connection-owner.near,.connection-owner:has(.chosen),.connection-owner:hover{opacity:1}.pipe-segment-hit{cursor:pointer}.pipe-segment-hit:hover{stroke:#06b6d4;stroke-opacity:.25}@media(pointer:coarse){.connection-owner{opacity:.8}}@media(max-width:700px){.pipe-tools{max-height:210px;overflow:auto;left:4px;right:4px;bottom:4px}.pipe-tools button{padding:7px;font-size:11px}.pipe-quick{bottom:215px;max-width:calc(100% - 24px)}}

.filter-fast-actions{display:grid;gap:7px;padding:10px;background:#ffffff08;border:1px solid #ffffff20;border-radius:7px;margin:8px 0 12px}.filter-fast-actions strong{font-size:11px;color:#ffcb08}.cad-actions,.filter-pump-options{display:grid;gap:5px;margin-top:10px}.cad-actions button,.filter-pump-options button{text-align:left;margin:0;min-height:34px}.pipe-context [data-filter-from]{max-width:270px}.pipe-context label{flex-wrap:wrap}

.geometry-menu{width:430px;max-height:85vh}.geometry-menu label{margin:9px 0}.geometry-menu input[type=checkbox]{width:auto}.geometry-menu select{width:auto;max-width:220px}.geometry-preview-controls{padding:10px 0;border-top:1px solid #ffffff30;margin-top:12px}.geometry-preview-controls p{color:#69d3ef}.geometry-menu [data-close]{float:right}.geometry-menu [data-preview-status]{line-height:1.45}.geometry-menu button:disabled{opacity:.4}#drawing [data-editor-end],#drawing [data-editor-radius],#drawing [data-editor-vertex]{pointer-events:all}
.continue-card{display:flex;justify-content:space-between;gap:24px;align-items:center;border:1px solid #e4bf19;border-left:5px solid #ffcb08;background:#fffdf1;padding:20px;margin:20px 0;border-radius:8px}.continue-card small{font-weight:700;letter-spacing:.08em}.continue-card h2{margin:8px 0;font-size:19px}.anp-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px;margin:18px 0}.anp-metrics>div{border:1px solid #ddd;background:white;border-radius:7px;padding:14px;display:grid;gap:7px}.anp-metrics strong{font-size:25px}.anp-metrics span{font-size:12px;color:#56616b}.anp-home{max-width:1600px;margin:auto}.anp-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;background:#fff;padding:16px;border:1px solid #ddd;border-radius:8px}.anp-filters label{min-width:140px;flex:1;margin:0}.anp-charts{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.anp-charts article{background:white;border:1px solid #ddd;border-radius:8px;padding:18px}.mini-chart>div{display:grid;grid-template-columns:140px 1fr 30px;gap:10px;align-items:center;margin:10px 0;font-size:12px}.mini-chart i{display:block;background:#e8b900;min-height:10px;border-radius:2px}.anp-table-scroll{overflow:auto}.anp-table{background:white;min-width:1000px}.anp-table input,.anp-table textarea,.anp-table select{width:100%;min-width:95px;margin:3px 0}.anp-table textarea{min-height:65px}.anp-table small{display:block;color:#69737b}.anp-banner{padding:6px 12px;background:#fff9de;border-bottom:1px solid #e9d97e}.anp-banner button{font-size:11px;border:0;background:transparent}.anp-timeline article{border-left:3px solid #e8b900;padding:12px 18px;margin:12px 0;background:#fafafa}.anp-timeline h3{margin:5px 0}.sort-row{display:flex;align-items:center;gap:8px;padding:7px;border-bottom:1px solid #ddd;cursor:grab}.sort-row span:nth-child(2){flex:1}.sort-handle{color:#8c9298}.sort-row button{font-size:11px;padding:6px}.version-preview{width:100%;max-height:60vh;border:1px solid #ccc;background:#fff}.live-legend [draggable=true]>summary{cursor:grab}.live-legend .focused{outline:2px solid #e8b900}.cad-note{font-size:12px;color:#56616b}@media(max-width:700px){.anp-charts{grid-template-columns:1fr}.continue-card{align-items:start;flex-direction:column}.sort-row{flex-wrap:wrap}.mini-chart>div{grid-template-columns:110px 1fr 20px}}
.live-legend-section>h3{font-size:10px;letter-spacing:.04em;color:#727980;margin:14px 6px 6px;font-weight:600}.live-legend-section p{font-size:inherit;line-height:1.6;margin:10px}.live-legend input,.live-legend select{font-size:inherit}.live-legend-section:empty{display:none}
.vent-assembly-actions{padding:12px;margin-bottom:12px;border:1px solid #b89524;border-radius:6px}.vent-assembly-actions p{font-size:11px;line-height:1.45}.vent-assembly-actions button{margin:4px 0}.tech-block svg{display:block;margin:auto}
#work-dialog.recognition-dialog{width:min(1240px,97vw)}.recognition-dialog .work-body{max-height:72dvh;overflow:auto}.recognition-intro p{font-size:12px;margin:6px 0}.recognition-tools{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:12px 0}.recognition-tools label{flex:1;min-width:170px;margin:0}.recognition-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:14px;align-items:start}.recognition-view{position:sticky;top:0;background:white;border:1px solid #87929b;overflow:hidden}.recognition-view svg{display:block;width:100%;max-height:59dvh;touch-action:none;user-select:none}.recognition-view svg.area-mode{cursor:crosshair}.recognition-inspector{max-height:59dvh;overflow:auto;padding:0 8px}.recognition-inspector small{display:block;line-height:1.5;margin-bottom:10px}.recognition-inspector input,.recognition-inspector select{max-width:100%}.recognition-inspector fieldset{border:1px solid #4c5962;border-radius:5px;margin:9px 0;padding:9px}.recognition-dialog [data-rec]{cursor:pointer}.recognition-inspector input[type=checkbox],.recognition-dialog [name=keep-reference],.recognition-dialog [name=safe-connections]{width:auto;float:none;display:inline-block;margin-right:7px}.recognition-inspector textarea{width:100%;min-height:95px}.continue-card{color:#20262c}.continue-card p,.continue-card small,.continue-card h2{color:#20262c}.registry-home>.anp-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.anp-metrics strong{color:#20262c}@media(max-width:760px){.recognition-layout{grid-template-columns:1fr}.recognition-view{position:relative}.recognition-inspector{max-height:40dvh}.recognition-view svg{max-height:45dvh}.registry-home>.anp-metrics{grid-template-columns:1fr}}

.recognition-layout>*{min-width:0}.recognition-inspector .two>*{min-width:0}.recognition-inspector input,.recognition-inspector textarea,.recognition-inspector select{min-width:0;box-sizing:border-box}
.editor-window{position:fixed!important;min-width:220px;min-height:40px;overflow:hidden!important;display:flex!important;flex-direction:column;border:1px solid #51616e!important;border-radius:9px!important;background:#1c2730;box-shadow:0 12px 42px #0005;padding:0!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important}.editor-window>form{display:flex;flex-direction:column;min-height:0;flex:1;margin:0;padding:0!important}.editor-window .panel-head{flex-shrink:0;display:flex!important;align-items:center;justify-content:space-between;gap:8px;cursor:move;touch-action:none;padding:9px 10px!important;border-bottom:1px solid #465560;background:#25313a;font-size:12px;position:relative;top:auto;min-height:39px;margin:0!important}.editor-window .panel-head h2{font-size:13px!important;line-height:1.3;flex:1}.window-controls{display:flex;gap:3px;flex-shrink:0}.window-controls button{padding:3px 7px!important;min-width:25px;margin:0!important;background:transparent;font-size:14px;line-height:20px}.window-content{flex:1;min-height:0;overflow:auto;padding:10px 12px 18px;overscroll-behavior:contain}.editor-window .work-body{padding:0;max-height:none!important;overflow:visible!important}.editor-window .window-content footer{position:static;padding-top:8px}.window-minimized{height:auto!important;min-height:0!important}.window-minimized .window-content,.window-minimized .window-resize{display:none!important}.window-resize{position:absolute;right:0;bottom:0;width:23px;height:23px;touch-action:none;cursor:nwse-resize;background:linear-gradient(135deg,transparent 54%,#a2b0bc 55%,transparent 61%,transparent 67%,#a2b0bc 68%,transparent 74%);z-index:3}.editor-window .two{gap:8px}.editor-window details{margin:7px 0}.editor-window input,.editor-window select,.editor-window textarea{min-width:0;width:100%;max-width:100%}.editor-window input[type=checkbox]{width:auto}.editor-window label{display:block;margin:7px 0;font-size:12px}.editor-window button{font-size:12px}.editor-window .window-content>.panel-head{display:none!important}.object-grid{padding:8px 0;border-bottom:1px solid #485560}.object-grid small{display:block;line-height:1.4;opacity:.75;margin:5px 0}.object-grid input{text-transform:uppercase}.grid-navigation{display:flex;align-items:center;gap:4px}.grid-navigation input{width:104px;min-width:0;padding:6px;text-transform:uppercase}.grid-navigation button{padding:6px!important}.canvas-scroll{inset:22px 0 22px 26px!important}.canvas-note{left:34px!important;top:29px!important;pointer-events:none;max-width:calc(100% - 55px)}.grid-rulers{position:absolute;inset:0;pointer-events:none;z-index:4;font:10px Arial;color:#26343d}.grid-rulers[hidden]{display:none}.grid-top{position:absolute;top:0;left:26px;right:0;height:22px;background:#e5e9edee;border-bottom:1px solid #b6c1c9}.grid-top span{position:fixed;top:0;transform:translateX(-50%)}.grid-top span{position:absolute;top:5px;margin-left:-26px}.grid-left{position:absolute;left:0;top:22px;bottom:22px;width:26px;background:#e5e9edee;border-right:1px solid #b6c1c9}.grid-left span{position:absolute;left:0;width:26px;text-align:center;margin-top:-22px;transform:translateY(-50%);overflow:hidden}.grid-corner{position:absolute;left:0;top:0;width:26px;height:22px;background:#d8dfe5;text-align:center;line-height:22px;font-weight:bold}.pipe-segment-hit{stroke-width:20;vector-effect:non-scaling-stroke;pointer-events:stroke}.object-quick{display:none}.geometry-menu.editor-window,.pipe-context.editor-window{width:340px}.editor-window .cad-actions{gap:5px}.editor-window.window-minimized .panel-head{border-bottom:0}.editor-window .recognition-view{position:relative}.editor-window .recognition-inspector{max-height:48dvh}.editor-window .recognition-view svg{max-height:48dvh}@media(pointer:coarse){.pipe-segment-hit{stroke-width:30}.window-controls button{min-width:32px;min-height:32px}.window-resize{width:30px;height:30px}}@media(max-width:700px){.editor-window .panel-head{padding:5px 8px!important}.editor-window .window-content{padding:8px 10px 20px}.editor-window .panel-head h2{font-size:12px!important}.grid-navigation input{width:85px}.grid-navigation button{font-size:10px}.canvas-note{font-size:9px!important}.grid-top,.grid-left{font-size:9px}}

.drive-destination{display:grid;gap:5px;padding:12px;margin:8px 0;border:1px solid #b89927;border-radius:6px}.drive-destination strong{color:#ffcf25}.drive-files article,.drive-version{padding:10px 0;border-bottom:1px solid #4a5660}.drive-files small,.drive-version small{display:block;margin:5px 0;color:#afbdc7}.drive-files button{margin:3px;font-size:11px}.drive-uri{display:block;overflow-wrap:anywhere;user-select:all;padding:8px;background:#131d25;font-size:11px}.drive-dialog ul{padding-left:20px;line-height:1.8}.header-actions{flex-wrap:wrap}.header-actions [data-drive]{font-size:11px;padding:8px}.button.primary{display:inline-block;padding:9px 12px;border-radius:5px;text-decoration:none}

body:has(.editor-v2) main>header{height:auto;min-height:82px;gap:12px;padding:12px 20px;align-items:center}body:has(.editor-v2) .header-actions{justify-content:flex-end;max-width:76%}.canvas-wrap{min-height:260px!important}.canvas-note{pointer-events:auto}.canvas-note button{pointer-events:auto}@media(max-width:700px){body:has(.editor-v2) main>header{padding:8px 12px;flex-wrap:wrap;gap:6px}body:has(.editor-v2) .header-actions{max-width:100%;width:100%;gap:4px;justify-content:flex-start}.header-actions button{padding:5px 7px!important;font-size:10px!important}.editor-window .window-controls{gap:0}.grid-navigation{max-width:100%}}

body:has(.geometry-menu:not(.window-minimized)) .properties[data-pipe-panel]{display:none!important}[data-pick-candidate]{display:block;width:100%;text-align:left;margin:7px 0}[data-pick-candidate] i{display:inline-block;width:22px;height:4px;margin:0 8px 3px 0}.geometry-menu .pipe-menu-row{display:flex;flex-wrap:wrap;gap:4px;margin:5px 0}.geometry-menu .pipe-menu-row button{flex:1 1 42%;padding:7px 5px}.geometry-menu [data-whole]{font-weight:bold}

.drive-mobile-menu{display:none}@media(max-width:700px){.editor-v2 .minor-tools{display:contents!important}.compact-toolbar{gap:5px!important;align-items:center}.compact-toolbar .legend-launch{flex:0 0 auto!important;width:auto!important;min-height:29px;padding:6px 10px}.compact-toolbar .minor-tools>button{min-height:29px;font-size:10px;padding:5px 6px}.grid-navigation{margin:2px 0}.grid-navigation input{height:29px}.drive-mobile-menu{display:block;position:relative;margin:0}.drive-mobile-menu summary{padding:6px 10px;border:1px solid #4c5b67;border-radius:5px;font-size:10px}.drive-mobile-menu>div{position:absolute;top:30px;left:0;width:210px;background:#25313a;border:1px solid #546572;border-radius:6px;padding:7px;z-index:70}.drive-mobile-menu button{display:block!important;width:100%;text-align:left;margin:4px 0}.canvas-status{font-size:8px;flex-wrap:wrap}}
@media(max-width:700px){.editor-v2 .compact-toolbar{display:flex!important;flex-wrap:wrap;justify-content:flex-start!important;gap:4px!important}.editor-v2 .main-tools{flex:1 1 260px;width:auto}.editor-v2 .minor-tools>button{flex:0 0 auto;width:auto}.editor-v2 .minor-tools>span{align-self:center;padding:0 3px}.editor-v2 .grid-navigation{flex:0 0 auto}.editor-v2 .legend-launch{min-width:62px}}

.alpha-grid-toggle{display:inline-flex;align-items:center;gap:5px;margin:0;white-space:nowrap;font-size:11px;cursor:pointer}.alpha-grid-toggle input{width:auto;margin:0;accent-color:#ffcb08}.grid-navigation[hidden],.object-grid[hidden],[data-grid-cursor][hidden]{display:none!important}.canvas-wrap:not(.alpha-grid-on) .canvas-scroll{inset:0 0 22px 0!important}.canvas-wrap:not(.alpha-grid-on) .canvas-note{left:14px!important;top:12px!important}@media(max-width:700px){.alpha-grid-toggle{font-size:10px;min-height:29px}}

/* Superfícies do aplicativo: a planta e as prévias técnicas conservam suas cores. */
:root{--ui-surface:#1c252c;--ui-raised:#222d35;--ui-border:#35434e;--ui-text:#dce4e9;--ui-muted:#a2b2be}
.continue-card{background:var(--ui-surface);border-color:#77651f;border-left-color:#ffcb08;padding:20px 22px;color:var(--ui-text);box-shadow:0 5px 20px #0002}
.continue-card>div{min-width:0}.continue-card small{color:var(--ui-muted);font-size:10px;text-transform:uppercase}.continue-card h2{color:#ffcf26;font-size:23px;margin:7px 0 10px}.continue-card h3{color:var(--ui-text);font-size:15px;margin:0 0 8px;line-height:1.45;overflow-wrap:anywhere}.continue-card p{color:var(--ui-muted);font-size:12px;line-height:1.5;margin:0}.continue-card>.primary{flex-shrink:0;min-height:44px;padding:12px 17px}
.anp-metrics>div,.anp-filters,.anp-charts article,.anp-timeline article{background:var(--ui-surface);border-color:var(--ui-border);color:var(--ui-text)}
.anp-metrics strong{color:var(--ui-text)}.anp-metrics span,.anp-table small,.cad-note{color:var(--ui-muted)}.anp-charts h3{color:var(--ui-text)}.anp-charts p{color:var(--ui-muted)}
.anp-table,.anp-table tbody,.anp-table td{background:var(--ui-surface);color:var(--ui-text)}.anp-table th{background:#29353e;color:#bbc9d3}.anp-table td{border-color:var(--ui-border)}.anp-table input,.anp-table select,.anp-table textarea{background:#141e25;color:var(--ui-text)}
.subcard,.instruction{background:var(--ui-surface);border-color:var(--ui-border)}.tag.demo{background:#38321e;color:#eed078}.sort-row{border-color:var(--ui-border)}
.anp-banner{background:#192229;border-bottom:1px solid var(--ui-border);padding:4px 16px}.anp-banner button{color:var(--ui-muted);padding:5px 0}.anp-banner button:hover{color:#ffcf26}
.canvas-note{background:#202a32ed;border-color:#465560;color:#c1cdd5}.board-street{background:#1c252cf5;color:#c1cdd5;border-color:#465560}
.live-legend{background:#192229;color:var(--ui-text)}.live-legend .panel-head{background:#192229}.live-legend summary{color:var(--ui-text)}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #ffcb08;outline-offset:3px}
#site-navigation[hidden],#project-options[hidden],.project-history[hidden]{display:none!important}
.editor-shell{height:auto;min-height:45px;padding:0 18px;gap:16px;flex-wrap:wrap}.editor-home{display:flex;align-items:center;gap:6px}.editor-home .brand-home img{width:96px;height:42px}.editor-home-label{border:0;background:transparent;color:#d1dce3;font-size:12px;padding:8px}.editor-home-label:hover{background:#1c252c;color:#ffcf26}
.editor-shell .site-menu-toggle{margin-left:auto;background:#1c252c;border-color:var(--ui-border);padding:7px 11px;font-size:11px}.editor-shell>.user-chip{display:none}.editor-shell>#site-navigation{order:3;width:100%;height:39px;overflow-x:auto;border-top:1px solid #29343c;gap:4px}.editor-shell>#site-navigation button{white-space:nowrap;flex-shrink:0;padding:0 14px}
body:has(.editor-v2) main>.editor-project-header{display:grid;grid-template-columns:minmax(0,1fr) auto;min-height:0;height:auto;gap:10px 16px;padding:10px 18px}.project-heading{min-width:0}.editor-project-header h1{font-size:15px;max-width:none;line-height:1.4;margin:3px 0}.project-shortcuts{display:flex;align-items:center;gap:7px}.project-shortcuts button{font-size:11px;padding:9px 12px;min-height:35px}.project-options-toggle{background:transparent;border-color:var(--ui-border)}
body:has(.editor-v2) .editor-project-header>.header-actions{grid-column:1/-1;max-width:100%;width:100%;justify-content:flex-start;gap:7px;padding-top:8px;border-top:1px solid #303c46}.editor-project-header .header-actions button{padding:7px 10px;font-size:11px}.editor-project-header #saved{margin-right:auto}.minor-tools [data-window-toggle-all]{border:1px solid #3c4953;padding:6px 9px}
.editor-project-header .header-actions>button:not([data-drive]){display:inline-flex;align-items:center;justify-content:center}
@media(max-width:700px){.continue-card{gap:17px;padding:18px}.continue-card h2{font-size:21px}.continue-card>.primary{width:100%}.editor-shell{padding:0 10px;gap:7px;min-height:43px}.editor-shell .editor-home .brand-home img{width:83px;height:39px}.editor-shell .editor-home-label{font-size:11px;padding:6px}.editor-shell>#site-navigation{justify-content:flex-start}.editor-shell>#site-navigation button{padding:0 11px}.editor-shell .site-menu-toggle{font-size:10px;padding:6px 9px}body:has(.editor-v2) main>.editor-project-header{padding:8px 10px;gap:6px;grid-template-columns:minmax(0,1fr)}.editor-project-header h1{font-size:12px}.project-shortcuts{justify-content:space-between}.project-shortcuts button{font-size:11px;min-height:33px}.editor-project-header #saved{display:none}.editor-project-header .header-actions{gap:5px}.anp-banner{padding:3px 10px}.anp-banner button{font-size:10px;text-align:left}}
/* Two single-line controls above the drawing. Menus float over the canvas. */
main.editor-main {margin: 0; padding: 0; max-width: none}
.editor-main .editor-v2 {margin: 0; border: 0; border-radius: 0; overflow: visible}
.editor-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: #1c252c;
  border-bottom: 1px solid #35424a;
}
.editor-bar:has(.editor-dropdown[open]) {z-index: 30}
.editor-project-bar h1 {
  flex: 1;
  min-width: 0;
  margin: 0 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.editor-bar > button, .editor-dropdown > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 3px 8px;
  white-space: nowrap;
  font-size: 12px;
}
.editor-bar button[aria-pressed="true"], .editor-dropdown[open] > summary {border-color: #ffcb08; color: #ffdb45}
.editor-dropdown > summary {border: 1px solid #3a454f; border-radius: 6px; cursor: pointer; list-style: none}
.editor-dropdown > summary::-webkit-details-marker {display: none}
.editor-dropdown-panel {
  position: absolute;
  inset: calc(100% + 2px) 6px auto auto;
  width: min(430px, calc(100% - 12px));
  max-height: calc(100dvh - 90px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 10px;
  border: 1px solid #465560;
  border-radius: 6px;
  background: #192229;
  box-shadow: 0 8px 24px #0008;
}
.editor-dropdown-actions {display: flex; flex-wrap: wrap; align-items: center; gap: 5px}
.editor-dropdown-actions button {min-height: 34px; padding: 5px 8px}
.editor-project-meta, .editor-dropdown-actions #saved {flex-basis: 100%; margin-bottom: 5px; color: #b6c3cb}
.editor-dropdown-panel .project-history {margin-top: 8px}
.editor-dropdown-panel .canvas-status {height: auto; gap: 5px; flex-wrap: wrap; padding: 6px}
.editor-dropdown-panel [hidden], .editor-main .canvas-note[hidden] {display: none}
.editor-main .canvas-wrap {min-height: 160px !important}
.editor-bar .compact-label {display: none}

@media (max-width: 520px) {
  .editor-bar {gap: 3px; padding: 2px 4px}
  .editor-bar > button, .editor-dropdown > summary {min-height: 36px; padding-inline: 6px}
  .editor-tool-bar {display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto}
  .editor-tool-bar > button {min-width: 0}
  .editor-tool-bar > button > span:not(.compact-label) {position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%)}
  .editor-bar .compact-label {display: inline}
  .editor-dropdown-panel {max-height: calc(100dvh - 96px)}
}

/* Drawing tools */
.editor-project-bar {gap:8px; padding:5px 9px}
.editor-tool-bar {display:flex; flex-wrap:nowrap; align-items:center; gap:7px; padding:4px 9px}
.plan-mode {display:inline-flex;flex-direction:row;align-items:center;gap:8px;margin:0;color:#d2dce2;white-space:nowrap;font-size:13px}
.plan-mode select,.plan-type-options {border:1px solid #56636c;border-radius:5px}
.plan-mode select {width:auto;min-height:32px;font-size:14px;font-weight:600;color:#ffda37;margin:0;padding:4px 26px 4px 8px}
.all-plan-tools,.plan-dialog-actions,.plan-object-actions,.plan-start-methods {display:flex;align-items:center;gap:5px}
.plan-dock {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px;min-width:0}
.plan-shortcuts {display:grid;grid-template-rows:repeat(3,26px);grid-auto-flow:column;grid-auto-columns:28px;align-items:center;gap:2px;max-width:min(60vw,520px);overflow-x:auto;scrollbar-width:thin;padding:1px}
.plan-dock button,.all-plan-tools button,.editor-bar .mode-command {display:inline-flex;align-items:center;gap:6px;flex:none;min-height:34px;padding:5px 9px;font-size:13px;line-height:1}
.plan-dock [data-shortcut]{width:28px;height:26px;min-height:26px;padding:3px;justify-content:center;border-radius:4px}
.plan-dock [data-shortcut] span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.plan-dock [data-shortcut] svg{width:16px;height:16px}
.plan-dock svg,.all-plan-tools svg {flex:none}
.plan-dock [data-shortcut="ai"] {color:#fbd13a;border-color:#756527}
.plan-dock-settings {display:grid;grid-template-rows:repeat(2,26px);gap:2px;border-left:1px solid #51606a;padding-left:4px}
.plan-dock-settings button {width:28px;min-width:28px;min-height:26px;padding:3px;justify-content:center}
.plan-dock.undocked {position:fixed;grid-template-columns:auto minmax(0,1fr) auto;z-index:70;max-width:calc(100vw - 8px);padding:5px;background:#19232a;border:1px solid #52616e;border-radius:8px;box-shadow:0 5px 18px #0006}
.plan-dock [data-dock-grip] {touch-action:none;cursor:move;padding:4px}
.editor-tool-bar #editor-tools {margin-inline-start:auto;flex:none}
.all-plan-tools,.plan-dialog-actions,.plan-start-methods,.plan-object-actions {flex-wrap:wrap}
.all-plan-tools {padding:3px 0 8px;margin-bottom:3px;border-bottom:1px solid #48535a}
.plan-type-options {display:flex;flex-wrap:wrap;gap:4px 10px;padding:8px}
#work-dialog .plan-type-options label {display:inline-flex;align-items:center;gap:5px;margin:0}
#work-dialog .plan-type-options input,.dock-row input[type=checkbox] {width:auto;margin:0}
.plan-start-methods,.plan-dialog-actions,.plan-object-actions {margin:8px 0}
.plan-dialog-actions a {color:#ffdb48;text-decoration:underline}
#work-dialog .work-body output {display:block;margin:8px 0;color:#d2dfe4;overflow-wrap:anywhere;line-height:1.4}
.plan-items > div,.dock-row {display:flex;align-items:center;gap:6px;padding:6px 0;border-bottom:1px solid #3a454d}
.plan-items span,.dock-row label {flex:1;min-width:0}
.plan-items small {display:block;color:#c6d1d7}
.plan-items i {display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px}
#work-dialog .dock-row label {display:flex;align-items:center;gap:6px;margin:0}
.dock-row button,.plan-items button {font-size:12px;padding:5px;min-height:30px}
.plan-help {line-height:1.45;color:#c8d3d9}
.plan-builder fieldset {margin:8px 0;padding:8px;border:1px solid #46535b;border-radius:5px}
.plan-builder summary {font-weight:650;padding:5px 0}
.plan-builder [data-spec-preview] svg {display:block;width:100%;height:165px;border-radius:4px;background:white}
.plan-builder [data-spec-fields]>button {margin:6px 0}
.plan-extend-grip,.earth-wire-hit,[data-earth-node] {cursor:crosshair}
.editor-main .canvas-note:has(button) {pointer-events:auto;max-width:calc(100% - 20px);height:auto;white-space:normal}
.canvas-note button {margin-left:5px;padding:3px 7px;min-height:26px;font-size:12px}
.thematic-legend table {width:100%;font-size:12px}.thematic-legend h3 {font-size:13px;line-height:1.4}
@media(max-width:760px) {
 .plan-mode>span {display:none}
 .editor-tool-bar {padding:3px 5px;gap:3px}
 .plan-dock [data-shortcut] span {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .plan-dock [data-shortcut],.plan-dock-settings button {min-width:27px;justify-content:center;padding:3px}
 .plan-shortcuts,.plan-dock-settings,.plan-dock {gap:2px}
 .editor-project-bar {gap:4px;padding:3px}.plan-mode select {max-width:140px;font-size:12px}
 .editor-bar .mode-command {padding:4px;min-width:30px}
 .editor-bar .mode-command span {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
}

#drawing:focus{outline:none}
#drawing:focus-visible{outline:1px solid #959da3;outline-offset:-1px}
#drawing.erase-tool,#drawing.erase-tool [data-obj],#drawing.erase-tool [data-branch]{cursor:crosshair}
#drawing.erase-tool [data-area-zone]>circle,#drawing.erase-tool [data-zone-hit]{pointer-events:visibleStroke}
.erase-selected{fill:none;stroke:#125ca1;stroke-width:2.5;stroke-linejoin:round}
.erase-selected>*,.erase-window,.erase-start{vector-effect:non-scaling-stroke}
.erase-window{stroke-width:1.4}
.erase-window.inside{stroke:#166bc4;fill:#2486de;fill-opacity:.12}
.erase-window.crossing{stroke:#15834c;fill:#19a660;fill-opacity:.14;stroke-dasharray:7 4}
.erase-start{fill:white;stroke:#166bc4}
.canvas-note:has(.erase-prompt){max-width:min(38rem,calc(100% - 1.5rem));text-align:left;pointer-events:auto}
.erase-prompt{display:flex;align-items:center;flex-wrap:wrap;gap:.25rem .65rem}
.erase-prompt [data-erase-tip]{flex-basis:100%}
.erase-prompt>div{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.2rem}
.erase-prompt button{margin:0}
.erase-prompt [data-erase-apply]:enabled{background:#ffcb08;color:#171717;border-color:#d7aa00}
.cad-key-input{position:absolute;bottom:2.6rem;left:1rem;z-index:10;background:#fff;color:#151719;padding:.45rem .65rem;border:1px solid #a7b0b5;font:600 .82rem monospace;pointer-events:none}

.erase-prompt select{width:auto;max-width:13rem;min-height:30px}.erase-prompt>div{flex-wrap:wrap}.reading-report{white-space:pre-line;line-height:1.45}.plan-builder [data-legs][hidden]{display:none}
.pen-controls{display:flex;align-items:center;flex-wrap:wrap;gap:.35rem}.pen-controls select{width:auto;max-width:10rem}.pen-controls input{width:4rem}.pen-palette{display:flex;gap:2px}.pen-palette button{display:grid;place-items:center;width:32px;height:28px;min-height:28px;margin:0;padding:2px}.pen-palette button b{font-size:16px}.pen-palette button span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.pen-palette button.active{color:#171717;background:#ffcb08;border-color:#ffcb08}.pen-count{font-weight:650;color:#ffda37}.pen-hint{flex-basis:100%;font-size:11px}.pen-trace,.pen-draft{fill:none;stroke:#d39500;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;pointer-events:none}.pen-draft{stroke:#1886b8;stroke-width:2.2;stroke-dasharray:7 3;opacity:.88}.pen-draft-island{stroke:#168a58}.pen-draft-pump,.pen-draft-filter,.pen-draft-tank{stroke:#8c43c4}.canvas-note:has(.pen-controls){max-width:min(920px,96%)}

/* Clean dashboard focused on the two daily jobs: open a BF and continue a plant. */
.dashboard-main-actions{display:flex;align-items:center;gap:8px}.compact-icon{display:grid;place-items:center;width:38px;height:38px;padding:7px}.compact-icon svg,.whatsapp-share svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.ongoing-plants{margin:14px 0 22px}.ongoing-plants>div:last-child{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:7px;margin-top:8px}.ongoing-plants button{display:grid;gap:3px;text-align:left;padding:10px 12px}.ongoing-plants small{font-weight:normal;color:#aebbc4}.bf-search{display:flex;align-items:stretch;width:min(240px,100%);margin:0}.bf-search>span{display:grid;place-items:center;padding:0 11px;border:1px solid #6c7881;border-right:0;border-radius:6px 0 0 6px;background:#26333c;color:#ffcf26;font-weight:750}.bf-search input{min-width:0;width:100%;border-radius:0 6px 6px 0;margin:0}.whatsapp-share{display:inline-flex;align-items:center;gap:5px;color:#72d79c;border-color:#277b4d}.whatsapp-share:disabled{opacity:.4}.whatsapp-share span{font-size:11px}
.station-cards .station-card{grid-template-columns:70px minmax(0,1fr);align-items:center}.station-thumb{display:grid;place-items:center;width:70px;height:58px;overflow:hidden;border:1px solid #52616c;border-radius:5px;background:#f8fafb;color:#6d7880;font-size:24px}.station-thumb svg{display:block;width:100%;height:100%;background:white}.station-card-info{display:grid;gap:4px;min-width:0}.station-card-info>*{overflow:hidden;text-overflow:ellipsis}

@media(max-width:700px){
 .editor-tool-bar{align-items:start}.plan-dock{flex:1;max-width:calc(100vw - 92px)}.plan-shortcuts{max-width:100%;grid-auto-columns:27px}.editor-tool-bar #editor-tools{margin-top:2px}
 .dashboard-main-actions{width:100%}.dashboard-main-actions .create{flex:1}.ongoing-plants>div:last-child{grid-template-columns:1fr}.bf-search{width:100%}
 .whatsapp-share{width:36px;min-width:36px;padding:5px;justify-content:center}.whatsapp-share span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .catalog.floating-panel{top:auto;bottom:8px;max-height:52%;padding:8px 9px}.properties.floating-panel{max-height:42%;padding:8px 9px}.editor-dropdown-panel{padding:6px;max-height:58dvh}.editor-window{max-height:62dvh!important}.editor-window .window-content{padding:6px 8px 14px}
 .canvas-note:has(.pen-controls){left:4px!important;right:4px;max-width:none!important}.pen-controls>strong,.pen-hint{font-size:9px}.pen-controls select{max-width:88px;font-size:10px}.pen-controls button{font-size:10px;padding:3px 5px}.pen-palette button{width:28px}
}

/* Focused station workflow and persistent tool layout. */
:root{--ui-brand:#ffcb08;--ui-brand-ink:#181b1d;--ui-logo-surface:#fff;--ui-shell:#000;--ui-shadow:0 8px 28px #0003}
.anp-brand{width:96px;height:46px;object-fit:contain;margin-left:auto;order:2}.top-shell .brand-home img{width:55px;height:44px}.top-shell .brand-home{background:var(--ui-shell)}
.registry-home header{position:relative;display:flex;justify-content:center;margin:15px 0 20px;padding:0 46px 22px}.registry-home header h1{font-size:38px;letter-spacing:0;max-width:none;text-align:center}.registry-home header .compact-icon{position:absolute;right:0;top:4px}.registry-home .bf-search{width:min(550px,100%);margin:0 auto 36px}.registry-home .bf-search span{font-size:24px;background:var(--ui-brand);color:var(--ui-brand-ink);border-color:var(--ui-brand);padding:0 24px}.registry-home .bf-search input{height:64px;font-size:23px;border-color:var(--ui-brand);padding:12px 20px}.registry-home .station-cards{max-height:none;overflow:visible}.station-thumb img{width:100%;height:100%;object-fit:contain;padding:5px}.station-thumb strong{font-size:10px;line-height:1.3;overflow-wrap:anywhere;padding:5px;color:var(--ui-brand-ink)}
.station-record{max-width:1280px;margin:auto;padding:24px}.station-record header{height:auto;gap:20px;padding:0 0 24px;background:transparent;align-items:center}.station-record h1{font-size:25px;max-width:none;line-height:1.35}.station-record header>div>span{color:var(--ui-muted)}.station-record-actions{display:flex;flex-wrap:wrap;gap:8px}.station-file{display:grid;grid-template-columns:1fr 1fr;gap:24px 36px;padding:24px 0}.station-file section{margin:0;padding-bottom:20px;border-color:var(--ui-border)}.station-file h3{font-size:15px;margin:0 0 18px}.station-file dt{color:var(--ui-muted);font-size:12px}.station-file dd{font-size:14px;line-height:1.6}.station-record-plans{grid-column:1/-1}.station-record-plans>button{display:inline-grid;gap:8px;text-align:left;margin:0 8px 8px 0;max-width:100%}.station-record-plans small{color:var(--ui-muted)}
.plan-type-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;border:0;padding:0;margin:15px 0}.plan-type-options legend{font-size:13px;margin-bottom:10px}.plan-type-options label{display:flex!important;align-items:center;gap:8px;padding:12px;border:1px solid var(--ui-border);border-radius:6px;margin:0!important;font-size:13px!important}.plan-type-options input{width:auto!important;margin:0;accent-color:var(--ui-brand)}.plan-type-options .main-plan-type{grid-column:1/-1;min-height:70px;font-size:19px!important;border-color:var(--ui-brand);color:var(--ui-brand)}.main-plan-type span{font-size:32px}.plan-start-methods{display:grid;grid-template-columns:1fr 1fr;gap:6px}.plan-start-methods button{min-height:52px;text-align:left;margin:0!important;white-space:normal}.tool-tabs{display:flex;gap:4px;margin-bottom:8px}.tool-tabs [aria-selected=true]{border-color:var(--ui-brand);color:var(--ui-brand)}.all-plan-tools[hidden],.plan-dock[hidden]{display:none!important}.editor-window[data-window-hidden=true]{display:none!important}.window-controls select{width:78px!important;padding:3px!important;font-size:10px!important;margin:0!important}.window-controls{flex-wrap:wrap;justify-content:flex-end;max-width:65%}.editor-window .panel-head strong{min-width:0;overflow-wrap:anywhere}.editor-window .panel-head{min-height:43px}.editor-window .window-controls button{min-width:22px;padding:2px 4px!important}.panel-visibility label{display:flex!important;align-items:center;gap:10px}.panel-visibility input{width:auto!important}.editor-window.live-legend{max-width:calc(100vw - 16px)}
@media(max-width:700px){.registry-home header h1{font-size:30px}.registry-home .bf-search{margin-bottom:28px}.registry-home .bf-search input{font-size:21px;height:58px}.registry-home .bf-search span{padding:0 16px}.station-record{padding:18px}.station-record header{flex-direction:column;align-items:stretch}.station-record h1{font-size:22px}.station-record-actions button{flex:1;min-width:100px}.station-file{grid-template-columns:1fr}.station-file dl{grid-template-columns:1fr}.plan-start-methods{grid-template-columns:1fr}.anp-brand{width:78px;height:38px}.editor-window[data-window-dock]{max-height:calc(100dvh - 16px)!important}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

#work-dialog[data-fixed-dialog]{position:fixed;inset:0;margin:auto;width:min(600px,94vw);height:fit-content;max-height:90dvh;z-index:200}#work-dialog[data-fixed-dialog] .work-body{max-height:72dvh}#work-dialog[data-fixed-dialog]::backdrop{background:color-mix(in srgb,var(--ui-shell) 65%,transparent)}

.station-cards .station-card{grid-template-columns:70px minmax(0,1fr)}.station-thumb{width:70px;height:70px;aspect-ratio:1;display:flex;align-items:center;justify-content:center;flex:none;background:var(--ui-logo-surface)}.station-thumb img{display:block;width:58px;height:58px;object-fit:contain;object-position:center;padding:0;margin:auto}.station-card-info>*{overflow-wrap:anywhere;white-space:normal}.station-card-info small{line-height:1.45}

/* Original ANP lettering needs a light backing and tightly framed artwork. */
.top-shell .anp-brand{display:block;width:36px;height:48px;object-fit:contain;object-position:center;background:var(--ui-logo-surface);padding:3px;border-radius:2px;flex:0 0 auto;margin-left:auto;align-self:center}
.batch-entry{display:flex;justify-content:center;margin:-12px 0 28px}.batch-entry button{display:flex;align-items:center;gap:10px}.batch-entry svg,.pdf-drop svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;flex:none}
#work-dialog.pdf-batch-dialog{width:min(1080px,96vw)}.pdf-drop{display:flex!important;align-items:center;justify-content:center;flex-direction:column;gap:12px;min-height:150px;border:2px dashed var(--ui-border);border-radius:6px;color:var(--ui-text);background:var(--ui-surface);cursor:pointer}.pdf-drop input{max-width:100%;width:auto!important}.pdf-drop.dragging{border-color:var(--ui-brand)}.batch-actions{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.batch-row{display:grid;grid-template-columns:20px minmax(140px,1fr) minmax(180px,1fr) auto 32px;gap:10px;align-items:center;border-bottom:1px solid var(--ui-border);padding:12px 0}.batch-row>input{width:18px!important}.batch-row strong,.batch-row small{display:block;overflow-wrap:anywhere}.batch-row small{color:var(--ui-muted);margin-top:6px}.batch-row label{margin:0!important}.batch-row select{width:100%;min-width:0}.batch-preview{margin-top:20px;border-top:1px solid var(--ui-border);padding-top:14px}.batch-preview>svg{width:100%;max-height:400px;background:var(--ui-logo-surface)}.batch-reference{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:center;margin:18px 0}.batch-reference img{width:100%;aspect-ratio:16/10;object-fit:contain;background:var(--ui-logo-surface)}.batch-reference a{color:var(--ui-brand)}
@media(max-width:700px){.batch-row{grid-template-columns:20px minmax(0,1fr) auto}.batch-row label{grid-column:2/-1;grid-row:auto}.batch-row button[data-batch-preview]{grid-column:2}.batch-reference{grid-template-columns:1fr}.batch-actions button{flex:1}.batch-entry button{font-size:13px}.pdf-batch-dialog .work-body{overflow-x:hidden}}
