/* Full-screen code-first workbench. Management pages remain on the LazyTT light shell. */
.skill-workspace-dialog { color-scheme: dark; inset: 0; z-index: 50; color: #cccccc; background: #1e1e1e; border: 0; }
.skill-workspace-form { grid-template-rows: 40px minmax(0, 1fr) 30px; }
.skill-workspace-head,
.skill-workspace-foot { min-height: 0; padding: 0 10px; color: #cccccc; background: #181818; border-color: #2b2b2b; }
.skill-workspace-context { min-width: 0; overflow: hidden; color: #cccccc; font: 12px/1.2 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.skill-workspace-actions { flex-wrap: nowrap; gap: 4px; }
.skill-workspace-actions select,
.workbench-command,
.workbench-icon-button { min-height: 28px; padding: 4px 9px; color: #cccccc; background: #252526; border: 1px solid #454545; border-radius: 2px; font: 12px/1.2 inherit; }
.skill-workspace-actions select:hover,
.workbench-command:hover,
.workbench-icon-button:hover { color: #ffffff; background: #333333; }
.workbench-command:focus-visible,
.workbench-icon-button:focus-visible,
.explorer-menu summary:focus-visible,
.editor-font-control button:focus-visible,
.skill-file-tree button:focus-visible { outline: 1px solid #007fd4; outline-offset: -1px; }
.workbench-command.danger { color: #f48771; }
.workbench-icon-button { width: 28px; padding: 0; font-size: 16px; }
.workbench-icon-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.workbench-command:disabled,
.editor-font-control button:disabled { color: #666666; cursor: not-allowed; }
.skill-workspace-body { position: relative; grid-template-columns: 260px minmax(0, 1fr); overflow: hidden; background: #1e1e1e; }
.skill-workspace-body[data-config-open="true"] { grid-template-columns: 260px minmax(0, 1fr) minmax(280px, 340px); }
.skill-file-rail { padding: 0; overflow: hidden auto; color: #cccccc; background: #181818; border-right: 1px solid #2b2b2b; }
.explorer-head,
.configuration-head { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px 0 14px; color: #bbbbbb; font-size: 11px; letter-spacing: .045em; }
.explorer-menu { position: relative; }
.explorer-menu summary { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 3px; cursor: pointer; list-style: none; }
.explorer-menu summary::-webkit-details-marker { display: none; }
.explorer-menu summary:hover { background: #2a2d2e; }
.explorer-menu summary svg { width: 18px; height: 18px; fill: #cccccc; }
.explorer-menu-panel { position: absolute; top: 30px; right: 0; z-index: 6; width: 250px; display: grid; gap: 8px; padding: 10px; color: #cccccc; background: #252526; border: 1px solid #454545; box-shadow: 0 8px 24px rgba(0, 0, 0, .38); }
.explorer-menu-panel label { font-size: 11px; }
.explorer-menu-panel input { min-width: 0; padding: 7px 8px; color: #f0f0f0; background: #3c3c3c; border: 1px solid #3c3c3c; outline: none; font: 12px var(--mono); }
.explorer-menu-panel input:focus { border-color: #007fd4; }
.explorer-root { min-height: 30px; display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 5px; padding: 0 8px; color: #eeeeee; background: #202020; font-size: 11px; font-weight: 700; }
.explorer-root svg { width: 15px; height: 15px; fill: none; stroke: #d7ba7d; stroke-width: 1.4; }
.explorer-root small { color: #969696; font-size: 10px; font-weight: 500; }
.skill-file-tree { display: block; padding: 4px 0 12px; }
.skill-file-tree details { margin: 0; }
.skill-file-tree summary,
.skill-file-tree button { min-height: 25px; width: 100%; display: grid; align-items: center; gap: 5px; color: #cccccc; background: transparent; border: 0; border-radius: 0; cursor: default; text-align: left; }
.skill-file-tree summary { grid-template-columns: 12px 16px minmax(0, 1fr); padding: 0 8px 0 calc(8px + var(--tree-depth) * 14px); list-style: none; }
.skill-file-tree summary::-webkit-details-marker { display: none; }
.skill-file-tree button { grid-template-columns: 16px minmax(0, 1fr) auto; padding: 0 8px 0 calc(20px + var(--tree-depth) * 14px); }
.skill-file-tree summary:hover,
.skill-file-tree button:hover { background: #2a2d2e; }
.skill-file-tree button[aria-current="true"] { color: #ffffff; background: #37373d; border: 0; }
.tree-caret { width: 10px; height: 10px; fill: none; stroke: #cccccc; stroke-width: 1.5; transition: transform 120ms ease; }
.tree-directory:not([open]) > summary .tree-caret { transform: rotate(-90deg); }
.tree-folder-icon { width: 15px; height: 15px; fill: none; stroke: #d7ba7d; stroke-width: 1.4; }
.tree-file-icon { width: 14px; height: 14px; fill: none; stroke: #75beff; stroke-width: 1.25; }
.skill-file-tree .skill-file-name { font-size: 12px; }
.skill-file-tree .skill-file-size { color: #858585; font-size: 10px; }
.skill-editor-pane { background: #1e1e1e; }
.skill-editor-bar { min-height: 36px; padding: 0; color: #cccccc; background: #181818; border-bottom-color: #2b2b2b; }
.editor-tab { align-self: stretch; min-width: 0; display: flex; align-items: center; gap: 7px; padding: 0 12px; color: #ffffff; background: #1f1f1f; border-top: 1px solid #007acc; }
.editor-tab svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: #75beff; stroke-width: 1.25; }
.editor-tab strong { min-width: 0; overflow: hidden; font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.skill-editor-tools { display: flex; align-items: center; gap: 3px; margin-right: 6px; }
.editor-font-control { display: inline-flex; align-items: center; gap: 1px; color: #cccccc; background: #252526; border: 1px solid #3c3c3c; }
.editor-font-control button { min-width: 30px; height: 26px; padding: 0 6px; color: #cccccc; background: transparent; border: 0; cursor: pointer; }
.editor-font-control button:hover { color: #ffffff; background: #333333; }
.editor-font-control output { min-width: 42px; text-align: center; font: 11px var(--mono); }
.skill-editor-mount { background: #1e1e1e; }
.skill-preview { color: #d4d4d4; background: #1e1e1e; }
.skill-preview pre { background: #252526; }
.skill-config-rail { padding: 0 12px 18px; color: #cccccc; background: #181818; border-left: 1px solid #2b2b2b; }
.configuration-actions { display: flex; flex-wrap: wrap; gap: 5px; padding-bottom: 10px; border-bottom: 1px solid #333333; }
.configuration-actions .button { min-height: 28px; padding: 4px 8px; color: #cccccc; background: #252526; border-color: #454545; border-radius: 2px; font-size: 11px; }
.configuration-actions .button:hover { color: #ffffff; background: #333333; }
.configuration-actions .button.danger { color: #f48771; }
.skill-config-rail details { border-color: #333333; }
.skill-config-rail summary,
.skill-config-rail label,
.skill-config-rail .helper { color: #bcbcbc; }
.skill-config-rail input,
.skill-config-rail textarea,
.skill-config-rail select { color: #f0f0f0; background: #3c3c3c; border-color: #3c3c3c; }
.skill-config-rail input:focus,
.skill-config-rail textarea:focus,
.skill-config-rail select:focus { border-color: #007fd4; outline: none; }
.skill-workspace-foot { color: #ffffff; background: #007acc; border: 0; }
.skill-workspace-status,
.skill-workspace-status strong,
.skill-workspace-foot .error { color: #ffffff; }
.skill-workspace-foot .button.primary { min-height: 24px; padding: 3px 9px; color: #111111; background: #f3f3f3; border-color: #f3f3f3; }

@media (max-width: 760px) {
  .skill-workspace-dialog { inset: 0; }
  .skill-workspace-context { display: none; }
  .skill-workspace-form { grid-template-rows: 40px minmax(0, 1fr) auto; }
  .skill-workspace-head,
  .skill-workspace-foot { align-items: center; flex-wrap: nowrap; }
  .skill-workspace-body,
  .skill-workspace-body[data-config-open="true"] { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(150px, 32dvh) minmax(0, 1fr); overflow: hidden; }
  .skill-file-rail { grid-column: 1; grid-row: 1; max-height: none; border-right: 0; border-bottom: 1px solid #2b2b2b; }
  .skill-editor-pane { grid-column: 1; grid-row: 2; min-height: 0; }
  .skill-config-rail { position: absolute; inset: 0 0 0 auto; z-index: 8; width: min(340px, 92vw); max-height: none; border-top: 0; }
  .editor-font-control output { display: none; }
}
