/* Atelier3D — tema gris propio. Se carga al final y manda sobre el <style> inline. */
:root {
  --ps-bg-darkest: #2b2b2b;   /* outliner, campos, listas */
  --ps-bg-dark: #3c3c3c;      /* barra de menús, toolbox */
  --ps-bg-panel: #444444;     /* cromo: shelf, status line, channel box */
  --ps-bg-hover: #505050;
  --ps-bg-active: #5a5a5a;
  --ps-input: #2b2b2b;
  --ps-border: #2a2a2a;
  --ps-border-light: #565656;
  --ps-border-subtle: #363636;
  --ps-text: #c8c8c8;
  --ps-text-bright: #ffffff;
  --ps-text-dim: #9a9a9a;
  --ps-text-muted: #7a7a7a;
  --ps-blue: #5285a6;         /* selección de listas */
  --ps-blue-hover: #6397b8;
  --ps-accent: #5285a6;
  --ps-accent-hover: #6397b8;
  --at-select: #5285a6;
  --at-mint: #5fe0a8;
}

body, #at-workspace { font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; font-size: 11px; color: #c8c8c8; background: #444; }

/* --- Viewport plano gris --- */
.vp-stage, main.at-viewport-col { background: #4f4f4f; }
.vp-toolbar { background: #444; border-bottom: 1px solid #2a2a2a; }

/* --- Outliner / listas --- */
aside.at-outliner-col { background: #2b2b2b; }
.out-item.sel, .outliner-row.sel { background: #5285a6 !important; color: #fff !important; }
.out-item:hover:not(.sel) { background: #3a3a3a; }

/* --- Selección y botones activos: azul grisáceo, no cian --- */
.tool-btn.active, .shelf-tab.active { color: #fff; }
.tool-btn.active { background: #5a5a5a; box-shadow: inset 0 0 0 1px #9a9a9a; }
.shelf-tab { color: #b8b8b8; }
.shelf-tab.active { font-weight: 700; border-bottom: 2px solid #5fe0a8; }

/* --- Channel Box: etiquetas a la derecha, valores a su lado --- */
.cb-row { display: flex; align-items: center; min-height: 18px; }
.cb-row .cb-label { width: 46%; text-align: right; padding-right: 8px; color: #c8c8c8; }
.cb-row .cb-val-input { flex: 1; background: #2b2b2b; color: #e0e0e0; border: 1px solid #1f1f1f; height: 16px; }
.cb-inputs-header, .cb-section-header { background: #3c3c3c; color: #c8c8c8; text-transform: none; letter-spacing: 0; }
.cb-object-header { text-align: center; color: #fff; }

/* --- Cromo: grises planos del estándar (sobrescribe colores fijos del <style> inline) --- */
.at-menubar { background: #3c3c3c; border-bottom: 1px solid #2a2a2a; }
.at-statusline, .at-shelf, .at-channelbox-col, .at-timeline-bar, .range-track, .p-tab { background: #444; }
.at-toolbox-col, .outliner-search-box { background: #3c3c3c; }
.shelf-tabs-row, .outliner-bar-title, .cb-top-tabs, .at-command-footer, .cb-layer-tabs { background: #3c3c3c; }
.cb-row { background: #444; }
.shelf-tab { background: #444; border-color: #3a3a3a; }
.shelf-tab.active { background: #4f4f4f; }
.shelf-icon-btn { background: transparent; border-color: transparent; }
.shelf-icon-btn:hover { background: #5a5a5a; border-color: #6a6a6a; }
.ws-dropdown, .status-mode-select, select.status-mode-select, .vp-icon-btn, .cb-object-header, .at-menubar select { background: #5d5d5d; color: #e0e0e0; border: 1px solid #3a3a3a; }
.search-box, #search-box, #outliner-search-input, .tl-counter, .cmd-mel-input, input.tl-counter { background: #2b2b2b; color: #e0e0e0; }
.cb-layers-dock { background: #2b2b2b; }
.status-div, .shelf-divider, .tb-sep { background: #5a5a5a; }
.vp-viewcube-box { background: transparent !important; }
.cmd-mel-badge, .cmd-help-icon { background: #3c3c3c; }
.tool-btn:hover { background: #505050; }

/* --- ViewCube 3D real, gizmo de ejes, botones de sombreado --- */
.vp-viewcube-box.vc3d { width: 76px; height: 76px; top: 10px; right: 12px; background: transparent !important; border: 0; box-shadow: none; perspective: 260px; pointer-events: none; display: block; }
.vc-cube { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.vc-face3d { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 700; letter-spacing: .3px; color: #3a3a3a; background: #b9b9b9; border: 1px solid #7d7d7d; backface-visibility: hidden; pointer-events: auto; cursor: pointer; user-select: none; }
.vc-face3d:hover { background: #cfe7ff; color: #1a3a5a; }
.vp-camera-axis { bottom: 26px; left: 14px; gap: 0; flex-direction: column; align-items: flex-start; }
.vp-axis-gizmo { overflow: visible; }
.vp-axis-gizmo line { stroke-width: 2; stroke-linecap: round; }
.vp-axis-gizmo line[data-a=x], .vp-axis-gizmo text[data-t=x] { stroke: #e0483a; fill: #e0483a; }
.vp-axis-gizmo line[data-a=y], .vp-axis-gizmo text[data-t=y] { stroke: #6fcf3a; fill: #6fcf3a; }
.vp-axis-gizmo line[data-a=z], .vp-axis-gizmo text[data-t=z] { stroke: #3a7bd5; fill: #3a7bd5; }
.vp-axis-gizmo text { font: 700 9px monospace; stroke: none; }
.vp-persp-label { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); color: #d0d0d0; font-size: 12px; pointer-events: none; }
.vp-icon-btn.active { background: #707070; box-shadow: inset 0 0 0 1px #9a9a9a; color: #fff; }

/* --- Channel Box: estado vacío y sección SHAPES --- */
.cb-empty { color: #9a9a9a; font-size: 11px; line-height: 1.4; padding: 10px 8px; text-align: left; }
.cb-section-header { padding: 2px 6px; margin-top: 4px; font-weight: 700; }
.cb-shape-row { padding: 2px 8px 4px 10px; color: #c8c8c8; }
.cb-inputs-header { padding: 2px 6px; font-weight: 700; margin-top: 4px; }
#cb-current-obj-name { color: #fff !important; }

/* --- Status line: iconos SVG propios --- */
.status-btn { display: inline-flex; align-items: center; gap: 3px; color: #d0d0d0; }
.status-btn .si { flex: none; }
.status-btn .sl { font-size: 10px; }
.status-tag { color: #b8b8b8; }

/* --- Shelf: iconos SVG propios --- */
.shelf-icon-btn svg { width: 22px; height: 22px; display: block; }

/* --- Pestañas verticales del borde derecho --- */
.edge-tabs { width: 18px; flex: none; background: #3c3c3c; border-left: 1px solid #2a2a2a; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding-top: 2px; }
.edge-tab { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10px; color: #b8b8b8; background: #444; border: 1px solid #2f2f2f; padding: 6px 2px; cursor: pointer; text-align: center; user-select: none; white-space: nowrap; }
.edge-tab:hover { background: #505050; color: #fff; }
.edge-tab.active { background: #5a5a5a; color: #fff; }

/* --- Status line: máscaras de selección y render --- */
.mask-btn { opacity: .55; }
.mask-btn.active { opacity: 1; background: #5a5a5a; box-shadow: inset 0 0 0 1px #7a7a7a; }

/* --- Barra del viewport: iconos rápidos y selector de color --- */
.vp-quick-group { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.vp-quick { width: 22px; padding: 2px; display: inline-flex; align-items: center; justify-content: center; }
.vp-aces { background: #5d5d5d; color: #e0e0e0; border: 1px solid #3a3a3a; font-size: 10px; height: 18px; margin-left: 4px; }

/* --- Time Slider: marcas de graduación y Range Slider --- */
.time-track { background-image: repeating-linear-gradient(to right, #6a6a6a 0, #6a6a6a 1px, transparent 1px, transparent 18px); background-position: bottom; background-size: 100% 6px; background-repeat: repeat-x; }
.range-slider-bar { flex: 1; min-width: 60px; height: 14px; margin: 0 8px; position: relative; background: #2b2b2b; border: 1px solid #1f1f1f; border-radius: 2px; align-self: center; }
.range-fill { position: absolute; left: 14px; right: 14px; top: 1px; bottom: 1px; background: #7a7a7a; }
.range-handle { position: absolute; top: 0; bottom: 0; width: 14px; background: #9a9a9a; border: 1px solid #5a5a5a; }
.range-handle.l { left: 0; } .range-handle.r { right: 0; }
.tl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
