:root{--ink:#20303c;--muted:#7d8b95;--line:#e4e9eb;--pale:#f5f7f8;--green:#206452;--green2:#277b61;--soft-green:#e7f1eb;--shadow:0 2px 12px #1c34420a;--header:#fff;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink)}*{box-sizing:border-box}html,body{height:100%;margin:0;overflow:hidden}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.37;cursor:default}#app{height:100dvh;min-height:540px;display:flex;flex-direction:column;background:#f4f7f8}svg{display:block}button>svg,.icon-btn svg{width:17px;height:17px;flex:none}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #47a68c;outline-offset:2px}.app-header{height:66px;background:#fff;display:flex;align-items:center;padding:0 20px;gap:18px;border-bottom:1px solid #e6ebec;flex-shrink:0;z-index:11}.brand{display:flex;align-items:center;gap:10px;white-space:nowrap}.brand-mark{width:34px;height:34px;background:#203e46;border-radius:10px;color:#c8edda;display:grid;place-items:center}.brand-mark svg{width:24px}.brand-word{font-size:23px;font-weight:800;letter-spacing:-1.2px;color:#1b3640}.brand-dot{color:#2c9471}.brand-tag{font-size:8px;letter-spacing:1.55px;font-weight:800;border:1px solid #d7e2e0;padding:5px 6px;border-radius:4px;color:#78908a;margin-left:1px}.header-divider{width:1px;background:#e6ebed;height:26px;flex-shrink:0}.header-divider.inner{margin:0 3px}.project-details{display:flex;flex-direction:column;gap:3px;min-width:180px;flex:1}.project-details input{font-size:13px;color:#213641;font-weight:730;width:min(330px,100%);border:1px solid transparent;background:transparent;padding:4px 6px;margin-left:-6px;border-radius:5px}.project-details input:hover,.project-details input:focus{border-color:#d5e3df;background:#f9fbfa;outline:none}.save-hint{display:flex;gap:6px;align-items:center;color:#84948e;font-size:10.5px}.save-dot{width:6px;height:6px;background:#41ab86;border-radius:50%}.header-actions{display:flex;align-items:center;gap:7px}.btn{height:35px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 13px;border-radius:8px;border:1px solid transparent;font-size:12px;font-weight:700;white-space:nowrap}.btn-ghost{background:none;color:#60737b}.btn-ghost:hover{background:#f2f6f4}.btn-ghost.compact{width:33px;padding:0}.btn-light{background:#fff;color:#435862;border-color:#dfe8e6}.btn-light:hover{background:#f5f9f7}.btn-primary{background:#21674e;color:#fff;box-shadow:0 2px 3px #215c491a}.btn-primary:hover{background:#1a5943}.btn-danger{background:#bb504b;color:white}.caret{font-size:14px;margin-left:3px}.toolbar{height:57px;background:#fff;border-bottom:1px solid #e1e8e9;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:0 20px;flex-shrink:0;z-index:8}.tool-cluster,.toolbar-controls{display:flex;align-items:center;gap:3px}.toolbar-label{font-size:9px;font-weight:800;color:#9ba9af;letter-spacing:1.3px;margin-right:15px}.tool{width:57px;height:44px;border:1px solid transparent;border-radius:7px;background:transparent;color:#61737c;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.tool svg{height:17px;width:17px}.tool span{font-size:9px;font-weight:600}.tool:hover{background:#f3f7f6}.tool.active{background:#e8f2ed;color:#206c52;border-color:#cfe4d9}.tool-sep{height:26px;width:1px;background:#e3e8e9;margin:0 8px}.toggle-btn{background:transparent;border:1px solid #e4e9e9;border-radius:7px;padding:0 10px;height:33px;display:flex;align-items:center;gap:6px;color:#839097;font-size:11px;font-weight:700}.toggle-btn small{font-size:9px;font-weight:600;color:inherit;opacity:.7}.toggle-btn.on{background:#eef5f1;color:#31735c;border-color:#dcebe2}.toggle-btn:hover{border-color:#bcd6c9}.toggle-btn svg{width:15px;height:15px}.zoom-icon{width:28px;height:30px;background:transparent;border:0;color:#596b73;display:grid;place-items:center;border-radius:6px}.zoom-icon:hover{background:#eef3f1}.zoom-icon svg{width:15px}.zoom-value{min-width:56px;border:1px solid #e1e8e8;border-radius:6px;background:#fff;padding:8px 6px;color:#344c56;font-size:11px;font-weight:750}.workspace{display:grid;grid-template-columns:245px minmax(300px,1fr) 296px;min-height:0;flex:1}.sidebar{background:white;display:flex;flex-direction:column;min-height:0}.library{border-right:1px solid #e5eaeb}.properties{border-left:1px solid #e5eaeb}.side-title{height:88px;display:flex;align-items:center;justify-content:space-between;padding:16px 18px;flex-shrink:0;border-bottom:1px solid #edf0f0}.eyebrow{color:#829a93;font-weight:850;letter-spacing:1.6px;font-size:9px}.side-title h2{font-size:17px;letter-spacing:-.45px;margin:6px 0 0;font-weight:800}.icon-btn{border:0;background:transparent;color:#9caaab;padding:7px;border-radius:6px}.icon-btn:hover{background:#f3f6f4}.library-scroll,.properties-scroll{overflow-y:auto;min-height:0;padding:0 16px 20px;scrollbar-color:#dce6e4 transparent;scrollbar-width:thin}.library-scroll{flex:1}.library-help{font-size:11px;line-height:1.65;color:#8a999f;padding:19px 0 3px}.section-label{font-size:10px;font-weight:850;color:#556d73;letter-spacing:1.05px;margin:23px 0 12px;display:flex;justify-content:space-between}.section-count{font-size:10px;color:#a6b5b6;letter-spacing:0}.library-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.library-card{background:#fff;border:1px solid #e0e9e7;min-width:0;text-align:left;border-radius:11px;padding:7px 9px 11px;transition:border-color .15s,transform .15s,box-shadow .15s}.library-card:hover{border-color:#79ae98;box-shadow:0 4px 12px #1b453417;transform:translateY(-2px)}.library-card .preview{background:#f2f6f4;height:80px;border-radius:7px;display:flex;align-items:center;justify-content:center;margin-bottom:10px}.library-card .preview svg{height:79px;width:100%}.library-card strong{display:block;font-size:11.5px;letter-spacing:-.1px}.library-card small{display:block;margin-top:5px;color:#9aa7aa;font-size:9.5px}.library-row{height:58px;width:100%;border:1px solid #e4eae8;border-radius:9px;background:#fff;display:flex;align-items:center;text-align:left;gap:11px;padding:0 10px;margin-bottom:8px;color:#69837c}.library-row:hover{background:#f5faf7;border-color:#a4c9b7}.library-row>svg{width:22px;height:22px;flex:none}.library-row>span:nth-of-type(1){flex:1}.library-row strong{display:block;font-size:11.3px;color:#344c52}.library-row small{display:block;color:#98a4aa;font-size:10px;margin-top:4px}.row-plus{font-size:20px;font-weight:300;color:#94aa9f}.project-stats{border:1px solid #e6edeb;border-radius:9px;overflow:hidden}.project-stats>div{padding:11px 12px;border-bottom:1px solid #edf1ef;display:flex;justify-content:space-between;gap:5px;font-size:10px;color:#91a09e}.project-stats>div:last-child{border-bottom:0}.project-stats strong{color:#496059;font-weight:700;text-align:right}.secondary-action{width:100%;display:flex;align-items:center;gap:9px;background:#f1f7f3;border:1px solid #d8e9de;border-radius:8px;color:#2a6b53;font-weight:750;font-size:11px;padding:12px;margin-top:13px}.secondary-action.muted{margin-top:8px;background:#fff;color:#6e8581;border-color:#e2e9e7}.secondary-action:hover{filter:brightness(.97)}.secondary-action svg{height:16px;width:16px}.library-bottom{padding:14px 16px;border-top:1px solid #e9eeee;font-size:9.5px;color:#879693;flex-shrink:0}.keyboard-chip{border:1px solid #d8e1df;border-radius:4px;padding:2px 5px;font-size:9px;font-weight:750;color:#637e76}.editor-frame{display:flex;flex-direction:column;min-width:0;min-height:0;background:#eef1f1;position:relative}.editor-meta{height:46px;background:#f8faf9;display:flex;justify-content:space-between;align-items:center;padding:0 22px;border-bottom:1px solid #e1e6e4;flex-shrink:0}.breadcrumb{display:flex;align-items:center;gap:10px;color:#778b87;font-size:10px;font-weight:650;white-space:nowrap}.breadcrumb>span:nth-child(2){color:#2f504a;font-weight:850;letter-spacing:.45px}.canvas-indicator{width:7px;height:7px;border-radius:2px;background:#3c8b70}.breadcrumb-sep{color:#c4d0cc}.canvas-tip{font-size:10px;color:#9aada6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-left:12px}.board-area{flex:1;min-height:0;position:relative;overflow:hidden}.ruler-corner{position:absolute;left:0;top:0;width:33px;height:31px;background:#edf1ef;border-bottom:1px solid #d6dfdc;border-right:1px solid #d6dfdc;display:grid;place-items:center;z-index:3}.ruler-corner span{font-size:9px;font-weight:700;color:#6a8c82}.ruler{position:absolute;z-index:2;background:#f8faf9;display:block}.ruler-top{left:33px;top:0;height:31px;width:calc(100% - 33px);border-bottom:1px solid #d5dfdc}.ruler-left{left:0;top:31px;width:33px;height:calc(100% - 31px);border-right:1px solid #d5dfdc}.board{position:absolute;left:33px;top:31px;right:0;bottom:0;overflow:hidden;touch-action:none;background:#fff;cursor:default}.board[data-tool="pan"]{cursor:grab}.board[data-tool="pan"].panning{cursor:grabbing}.board[data-tool="rect"],.board[data-tool="ellipse"],.board[data-tool="line"],.board[data-tool="curve"],.board[data-tool="dimension"],.board[data-tool="text"]{cursor:crosshair}.board-svg,.board-grid{width:100%;height:100%;position:absolute;top:0;left:0}.board-svg{overflow:hidden;user-select:none;touch-action:none}.board-grid{pointer-events:none}.shape-object{cursor:move}.board[data-tool]:not([data-tool="select"]) .shape-object{cursor:crosshair}.selection-guide{stroke:#359e81;fill:none;stroke-width:1.5;stroke-dasharray:5 3;pointer-events:none}.selection-handle{fill:#fff;stroke:#267d60;stroke-width:1.6;cursor:nwse-resize}.selection-handle[data-handle="ne"],.selection-handle[data-handle="sw"]{cursor:nesw-resize}.selection-handle[data-handle="curveControl"]{cursor:move;fill:#bff1d9}.selection-guide-line{stroke:#2c9a7a;stroke-width:1;stroke-dasharray:4 4;pointer-events:none}.board-hud{position:absolute;left:16px;bottom:16px;border:1px solid #e8eeec;background:#fffffff5;border-radius:6px;box-shadow:0 2px 8px #1b453410;padding:8px 11px;display:flex;align-items:center;gap:7px;pointer-events:none}.board-hud span:last-child{font-size:9px;letter-spacing:1px;font-weight:800;color:#6c8d82}.hud-dot{height:6px;width:6px;border-radius:50%;background:#48a17c}.canvas-info{position:absolute;right:17px;bottom:16px;border:1px solid #e8eeec;background:#fffffff3;border-radius:8px;display:flex;gap:8px;padding:8px 11px;align-items:center;pointer-events:none}.info-cross{font-size:19px;color:#8bb9a6}.canvas-info strong,.canvas-info span{display:block}.canvas-info strong{font-size:9px;color:#4c7565;letter-spacing:.7px}.canvas-info span{font-size:9px;margin-top:3px;color:#9eaeaa}.editor-status{height:34px;padding:0 14px;background:#f9fbfa;border-top:1px solid #e0e6e5;display:flex;justify-content:space-between;gap:15px;align-items:center;flex-shrink:0;font-size:10px;color:#7b8e89}.status-left,.status-right{display:flex;align-items:center;gap:10px;white-space:nowrap}.status-online{background:#4dac87;width:6px;height:6px;border-radius:50%}.status-separator{height:13px;width:1px;background:#dbe4e1}.status-right b{color:#3c665a}.prop-top{height:88px}.properties-scroll{flex:1;padding-top:16px;padding-bottom:15px}.prop-empty{padding-top:20px;text-align:center}.prop-empty-ill{width:84px;height:84px;border-radius:22px;background:#f0f5f2;margin:4px auto 23px;display:grid;place-items:center;color:#75a28d}.prop-empty-ill svg{width:34px;height:34px}.prop-empty h3{font-size:13px;margin:0 0 8px}.prop-empty p{font-size:11px;line-height:1.65;color:#91a29d;margin:0 auto;max-width:210px}.prop-shortcut{margin-top:25px;padding:13px;background:#f4f8f6;border-radius:10px;text-align:left}.prop-shortcut strong{display:block;font-size:10px;color:#5b7a6b;margin-bottom:8px}.prop-shortcut div{font-size:10px;color:#859e92;line-height:2.1}.prop-shortcut kbd{display:inline-block;padding:1px 5px;border-radius:4px;background:#fff;border:1px solid #dce7e0;font-size:9px;color:#3d6757;margin-right:7px}.prop-object-title{display:flex;align-items:center;gap:11px;padding-bottom:17px;border-bottom:1px solid #e7eded;margin-bottom:16px}.prop-object-icon{width:40px;height:40px;border-radius:10px;background:#e9f2ec;color:#2d805f;display:grid;place-items:center}.prop-object-icon svg{width:21px;height:21px}.prop-object-title h3{font-size:14px;margin:0 0 4px}.prop-object-title p{font-size:10px;color:#95a49f;margin:0}.prop-group{padding:0 0 17px;border-bottom:1px solid #e9eeee;margin-bottom:17px}.prop-group h4{font-size:10px;font-weight:850;letter-spacing:1.05px;color:#58736c;margin:0 0 12px;text-transform:uppercase}.prop-field{margin:0 0 12px}.prop-field:last-child{margin-bottom:0}.field-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px;color:#7c9189;font-weight:650;font-size:10px}.field-label .field-value{font-size:10px;color:#427660;font-weight:750}.input-wrap{display:flex;align-items:center;height:36px;border:1px solid #dfe9e5;border-radius:7px;overflow:hidden;background:#fff}.input-wrap:focus-within{border-color:#60a88c;box-shadow:0 0 0 2px #def4e7}.input-wrap input{height:100%;width:100%;border:0;outline:0;padding:0 10px;font-size:12px;color:#28473e;font-weight:700;background:none;min-width:0}.input-wrap input[type=color]{padding:3px;height:33px}.input-wrap span{border-left:1px solid #ecf1ee;background:#f6f9f7;padding:0 9px;height:100%;display:flex;align-items:center;color:#8aa29a;font-size:10px;white-space:nowrap}.input-wrap textarea{border:0;resize:vertical;width:100%;min-height:50px;padding:9px;color:#28473e}.fields-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.fields-two .prop-field{min-width:0}.prop-note{font-size:10px;color:#9aaba4;line-height:1.6;margin-top:7px}.range-line{display:flex;align-items:center;gap:12px}.range-line input[type=range]{flex:1;min-width:0;accent-color:#2b8460;height:4px}.range-line .input-wrap{width:86px;flex:none}.segment-control{display:flex;background:#f2f6f3;padding:4px;border-radius:8px;gap:4px}.segment-control button{flex:1;border:0;background:transparent;color:#83958e;border-radius:6px;padding:9px 4px;font-size:11px;font-weight:700}.segment-control button.active{background:#fff;color:#287656;box-shadow:0 1px 4px #214e301a}.segment-control button:hover:not(.active){color:#335f4b}.count-control{display:flex;gap:7px;align-items:center}.count-control .input-wrap{flex:1}.count-control>button{width:36px;height:36px;border:1px solid #dfe9e5;border-radius:7px;background:#f9fbfa;font-size:17px;color:#4e7364}.count-control>button:hover{background:#e8f2eb}.seat-legend{display:flex;align-items:center;gap:8px;background:#f2f8f4;padding:11px;border-radius:8px;font-size:10px;color:#668e78}.seat-legend svg{width:20px;height:20px}.seat-legend strong{color:#2e7556}.object-actions{display:flex;gap:8px}.object-actions button{flex:1;height:36px;display:flex;gap:6px;align-items:center;justify-content:center;border:1px solid #e3eae7;background:#fff;border-radius:7px;color:#577467;font-size:10px;font-weight:750}.object-actions button:hover{background:#f2f8f4}.object-actions .danger{color:#b65b55}.object-actions .danger:hover{background:#fff4f3}.object-actions svg{width:14px;height:14px}.layers-panel{height:226px;flex-shrink:0;border-top:1px solid #e7edeb;display:flex;flex-direction:column;min-height:0}.layers-header{height:46px;display:flex;align-items:center;justify-content:space-between;padding:0 17px;flex-shrink:0}.layers-header h3{font-size:11px;margin:0;color:#536e65}.layers-header span{font-size:9px;color:#9aa9a6}.layers-list{overflow:auto;min-height:0;padding:0 11px 12px}.layer-row{display:flex;align-items:center;gap:10px;border-radius:7px;padding:8px 9px;cursor:pointer;color:#738982;font-size:10px}.layer-row:hover{background:#f4f8f5}.layer-row.active{background:#eaf4ed;color:#247254}.layer-row>svg{width:15px;height:15px;flex:none}.layer-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.layer-size{font-size:9px;color:#9daea7}.layer-row.active .layer-size{color:#6fa48b}.export-menu{position:fixed;top:59px;right:17px;width:214px;background:#fff;border:1px solid #e1ebe7;z-index:20;box-shadow:0 16px 45px #172e2633;border-radius:11px;padding:5px}.export-menu[hidden],.modal-overlay[hidden],.canvas-empty[hidden]{display:none!important}.export-menu button{border:0;background:transparent;width:100%;display:grid;grid-template-columns:19px 1fr;grid-template-rows:auto auto;column-gap:11px;align-items:center;text-align:left;padding:11px 10px;color:#3e6253;font-size:12px;font-weight:800;border-radius:7px}.export-menu button:hover{background:#eff7f1}.export-menu button svg{grid-row:1/3;width:19px;height:19px}.export-menu small{font-size:10px;color:#9cad9e;font-weight:500;margin-top:3px}.toast{position:fixed;bottom:50px;left:50%;transform:translate(-50%,10px);background:#243f37;color:#fff;padding:12px 17px;border-radius:9px;font-size:12px;box-shadow:0 6px 24px #14302533;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:30;max-width:calc(100vw - 30px)}.toast.show{opacity:1;transform:translate(-50%,0)}.modal-overlay{position:fixed;inset:0;background:#11261b66;display:grid;place-items:center;z-index:25}.modal{background:#fff;border-radius:15px;padding:26px;width:min(360px,calc(100vw - 30px));box-shadow:0 25px 70px #0f2d2438}.modal-icon{width:42px;height:42px;border-radius:9px;background:#faebe9;color:#bd5750;display:grid;place-items:center}.modal h2{font-size:18px;margin:18px 0 8px}.modal p{font-size:12px;color:#83968b;line-height:1.7}.modal-buttons{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.canvas-empty{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;z-index:1;pointer-events:none;width:250px}.canvas-empty>*{pointer-events:auto}.empty-icon{width:56px;height:56px;border-radius:15px;background:#ebf4ed;border:1px solid #d7e9dd;color:#377658;display:grid;place-items:center;margin:0 auto 13px}.empty-icon svg{width:29px;height:29px}.canvas-empty h3{font-size:14px}.canvas-empty p{font-size:11px;color:#829c8e;line-height:1.6}.canvas-empty .btn{margin-top:8px}.small-note{font-size:10px;color:#829c8c;line-height:1.6}.select-control{display:block;width:100%;height:37px;border:1px solid #dfe9e5;border-radius:7px;background:#fff;color:#395b4b;padding:0 9px;font-size:11px}.separator-dot{color:#c1cec7}.no-select{user-select:none}@media (max-width:1330px){.workspace{grid-template-columns:211px minmax(200px,1fr) 268px}.toolbar{padding:0 12px}.toolbar-label{margin-right:7px}.tool{width:47px}.app-header{padding:0 13px}.library-scroll{padding:0 12px 16px}.side-title{padding:16px 13px}.toggle-btn{padding:0 7px}.project-details{min-width:120px}}@media (max-width:1050px){.workspace{grid-template-columns:0 minmax(250px,1fr) 250px}.library{display:none}.toolbar-label{display:none}.tool{width:43px}.tool span{display:none}.tool{height:36px}.toolbar-controls .toggle-btn{font-size:0;gap:0}.toolbar-controls .toggle-btn small{display:none}.zoom-fit{display:none}.brand-tag{display:none}}@media (max-width:730px){.workspace{grid-template-columns:1fr}.properties{display:none}.app-header{height:58px}.toolbar{height:47px;overflow-x:auto}.tool-cluster{flex-shrink:0}.toolbar-controls{flex-shrink:0}.header-actions .btn-light{display:none}.project-details{min-width:60px}.project-details input{font-size:11px}.save-hint{display:none}.brand-word{font-size:20px}.brand-mark{width:30px;height:30px}.header-divider{display:none}.canvas-info{display:none}.status-right{display:none}}

/* Optional library collapse with a real restore control. */
.workspace.library-hidden{grid-template-columns:0 minmax(300px,1fr) 296px}.workspace.library-hidden>.library{display:none}.show-library{display:none;background:#eaf3ee;border:1px solid #d5e5da;color:#3c8060;padding:6px 10px;border-radius:7px;align-items:center;gap:5px;font-size:10px;font-weight:800}.show-library svg{width:13px;height:13px}.workspace.library-hidden .show-library{display:flex}@media(max-width:1050px){.workspace.library-hidden{grid-template-columns:0 minmax(250px,1fr) 250px}.workspace.library-hidden .show-library{display:none}}@media(max-width:730px){.workspace.library-hidden{grid-template-columns:1fr}}

/* Version 2: actual paper-size controls, native drag/drop, dimension anchor preview */
.paper-panel{margin:12px 0 18px;padding:13px 11px;border:1px solid #d9e6df;border-radius:10px;background:linear-gradient(145deg,#f4faf6,#fff);box-shadow:0 2px 8px #3d695013}
.paper-head{display:flex;align-items:center;justify-content:space-between;gap:4px;margin-bottom:12px}.paper-head strong{color:#416c59;font-size:10px;letter-spacing:.75px}.paper-head span{font-size:10px;background:#dff1e6;border:1px solid #cfebda;color:#377859;padding:5px 6px;border-radius:6px;font-weight:800}
.paper-field{display:flex;flex-direction:column;gap:5px;margin-bottom:10px}.paper-field label,.paper-two label{font-size:10px;color:#67837a;font-weight:700}.paper-field select,.paper-field input,.paper-two input{width:100%;height:32px;padding:0 9px;border-radius:6px;border:1px solid #dce8e1;background:#fff;color:#365749;font-size:11px;outline:0}.paper-field select:focus,.paper-field input:focus,.paper-two input:focus{border-color:#61ad8b}.paper-two{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}.paper-two[hidden]{display:none}.paper-two>div{display:flex;flex-direction:column;gap:5px}.paper-info{font-size:10px;color:#55806c;line-height:1.5;font-weight:650;background:#eaf5ee;padding:8px;border-radius:6px;margin-bottom:8px}
.paper-fit{width:100%;height:32px;display:flex;align-items:center;justify-content:center;gap:6px;border-radius:7px;border:1px solid #c9dfd2;background:#fff;color:#37745a;font-size:10px;font-weight:800}.paper-fit:hover{background:#e8f4ec}.paper-fit svg{width:14px;height:14px}.library-card[draggable=true],.library-row[draggable=true]{cursor:grab}.library-card[draggable=true]:active,.library-row[draggable=true]:active{cursor:grabbing}.dragging-template{opacity:.45;border-style:dashed!important}.drop-indicator{position:absolute;left:50%;top:22px;transform:translateX(-50%);border:1px dashed #37906c;background:#e3f5e9;color:#256f4d;font-weight:750;font-size:12px;border-radius:8px;padding:11px 14px;pointer-events:none;z-index:6;white-space:nowrap;box-shadow:0 7px 18px #23462d1b}.drop-indicator[hidden]{display:none}.print-btn{border-color:#bfdfcf;color:#226b4c}
@media(max-width:1200px){.print-btn{font-size:0;gap:0;padding:0 9px}.print-btn svg{width:17px;height:17px}}
/* Planform V3: project landing + editing tools */
.editor-hidden{display:none!important}
.home-page{position:fixed;inset:0;overflow:auto;background:#f4f6f3;z-index:40;color:#243e36;font-family:Inter,'Segoe UI',Arial,sans-serif}
.home-wrap{max-width:1320px;margin:auto;padding:0 42px}
.home-nav{height:91px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #dbe5de}
.home-brand{display:flex;gap:10px;align-items:center}.home-brand strong{font-size:27px;font-weight:900;letter-spacing:-1.3px;color:#163a30}.home-brand strong span{color:#49a47b}.home-brand small{font-size:9px;letter-spacing:2px;font-weight:900;color:#7da392;border:1px solid #c6d9cd;padding:5px 7px;border-radius:5px}.home-logo{width:37px;height:37px;border-radius:11px;display:grid;place-items:center;background:#193b30;color:#c1e6cf;font-size:26px}.home-nav-right{display:flex;align-items:center;gap:16px}.home-nav-hint{font-size:11px;font-weight:600;color:#8a9e93}.home-login{background:white;color:#3c5148;border:1px solid #d5e1d9;border-radius:10px;min-height:40px;padding:0 15px;font-size:12px;font-weight:750;display:flex;align-items:center;gap:9px;box-shadow:0 2px 7px #365e4012}.home-login:hover{background:#e8f4eb}.google-letter{font-size:17px;font-weight:850;font-family:Arial,sans-serif;color:#4285f4}.home-user-pill{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;color:#335a47;background:#fff;border:1px solid #d9e9dc;border-radius:10px;padding:7px 10px}.home-user-pill img{width:25px;height:25px;border-radius:50%}.home-logout{border:0;background:transparent;color:#838f88;font-size:11px;text-decoration:underline;cursor:pointer}.home-hero{display:grid;grid-template-columns:1.1fr 0.9fr;align-items:center;gap:62px;padding:74px 0 81px;border-bottom:1px solid #dce8e0}.home-kicker,.home-mini-kicker{font-size:11px;font-weight:900;letter-spacing:2.1px;color:#388866}.home-kicker{display:flex;align-items:center;gap:9px}.pulse-dot{width:8px;height:8px;background:#53ad83;border-radius:50%;box-shadow:0 0 0 5px #d7ebdc}.home-hero h1{font-size:clamp(40px,4.3vw,65px);font-weight:850;letter-spacing:-3.3px;line-height:1.105;margin:24px 0 24px;max-width:740px}.home-hero h1 em{font-style:normal;color:#308a64}.home-hero p{font-size:16px;line-height:1.85;color:#667d71;max-width:620px}.home-actions{display:flex;align-items:center;gap:12px;margin:29px 0}.home-cta,.home-cta-outline{border-radius:12px;min-height:54px;padding:0 20px;font-weight:800;font-size:14px;display:flex;align-items:center;gap:18px}.home-cta{background:#216b50;color:white;border:1px solid #216b50;box-shadow:0 9px 30px #256c3c26}.home-cta:hover{background:#154e3b}.home-cta-outline{background:transparent;color:#315b46;border:1px solid #bdd4c4}.home-cta-outline:hover{background:#e5f0e9}.home-feature-list{display:flex;flex-wrap:wrap;gap:10px 17px;color:#668071;font-size:11px;font-weight:700;margin-top:39px}.home-feature-list span{white-space:nowrap}.home-preview{position:relative;height:405px;border:13px solid white;background-color:#fbfdfc;background-image:linear-gradient(#e5ece7 1px,transparent 1px),linear-gradient(90deg,#e5ece7 1px,transparent 1px);background-size:22px 22px;border-radius:19px;box-shadow:0 30px 80px #2754431f,0 3px 11px #2e453410;transform:rotate(1deg);overflow:hidden}.home-preview::before{content:'';position:absolute;left:12%;right:12%;top:20%;bottom:15%;border:3px solid #6e9782;background:#f3faf48c}.preview-top{position:relative;z-index:1;display:flex;justify-content:space-between;padding:15px 17px;font-size:10px;font-weight:850;color:#648976;letter-spacing:1px;background:#fffffff2}.preview-stage{position:absolute;left:35%;right:35%;top:26%;height:17%;background:#dcece0;border:2px solid #7ea991;display:grid;place-items:center;font-size:10px;letter-spacing:3px;font-weight:800;color:#6e987e;z-index:1}.preview-led{position:absolute;left:38%;right:38%;top:26%;height:6px;background:#263c41;z-index:2}.preview-tables{position:absolute;inset:50% 16% 24%;display:grid;grid-template-columns:repeat(3,1fr);gap:13px 21px}.preview-table{width:47px;height:47px;border-radius:50%;border:3px double #85a995;background:#e8f2ea;display:grid;place-items:center;margin:auto;position:relative}.preview-table:before{content:'◻ ◻ ◻ ◻';position:absolute;letter-spacing:7px;left:-13px;top:-17px;color:#88a99e;font-size:14px;width:82px}.preview-table i{font-style:normal;color:#537960;font-size:10px;font-weight:800}.preview-dimension{position:absolute;bottom:18%;left:14%;right:14%;text-align:center;color:#398568;font-size:11px;border-bottom:1.5px solid #83ad95;line-height:2.7}.home-preview-label{position:absolute;bottom:12px;left:16px;color:#819c88;letter-spacing:1.7px;font-size:10px;font-weight:750}.home-project-section{padding:45px 0 65px}.home-project-head{display:flex;align-items:center;justify-content:space-between}.home-project-head h2{font-size:28px;letter-spacing:-1px;margin:9px 0 5px}.home-project-head p{font-size:13px;color:#7f9787;margin:0}.home-new-small{height:38px;background:#e3f1e7;border:1px solid #c6dfce;border-radius:8px;padding:0 15px;color:#327353;font-weight:750;font-size:12px}.home-project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:24px}.home-project-card{border:1px solid #dbe8de;border-radius:13px;background:#fff;min-height:145px;padding:20px;text-align:left;box-shadow:0 3px 15px #3b54320b;position:relative;display:flex;flex-direction:column;align-items:stretch;gap:10px}.home-project-card:hover{border-color:#93c2a6;box-shadow:0 8px 28px #2e70441b}.project-card-top{display:flex;justify-content:space-between;align-items:center}.project-card-icon{display:grid;place-items:center;background:#e4f0e9;width:34px;height:34px;border-radius:9px;color:#4f9071;font-size:19px}.project-card-name{font-size:14px;font-weight:850;color:#2b4a39;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-card-sub{font-size:11px;color:#96a79e;display:block}.project-card-delete{border:0;background:#fff5f5;color:#ad5b5b;font-size:12px;border-radius:6px;padding:6px 9px}.project-card-delete:hover{background:#fbe0e0}.project-create-card{display:grid;place-items:center;align-content:center;gap:12px;border-style:dashed;background:#eff6f0;color:#3e9066;font-size:13px;font-weight:850}.project-create-card strong{font-size:25px}.home-footer{padding:24px 0 36px;display:flex;justify-content:space-between;border-top:1px solid #d9e5dc;font-size:12px;font-weight:800;color:#517361}.home-footer small{font-weight:400;color:#9eb1a6}.home-footer>span:last-child{font-weight:500}.project-create-dialog{max-width:430px;width:95%;padding:30px}.create-modal-symbol{width:44px;height:44px;background:#e8f3e8;border-radius:13px;display:grid;place-items:center;font-size:24px;color:#3b976e}.modal-field-label{display:block;color:#688475;font-size:11px;font-weight:800;margin-top:20px;margin-bottom:7px}.modal-name-input{height:44px;border:1px solid #cedfd4;border-radius:9px;padding:0 13px;width:100%;font-size:14px}.create-modal-options{display:flex;flex-direction:column;gap:13px;margin-top:20px;font-size:12px;color:#587261}.create-modal-options label{display:flex;gap:9px;align-items:center}.floating-home{position:fixed;bottom:16px;left:16px;background:#174f39;color:#fff;border:1px solid #417b5d;border-radius:10px;padding:10px 13px;z-index:20;font-size:11px;font-weight:800;box-shadow:0 6px 20px #1c583640}.context-menu{position:fixed;z-index:35;background:#fff;min-width:220px;padding:6px;border:1px solid #ceddd4;border-radius:11px;box-shadow:0 18px 50px #1d3f3136}.context-menu[hidden]{display:none}.context-menu button{width:100%;text-align:left;display:block;border:0;border-radius:6px;padding:10px 12px;background:transparent;color:#395c49;font-size:12px;font-weight:700}.context-menu button:hover{background:#edf5ef}.context-menu button[disabled]{opacity:.35}.context-menu button.danger{color:#b85c56}.selection-rotation{cursor:grab;fill:#f2a955;stroke:#9a6727;stroke-width:1.8}.selection-handle[data-handle]{cursor:nwse-resize}.selection-handle[data-handle=n],.selection-handle[data-handle=s]{cursor:ns-resize}.selection-handle[data-handle=e],.selection-handle[data-handle=w]{cursor:ew-resize}.selection-handle[data-handle=rotate]{cursor:grab}.home-page[hidden]{display:none}
@media(max-width:1030px){.home-wrap{padding:0 26px}.home-hero{gap:24px}.home-preview{height:335px}.home-hero h1{letter-spacing:-1.8px}.home-feature-list{margin-top:26px}.home-nav-hint{display:none}.toolbar{overflow-x:auto;justify-content:flex-start}.tool-cluster{flex-shrink:0}.toolbar-controls{flex-shrink:0}.tool{width:45px}.tool span{font-size:8px}}
@media(max-width:700px){.home-wrap{padding:0 20px}.home-hero{grid-template-columns:1fr;padding:45px 0 44px}.home-preview{height:270px}.home-hero h1{font-size:41px}.home-hero p{font-size:14px}.home-project-grid{grid-template-columns:1fr}.home-nav{height:76px}.home-brand small,.home-login{font-size:0}.home-login .google-letter{font-size:19px}.home-footer{font-size:10px}.home-cta,.home-cta-outline{font-size:12px;padding:0 12px}}
#projectCreateModal{z-index:80}#googleLoginBtn[hidden]{display:none!important}

/* V3.1: preview uses exact roundtable + chair model, identical to main editor. */
.preview-tables{inset:44% 14% 24%;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 7px;z-index:2;align-items:center}
.preview-table{width:100%;max-width:66px;height:auto;aspect-ratio:1;margin:0 auto;border:0;border-radius:0;background:transparent;display:grid;place-items:center}
.preview-table::before{content:none!important;display:none!important}
.preview-table svg{width:100%;height:100%;overflow:visible;display:block}
.preview-table svg text{display:none}
.preview-number{position:absolute;inset:0;display:grid;place-items:center;font-size:9px;font-weight:850;letter-spacing:0;color:#4d8069;pointer-events:none}
@media(max-width:1030px){.preview-table{max-width:57px}.preview-tables{gap:5px 4px}}
@media(max-width:700px){.preview-table{max-width:45px}.preview-tables{inset:43% 14% 22%;gap:5px 4px}.preview-number{font-size:7px}}

/* Planform v3.2 — printed-paper white workspace and refined control groups */
.editor-frame,.board-area,.board{background:#fff}
.editor-meta,.ruler,.ruler-corner{background:#fff}
.tool-subgroup{display:flex;align-items:center;gap:2px;background:#f5f9f7;padding:3px;border:1px solid #e4ede8;border-radius:12px}
.tool-subgroup .tool{width:67px;height:41px;border-radius:9px}.tool-subgroup .tool span{white-space:nowrap;font-size:8.5px}
.rotate-toolbar-btn{white-space:nowrap}
.fullmoon-range{width:100%;accent-color:#298864;cursor:ew-resize;height:20px}
.moon-slider{display:flex;justify-content:space-between;font-size:10px;font-weight:750;color:#628a79;margin:9px 0 6px}
.color-picker-row{display:flex;align-items:center;gap:11px;color:#58766a;font-size:11px;font-weight:650;padding:4px 0 7px}
.color-picker-row input[type=color]{width:47px;height:37px;padding:2px;border:1px solid #d3e1d8;border-radius:11px;background:#fff;cursor:pointer;flex:none}
.rotate-quick{display:flex;flex-wrap:wrap;gap:6px}.rotate-quick button{flex:1;min-width:45px;border:1px solid #d0e2d9;background:#f5faf7;color:#356b51;border-radius:9px;padding:8px 4px;font-size:10px;font-weight:800;cursor:pointer}
.rotate-quick button:hover{background:#e0f0e5;border-color:#9ac6aa}
.prop-group,.prop-object-title,.input-wrap,.prop-field input,.prop-field select,.count-control button,.secondary-action,.toggle-btn,.tool,.paper-panel,.paper-fit,.paper-field input,.paper-field select,.paper-two input{border-radius:10px}
.selection-rotation{fill:#f2a955;stroke:#9a6727}
@media(max-width:1200px){.rotate-toolbar-btn{font-size:0;padding:0 9px}.rotate-toolbar-btn svg{width:15px}.tool-subgroup .tool{width:50px}.tool-subgroup .tool span{font-size:7px}}

/* V3.3 · Pen, guide and stage modules */
.board[data-tool="pen"]{cursor:crosshair}
.prop-select{width:100%;padding:10px 12px;border:1px solid #dbe6df;border-radius:8px;color:#355c49;background:#fff;font-size:12px}
.selection-handle[data-handle^="vertex:"]{cursor:move;fill:#f2fffa}
.tool[data-tool="guide"]{width:75px}
.tool[data-tool="pen"]{width:54px}
@media(min-width:1031px) and (max-width:1500px){.toolbar{overflow-x:auto;justify-content:flex-start}.tool-cluster,.toolbar-controls{flex-shrink:0}}

/* Planform Studio 3.4: Print controls beside Top View, not in Object Library */
.editor-meta{gap:12px;padding:0 12px;overflow:visible;position:relative;z-index:7}
.editor-meta .breadcrumb{flex-shrink:0;gap:7px}
.meta-print-controls{display:flex;align-items:center;gap:6px;margin-left:3px;flex:0 0 auto}
.meta-popover-wrapper{position:relative}
.meta-print-btn{background:#fff;border:1px solid #d7e5dd;color:#477261;border-radius:8px;padding:7px 10px;display:flex;gap:8px;align-items:center;font-size:10px;font-weight:750;white-space:nowrap}
.meta-print-btn strong{background:#e6f3e9;border-radius:6px;padding:3px 6px;color:#28684e;font-size:10px}
.meta-print-btn:hover,.meta-print-btn[aria-expanded=true]{border-color:#6eb08a;background:#f5fbf7}
.meta-popover{position:absolute;top:calc(100% + 7px);left:0;width:290px;padding:16px;border:1px solid #d9e6de;border-radius:13px;box-shadow:0 18px 40px #27453821;background:white;z-index:100;color:#355c49;max-height:min(65vh,520px);overflow-y:auto}
.scale-popover{width:274px}
.meta-popover[hidden]{display:none!important}
.pop-title{font-size:13px;font-weight:850;color:#25543e;margin-bottom:15px}
.meta-popover .paper-field{margin-bottom:13px}.meta-popover .paper-field label,.meta-popover .paper-two label{font-size:11px;font-weight:750;color:#5b786a;display:block;margin-bottom:7px}
.meta-popover .paper-field input,.meta-popover .paper-field select,.meta-popover .paper-two input{width:100%;height:40px;border:1px solid #d8e5dd;border-radius:8px;background:#fff;padding:0 10px;color:#365f4b}
.meta-popover .paper-two{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}
.meta-popover .paper-two[hidden]{display:none}
.meta-popover .paper-info{background:#eff8f1;border-radius:9px;padding:11px;color:#45725a;font-size:11px;line-height:1.5;margin:11px 0}
.meta-popover .paper-fit{display:flex;align-items:center;gap:6px;padding:10px 12px;border:1px solid #cfe2d4;background:#fff;color:#367855;font-size:11px;font-weight:800;width:100%;justify-content:center}
.meta-popover .paper-fit svg{width:14px;height:14px}
.editor-meta .canvas-tip{font-size:9px;flex:1;min-width:0;text-align:right}
.board[data-tool="guide"]{cursor:crosshair}
.text-edit-dialog{width:min(520px,92vw);max-width:520px}
#textEditInput{width:100%;min-height:130px;resize:vertical;border:1px solid #cfe0d5;border-radius:10px;padding:12px;color:#274e3a;margin-top:5px}
#textEditModal{z-index:90}
@media(max-width:1100px){.editor-meta .canvas-tip{display:none}.meta-print-btn{padding:6px}.meta-print-btn span{display:none}.meta-popover{left:auto;right:-40px}.editor-meta{padding:0 8px}}
@media(max-width:700px){.meta-print-controls{gap:2px}.meta-print-btn{gap:3px}.editor-meta .breadcrumb>span:nth-child(2){max-width:110px;overflow:hidden;text-overflow:ellipsis}.meta-popover{right:0}}

/* V3.5 Direct Selection / Eraser */
.direct-node { fill:#ffffff; stroke:#198564; stroke-width:2.2; cursor:crosshair; pointer-events:all; }
.direct-node:hover {fill:#d5fff0;stroke:#cb7943;}
#board[data-tool="direct"] .shape-object {cursor:crosshair;}
#board[data-tool="eraser"] .shape-object, #board[data-tool="eraser"] {cursor:crosshair;}

/* V3.7 checkboxes and projector handle */
.pf-check{display:flex;align-items:center;gap:9px;margin:9px 0 12px;color:#37604c;font-size:11px;font-weight:700}.pf-check input{accent-color:#27875d;width:16px;height:16px;flex-shrink:0}.selection-projector{fill:#ffffff;stroke:#17875c;stroke-width:2.5;cursor:move;pointer-events:all}.selection-projector:hover{fill:#d0f2de}.toolbar-controls{gap:4px}.toolbar-controls #booleanAddBtn,.toolbar-controls #booleanSubtractBtn{white-space:nowrap}

/* V3.8 Pilihan+ and eraser */
.tool[data-tool="direct"]{color:#7357a3}
.tool[data-tool="direct"].active{background:#f0eafa;border-color:#d7c9f1;color:#6740a1}
.board[data-tool="direct"] .shape-object{cursor:default}
.board[data-tool="eraser"]{cursor:crosshair}
.direct-node{cursor:crosshair;fill:#ffffff;stroke:#6740a1;stroke-width:1.8}
.direct-node.node-selected{fill:#8956bc;stroke:#fff;stroke-width:2.2}
.node-count-info{color:#8152ad;font-weight:700}
/* V4 — always-visible Illustrator-style fill, stroke, grayscale swatches, and patterns */
.brand#brandHomeBtn{cursor:pointer;user-select:none;border-radius:8px;padding:3px 5px;margin-left:-5px;transition:background .12s}.brand#brandHomeBtn:hover{background:#f0f1f2}.brand#brandHomeBtn:focus-visible{outline:2px solid #555;outline-offset:3px}
.style-toolbar{height:51px;flex-shrink:0;background:#fff;border-bottom:1px solid #dadada;display:flex;align-items:center;padding:0 18px;gap:20px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scrollbar-width:thin;z-index:7}
.style-colors,.style-color-control,.style-swatches,.pattern-chips,.style-stroke-input{display:flex;align-items:center;gap:7px}.style-color-control{font-size:10px;font-weight:800;color:#5b5b5b;cursor:pointer}.style-color-control input[type=color]{width:38px;height:31px;padding:2px;background:white;border:1px solid #c3c3c3;cursor:pointer;border-radius:4px}
.style-stroke-input{font-size:10px;font-weight:800;color:#595959;padding-left:8px;border-left:1px solid #ddd}.style-stroke-input input{width:55px;text-align:right;font-size:12px;font-weight:700;border:1px solid #cecece;border-radius:5px;padding:6px 5px;color:#1b1b1b}.style-stroke-input span{color:#8b8b8b;font-weight:650}
.style-square-btn{width:23px;height:27px;border:1px solid #ccc;border-radius:3px;background:#fff;color:#e03a3a;font-size:16px;font-weight:800;line-height:1}.style-square-btn.is-active{background:#ffe6e6;border-color:#dc6464}.style-micro{font-size:9px;letter-spacing:.9px;font-weight:850;color:#898989;margin-right:1px}.style-swatches{gap:3px}.gray-swatch{width:20px;height:24px;border:1px solid #9d9d9d;background:var(--swatch);padding:0;border-radius:2px;transition:transform .12s}.gray-swatch:hover{transform:translateY(-2px);outline:1px solid #444;outline-offset:1px}
.pattern-chips{gap:4px}.pattern-chip{background:#fafafa;border:1px solid #ccc;border-radius:4px;height:28px;min-width:31px;padding:0 7px;color:#373737;font-size:11px;font-weight:800}.pattern-chip.active{background:#373737;color:#fff;border-color:#373737}
.collab-avatars{display:flex;align-items:center;justify-content:flex-end;min-width:0}.collab-avatar{width:27px;height:27px;border-radius:50%;color:#fff;font-size:12px;font-weight:800;display:grid;place-items:center;border:2px solid #fff;margin-left:-5px}
.collab-cursors{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:5}.remote-cursor{position:absolute;display:flex;align-items:flex-start;gap:2px;pointer-events:none;transition:left .14s linear,top .14s linear}.remote-cursor span{font-size:10px;padding:5px 7px;border-radius:3px;background:var(--cursor-color);color:#fff;font-weight:700;max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:15px;margin-left:-5px;box-shadow:0 2px 6px #0002}.remote-cursor svg{flex-shrink:0;filter:drop-shadow(0 1px 2px #0004)}
#shareModal{z-index:95}.share-dialog{max-width:510px;width:min(92vw,510px);max-height:min(84vh,720px);overflow-y:auto}.share-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.share-title h2{margin:0}.share-title p{margin:8px 0 0;font-size:12px;color:#777}.share-icon-close{border:0;background:transparent;font-size:28px;color:#888;padding:0 6px}.share-input-row{display:flex;gap:8px;margin:9px 0}.share-input-row input{flex:1;min-width:0;border:1px solid #d0dad8;border-radius:8px;padding:9px 11px;font-size:12px;color:#30423c}.share-input-row button{flex-shrink:0}.share-help{font-size:11px;color:#6f8481;margin:7px 0 18px;line-height:1.45}.share-list-title{font-size:11px;font-weight:850;color:#4c5c58;padding-bottom:8px;margin:16px 0 8px;border-bottom:1px solid #e5e9e7}.share-editor-row{display:flex;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #f0f2f0;font-size:11px}.share-editor-row span{flex:1;word-break:break-all}.share-editor-row strong{font-size:10px;color:#557562}.share-editor-row button{border:0;background:#fff2f2;color:#ad4444;padding:4px 8px;border-radius:6px;font-weight:900}.share-note{font-size:11px;color:#607b71;background:#f3f7f5;border:1px solid #e6eeea;padding:12px;border-radius:8px;line-height:1.6}.share-bottom-actions{display:flex;gap:10px;justify-content:space-between;align-items:center;margin-top:10px}.share-bottom-actions small{font-size:10px;color:#8d9992}.share-status{font-size:11px;color:#236f48;min-height:17px;margin:10px 0 0}
.conflict-banner{position:absolute;z-index:20;top:58px;left:300px;max-width:650px;padding:9px;background:#fff3d7;border:1px solid #e6bb60;box-shadow:0 2px 12px #0002;font-size:11px;color:#76470b;border-radius:7px}.conflict-banner button{border:1px solid #dda54c;background:#fff;border-radius:5px;margin-left:7px;padding:3px 6px;color:#603e16;font-size:10px;font-weight:750}
#app .board{isolation:isolate}
@media(max-width:1350px){.app-header{gap:10px}.style-toolbar{gap:10px}.header-actions{gap:3px}.header-actions .btn{padding:0 8px}}
@media(max-width:900px){.style-toolbar{padding:0 10px}.style-color-control span,.style-micro{display:none}.conflict-banner{left:20px;right:20px;max-width:none}}

/* V4.1 — contextual Illustrator-style palette */
#styleToolbar[hidden],#swatchPopover[hidden],.swatch-panel[hidden]{display:none!important}
#styleToolbar{overflow-x:auto;overflow-y:hidden;gap:14px}
.style-color-trigger{border:0;background:transparent;padding:0;display:flex;gap:7px;align-items:center;cursor:pointer;color:#444;font:inherit}
.style-color-trigger>span{font-size:10px;font-weight:800;color:#555}
.style-color-preview{display:inline-block;width:31px;height:27px;background:#d1d1d1;border:1px solid #aaa;border-radius:4px;box-shadow:inset 0 0 0 2px white}
.style-color-preview.is-none{background:linear-gradient(135deg,#fff 0 47%,#e53935 48% 53%,#fff 54% 100%)}
.swatches-toolbar-btn{padding:7px 11px;background:#fff;border:1px solid #c8cfcc;border-radius:7px;color:#3e4c49;font-size:11px;font-weight:780;white-space:nowrap;cursor:pointer}
.swatches-toolbar-btn:hover{background:#f1f3f2;border-color:#777}
.swatches-button-icon{font-size:16px;vertical-align:-1px;margin-right:4px}
.swatch-popover{position:fixed;width:286px;z-index:99;background:white;box-shadow:0 12px 40px #0002;border:1px solid #c5cfca;border-radius:12px;padding:13px;box-sizing:border-box;color:#293f37;font:12px Arial, sans-serif}
.swatch-popover-top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px}
.swatch-popover-top strong{display:block;font-size:13px}.swatch-popover-top small{display:block;font-size:10px;color:#84908a;margin-top:3px}
#closeSwatchesBtn{font-size:23px;line-height:20px;border:0;background:transparent;color:#748078;cursor:pointer}
.swatch-tabs{display:flex;border-bottom:1px solid #dbe2de;margin-bottom:12px;gap:4px}.swatch-tab{flex:1;background:white;border:0;border-bottom:2px solid transparent;color:#6d7e75;font-size:12px;font-weight:730;padding:8px;cursor:pointer}
.swatch-tab.active{color:#236c54;border-bottom-color:#236c54}
.swatch-section-name{font-size:10px;font-weight:800;color:#75857d;letter-spacing:.6px;margin:13px 0 6px}
.swatch-color-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px}
.color-swatch{height:27px;width:27px;max-width:100%;background:var(--swatch);border:1px solid #a5afa8;border-radius:4px;cursor:pointer;box-shadow:inset 0 0 0 1px #fff7}
.color-swatch:hover,.color-swatch:focus-visible{outline:2px solid #22745a;outline-offset:1px}
.swatch-none-button{width:100%;background:#fafafa;border:1px solid #ddd;border-radius:7px;font-size:11px;padding:8px;margin-top:14px;cursor:pointer;color:#c44242;font-weight:800}
.swatch-custom-label{display:grid;grid-template-columns:1fr 110px;align-items:center;gap:10px;font-size:11px;font-weight:750;margin:13px 0;color:#546860}
.swatch-custom-label input{width:100%;box-sizing:border-box;border:1px solid #c3cec7;border-radius:6px;height:36px;padding:3px 7px;background:#fff;color:#34483f}
.swatch-apply-btn{background:#20684e;color:#fff;border:0;border-radius:6px;padding:10px 12px;font-size:11px;font-weight:800;cursor:pointer;width:100%;margin:4px 0}

#roundedInputWrap[hidden]{display:none !important;}

/* Lu Layout Aja — public brand identity; internal saved project keys remain backward-compatible. */
.brand-word{font-size:19px;letter-spacing:-.8px;}
.home-brand strong{font-size:25px;letter-spacing:-1px;}
@media(max-width:1100px){.brand-word{font-size:17px}.brand-tag{display:none}}
@media(max-width:700px){.home-brand strong{font-size:20px}}
