    :root {
      --bg: #1e1e1e;
      --panel: #252526;
      --panel-2: #1e1e1e;
      --text: #d4d4d4;
      --muted: #9da0a6;
      --cyan: #007acc;
      --cyan-soft: #0e639c;
      --line: #2d2d30;
      --active: #094771;
      --danger: #f48771;
      --editor-font: "Consolas", "Menlo", "Monaco", "Liberation Mono", monospace;
    }
    * { box-sizing: border-box; }
    html, body { height: 100%; overflow: hidden; }
    body { margin: 0; background: var(--bg); color: var(--text); font-family: "Segoe UI", Arial, sans-serif; }
    .window-title { height: 30px; padding: 5px 10px; font-size: 14px; background: #3c3c3c; border-bottom: 1px solid #2d2d30; color: #cccccc; }
    .menu-bar { height: 30px; display: flex; align-items: center; gap: 2px; padding: 0 8px; background: #3c3c3c; border-bottom: 1px solid #2d2d30; position: relative; z-index: 20; }
    .menu { position: relative; }
    .menu-btn { border: none; background: transparent; color: #cccccc; padding: 6px 14px; font-size: 14px; cursor: pointer; }
    .menu-btn:hover, .menu-btn.open { background: #505050; }
    .menu-items { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: rgba(37, 37, 38, 0.97); border: 1px solid #454545; box-shadow: 0 8px 16px rgba(0,0,0,.35); }
    .menu-items.open { display: block; }
    .menu-item { width: 100%; text-align: left; border: none; background: transparent; color: #cccccc; padding: 10px 14px; cursor: pointer; font-size: 15px; border-bottom: 1px solid #313131; }
    .menu-item:last-child { border-bottom: none; }
    .menu-item:hover { background: #04395e; }
    .header { background: #007acc; padding: 10px 16px; font-size: 36px; letter-spacing: .5px; font-weight: 300; border-bottom: 1px solid #2d2d30; color: #ffffff; }
    .toolbar { padding: 8px 12px; display: flex; gap: 8px; align-items: center; border-bottom: 1px solid #2d2d30; background: #2d2d30; }
    .toolbar input, .toolbar select { background: #3c3c3c; border: 1px solid #3c3c3c; color: var(--text); border-radius: 4px; padding: 7px 10px; }
    .toolbar input { min-width: 240px; }
    .toolbar select { min-width: 200px; }
    .layout { display: grid; grid-template-columns: 300px 1fr; height: calc(100vh - 149px); }
    .sidebar { border-right: 1px solid #212734; background: var(--panel); overflow: auto; }
    .tree-head { padding: 8px 12px; border-bottom: 1px solid #232a36; }
    .tree-head input { width: 100%; background: #171d27; border: 1px solid #2e3645; color: var(--text); border-radius: 4px; padding: 7px 9px; }
    .tree { padding: 8px 5px 88px; font-family: var(--editor-font); font-size: 14px; }
    .tree-row { white-space: nowrap; padding: 3px 6px; cursor: pointer; border-radius: 3px; margin: 1px 0; color: #d8dfeb; }
    .tree-row:hover { background: #2a2d2e; }
    .tree-row.active { background: var(--active); color: #ffffff; }
    .tree-row.file::before { content: "{}"; color: #d7ba7d; margin-right: 6px; font-weight: 700; }
    .tree-row.file.yaml::before { content: "YML"; font-size: 11px; color: #c586c0; }
    .tree-row.file.locked { color: #a98585; }
    .tree-row.file.locked::before { content: "🔒"; margin-right: 6px; }
    .tree-row.file.locked:hover { background: #332222; }
    .tree details { margin: 1px 0; }
    .tree summary { list-style: none; cursor: pointer; color: #cccccc; font-weight: 600; padding: 3px 6px; border-radius: 3px; }
    .tree summary::-webkit-details-marker { display: none; }
    .tree summary:hover { background: #1f2531; }
    .folder-caret { display: inline-block; width: 14px; color: #7fa0bf; margin-right: 4px; transform-origin: 45% 50%; transition: transform .18s ease, color .18s ease; }
    details[open] > summary .folder-caret { color: #9fd2ff; transform: rotate(90deg); }
    .folder-children { display: grid; grid-template-rows: 0fr; opacity: .75; transition: grid-template-rows .18s ease, opacity .18s ease; }
    .folder-children-inner { overflow: hidden; }
    details[open] > .folder-children { grid-template-rows: 1fr; opacity: 1; }
    .tree-row.folder::before { content: "📁"; margin-right: 6px; }
    .editor-wrap { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
    .tabs { height: 40px; background: #252526; display: flex; align-items: end; gap: 4px; padding: 0 8px; border-bottom: 1px solid #2d2d30; }
    .tab { background: #2d2d2d; color: #bbbbbb; border: 1px solid #3a3a3a; border-bottom: none; border-radius: 6px 6px 0 0; padding: 9px 14px; font-style: italic; min-width: 120px; cursor: pointer; }
    .tab.active { background: #1e1e1e; color: #ffffff; }
    .plugins-panel { display: none; flex: 1; min-height: 0; overflow: hidden; padding: 12px; background: #1e1e1e; }
    .editor-wrap.plugins-mode .plugins-panel { display: flex; flex-direction: column; }
    .editor-wrap.plugins-mode .editor-grid,
    .editor-wrap.plugins-mode .footer,
    .editor-wrap.plugins-mode #apiError,
    .editor-wrap.plugins-mode .path-action-bar { display: none !important; }
    .plugins-panel-header { font-size: 18px; margin-bottom: 6px; color: #e6e6e6; }
    .plugins-status { color: #9da0a6; margin-bottom: 12px; font-size: 13px; }
    .plugins-list { display: grid; gap: 8px; flex: 1; min-height: 0; overflow: auto; padding-bottom: 12px; }
    .plugin-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #2d2d30; border-radius: 6px; padding: 10px 12px; background: #252526; }
    .plugin-meta { min-width: 0; }
    .plugin-name { font-size: 14px; color: #d4d4d4; word-break: break-word; }
    .plugin-path { font-size: 11px; color: #8b8f99; margin-top: 2px; word-break: break-all; }
    .plugin-state { font-size: 12px; margin-top: 3px; }
    .plugin-state.enabled { color: #6a9955; }
    .plugin-state.disabled { color: #f48771; }
    .plugin-toggle { border: 1px solid #3f4656; border-radius: 4px; background: #2d2d30; color: #d4d4d4; padding: 6px 10px; cursor: pointer; font-size: 12px; }
    .plugin-toggle:hover:not(:disabled) { background: #094771; border-color: #0f5f92; color: #fff; }
    .plugin-toggle:disabled { opacity: .6; cursor: wait; }
    .path-action-bar { display: none; grid-template-columns: minmax(140px, 220px) 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid #2d2d30; background: #252526; }
    .path-action-bar.show { display: grid; }
    .path-action-title { color: #d4d4d4; font-size: 13px; }
    .path-action-bar input { width: 100%; min-width: 0; background: #171d27; border: 1px solid #2e3645; color: #d4d4d4; border-radius: 4px; padding: 7px 9px; font-family: var(--editor-font); font-size: 13px; }
    .path-action-buttons { display: flex; gap: 8px; }
    .path-action-buttons button { border: 1px solid #3f4656; border-radius: 4px; background: #2d2d30; color: #d4d4d4; padding: 7px 12px; cursor: pointer; font-size: 12px; }
    .path-action-buttons button:hover { background: #094771; border-color: #0f5f92; color: #fff; }
    .editor-grid { flex: 1; display: grid; grid-template-columns: 44px 1fr; min-height: 0; overflow: hidden; }
    .line-numbers { margin: 0; background: #1a1a1a; border-right: 1px solid #3a3f4b; color: #b9c8e2; font-family: var(--editor-font); padding: 8px 10px 72px 8px; line-height: 20px; font-size: 14px; text-align: right; overflow: hidden; user-select: none; }
    .editor-stack { min-height: 0; height: 100%; display: flex; position: relative; flex: 1; }
    .highlight-layer {
      position: absolute;
      inset: 0;
      margin: 0;
      pointer-events: none;
      overflow: hidden;
      white-space: pre;
      font-family: var(--editor-font);
      line-height: 20px;
      font-size: 14px;
      padding: 8px 12px 72px;
      color: #d4d4d4;
      tab-size: 2;
    }
    textarea {
      width: 100%;
      height: 100%;
      margin: 0;
      border: none;
      outline: none;
      resize: none;
      background: transparent;
      color: transparent;
      caret-color: #d4d4d4;
      position: relative;
      z-index: 2;
      font-family: var(--editor-font);
      line-height: 20px;
      font-size: 14px;
      padding: 8px 12px 72px;
      tab-size: 2;
      overflow: auto;
      white-space: pre-wrap;
      overflow-wrap: anywhere;
      word-break: break-word;
    }
    textarea::selection { background: rgba(38, 79, 120, 0.65); }
    .code-line { display: block; height: 20px; }
    .code-line.error-line { background: rgba(244, 135, 113, 0.2); }
    .tok-key { color: #9cdcfe; }
    .tok-string { color: #ce9178; }
    .tok-number { color: #b5cea8; }
    .tok-bool { color: #569cd6; }
    .tok-null { color: #c586c0; }
    .tok-punct { color: #d4d4d4; }
    .tok-comment { color: #6a9955; }
    .tok-section { color: #4ec9b0; }
    .tok-attr { color: #9cdcfe; }
    .tok-tag { color: #569cd6; }
    .tok-command { color: #dcdcaa; }
    .tree-row.file.ext-json { color: #9cdcfe; }
    .tree-row.file.ext-yaml, .tree-row.file.ext-yml { color: #c586c0; }
    .tree-row.file.ext-ini, .tree-row.file.ext-cfg, .tree-row.file.ext-conf, .tree-row.file.ext-properties { color: #4ec9b0; }
    .tree-row.file.ext-xml { color: #d7ba7d; }
    .tree-row.file.ext-toml { color: #ce9178; }
    .tree-row.file.ext-sh, .tree-row.file.ext-bat { color: #dcdcaa; }
    .tree-row.file.ext-log, .tree-row.file.ext-txt { color: #b5cea8; }
    .tree-row.file.ext-js, .tree-row.file.ext-mjs, .tree-row.file.ext-cjs { color: #ffd700; }

    .footer { height: 28px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #2d2d30; background: #007acc; padding: 0 10px; color: #ffffff; font-size: 12px; }
    .api-error { display: none; border-top: 1px solid #4b2222; background: #3a1212; color: #ffbcbc; padding: 6px 10px; font-size: 12px; font-family: Consolas, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .api-error.show { display: block; }
    .popup { position: fixed; top: 12px; right: 12px; background: #1f6f43; color: #fff; border: 1px solid #2ecc71; border-radius: .5rem; padding: .8rem 1rem; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; }
    .popup.show { opacity: 1; transform: translateY(0); }
    #loadPopup { top: 62px; background: #1f4f6f; border-color: #4ab3ff; }
    .popup-error { top: 112px; background: #6f1f1f; border-color: #ff7f7f; }
    .context-menu { display: none; position: fixed; z-index: 60; min-width: 190px; background: #252526; border: 1px solid #46484d; border-radius: 6px; padding: 4px; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
    .context-menu.show { display: block; }
    .context-menu-item { width: 100%; text-align: left; border: none; border-radius: 4px; background: transparent; color: #d4d4d4; padding: 7px 10px; font-size: 13px; cursor: pointer; }
    .context-menu-item:hover:not(:disabled) { background: #094771; color: #fff; }
    .context-menu-item:disabled { opacity: .45; cursor: not-allowed; }
    .context-menu-item.danger:hover:not(:disabled) { background: #7a2f2f; }
  
