/* CueroLab Studio 4 — interfaz modular y autosuficiente para Namecheap Stellar */
:root{--ink:#2c302f;--secondary:#66716e;--muted:#8c9692;--line:#e3e7e3;--brown:#325449;--cream:#f6f8f5;--warm:#e5eee9;--gold:#47816b;--shadow:0 6px 18px #20352b09;--font:Inter,"Segoe UI",Arial,sans-serif}
html,body{background:#f4f6f4;color:var(--ink);font-size:13px}
.ui-icon{display:inline-block;flex:0 0 auto;vertical-align:middle;stroke-width:1.8}
[hidden]{display:none!important}
#app{min-height:100vh;display:flex;flex-direction:column}
.topbar{height:66px;min-height:66px;padding:0 19px;gap:24px;position:relative;background:#fff;z-index:30;border-bottom:1px solid var(--line);box-shadow:none}
.brand{min-width:auto;flex-shrink:0;gap:10px}.brand-mark{width:35px;height:35px;background:#265748;border-radius:10px;color:#fff;font-size:inherit}.brand-mark .ui-icon{width:21px;height:21px}.brand-label strong{font-size:16px;letter-spacing:-.6px;color:#203c34}.brand-label strong em{font-style:normal;font-weight:550;color:#486b60}.brand-label small{letter-spacing:1.4px;font-size:8px;color:#6e9184}.beta{background:#eaf3ee;color:#47806c;font-size:9px;border-radius:999px;padding:5px 7px}
.main-menus{display:flex;gap:3px;align-items:center;height:100%;min-width:0;flex-shrink:0}.menu-group{height:100%;display:flex;align-items:center;position:relative}.menu-trigger{border:0;background:transparent;border-radius:7px;padding:9px 10px;display:flex;align-items:center;gap:7px;color:#596963;font-size:12px;font-weight:650;white-space:nowrap}.menu-trigger:hover,.menu-trigger[aria-expanded="true"]{background:#eaf2ed;color:#295f4a}.caret{font-size:13px;color:#9ca8a2;font-weight:400}
.menu-popover{position:absolute;top:56px;left:0;min-width:240px;padding:6px;border-radius:11px;border:1px solid #dae3dc;background:#fff;box-shadow:0 14px 38px #233d3326;z-index:50;display:flex;flex-direction:column;gap:2px;max-height:72vh;overflow:auto}.menu-group:nth-last-child(-n+2) .menu-popover{left:auto;right:0}.menu-popover button{border:0;border-radius:7px;background:transparent;text-align:left;padding:10px 10px;display:flex;gap:10px;align-items:center;font-size:12px;font-weight:500;color:#3c5148}.menu-popover button .ui-icon{width:17px;height:17px;color:#648275}.menu-popover button:hover{background:#eef6f0;color:#1a553e;transform:none}.menu-popover button span:nth-child(2){flex:1}.menu-popover kbd{font:10px var(--font);padding:3px 4px;border-radius:4px;background:#f3f5f3;color:#7d8f86}.menu-separator{height:1px;background:#edf0ed;margin:5px 8px}
.project-title{margin-left:auto;flex:1;min-width:90px;max-width:270px;border:1px solid #e6ebe7;border-radius:7px;padding:7px 9px;background:#fafcfb;gap:7px}.project-title [data-icon]{color:#77958b}.project-title input{font-size:12px;color:#345346;font-weight:600}.project-title input:focus{border:0}.autosave-dot{width:7px;height:7px;background:#4eaa78}.top-export{display:flex;align-items:center;gap:7px;background:#265b48!important;border-radius:8px;min-width:125px;justify-content:center;box-shadow:none!important;padding:11px 12px}.top-export:hover{background:#1c4737!important}.top-export .ui-icon{width:17px;height:17px}
.command-bar{height:49px;min-height:49px;background:#fbfcfb;border-bottom:1px solid #dde6df;display:flex;align-items:center;gap:11px;padding:0 16px;z-index:20}.command-group{display:flex;align-items:center;gap:2px}.command{border:0;background:transparent;width:33px;height:32px;border-radius:7px;display:grid;place-items:center;color:#688077;padding:5px}.command:hover{background:#e4efea;color:#245c47;transform:none}.command[aria-pressed="false"]{color:#a0aca6}.command .ui-icon{height:18px;width:18px}.command-sep{width:1px;height:21px;background:#dee5df;flex-shrink:0}.toolbar-hint{display:flex;align-items:center;gap:7px;color:#71827a;font-size:11px}.toolbar-status-dot{height:7px;width:7px;background:#69b18b;border-radius:50%}.bar-spacer{flex:1}.toolbar-units{white-space:nowrap;color:#98a49d;font-size:9px;letter-spacing:.5px;font-weight:750}.toolbar-units strong{background:#e8f0eb;color:#356f54;border-radius:5px;padding:4px 7px;margin-left:5px;text-transform:lowercase}.zoom-indicator{min-width:43px;text-align:center;font-size:11px;color:#435c50;font-weight:700}
.workspace-layout{display:grid;grid-template-columns:70px 220px minmax(335px,1fr) 308px;min-height:calc(100vh - 115px);flex:1;align-items:stretch}
.tool-rail{background:#f9fbf9;border-right:1px solid #e2e8e2;display:flex;flex-direction:column;align-items:stretch;padding:12px 7px;gap:3px;min-width:0}.rail-heading{text-align:center;color:#93a29a;font-size:8px;font-weight:800;letter-spacing:1.15px;padding:9px 0 6px}.rail-tool{border:1px solid transparent;background:transparent;border-radius:9px;min-height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#5f766a;font-size:9px;padding:6px 2px;width:100%}.rail-tool .ui-icon{height:21px;width:21px}.rail-tool .rail-label{display:block;text-align:center;font-size:9px;line-height:1.2;white-space:nowrap;letter-spacing:-.2px}.rail-tool:hover:not(:disabled){background:#eaf3ec;border-color:#d4e7db;transform:none}.rail-tool.is-active,.rail-tool[aria-pressed="true"]{background:#dbede1;border:1px solid #bdd7c4;color:#215e46;box-shadow:inset 3px 0 #4a956d}.rail-tool[disabled]{opacity:.35}.rail-divider{height:1px;background:#e0e8e2;margin:7px 5px}.rail-flex{flex:1}
.sidebar{background:#fff;min-height:auto}.left-sidebar{border-right:1px solid var(--line);overflow:auto}.left-heading{display:flex;align-items:center;justify-content:space-between;padding:27px 16px 18px}.left-heading h2{font-size:19px;letter-spacing:-.6px;margin:6px 0 0}.overline,.eyebrow{font-size:9px;color:#6d9382;letter-spacing:1.25px}.count-pill{background:#e9f3ed;color:#416e58}.layers-toolbar{display:flex;align-items:center;justify-content:space-between;padding:13px 14px;border-top:1px solid #eef0ed;border-bottom:1px solid #edf0eb;color:#758880;font-size:11px;font-weight:700}.layers-toolbar>span{display:flex;gap:8px;align-items:center}.layers-toolbar .ui-icon{width:15px;height:15px}.tiny-icon{height:28px;width:29px;border:1px solid #e5ece6;border-radius:6px;background:#fff;display:grid;place-items:center;color:#4e8065}.tiny-icon:hover{background:#edf6ee}.piece-list{padding:11px 10px;gap:5px;min-height:125px;flex:0}.piece-item{border:1px solid transparent;padding:10px 8px;border-radius:8px;gap:9px}.piece-item.active{background:#eaf4eb;border-color:#cfdfd2;color:#255c41}.piece-mini{background:#eef1ee;color:#728b7d}.piece-item.active .piece-mini{background:#d4e6d7;color:#3c7b57}.piece-check{color:#4d9a6e}.piece-copy strong{font-size:11px}.piece-copy small{font-size:10px;color:#879a90}.left-helper{background:#f3f8f4;border-radius:7px;color:#748b7e;margin:6px 12px 18px;padding:10px;font-size:10px;line-height:1.55;display:flex;gap:8px}.info-dot{border:1px solid #9ab6a4;border-radius:50%;height:17px;width:17px;display:grid;place-items:center;flex-shrink:0;font-size:11px}.templates-panel{padding:18px 14px;border-top:1px solid #edf0ed;background:#fcfdfb}.templates-panel .section-heading{margin-bottom:8px}.templates-panel .section-heading>span{display:flex;gap:8px;align-items:center;color:#577b69}.templates-panel .section-heading .ui-icon{width:16px}.templates-panel p{font-size:11px;color:#95a39a;margin:3px 0 15px;line-height:1.5}.templates-panel .field{padding:10px 7px;font-size:11px;max-width:100%}.template-add{margin-top:12px!important;background:#e9f2ec!important;border-color:#d6e6db!important;color:#326449!important;font-size:11px;gap:6px}.template-add .ui-icon{width:15px}.left-foot{padding:15px 13px;color:#82988c;font-size:10px;line-height:1.5;display:flex;align-items:flex-start;gap:8px;margin-top:auto}.left-foot .ui-icon{height:17px;width:17px;flex-shrink:0}
.editor-main{padding:25px 22px 16px;gap:14px;min-height:calc(100vh - 115px)}.editor-head{align-items:center}.editor-heading h1{font-size:22px;color:#2e483b;letter-spacing:-.8px;margin:7px 0}.editor-heading p{color:#82978a;font-size:11px;margin:5px 0}.eyebrow b{color:#afbab3;font-weight:500}.working-badge{background:#e8f4eb;border-color:#d9e7df;color:#4b9064}.working-dot{background:#4ea972}.editor-guide{display:flex;gap:7px;align-items:center;white-space:nowrap;border:1px solid #dae7dc;color:#557f64;background:#fff;border-radius:8px;padding:10px 11px;font-weight:650;font-size:11px}.editor-guide .ui-icon{width:16px}.editor-guide:hover{background:#edf5ed}.canvas-container{min-height:455px;flex:1;background:#fff;border-radius:12px;box-shadow:0 7px 25px #24492e0b;border-color:#e1e9e3}.canvas-tools{height:47px;background:#fff;padding:0 15px;color:#466955;border-bottom-color:#e6eee7;gap:9px}.canvas-tools strong{font-size:12px}.canvas-active-icon{display:grid;place-items:center;height:28px;width:28px;border-radius:7px;background:#e6f2e9;color:#387555}.canvas-active-icon .ui-icon{width:17px;height:17px}.canvas-divider{width:1px;height:18px;background:#dce7df;margin:0 4px}.canvas-tools .mode-hint{margin-left:0;color:#879c90}.canvas-scale{margin-left:auto;white-space:nowrap;font-size:9px;color:#8fa99a;letter-spacing:.7px;font-weight:650}#board{min-height:330px}#board .outline{stroke:#b9674a;fill:#d8a58129}#board .outline.selected{stroke:#a8573c;fill:#c78f6930}.canvas-bottom{height:43px}.legend{gap:14px}.legend span{font-size:10px}.metrics{gap:9px}.metric{padding:11px 12px;border-radius:9px;border-color:#e3e9e3;gap:10px;box-shadow:0 1px 3px #00000004}.metric-icon{height:32px;width:32px;background:#eaf4ed;color:#4e8c69}.metric-icon .ui-icon{height:18px;width:18px}.metric small{font-size:9px;color:#85998c}.metric strong{font-size:15px;color:#365845}.editor-footer{color:#8c9e92}.editor-footer .ui-icon{height:12px;width:12px;color:#7aa68b}
.right-sidebar{overflow:auto;min-width:0}.inspector-heading{display:flex;align-items:center;justify-content:space-between;padding:25px 17px 18px}.inspector-heading h2{margin:5px 0 0;font-size:20px;letter-spacing:-.6px}.inspector-icon{height:31px;width:31px;border:1px solid #e6eee7;border-radius:8px;background:#fafcfb;display:grid;place-items:center;color:#6f9a7f}.inspector-tabs{display:grid;grid-template-columns:repeat(4,1fr);padding:0 10px 9px;gap:4px;border-bottom:1px solid #e7ede7}.inspector-tab{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;border:0;border-radius:7px;background:transparent;color:#82968a;font-size:10px;padding:8px 2px;min-width:0}.inspector-tab .ui-icon{height:17px;width:17px}.inspector-tab:hover{background:#eff5ee;color:#44765c}.inspector-tab.active{background:#dff0e3;color:#285e44;font-weight:700}.inspector{padding:0;display:block}.inspector>div[data-pane-body]{padding:10px 17px 22px}.pane-intro{padding:6px 0 18px;display:flex;flex-direction:column;gap:6px}.pane-intro strong{color:#375743;font-size:12px}.pane-intro span{color:#94a49b;font-size:10px;line-height:1.6}.inspector .field-section-title{margin:20px 0 13px;color:#76927e;border-top-color:#e9eee8}.inspector .field-section-title>span:last-child{color:#97aaa0}.number-label{color:#71857a}.field{border-color:#dfe8df;color:#3d5b4a}.input-mm{border-color:#e0eae1}.input-mm input{color:#365944}.input-mm span{color:#90a899}.inspector-notice{background:#eef7ef;color:#64856e}.stitch-title{margin-top:11px!important}.stitch-symbol{color:#589573!important}.toggle-line{color:#476956}.toggle-line input:checked+.switch{background:#4a9470}.geometry-tools{background:#fbfdfb;border-color:#dcebdc}.geometry-tools strong{color:#35684c}.geometry-buttons button{background:#f4f9f3;color:#436b50;border-color:#cddfd0}.segment-list input,.sides-grid input{accent-color:#2e895d}.inspector-empty{padding:24px 17px;color:#869d8d;line-height:1.65}.remove-piece{display:flex;align-items:center;gap:8px;color:#a14e4a}.remove-piece .ui-icon{width:16px}.geometry-note,.export-note{padding:12px 14px;background:#f2f7f2;color:#64806c;font-size:10px;line-height:1.6;display:flex;gap:9px;align-items:flex-start;border-radius:9px;margin:0 16px 20px}.geometry-note .ui-icon,.export-note .ui-icon{flex-shrink:0;width:15px}.export-intro{padding:17px 17px 0}.export-section{padding:14px 16px;background:transparent;border:0;margin:0}.export-button{border-color:#e0e9df}.export-button strong{color:#4d6855}.file-badge{background:#e8f1eb;color:#3c7950}.right-bottom{margin-top:auto;border-top:1px solid #edf0ed;padding:13px 15px;color:#8da393;font-size:10px;display:flex;align-items:center;gap:7px}.right-bottom .ui-icon{width:15px}
.help-dialog{border:1px solid #d6e5d9;border-radius:16px;padding:23px;width:min(530px,94vw);max-height:90vh;box-shadow:0 22px 70px #183d3152;color:#375845;background:#fff}.help-dialog::backdrop{background:#1e332d91}.dialog-header{display:flex;align-items:center;gap:14px;margin-bottom:18px}.dialog-icon{height:42px;width:42px;border-radius:10px;display:grid;place-items:center;background:#e4f1e6;color:#3a7950}.dialog-icon .ui-icon{width:24px;height:24px}.dialog-header h2{margin:4px 0 0;font-size:21px}.dialog-header small{font-size:9px;color:#88a18e;letter-spacing:1.4px}.dialog-close{margin-left:auto;border:0;background:#f3f6f3;border-radius:8px;width:32px;height:32px;display:grid;place-items:center}.help-dialog p{font-size:12px;line-height:1.8;color:#698675}.help-steps{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:15px 0 19px}.help-steps>div{background:#f5f9f5;border:1px solid #e5efe7;border-radius:8px;display:flex;gap:9px;align-items:flex-start;padding:12px;font-size:11px;line-height:1.6;color:#607765}.help-steps b{color:#479164;font-size:13px}.help-dialog h3{font-size:12px;margin:0 0 10px}.shortcut-list{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:11px;color:#728b79}.shortcut-list span{display:flex;align-items:center;gap:8px}.shortcut-list kbd{padding:5px 7px;background:#edf4ee;border-radius:5px;color:#3c7454;font-weight:700}.dialog-done{display:block;margin:24px 0 0 auto;background:#2c6b4a!important}
@media(max-width:1430px){.workspace-layout{grid-template-columns:65px 188px minmax(320px,1fr) 288px}.topbar{gap:11px;padding:0 12px}.brand-label small{letter-spacing:1px}.main-menus{gap:0}.menu-trigger{padding:8px 7px;font-size:11px}.editor-main{padding:19px 14px}.metric{padding:9px 7px;gap:5px}.metric-icon{width:26px;height:26px}.metric small{font-size:8px}.brand .beta{display:none}}
@media(max-width:1180px){.workspace-layout{grid-template-columns:62px 178px minmax(320px,1fr) 268px}.brand-label small{display:none}.brand-label strong{font-size:14px}.topbar{gap:8px}.project-title{max-width:180px}.menu-trigger{padding:8px 5px}.top-export{min-width:auto;padding:10px}}
@media(max-width:990px){.workspace-layout{grid-template-columns:61px 190px minmax(300px,1fr)}.right-sidebar{grid-column:2/-1;min-height:auto;border-left:0;border-top:1px solid var(--line);display:flex;flex-direction:column}.inspector-tabs{display:flex}.inspector-tab{flex:1}.right-sidebar .inspector{display:block}.inspector>div[data-pane-body]{padding:13px 20px 18px}.main-menus{overflow:visible}.topbar{flex-wrap:wrap;height:auto;min-height:67px;padding:8px 10px}.brand{margin-right:auto}.project-title{max-width:170px}.main-menus{order:3;flex-basis:100%;height:31px}.menu-group{height:31px}.menu-popover{top:33px}.command-bar{padding:0 10px}.editor-main{min-height:630px}}
@media(max-width:680px){.topbar{gap:8px}.main-menus{display:flex;width:100%;overflow-x:auto;scrollbar-width:none;justify-content:space-between}.menu-trigger{font-size:11px;padding:7px 5px}.project-title{order:2;flex-basis:50%;max-width:none}.top-export{order:2;font-size:0;min-width:37px}.top-export .ui-icon{width:20px;height:20px}.command-bar{gap:4px;padding:0 6px}.command-sep{margin:0 2px}.toolbar-hint,.toolbar-units{display:none}.workspace-layout{display:flex;flex-direction:column}.tool-rail{order:1;display:flex;flex-direction:row;overflow-x:auto;gap:2px;padding:6px 6px;min-height:72px;border-right:0;border-bottom:1px solid var(--line)}.rail-heading,.rail-divider,.rail-flex{display:none}.rail-tool{min-width:59px;width:59px;height:58px;min-height:58px;flex-shrink:0}.rail-tool .ui-icon{width:19px;height:19px}.rail-label{font-size:9px}.editor-main{order:2;min-height:540px;padding:15px 10px}.left-sidebar{order:3;min-height:0;border-right:0;border-top:1px solid var(--line)}.left-heading{padding:16px 15px 13px}.piece-list{display:flex!important;min-height:unset;flex-direction:column}.templates-panel{padding:15px}.right-sidebar{order:4;border-top:1px solid var(--line)}.right-sidebar .inspector{display:block}.editor-heading h1{font-size:19px}.editor-heading p{font-size:10px}.editor-guide{font-size:0;padding:9px}.editor-guide .ui-icon{width:18px;height:18px}.canvas-container{min-height:375px}.canvas-tools{padding:0 8px;gap:6px}.canvas-scale{display:none}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.legend{gap:7px}.legend span{font-size:9px}.canvas-coordinates{display:none}.help-steps{grid-template-columns:1fr}}
/* Etiquetas de herramientas legibles también en pantallas estrechas. */
.rail-tool .rail-label{white-space:normal;overflow-wrap:break-word;max-width:60px;line-height:1.15}
.rail-tool{min-height:59px}
@media(max-width:680px){
  .rail-tool{min-height:62px;height:62px}
  .menu-popover{position:fixed!important;left:9px!important;right:9px!important;top:92px!important;min-width:unset!important;max-height:min(60vh,450px);z-index:100}
}
