/* Croquis 2D estilo CAD: selector de plano mínimo, dibujo directo sobre la rejilla y cotas visibles. */
.sketch-plane-picker{position:absolute;z-index:72;top:50%;left:50%;transform:translate(-50%,-50%);width:min(520px,calc(100% - 32px));padding:14px;border:1px solid rgba(118,151,181,.46);border-radius:16px;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);box-shadow:0 18px 48px rgba(20,36,58,.18);color:#17263a;pointer-events:auto}
.sketch-picker-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.sketch-picker-title strong{font-size:.95rem}.sketch-picker-title>button,.sketch-dimension-head>button,.sketch-extrude-head>button{width:34px;height:34px;border:1px solid #c6d5e4;border-radius:9px;background:#fff;color:#24374b;font-size:1.15rem;cursor:pointer}
.sketch-picker-planes{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.sketch-picker-planes button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:74px;border:1px solid #c4d4e4;border-radius:11px;background:#fff;color:#17304b;cursor:pointer}.sketch-picker-planes button:hover{border-color:#087cf0;background:#eef7ff}.sketch-picker-planes span{font-size:1.08rem;font-weight:850;color:#086abd}.sketch-picker-planes small{font-size:.72rem;color:#61758a}.sketch-unit-choice{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:12px;font-size:.75rem;font-weight:750;color:#51667b}.sketch-unit-choice select,.sketch-toolbar-unit select{min-height:34px;border:1px solid #c4d4e4;border-radius:8px;background:#fff;padding:5px 28px 5px 8px;color:#17263a;font-weight:750}

.sketch-cad-toolbar{position:absolute;z-index:70;top:56px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:6px;max-width:calc(100% - 28px);padding:7px 8px;border:1px solid rgba(118,151,181,.42);border-radius:12px;background:rgba(255,255,255,.91);backdrop-filter:blur(14px);box-shadow:0 10px 28px rgba(20,36,58,.12);white-space:nowrap;overflow-x:auto;pointer-events:auto;scrollbar-width:thin}
.sketch-current-plane{display:flex;align-items:center;min-height:34px;padding:0 10px;border-right:1px solid #d6e1eb;font-size:.74rem;font-weight:850;color:#086abd}.sketch-tool-group,.sketch-line-inline{display:flex;gap:5px}.sketch-cad-toolbar button{min-height:34px;padding:6px 9px;border:1px solid #c5d5e5;border-radius:8px;background:#fff;color:#1c3046;font-size:.72rem;font-weight:750;cursor:pointer}.sketch-cad-toolbar button[aria-pressed=true]{background:#e8f4ff;border-color:#0b80ee;color:#0664bd}.sketch-cad-toolbar button:disabled{opacity:.42;cursor:not-allowed}.sketch-cad-toolbar .sketch-extrude-button{background:#0b7fed;border-color:#0b7fed;color:#fff}.sketch-cad-toolbar .sketch-finish-button{border-color:#aabed0}.sketch-toolbar-unit{display:flex;align-items:center;gap:5px;padding-left:4px;font-size:.67rem;font-weight:750;color:#61758a}

.sketch-dimension-panel,.sketch-extrude-panel{position:absolute;z-index:71;top:108px;right:14px;width:min(250px,calc(100% - 28px));padding:12px;border:1px solid rgba(118,151,181,.46);border-radius:13px;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);box-shadow:0 12px 32px rgba(20,36,58,.14);color:#17263a;pointer-events:auto}.sketch-dimension-head,.sketch-extrude-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.sketch-dimension-head strong,.sketch-extrude-head strong{font-size:.86rem}.sketch-selected-type{margin:0 0 8px;font-size:.73rem;font-weight:800;color:#50667b}.sketch-dimension-panel label,.sketch-extrude-panel>label{display:block;margin:8px 0 0;font-size:.7rem;font-weight:750;color:#50667b}.sketch-input-unit{display:flex;align-items:center;margin-top:4px;border:1px solid #c5d5e5;border-radius:8px;background:#fff;overflow:hidden}.sketch-input-unit input{min-width:0;flex:1;height:36px;border:0;outline:0;background:transparent;padding:6px 8px;color:#17263a;font-size:.9rem;font-weight:750}.sketch-input-unit span{padding:0 9px;color:#688099;font-size:.7rem;font-weight:800}.sketch-dimension-actions,.sketch-extrude-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:11px}.sketch-dimension-actions button,.sketch-extrude-actions button{min-height:34px;padding:6px 10px;border:1px solid #c5d5e5;border-radius:8px;background:#fff;color:#24374b;font-size:.71rem;font-weight:750;cursor:pointer}.sketch-dimension-actions .sketch-primary,.sketch-extrude-actions .sketch-primary{background:#0b7fed;border-color:#0b7fed;color:#fff}.sketch-poly-info{display:grid;gap:3px;padding:8px;border-radius:9px;background:#f3f8fc}.sketch-poly-info span{font-size:.68rem;color:#61758a}.sketch-poly-info strong{font-size:.85rem}.sketch-poly-info small{font-size:.64rem;line-height:1.35;color:#72869a}.sketch-extrude-panel{right:auto;left:50%;transform:translateX(-50%);width:min(300px,calc(100% - 28px))}.sketch-extrude-panel>p{margin:0 0 8px;font-size:.7rem;line-height:1.4;color:#61758a}.sketch-check{display:flex!important;align-items:center;gap:7px}.sketch-check input{margin:0}

.sketch-plane-overlay{display:none!important;position:absolute;inset:0;width:100%;height:100%;z-index:45;touch-action:none;pointer-events:none!important;cursor:default;overflow:visible}.sketch-plane-overlay.is-active{display:block!important;pointer-events:auto!important;cursor:crosshair}.sketch-mode .stage-views{z-index:50}
.sketch-profile{fill:rgba(25,104,207,.035);stroke:#126de0;stroke-width:2.1;vector-effect:non-scaling-stroke;pointer-events:stroke;cursor:pointer}.sketch-profile.selected{fill:rgba(25,104,207,.075);stroke:#004fbd;stroke-width:3;filter:url(#sketchGlow)}.sketch-preview{fill:rgba(18,109,224,.045);stroke:#126de0;stroke-width:2;stroke-dasharray:7 5;vector-effect:non-scaling-stroke;pointer-events:none}.sketch-preview.polyline{fill:none}.sketch-vertex{fill:#fff;stroke:#126de0;stroke-width:2;vector-effect:non-scaling-stroke;pointer-events:none}.sketch-axis{stroke-width:2;vector-effect:non-scaling-stroke;pointer-events:none}.sketch-axis-u{stroke:#e44848}.sketch-axis-v{stroke:#37a654}.sketch-origin{fill:#fff;stroke:#333;stroke-width:1.5;vector-effect:non-scaling-stroke;pointer-events:none}
.sketch-dim-line,.sketch-dim-extension{stroke:#72a7da;stroke-width:1.15;vector-effect:non-scaling-stroke;pointer-events:none}.sketch-dim-extension{stroke:#9cc1e5}.sketch-dim-line{marker-start:none;marker-end:none}.sketch-dim-text,.sketch-segment-dim{fill:#176dbe;font-size:13px;font-weight:800;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;paint-order:stroke;stroke:rgba(255,255,255,.96);stroke-width:4px;stroke-linejoin:round;pointer-events:none}.sketch-segment-dim{font-size:11px;fill:#2377c4}

.editor-shell.grid-only .sketch-cad-toolbar{z-index:2147483600!important;top:16px!important}.editor-shell.grid-only .sketch-dimension-panel,.editor-shell.grid-only .sketch-extrude-panel,.editor-shell.grid-only .sketch-plane-picker{z-index:2147483601!important}

@media(max-width:820px){.sketch-plane-picker{width:min(430px,calc(100% - 20px));padding:11px}.sketch-picker-planes button{min-height:64px}.sketch-cad-toolbar{top:52px;left:8px;right:8px;transform:none;max-width:none}.sketch-current-plane{padding:0 7px}.sketch-dimension-panel{top:102px;right:8px;width:220px}.sketch-extrude-panel{top:102px}.sketch-cad-toolbar button{font-size:.68rem;padding:6px 8px}}
@media(max-width:560px){.sketch-picker-planes{grid-template-columns:1fr}.sketch-picker-planes button{min-height:48px;flex-direction:row;gap:8px}.sketch-dimension-panel{left:8px;right:8px;top:auto;bottom:12px;width:auto}.sketch-extrude-panel{top:auto;bottom:12px;width:calc(100% - 16px)}.sketch-toolbar-unit span{display:none}.sketch-current-plane{display:none}}

/* CAD03: herramientas iniciales de croquis (recta + curva) y previsualización clara. */
.sketch-cad-toolbar{z-index:78}
.sketch-tool-group button[data-sketch-tool="line"],.sketch-tool-group button[data-sketch-tool="curve"]{font-weight:850}
.sketch-tool-group button[data-sketch-tool="line"][aria-pressed=true],.sketch-tool-group button[data-sketch-tool="curve"][aria-pressed=true]{box-shadow:0 0 0 2px rgba(11,128,238,.12) inset}
.sketch-control-point{fill:#fff4d8;stroke:#ef9f18;stroke-width:2.5;vector-effect:non-scaling-stroke;pointer-events:none}
.sketch-live-dim{fill:#075da9;font-size:12px;font-weight:900;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;paint-order:stroke;stroke:rgba(255,255,255,.98);stroke-width:5px;stroke-linejoin:round;pointer-events:none}
.sketch-mode .sketch-plane-overlay{cursor:crosshair}
@media(max-width:820px){.sketch-cad-toolbar{z-index:78;top:96px}.sketch-tool-group button{min-height:38px}.sketch-current-plane{display:none}}


/* FACEPLANE01: croquis directamente sobre una cara plana del objeto. */
.sketch-face-picker-action{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;min-height:56px;padding:10px 12px;border:1px solid #9fc4e8;border-radius:11px;background:#eef7ff;color:#17304b;cursor:pointer;text-align:left}
.sketch-face-picker-action:hover{border-color:#087cf0;background:#e4f2ff}.sketch-face-picker-action strong{font-size:.83rem;color:#075fae}.sketch-face-picker-action small{font-size:.68rem;color:#61758a;font-weight:650}
.sketch-face-pick-hint{position:absolute;z-index:82;left:50%;top:16px;transform:translateX(-50%);display:flex;align-items:center;gap:10px;max-width:calc(100% - 28px);padding:8px 10px;border:1px solid rgba(82,137,187,.55);border-radius:12px;background:rgba(255,255,255,.95);backdrop-filter:blur(12px);box-shadow:0 10px 26px rgba(20,36,58,.14);pointer-events:auto;color:#17304b}
.sketch-face-pick-hint[hidden]{display:none!important}.sketch-face-pick-hint strong{font-size:.76rem;white-space:nowrap}.sketch-face-pick-hint span{font-size:.68rem;color:#61758a}.sketch-face-pick-hint button{min-height:32px;padding:5px 9px;border:1px solid #c5d5e5;border-radius:8px;background:#fff;color:#24374b;font-weight:750;cursor:pointer}
.sketch-face-pick-canvas{cursor:crosshair!important}.editor-shell.grid-only .sketch-face-pick-hint{z-index:2147483602!important;top:70px}
@media(max-width:680px){.sketch-face-picker-action{align-items:flex-start;flex-direction:column;gap:2px}.sketch-face-pick-hint{top:8px;left:8px;right:8px;transform:none;flex-wrap:wrap}.sketch-face-pick-hint span{flex:1 1 100%}}

/* EDITSKETCH01: edición de croquis cerrado antes de extruir. */
.sketch-segment-hit{fill:none;stroke:rgba(11,128,238,.001);stroke-width:16;vector-effect:non-scaling-stroke;cursor:pointer;pointer-events:stroke}
.sketch-segment-hit.is-selected{stroke:rgba(11,128,238,.28)}
.sketch-edit-vertex{fill:#fff;stroke:#0b80ee;stroke-width:2.4;vector-effect:non-scaling-stroke;cursor:move;pointer-events:all}
.sketch-control-handle{fill:#fff4d8;stroke:#ef9f18;stroke-width:2.6;vector-effect:non-scaling-stroke;cursor:grab;pointer-events:all}
.sketch-control-handle:hover,.sketch-edit-vertex:hover{filter:url(#sketchGlow)}
.sketch-segment-card{margin-top:8px}
.sketch-segment-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:10px}.sketch-segment-actions button{min-height:34px;padding:6px 10px;border:1px solid #c5d5e5;border-radius:8px;background:#fff;color:#24374b;font-size:.71rem;font-weight:750;cursor:pointer}

/* CADTOOLS01: herramientas CAD prácticas para croquis. */
.sketch-cad-toolbar{overflow:visible}
.sketch-dimension-panel,.sketch-extrude-panel,.sketch-revolve-panel,.sketch-plane-picker{box-sizing:border-box;overflow:hidden}.sketch-dimension-panel *,.sketch-extrude-panel *,.sketch-revolve-panel *,.sketch-plane-picker *{box-sizing:border-box}.sketch-dimension-panel input,.sketch-extrude-panel input,.sketch-revolve-panel input,.sketch-dimension-panel select,.sketch-extrude-panel select,.sketch-revolve-panel select{max-width:100%}.sketch-sheet-head-actions{display:flex;align-items:center;gap:6px;margin-left:auto}.sketch-sheet-head-actions button{flex:0 0 auto}
/* Web shows the complete contour panel; compact-sheet controls belong to Android. */
.editor-shell:not(.native-app-editor) .sketch-dimension-head>.sketch-sheet-head-actions{display:none!important}
.editor-shell.sketch-mode:not(.grid-only) .editor-side{display:none!important}
.sketch-toolbar-grid-area{display:flex;align-items:center;gap:3px}.sketch-toolbar-grid-area input{width:48px;min-height:30px;border:1px solid #c4d4e4;border-radius:7px;background:#fff;padding:4px 5px;color:#17263a;font-size:.72rem;font-weight:750}.sketch-toolbar-grid-area b{font-size:.68rem;color:#51667b}
.sketch-tool-primary{position:relative}
.sketch-more-tools{position:absolute;z-index:4;top:52px;left:120px;display:grid;grid-template-columns:repeat(2,minmax(150px,1fr));gap:6px;width:min(390px,calc(100vw - 32px));padding:8px;border:1px solid rgba(118,151,181,.45);border-radius:12px;background:rgba(255,255,255,.97);backdrop-filter:blur(14px);box-shadow:0 14px 34px rgba(20,36,58,.18)}
.sketch-more-tools[hidden]{display:none!important}.sketch-more-tools button{width:100%;text-align:left}
.sketch-cad-fields{display:grid;gap:7px;margin-top:9px}.sketch-cad-fields label{display:block;font-size:.69rem;font-weight:750;color:#50667b}.sketch-cad-fields>button{min-height:34px;padding:6px 10px;border:1px solid #c5d5e5;border-radius:8px;background:#fff;color:#24374b;font-size:.71rem;font-weight:750;cursor:pointer}.sketch-cad-fields>button:hover{background:#eef7ff;border-color:#78afe0}
.sketch-offset-box{padding-top:8px;border-top:1px solid #dbe5ed}
.sketch-profile.construction{fill:none;stroke:#768ba0;stroke-dasharray:7 5;stroke-width:1.8}.sketch-profile.projected{stroke:#9a60c7;stroke-dasharray:3 3}
.sketch-construction-preview{stroke:#768ba0;stroke-width:2;stroke-dasharray:7 5;vector-effect:non-scaling-stroke;pointer-events:none}
.sketch-constraint{fill:#31a052;font-size:10px;font-weight:900;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;paint-order:stroke;stroke:#fff;stroke-width:3px;pointer-events:none}
.sketch-edit-vertex.is-selected{fill:#dff1ff;stroke-width:3}
.sketch-extrude-panel select{width:100%;min-height:36px;margin-top:4px;border:1px solid #c5d5e5;border-radius:8px;background:#fff;padding:6px 8px;color:#17263a;font-weight:750}
.sketch-dimension-actions{flex-wrap:wrap}
@media(max-width:900px){.sketch-more-tools{left:8px;top:50px}.sketch-tool-primary{flex-wrap:nowrap}.sketch-cad-toolbar{overflow-x:auto;overflow-y:visible}}

/* MOBILEUX02: hojas inferiores compactas en la app Android. */
.native-app-editor .sketch-native-sheet{position:absolute!important;left:8px!important;right:8px!important;top:auto!important;bottom:8px!important;transform:none!important;width:auto!important;max-width:none!important;margin:0!important;border-radius:18px!important;background:rgba(255,255,255,.97)!important;box-shadow:0 -8px 30px rgba(20,36,58,.18)!important;overflow:auto!important;overscroll-behavior:contain!important}
.native-app-editor .sketch-plane-picker{max-height:min(46vh,390px)!important;padding:11px!important}
.native-app-editor .sketch-dimension-panel{max-height:min(42vh,360px)!important;padding:10px!important}
.native-app-editor .sketch-extrude-panel{max-height:min(38vh,320px)!important;padding:10px!important}
.native-app-editor .sketch-native-sheet.is-compact{max-height:154px!important;overflow:hidden!important}
.native-app-editor .sketch-dimension-panel.is-compact [data-sketch-dim-content]>*:not(:first-child){display:none!important}
.native-app-editor .sketch-dimension-panel.is-compact [data-sketch-dim-content] .sketch-poly-info:first-child small{display:none!important}
.native-app-editor .sketch-dimension-panel.is-compact .sketch-dimension-actions{margin-top:7px!important}
.native-app-editor .sketch-extrude-panel.is-compact>p{display:none!important}
.native-app-editor .sketch-extrude-panel.is-compact>label{display:none!important}
.native-app-editor .sketch-extrude-panel.is-compact>.sketch-depth-field{display:block!important}
.native-app-editor .sketch-extrude-panel.is-compact .sketch-extrude-actions{margin-top:7px!important}
.native-app-editor .sketch-dimension-head,.native-app-editor .sketch-extrude-head{position:sticky;top:-10px;z-index:3;margin:-10px -10px 7px;padding:9px 10px 7px;background:rgba(255,255,255,.98);border-bottom:1px solid #e1e9f0}
.native-app-editor .sketch-sheet-head-actions{display:flex;align-items:center;gap:6px;margin-left:auto}
.native-app-editor .sketch-sheet-head-actions>[data-sketch-sheet-toggle],.native-app-editor .sketch-sheet-head-actions>[data-sketch-extrude-sheet-toggle]{width:auto!important;height:32px!important;padding:0 10px!important;font-size:.68rem!important;font-weight:800!important;color:#086abd!important;background:#eef7ff!important;border-color:#aacdeb!important}
.native-app-editor .sketch-poly-info{padding:7px!important}.native-app-editor .sketch-poly-info strong{font-size:.8rem!important}.native-app-editor .sketch-poly-info small{font-size:.62rem!important}
.native-app-editor .sketch-dimension-actions,.native-app-editor .sketch-extrude-actions{position:sticky;bottom:-10px;z-index:3;margin-left:-10px;margin-right:-10px;margin-bottom:-10px;padding:8px 10px;background:rgba(255,255,255,.98);border-top:1px solid #e1e9f0}
.native-app-editor .sketch-dimension-actions button,.native-app-editor .sketch-extrude-actions button{min-height:40px!important;flex:1 1 0;font-size:.75rem!important}
.native-app-editor .sketch-face-pick-hint{top:8px!important;bottom:auto!important;left:8px!important;right:8px!important;transform:none!important;max-width:none!important}
@media(max-height:680px){.native-app-editor .sketch-native-sheet.is-compact{max-height:136px!important}.native-app-editor .sketch-dimension-panel{max-height:36vh!important}.native-app-editor .sketch-extrude-panel{max-height:34vh!important}}


/* MOBILEUX03: hojas aún más compactas para no tapar el editor 3D. */
.native-app-editor .sketch-dimension-panel{max-height:min(30vh,250px)!important}
.native-app-editor .sketch-extrude-panel{max-height:min(24vh,210px)!important}
.native-app-editor .sketch-native-sheet.is-compact{max-height:118px!important}
.native-app-editor .sketch-dimension-panel.is-compact [data-sketch-dim-content]>*:not(:first-child){display:none!important}
.native-app-editor .sketch-dimension-panel.is-compact .sketch-dimension-actions{padding-top:6px!important}
.native-app-editor .sketch-dimension-panel.is-compact .sketch-dimension-head,.native-app-editor .sketch-extrude-panel.is-compact .sketch-extrude-head{margin-bottom:4px!important}
.native-app-editor .sketch-dimension-panel.is-compact .sketch-poly-info{padding:6px!important}
.native-app-editor .sketch-dimension-panel.is-compact .sketch-poly-info strong{font-size:.75rem!important}
.native-app-editor .sketch-dimension-panel.is-compact .sketch-poly-info span,.native-app-editor .sketch-dimension-panel.is-compact .sketch-poly-info small{font-size:.6rem!important}
.native-app-editor .sketch-extrude-panel.is-compact{max-height:112px!important}
.native-app-editor .sketch-extrude-panel.is-compact .sketch-extrude-actions button,.native-app-editor .sketch-dimension-panel.is-compact .sketch-dimension-actions button{min-height:38px!important}
@media(max-height:760px){.native-app-editor .sketch-dimension-panel{max-height:28vh!important}.native-app-editor .sketch-extrude-panel{max-height:22vh!important}.native-app-editor .sketch-native-sheet.is-compact{max-height:108px!important}}

/* SKETCHNAV01: zoom y desplazamiento 2D del croquis. */
.sketch-nav-hint{display:inline-flex;align-items:center;min-height:30px;padding:0 8px;border-left:1px solid #d6e1eb;color:#6b7f92;font-size:.64rem;font-weight:750;white-space:nowrap;user-select:none;pointer-events:none}
.sketch-plane-overlay.is-panning{cursor:grabbing!important}
.sketch-plane-overlay.is-panning *{cursor:grabbing!important;user-select:none!important}
@media(max-width:900px){.sketch-nav-hint{display:none}}


/* SKETCHVIS01: el menú de croquis debe quedar siempre visible fuera de fullscreen. */
@media (min-width:821px){
  .editor-shell.sketch-mode:not(.grid-only) .editor-toolbar,
  .editor-shell.sketch-mode:not(.grid-only) .direct-options,
  .editor-shell.sketch-mode:not(.grid-only) .stage-views{
    display:none!important;
  }
  .editor-shell.sketch-mode:not(.grid-only) .sketch-cad-toolbar{
    top:78px!important;
    left:50%!important;
    right:auto!important;
    transform:translateX(-50%)!important;
    z-index:96!important;
    max-width:calc(100vw - 48px)!important;
  }
  .editor-shell.sketch-mode:not(.grid-only) .sketch-dimension-panel,
  .editor-shell.sketch-mode:not(.grid-only) .sketch-extrude-panel{
    top:132px!important;
    z-index:95!important;
  }
  .editor-shell.sketch-mode:not(.grid-only) .sketch-more-tools{
    z-index:97!important;
  }
}

/* SKETCHLIST01: selector explícito para editar croquis solapados desde el inspector. */
.sketch-profile-list-panel{margin-top:12px}.sketch-profile-list-panel h2{margin:0 0 8px}.sketch-profile-list{display:grid;gap:7px}.sketch-profile-list-empty{margin:0;padding:11px;border:1px dashed #c7d6e5;border-radius:10px;color:#687c91;font-size:.72rem;line-height:1.35}.sketch-profile-list-item{display:grid;grid-template-columns:10px minmax(0,1fr);gap:9px;align-items:center;width:100%;min-height:48px;padding:8px 10px;border:1px solid #cfdeeb;border-radius:11px;background:#f8fbfe;color:#1c2f45;text-align:left;cursor:pointer;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease,transform .16s ease}.sketch-profile-list-item:hover{border-color:#6eb2f2;background:#f0f8ff;box-shadow:0 5px 14px rgba(23,100,169,.11);transform:translateY(-1px)}.sketch-profile-list-item:focus-visible{outline:3px solid rgba(11,128,238,.24);outline-offset:1px}.sketch-profile-list-item.is-selected{border-color:#087ee8;background:#eaf5ff;box-shadow:inset 0 0 0 1px #087ee8,0 5px 15px rgba(11,128,238,.13)}.sketch-profile-list-marker{width:9px;height:9px;border-radius:999px;background:#ff6a17;box-shadow:0 0 0 3px rgba(255,106,23,.13)}.sketch-profile-list-item.is-selected .sketch-profile-list-marker{background:#087ee8;box-shadow:0 0 0 3px rgba(8,126,232,.15)}.sketch-profile-list-copy{display:grid;min-width:0;gap:2px}.sketch-profile-list-copy strong,.sketch-profile-list-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sketch-profile-list-copy strong{font-size:.75rem}.sketch-profile-list-copy small{color:#697f94;font-size:.64rem;font-weight:600}

@media (max-width:820px){
  .editor-shell.sketch-mode .stage-views{display:none!important}
  .editor-shell.sketch-mode .sketch-cad-toolbar{
    z-index:96!important;
  }
}


/* SKETCHHUD02: el selector inferior no debe solaparse con cotas del croquis.
   La rejilla se controla desde la propia barra de croquis. */
.editor-shell.sketch-mode .stage-bottom{display:none!important}
.sketch-toolbar-snap{border-left:1px solid #d6e1eb;padding-left:7px}
@media(max-width:900px){.sketch-toolbar-snap span{display:none}}

/* REVOLVE01: Girar boceto con eje, ángulo y vista previa. */
.sketch-revolve-panel{position:absolute;z-index:99;top:132px;left:50%;transform:translateX(-50%);width:min(330px,calc(100% - 28px));padding:12px;border:1px solid rgba(118,151,181,.46);border-radius:13px;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);box-shadow:0 14px 36px rgba(20,36,58,.16);color:#17263a;pointer-events:auto}
.sketch-revolve-panel[hidden]{display:none!important}
.sketch-revolve-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.sketch-revolve-head strong{font-size:.86rem}.sketch-revolve-head>button{width:34px;height:34px;border:1px solid #c6d5e4;border-radius:9px;background:#fff;color:#24374b;font-size:1.15rem;cursor:pointer}
.sketch-revolve-panel>p{margin:0 0 8px;font-size:.7rem;line-height:1.4;color:#61758a}.sketch-revolve-panel>label{display:block;margin:8px 0 0;font-size:.7rem;font-weight:750;color:#50667b}.sketch-revolve-panel select{width:100%;min-height:36px;margin-top:4px;border:1px solid #c5d5e5;border-radius:8px;background:#fff;padding:6px 8px;color:#17263a;font-weight:750}
.sketch-revolve-presets{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:7px}.sketch-revolve-presets button,.sketch-revolve-actions button{min-height:34px;padding:6px 8px;border:1px solid #c5d5e5;border-radius:8px;background:#fff;color:#24374b;font-size:.7rem;font-weight:750;cursor:pointer}.sketch-revolve-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:11px}.sketch-revolve-actions .sketch-primary{background:#0b7fed;border-color:#0b7fed;color:#fff}.sketch-revolve-help{display:block;margin-top:8px;color:#6d8093;font-size:.64rem;line-height:1.35}
.sketch-revolve-axis{stroke:#f09a20;stroke-width:1.7;stroke-dasharray:8 5;vector-effect:non-scaling-stroke;pointer-events:none}
.editor-shell.grid-only .sketch-revolve-panel{z-index:2147483603!important;top:72px!important}
.editor-shell.sketch-mode:not(.grid-only) .sketch-revolve-panel{top:132px!important;z-index:98!important}
@media(max-width:820px){.sketch-revolve-panel{left:8px;right:8px;transform:none;width:auto;top:146px}.sketch-revolve-presets{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.sketch-revolve-panel{top:auto!important;bottom:10px;max-height:52vh;overflow:auto}}
.native-app-editor .sketch-revolve-panel{position:absolute!important;left:8px!important;right:8px!important;top:auto!important;bottom:8px!important;transform:none!important;width:auto!important;max-height:min(46vh,390px)!important;border-radius:18px!important;overflow:auto!important}
/* Keep the revolve preview clear: desktop web uses a right-hand settings panel. */
@media(min-width:821px){
 .editor-shell:not(.native-app-editor) .sketch-revolve-panel{left:auto;right:14px;transform:none;max-height:calc(100% - 146px);overflow-y:auto;overscroll-behavior:contain}
 .editor-shell.grid-only:not(.native-app-editor) .sketch-revolve-panel{max-height:calc(100% - 86px)}
}


/* REVOLVE02: Girar boceto siempre visible en el grupo principal del croquis. */
.sketch-tool-primary .sketch-revolve-button{border-color:#9fc4e8;background:#f2f8ff;color:#075fae;font-weight:850}
.sketch-tool-primary .sketch-revolve-button:hover:not(:disabled){background:#e5f2ff;border-color:#0b80ee}
.sketch-tool-primary .sketch-revolve-button:disabled{opacity:.42}

.sketch-revolve-cuts{margin:10px 0 0;padding:8px;border:1px solid #d3e0ec;border-radius:10px;background:#f8fbfe}.sketch-revolve-cuts legend{padding:0 5px;font-size:.69rem;font-weight:850;color:#36516a}.sketch-revolve-cut-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.sketch-revolve-cut-grid>label{margin:0!important;font-size:.66rem!important}.sketch-revolve-cut-grid input{width:100%;min-height:34px;margin-top:4px;border:1px solid #c5d5e5;border-radius:8px;background:#fff;padding:6px 8px;color:#17263a;font-weight:750}.sketch-revolve-cuts>small{display:block;margin-top:7px;color:#6d8093;font-size:.61rem;line-height:1.35}
@media(max-width:560px){.sketch-revolve-cut-grid{grid-template-columns:1fr 1fr}.sketch-revolve-panel{max-height:66vh}}

/* INSPECTORSCROLL01: los paneles laterales expandidos deben poder mostrar todo su contenido. */
@media (min-width:821px){
  .editor-side:hover,
  .editor-side:focus-within{
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    scrollbar-gutter:stable;
  }
  .editor-inspector:hover,
  .editor-inspector:focus-within{
    padding-bottom:22px!important;
  }
  .editor-side:hover::-webkit-scrollbar,
  .editor-side:focus-within::-webkit-scrollbar{width:7px}
  .editor-side:hover::-webkit-scrollbar-thumb,
  .editor-side:focus-within::-webkit-scrollbar-thumb{background:#b7c8d9;border-radius:999px}
  .editor-side:hover::-webkit-scrollbar-track,
  .editor-side:focus-within::-webkit-scrollbar-track{background:transparent}
}
/* Mobile forms need enough room for fields and touch scrolling. */
@media(max-width:820px){
 .editor-shell.sketch-mode .sketch-dimension-panel,.editor-shell.sketch-mode .sketch-extrude-panel,.editor-shell.sketch-mode .sketch-revolve-panel{max-height:65%!important;overflow-y:auto!important;overscroll-behavior:contain;touch-action:pan-y;padding:12px!important}
 .editor-shell.sketch-mode .sketch-dimension-head,.editor-shell.sketch-mode .sketch-extrude-head,.editor-shell.sketch-mode .sketch-dimension-actions,.editor-shell.sketch-mode .sketch-extrude-actions{position:static!important;margin:0!important;padding:8px 0!important}
 .editor-shell.sketch-mode .sketch-native-sheet.is-compact{max-height:65%!important;overflow-y:auto!important}
 .editor-shell.sketch-mode .sketch-dimension-panel.is-compact [data-sketch-dim-content]>*:not(:first-child){display:block!important}
 .editor-shell.sketch-mode .sketch-extrude-panel.is-compact>label{display:block!important}
 .editor-shell.sketch-mode .sketch-extrude-panel.is-compact>.sketch-check{display:flex!important}
 .editor-shell.sketch-mode [data-sketch-sheet-toggle],.editor-shell.sketch-mode [data-sketch-extrude-sheet-toggle]{display:none!important}
 .editor-shell.sketch-mode .sketch-native-sheet button,.editor-shell.sketch-mode .sketch-native-sheet select,.editor-shell.sketch-mode .sketch-input-unit input{min-height:44px!important}
 .editor-shell.sketch-mode .sketch-native-sheet input:not([type=checkbox]),.editor-shell.sketch-mode .sketch-native-sheet select{font-size:16px!important}
 .editor-shell.sketch-mode #editor-mobile-modifiers{display:none!important}
}
/* Tube settings: aligned, touch-friendly fields. */
.sketch-tube-card{margin:14px 0;padding:14px;border:1px solid #d6e5f3;border-radius:16px;background:#f5f9ff;color:#20344b}
.sketch-tube-card header strong{font-size:1rem}.sketch-tube-card header p,.sketch-tube-help{margin:5px 0 12px;color:#687e95;font-size:.75rem;line-height:1.5}
.sketch-tube-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:12px}
.sketch-tube-card .sketch-input-unit{margin-top:7px;border-radius:11px;border-color:#c9daeb;min-height:46px}
.sketch-tube-card .sketch-input-unit:focus-within{border-color:#087ff0;box-shadow:0 0 0 3px #087ff020}
.sketch-tube-card .sketch-input-unit input{width:100%;min-width:0;font-size:16px;min-height:46px;padding:10px}
.sketch-tube-card label{font-size:.76rem;font-weight:700}.sketch-tube-card [hidden]{display:none!important}
.sketch-tube-card .sketch-tube-toggle{display:flex!important;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;margin:12px 0;border-top:1px solid #dde8f3;border-bottom:1px solid #dde8f3}
.sketch-tube-toggle small{display:block;color:#687e95;font-weight:400;margin-top:4px}.sketch-tube-toggle input{width:24px;height:24px;accent-color:#087ff0;flex-shrink:0}
.sketch-tube-card .sketch-tube-create{display:block;width:100%;min-height:48px;border:0;border-radius:12px;background:#087ff0;color:white;font-size:.88rem;font-weight:750;padding:12px;cursor:pointer}
.editor-shell.sketch-mode #editor-canvas>.editor-mobile-modifiers{display:none!important}
