/* -- Werkstatt: Explorer, Editor, Konsole ---------------------------------- */
.explorer { padding: 2px 0 6px; min-height: 40px; }
.explorer.is-over { outline: 2px dashed var(--accent); outline-offset: -3px; }
.explorer__zeile { padding-right: 6px; gap: 5px; }
.explorer__zeile .kind { width: 14px; font-size: 11px; }
.explorer__zeile.is-over { background: var(--side-active); outline: 1px dashed var(--accent); }
.explorer__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.explorer__aktionen { display: inline-flex; gap: 2px; }
.explorer__aktionen button { background: none; border: 0; color: inherit; cursor: pointer; padding: 0 3px;
  font-size: 11px; }
.explorer__aktionen button:hover { color: #fff; }
.explorer__hinweis { color: var(--side-text); font-size: 12px; padding: 8px 14px; }
.explorer__ordner { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 11px;
  color: var(--side-text); border-top: 1px solid #1e293b; }
.explorer__ordner span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  direction: rtl; text-align: left; }
.explorer__ordner .btn { padding: 3px 8px; font-size: 11px; }
.explorer__suche { margin: 6px 12px; width: calc(100% - 24px); font-size: 13px; padding: 6px 8px;
  background: #1e293b; color: #fff; border: 1px solid #334155; }
.explorer__treffer { padding-bottom: 6px; }
.explorer__treffer-zeile { display: block; padding: 4px 14px; font-size: 12px; }
.explorer__treffer-pfad { display: block; color: #cbd5e1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; }
.explorer__treffer-text { display: block; color: var(--side-text); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }

.editor__leiste { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-bottom: 1px solid var(--line);
  background: var(--card); flex: none; font-size: 12px; }
.editor__pfad { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.editor__leiste .btn { padding: 4px 10px; font-size: 12px; }
.editor__koerper { flex: 1; min-height: 0; position: relative; }
.editor__koerper--mitte { display: flex; align-items: center; justify-content: center; overflow: auto;
  background: #f1f5f9; }
.editor__monaco { position: absolute; inset: 0; }
.editor__vorschau { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.editor__bild { max-width: 100%; max-height: 100%; box-shadow: var(--shadow); }
.editor__koerper .empty { margin: 24px; }

.konsole { display: flex; flex-direction: column; height: 100%; }
.konsole__log { flex: 1; min-height: 0; margin: 0; overflow: auto; background: var(--side); color: #e2e8f0;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 8px 12px; white-space: pre-wrap; }
.konsole__zeile { display: flex; gap: 8px; align-items: center; padding: 6px 10px; border-top: 1px solid var(--line-soft);
  background: var(--card); }
.konsole__zeile input { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px;
  padding: 5px 8px; margin: 0; }
.konsole__zeile .btn { padding: 4px 10px; font-size: 12px; }
.konsole__ordner { color: var(--muted); font-size: 11px; white-space: nowrap; }
