    :root {
      color-scheme: dark;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: #111;
      color: #eee;
      --app-gap: clamp(8px, 1vw, 16px);
      --app-pad: clamp(8px, 1.1vw, 18px);
      --app-radius: clamp(5px, 1vw, 5px);
      --toolbar-height: auto;
      --explorer-width: clamp(280px, 28vw, 500px);
    }

    * {
      box-sizing: border-box;
    }

    html,
    body {
      width: 100%;
    }

    body {
      margin: 0;
      padding: 0;
      overflow: hidden;
      background:
        radial-gradient(circle at top left, rgba(90, 130, 255, 0.18), transparent 35%),
        radial-gradient(circle at bottom right, rgba(160, 80, 255, 0.14), transparent 38%),
        #111;
    }

    h1 {
      margin: 0;
      font-size: clamp(20px, 1.7vw, 28px);
      line-height: 1.1;
      white-space: nowrap;
    }

    .panel {
      width: 100vw;
      width: 100dvw;
      height: 100vh;
      height: 100dvh;
      max-width: none;
      margin: 0;
      padding: var(--app-pad);
      border: 0;
      border-radius: 0;
      background: rgba(20,20,26,0.86);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.09), 0 20px 60px rgba(0,0,0,0.35);
      display: flex;
      flex-direction: column;
      gap: var(--app-gap);
      overflow: hidden;
    }


    .dropzone {
      margin: 0;
      padding: 8px 12px;
      border: 1px dashed rgba(140,170,255,0.5);
      border-radius: 5px;
      background: rgba(255,255,255,0.035);
      cursor: pointer;
      transition: 0.15s ease;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      flex: 0 0 auto;
      min-height: 40px;
      white-space: nowrap;
    }

    .dropzone.dragover {
      border-color: #9fb7ff;
      background: rgba(120,160,255,0.12);
      transform: scale(1.005);
    }

    input[type="file"] {
      display: none;
    }

    .checkLabel {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 7px 10px;
      border-radius: 5px;
      background: rgba(255,255,255,0.07);
      border: 1px solid rgba(255,255,255,0.12);
      font-size: 13px;
      cursor: pointer;
      user-select: none;
    }

    .checkLabel input {
      accent-color: #9fb7ff;
    }

    .meta {
      opacity: 0.75;
      font-size: clamp(12px, 0.9vw, 14px);
    }

    .urlBox {
      margin-top: 0;
      padding: 8px 10px;
      border-radius: 5px;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.1);
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      font-size: 12px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      min-width: 180px;
      flex: 1 1 240px;
    }

    .toolbar {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin: 0;
      align-items: center;
      flex: 0 0 auto;
    }

    .topbar {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      padding: 10px 12px;
      border: 1px solid rgba(255,255,255,0.10);
      border-radius: var(--app-radius);
      background: rgba(0,0,0,0.18);
      box-shadow: inset 0 0 0 1px rgba(140,170,255,0.05);
      flex: 0 0 auto;
    }

    .brandGroup {
      display: flex;
      flex-direction: column;
      gap: 2px;
      margin-right: auto;
      min-width: 220px;
      max-width: 420px;
    }

    .brandMeta {
      font-size: 12px;
      line-height: 1.35;
    }

    .topbarControls {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      flex: 999 1 760px;
      min-width: 0;
    }

    .compactDropzone {
      text-align: left;
    }

    .dropHint {
      opacity: 0.72;
      font-size: 12px;
      font-weight: 500;
    }

    .statusPill {
      display: inline-flex;
      align-items: center;
      min-height: 40px;
      padding: 0 12px;
      border-radius: 5px;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.1);
      font-size: 13px;
      color: #d8d8d8;
      white-space: nowrap;
      max-width: 100%;
    }

    button, select, input[type="search"] {
      border: 1px solid rgba(255,255,255,0.16);
      background: rgba(255,255,255,0.08);
      color: #eee;
      padding: 8px 12px;
      border-radius: 5px;
      font: inherit;
    }

    button {
      cursor: pointer;
    }

    button:hover {
      background: rgba(255,255,255,0.14);
    }

    select {
      cursor: pointer;
    }

    input[type="search"] {
      min-width: 160px;
      outline: none;
    }

    input[type="search"]:focus, select:focus {
      border-color: rgba(150,180,255,0.7);
      box-shadow: 0 0 0 3px rgba(120,160,255,0.16);
    }

    .workspace {
      display: flex;
      gap: 0;
      margin-top: 0;
      flex: 1 1 auto;
      min-height: 0;
      min-width: 0;
      overflow: hidden;
    }

    .explorer, .preview {
      min-height: 0;
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: var(--app-radius);
      overflow: hidden;
      background: rgba(0,0,0,0.18);
      display: flex;
      flex-direction: column;
    }

    .explorer {
      width: var(--explorer-width);
      min-width: 240px;
      flex: 0 0 var(--explorer-width);
    }

    .preview {
      flex: 1 1 auto;
      min-width: 0;
      box-shadow: 0 0 0 1px rgba(140,170,255,0.07), 0 12px 42px rgba(0,0,0,0.22);
    }

    .splitter {
      position: relative;
      flex: 0 0 14px;
      min-width: 14px;
      cursor: col-resize;
      display: flex;
      align-items: center;
      justify-content: center;
      touch-action: none;
    }

    .splitter::before {
      content: "";
      width: 4px;
      height: 72px;
      border-radius: 5px;
      background: linear-gradient(180deg, rgba(168, 114, 255, 0.25), rgba(168, 114, 255, 0.9), rgba(168, 114, 255, 0.25));
      box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 0 18px rgba(168,114,255,0.22);
      transition: 0.15s ease;
    }

    .splitter:hover::before,
    .splitter:focus-visible::before {
      height: 110px;
      background: linear-gradient(180deg, rgba(168, 114, 255, 0.4), rgba(196, 151, 255, 1), rgba(168, 114, 255, 0.4));
    }

    body.isResizing {
      user-select: none;
    }

    .explorerHeader, .previewHeader {
      padding: 10px 12px;
      border-bottom: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.06);
      font-weight: 700;
      flex: 0 0 auto;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .explorerTools {
      display: grid;
      gap: 8px;
      padding: 10px;
      border-bottom: 1px solid rgba(255,255,255,0.1);
      background: rgba(255,255,255,0.025);
      flex: 0 0 auto;
    }

    .toolRow {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      align-items: center;
    }

    .explorerTools button {
      padding: 6px 9px;
      font-size: 12px;
      border-radius: 5px;
    }

    .explorerTools select,
    .explorerTools input[type="search"] {
      padding: 7px 9px;
      font-size: 13px;
      border-radius: 5px;
    }

    .explorerTools input[type="search"] {
      flex: 1 1 210px;
      min-width: 0;
    }

    .tree {
      flex: 1 1 auto;
      min-height: 0;
      max-height: none;
      overflow: auto;
      padding: 8px 0;
      font-size: 14px;
      user-select: none;
      scrollbar-gutter: stable;
    }

    .tree ul {
      list-style: none;
      padding-left: 18px;
      margin: 0;
    }

    .tree > ul {
      padding-left: 6px;
    }

    .treeItem {
      display: flex;
      align-items: center;
      min-height: 26px;
      padding: 2px 8px 2px 4px;
      border-radius: 5px;
      cursor: pointer;
      gap: 5px;
      white-space: nowrap;
    }

    .treeItem:hover {
      background: rgba(255,255,255,0.07);
    }

    .treeItem.active {
      background: rgba(110,145,255,0.22);
      outline: 1px solid rgba(130,165,255,0.25);
    }

    .toggle {
      width: 16px;
      display: inline-flex;
      justify-content: center;
      opacity: 0.8;
      flex: 0 0 16px;
    }

    .toggle.placeholder {
      opacity: 0.25;
    }

    .icon {
      width: 18px;
      display: inline-flex;
      justify-content: center;
      flex: 0 0 18px;
    }

    .name {
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .fileMeta {
      opacity: 0.5;
      margin-left: 8px;
      font-size: 12px;
    }

    .folderChildren[hidden] {
      display: none;
    }

    mark {
      background: rgba(255, 230, 120, 0.28);
      color: inherit;
      border-radius: 4px;
      padding: 0 2px;
    }

    .previewBody {
      flex: 1 1 auto;
      min-height: 0;
      padding: 12px;
      overflow: auto;
      max-height: none;
      display: flex;
      flex-direction: column;
      scrollbar-gutter: stable;
    }

    .previewBody > pre,
    .previewBody > img,
    .previewBody > video,
    .previewBody > audio,
    #htmlPreviewHost {
      flex: 1 1 auto;
      min-height: 0;
    }

    #htmlPreviewHost {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    pre {
      margin: 0;
      white-space: pre-wrap;
      word-break: break-word;
      font-size: 13px;
      line-height: 1.45;
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      overflow: auto;
    }

    img, video, audio {
      max-width: 100%;
      border-radius: 5px;
    }

    iframe.liveFrame {
      width: 100%;
      flex: 1 1 auto;
      min-height: 0;
      height: 100%;
      border: 1px solid rgba(255,255,255,0.18);
      border-radius: 5px;
      background: white;
      display: block;
    }

    .empty {
      opacity: 0.65;
      padding: 14px;
    }

    .error {
      color: #ff8e8e;
    }

    .ok {
      color: #9dffbd;
    }

    .pathInfo {
      margin-bottom: 10px;
      padding: 9px 10px;
      border-radius: 5px;
      background: rgba(255,255,255,0.055);
      border: 1px solid rgba(255,255,255,0.09);
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      font-size: 13px;
      word-break: break-all;
      opacity: 0.9;
      flex: 0 0 auto;
    }

    .compactPath {
      margin: 0;
      flex: 1 1 280px;
      min-width: 0;
      padding: 8px 10px;
      word-break: break-word;
    }

    .statsLine {
      opacity: 0.7;
      font-size: 13px;
      padding: 8px 12px;
      flex: 0 0 auto;
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .pill {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 4px 8px;
      border-radius: 5px;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.1);
      font-size: 12px;
      opacity: 0.9;
    }

    .previewTabs {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 10px;
      flex: 0 0 auto;
    }

    .previewChrome {
      display: flex;
      flex-direction: column;
      gap: 8px;
      flex: 1 1 auto;
      min-height: 0;
    }

    .previewToolbar {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      padding: 8px;
      border: 1px solid rgba(255,255,255,0.09);
      border-radius: 5px;
      background: rgba(255,255,255,0.03);
    }

    .compactTabs,
    .compactEditorToolbar {
      margin: 0;
      gap: 6px;
      flex: 0 1 auto;
    }

    .previewTabs button.active {
      background: rgba(110,145,255,0.24);
      border-color: rgba(130,165,255,0.4);
    }

    .liveNote {
      margin: 0;
      padding: 10px 12px;
      border-radius: 5px;
      background: rgba(255,255,255,0.055);
      border: 1px solid rgba(255,255,255,0.09);
      opacity: 0.82;
      font-size: 13px;
      line-height: 1.45;
      flex: 0 0 auto;
    }

    .compactNote {
      padding: 7px 10px;
      font-size: 12px;
      line-height: 1.35;
    }

    .editorToolbar {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      align-items: center;
      margin-bottom: 10px;
      flex: 0 0 auto;
    }

    .editorShell {
      display: flex;
      flex-direction: column;
      gap: 8px;
      flex: 1 1 auto;
      min-height: 0;
    }

    .editorToolbar .dirty {
      color: #ffd27d;
    }

    textarea.codeEditor {
      width: 100%;
      flex: 1 1 auto;
      min-height: 240px;
      resize: none;
      box-sizing: border-box;
      border: 1px solid rgba(255,255,255,0.16);
      border-radius: 5px;
      background: rgba(0,0,0,0.32);
      color: #eee;
      padding: 12px;
      font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      outline: none;
      tab-size: 2;
      white-space: pre;
    }

    textarea.codeEditor:focus {
      border-color: rgba(150,180,255,0.7);
      box-shadow: 0 0 0 3px rgba(120,160,255,0.16);
    }

    .modifiedBadge {
      display: inline-flex;
      margin-left: 8px;
      padding: 2px 7px;
      border-radius: 5px;
      font-size: 12px;
      background: rgba(255, 190, 90, 0.15);
      border: 1px solid rgba(255, 210, 125, 0.28);
      color: #ffd27d;
    }

    @media (max-width: 1100px) {
      :root {
        --explorer-width: clamp(250px, 34vw, 360px);
      }

      .brandMeta {
        display: none;
      }

      .topbar {
        padding: 8px 10px;
      }
    }

    @media (max-width: 820px) {
      body {
        overflow: auto;
      }

      .panel {
        min-height: 100dvh;
        height: auto;
        overflow: visible;
      }

      .workspace {
        flex-direction: column;
        overflow: visible;
      }

      .preview {
        order: 1;
        flex: 0 0 var(--stack-preview-height);
        min-height: 280px;
      }

      .splitter {
        order: 2;
        min-width: 0;
        min-height: 14px;
        cursor: row-resize;
      }

      .splitter::before {
        width: 90px;
        height: 4px;
      }

      .explorer {
        order: 3;
        width: auto;
        flex: 1 1 auto;
        min-height: 220px;
      }

      .previewBody {
        min-height: 0;
      }

      .tree {
        max-height: 38vh;
      }

      h1 {
        white-space: normal;
      }

      .topbarControls {
        width: 100%;
      }
    }

    @media (max-width: 560px) {
      .toolbar,
      .toolRow,
      .topbarControls,
      .previewToolbar,
      .compactEditorToolbar {
        gap: 6px;
      }

      button, select, input[type="search"], .checkLabel, .compactDropzone, .statusPill {
        width: 100%;
      }

      .explorerTools input[type="search"],
      .urlBox,
      .compactPath {
        flex-basis: 100%;
      }

      .brandGroup {
        min-width: 0;
      }
    }

/* CodeMirror editor */
.codeEditorHost {
  flex: 1 1 auto;
  min-height: 240px;
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 5px;
  overflow: hidden;
  background: rgba(0,0,0,0.32);
}

.codeEditorHost .cm-editor {
  height: 100%;
  min-height: 240px;
  background: rgba(0,0,0,0.26);
  color: #eee;
  font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.codeEditorHost .cm-scroller {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.codeEditorHost .cm-content {
  caret-color: #ffffff;
}

.codeEditorHost .cm-cursor {
  border-left-color: #ffffff;
}

.codeEditorHost .cm-gutters {
  background: rgba(255,255,255,0.035);
  color: rgba(238,238,238,0.58);
  border-right: 1px solid rgba(255,255,255,0.12);
}

.codeEditorHost .cm-activeLine,
.codeEditorHost .cm-activeLineGutter {
  background: rgba(120,160,255,0.10);
}

.codeEditorHost .cm-selectionBackground,
.codeEditorHost .cm-content ::selection {
  background: rgba(120,160,255,0.30) !important;
}

.codeEditorHost .cm-foldGutter span {
  cursor: pointer;
  color: rgba(238,238,238,0.82);
}

.codeEditorHost .cm-matchingBracket,
.codeEditorHost .cm-nonmatchingBracket {
  outline: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
}

.editorHint {
  opacity: 0.62;
  font-size: 12px;
  line-height: 1.35;
}


/* HTML Console */
.htmlConsole {
  flex: 0 0 190px;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--app-radius);
  background: rgba(0,0,0,0.24);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.htmlConsole.isCollapsed {
  flex-basis: 42px;
}

.htmlConsoleHeader {
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.055);
}

.htmlConsole.isCollapsed .htmlConsoleHeader {
  border-bottom: 0;
}

.consoleCount {
  opacity: 0.66;
  font-size: 12px;
  margin-right: auto;
}


.consoleTabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 5px;
  background: rgba(0,0,0,0.18);
  margin-right: 4px;
}

.consoleTab {
  padding: 4px 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: rgba(255,255,255,0.68);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

.consoleTab:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.consoleTab.isActive {
  color: #fff;
  background: rgba(122, 197, 255, 0.20);
  box-shadow: inset 0 0 0 1px rgba(122, 197, 255, 0.24);
}

.consoleEntry.isHiddenByTab {
  display: none;
}

.consoleEntry[data-console-scope="global"] {
  border-left-color: rgba(92, 255, 190, 0.48);
}

.consoleEntry[data-console-owner="remote"] {
  border-left-color: rgba(255, 198, 92, 0.52);
}

.consoleEntry[data-console-owner="local"] {
  border-left-color: rgba(122, 197, 255, 0.52);
}

.htmlConsoleActions {
  display: inline-flex;
  gap: 6px;
}

.htmlConsoleActions button {
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 12px;
}

.htmlConsoleBody {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 8px;
  font: 12px/1.42 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.htmlConsole.isCollapsed .htmlConsoleBody {
  display: none;
}

.consoleEntry {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 4px 6px;
  border-radius: 5px;
  border-left: 3px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.025);
  margin-bottom: 4px;
  white-space: pre-wrap;
  word-break: break-word;
}

.consoleEntry .consoleTime {
  opacity: 0.56;
}

.consoleEntry .consoleSource {
  opacity: 0.72;
}

.consoleEntry .consoleMessage {
  min-width: 0;
}

.consoleEntry.log {
  border-left-color: rgba(180, 200, 255, 0.55);
}

.consoleEntry.info {
  border-left-color: rgba(130, 190, 255, 0.75);
}

.consoleEntry.warn {
  border-left-color: rgba(255, 210, 110, 0.9);
  background: rgba(255, 210, 110, 0.055);
}

.consoleEntry.error {
  border-left-color: rgba(255, 115, 115, 0.95);
  background: rgba(255, 95, 95, 0.075);
}

.consoleEntry.debug {
  border-left-color: rgba(170, 130, 255, 0.75);
}

@media (max-width: 820px) {
  .htmlConsole {
    flex-basis: 160px;
  }
}


.htmlConsoleActions .iconButton {
  width: 32px;
  min-width: 32px;
  padding: 5px 0;
  text-align: center;
  font-size: 15px;
  line-height: 1;
}

.htmlConsoleActions .iconButton.copied {
  border-color: rgba(120, 255, 170, 0.65);
  background: rgba(120, 255, 170, 0.16);
}

.htmlConsoleActions .iconButton.copyError {
  border-color: rgba(255, 115, 115, 0.72);
  background: rgba(255, 95, 95, 0.16);
}


/* Parent <-> iframe bridge */
.bridgeBar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
}

.htmlConsole.isCollapsed .bridgeBar {
  display: none;
}

.bridgeBar input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 5px;
  font-size: 12px;
}

.bridgeBar button {
  padding: 7px 10px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
}

.bridgeMessage {
  opacity: 0.82;
}

@media (max-width: 560px) {
  .bridgeBar {
    flex-wrap: wrap;
  }

  .bridgeBar button {
    width: 100%;
  }
}


/* Console splitter */
.consoleSplitter {
  position: relative;
  flex: 0 0 14px;
  min-height: 14px;
  cursor: row-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.consoleSplitter::before {
  content: "";
  width: 120px;
  height: 4px;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(126,162,255,0.20), rgba(126,162,255,0.86), rgba(126,162,255,0.20));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 0 18px rgba(126,162,255,0.20);
  transition: 0.15s ease;
}

.consoleSplitter:hover::before,
.consoleSplitter:focus-visible::before {
  width: 180px;
  background: linear-gradient(90deg, rgba(126,162,255,0.36), rgba(174,198,255,1), rgba(126,162,255,0.36));
}

.htmlConsole {
  flex-basis: var(--html-console-height, 190px);
}

body.isConsoleResizing {
  user-select: none;
}

/* Smarter JSON / bridge console rendering */
.consoleEntry {
  grid-template-columns: auto auto minmax(0, 1fr);
}

.consoleEntry.bridgeMessage,
.consoleEntry.cmd,
.consoleEntry.hostInfo,
.consoleEntry.ready,
.consoleEntry.response,
.consoleEntry.request {
  background: rgba(126,162,255,0.055);
}

.consoleEntry.cmd {
  border-left-color: rgba(255, 215, 133, 0.95);
}

.consoleEntry.hostInfo {
  border-left-color: rgba(141, 255, 189, 0.92);
}

.consoleEntry.ready {
  border-left-color: rgba(126, 255, 210, 0.90);
}

.consoleEntry.request {
  border-left-color: rgba(255, 184, 108, 0.95);
}

.consoleEntry.response {
  border-left-color: rgba(141, 255, 189, 0.95);
}

.consoleMessage {
  display: grid;
  gap: 6px;
}

.consoleText {
  white-space: pre-wrap;
  word-break: break-word;
}

.consoleJsonCard {
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 5px;
  overflow: hidden;
  background: rgba(0,0,0,0.22);
}

.consoleJsonHeader {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 8px;
  background: rgba(255,255,255,0.055);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.consoleBadge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(126,162,255,0.13);
  border: 1px solid rgba(126,162,255,0.22);
  color: #dbe4ff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.consoleBadge.cmd {
  background: rgba(255,215,133,0.13);
  border-color: rgba(255,215,133,0.28);
  color: #ffe2a8;
}

.consoleBadge.ready,
.consoleBadge.hostInfo,
.consoleBadge.response {
  background: rgba(141,255,189,0.12);
  border-color: rgba(141,255,189,0.25);
  color: #abffd0;
}

.consoleBadge.request {
  background: rgba(255,184,108,0.13);
  border-color: rgba(255,184,108,0.28);
  color: #ffd2a3;
}

.consoleJsonBody {
  margin: 0;
  padding: 8px 10px;
  overflow: auto;
  max-height: 240px;
  color: rgba(238,238,238,0.92);
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
}

.consoleKey {
  color: #9fb7ff;
}

.consoleString {
  color: #aef5c9;
}

.consoleNumber,
.consoleBoolean {
  color: #ffd785;
}

.consoleNull {
  color: #ff9c9c;
}

.consoleMiniTable {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
}

.consoleMiniRow {
  display: grid;
  grid-template-columns: minmax(80px, 0.35fr) minmax(0, 1fr);
  gap: 8px;
}

.consoleMiniKey {
  color: #9fb7ff;
  opacity: 0.9;
}

.consoleMiniValue {
  min-width: 0;
  word-break: break-word;
  color: rgba(238,238,238,0.9);
}

.htmlConsole.isCollapsed + * {
  display: none;
}


/* Logical collapsed bridge flow cards */
.consoleFlowCard {
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 5px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(126,162,255,0.08), rgba(141,255,189,0.035)),
    rgba(0,0,0,0.20);
}

.consoleFlowHeader {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 7px 9px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.055);
}

.consoleFlowTitle {
  min-width: 0;
  font-weight: 800;
  color: #edf2ff;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.consoleFlowMeta {
  margin-left: auto;
  opacity: 0.62;
  font-size: 11px;
  white-space: nowrap;
}

.consoleFlowBody {
  display: grid;
  gap: 6px;
  padding: 8px;
}

.consoleFlowLine {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 5px;
  background: rgba(255,255,255,0.045);
  min-width: 0;
}

.consoleFlowLine.preview {
  border-left: 3px solid rgba(141,255,189,0.92);
}

.consoleFlowLine.host {
  border-left: 3px solid rgba(126,162,255,0.92);
}

.consoleFlowLine.system {
  border-left: 3px solid rgba(255,215,133,0.86);
}

.consoleFlowWho {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(126,162,255,0.14);
  color: #dbe4ff;
  border: 1px solid rgba(126,162,255,0.20);
  white-space: nowrap;
}

.consoleFlowWho.preview {
  background: rgba(141,255,189,0.11);
  border-color: rgba(141,255,189,0.22);
  color: #abffd0;
}

.consoleFlowText {
  min-width: 0;
  color: rgba(238,238,238,0.93);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.consoleFlowTime {
  opacity: 0.62;
  font-size: 11px;
  white-space: nowrap;
}

.consoleFlowDetails {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 5px;
  overflow: hidden;
  background: rgba(0,0,0,0.18);
}

.consoleFlowDetails summary {
  cursor: pointer;
  padding: 7px 9px;
  color: rgba(238,238,238,0.78);
  background: rgba(255,255,255,0.035);
  user-select: none;
}

.consoleFlowDetails summary:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.consoleFlowDetails .consoleJsonBody {
  max-height: 340px;
}

.consoleFlowNested {
  display: grid;
  gap: 5px;
}

.consoleFlowNested .consoleFlowLine {
  margin-left: clamp(0px, calc(var(--flow-depth, 0) * 14px), 56px);
}

.consoleFlowCard.isCompact .consoleJsonCard {
  display: none;
}


/* Compact icon-focused layout */
:root {
  --topbar-compact-height: 38px;
}

.topbar {
  gap: 8px;
  padding: 8px 10px;
}

.brandGroup {
  min-width: 180px;
  max-width: 360px;
}

.topbar.isCollapsed .brandMeta,
.topbar.isCollapsed .urlBox,
.topbar.isCollapsed .statusPill {
  display: none;
}

.topbar.isCollapsed {
  min-height: var(--topbar-compact-height);
  padding-top: 5px;
  padding-bottom: 5px;
}

.topbar.isCollapsed .brandGroup {
  max-width: 210px;
}

.topbar.isCollapsed h1 {
  font-size: 18px;
}

.topbarIcon,
.iconButton {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
}

.iconCheck {
  width: 38px;
  min-width: 38px;
  height: 38px;
  justify-content: center;
  padding: 0;
}

.iconCheck input {
  width: 13px;
  margin: 0;
}

.iconCheck span {
  display: none;
}

.compactDropzone {
  min-width: 58px;
  justify-content: center;
}

.compactDropzone strong {
  font-size: 15px;
}

.compactDropzone .dropHint {
  font-weight: 800;
  opacity: 0.9;
}

.topbar.isCollapsed .compactDropzone {
  min-width: 44px;
  width: 44px;
  overflow: hidden;
}

.topbar.isCollapsed .compactDropzone .dropHint {
  display: none;
}

/* Merge red preview header area into one compact line */
.previewHeader {
  display: none;
}

.previewBody {
  padding-top: 8px;
}

.previewToolbar {
  padding: 6px;
  gap: 6px;
  border-radius: 5px;
  background: rgba(255,255,255,0.045);
}

.compactPath {
  flex: 1 1 auto;
  min-height: 34px;
  margin: 0;
  padding: 7px 9px;
  font-size: 12px;
  display: flex;
  align-items: center;
}

.compactTabs {
  margin-left: auto;
  display: inline-flex;
  flex-wrap: nowrap;
}

.compactTabs button {
  width: 36px;
  min-width: 36px;
  height: 34px;
  padding: 0;
  overflow: hidden;
  text-indent: -999px;
  position: relative;
}

.compactTabs button::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-indent: 0;
  font-size: 15px;
}

#showEditorBtn::before { content: "✎"; }
#showCodeBtn::before { content: "</>"; font-size: 12px; font-weight: 800; }
#showLiveBtn::before { content: "▶"; }

.compactTabs .jsPreviewFullscreenBtn::before {
  content: "⛶";
  font-size: 16px;
  font-weight: 900;
}

.compactTabs .jsPreviewFullscreenBtn.active::before {
  content: "↙";
  font-size: 15px;
}

.compactNote {
  display: none;
}

/* Explorer tools as one clean blue line */
.explorerTools {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  padding: 7px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.explorerTools .toolRow {
  flex-wrap: nowrap;
  gap: 6px;
}

.explorerTools .toolRow:first-child {
  flex: 1 1 150px;
  min-width: 120px;
}

.explorerTools .toolRow:first-child input {
  min-width: 120px;
}

.explorerTools button {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  white-space: nowrap;
}

.explorerTools select {
  max-width: 105px;
  min-width: 92px;
  height: 32px;
  padding: 5px 8px;
}

#filterPill {
  display: none;
}

.statsLine {
  padding: 6px 10px;
  font-size: 12px;
}

.bridgeBar {
  padding: 5px 8px;
}

@media (max-width: 900px) {
  .brandMeta {
    display: none;
  }

  .urlBox {
    min-width: 140px;
    flex-basis: 170px;
  }

  .statusPill {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 560px) {
  .topbarControls {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .topbarIcon,
  .iconButton,
  .iconCheck,
  .compactDropzone {
    width: 38px;
    min-width: 38px;
  }

  .compactTabs button {
    width: 34px;
    min-width: 34px;
  }
}


/* Unterer Console-Anfasser mit gleichem Seitenabstand wie der obere Arbeitsbereich */
.consoleSplitter {
  margin-left: var(--app-gap);
  margin-right: var(--app-gap);
  width: auto;
}

.consoleSplitter::before {
  max-width: min(180px, calc(100vw - (var(--app-gap) * 4)));
}




/* Main/Panel Gap Fix:
   Der Abstand im <main class="panel"> war der eigentliche Platzfresser.
   Topbar, Workspace, Console-Splitter und Console behalten jetzt denselben rhythmischen Abstand,
   aber der große Gesamt-gap wird unten/zwischen den Blöcken deutlich kontrollierter. */
.panel {
  --main-gap-tight: clamp(4px, 0.45vw, 8px);
  gap: var(--main-gap-tight);
  padding-bottom: var(--app-pad);
}

.consoleSplitter {
  margin-left: 0;
  margin-right: 0;
  flex-basis: 14px;
  min-height: 14px;
}

.htmlConsole,
.htmlConsole.isCollapsed {
  margin-left: 0;
  margin-right: 0;
}

/* Der Griff selbst bleibt optisch eingerückt, aber nicht mehr der ganze main-flow. */
.consoleSplitter::before {
  width: min(180px, calc(100% - (var(--app-gap) * 2)));
}


/* ConsoleSplitter clean: kein zusätzlicher app-gap mehr im Griff selbst. */
.consoleSplitter {
  flex-basis: 14px;
  min-height: 14px;
}


/* ZIP-Ordner Explorer Button */
#openZipFolderBtn.isWorking {
  opacity: 0.72;
  pointer-events: none;
}

#openZipFolderBtn.isOk {
  border-color: rgba(141,255,189,0.55);
  background: rgba(141,255,189,0.14);
}

#openZipFolderBtn.isError {
  border-color: rgba(255,115,115,0.65);
  background: rgba(255,95,95,0.16);
}


/* Server ZIP folder tree mode */
.explorer.isServerFolderMode .explorerHeader::after {
  content: " · private/zips";
  opacity: 0.58;
  font-weight: 500;
}

.treeItem.serverZipFile {
  border-left: 3px solid rgba(141,255,189,0.48);
}

.treeItem.serverZipFile .icon {
  filter: drop-shadow(0 0 6px rgba(141,255,189,0.18));
}

.serverFolderHint {
  margin: 8px 10px;
  padding: 8px 10px;
  border-radius: 5px;
  border: 1px solid rgba(126,162,255,0.18);
  background: rgba(126,162,255,0.075);
  color: rgba(238,238,238,0.78);
  font-size: 12px;
  line-height: 1.35;
}

.serverFolderActions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 0;
}

.serverFolderActions button {
  padding: 7px 10px;
  border-radius: 5px;
}

/* Fensterraum-Test: kleines simples Drag-Fenster für Multi-Window-Bridge */
.roomTestWindow {
  position: fixed;
  left: 18px;
  top: 18px;
  z-index: 10000;
  width: 188px;
  border: 1px solid rgba(126, 162, 255, 0.34);
  border-radius: 5px;
  background: rgba(16, 20, 34, 0.92);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: rgba(238, 242, 255, 0.94);
  overflow: visible;
  user-select: none;
  touch-action: none;
}

.roomTestWindow::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 5px;
  pointer-events: none;
}

.roomTestHandle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  min-height: 36px;
  cursor: grab;
  background: linear-gradient(135deg, rgba(126, 162, 255, 0.22), rgba(141, 255, 189, 0.09));
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.roomTestHandle::before {
  content: "";
  position: absolute;
  inset: -12px -14px;
  border-radius: 5px 5px 5px 5px;
}

.roomTestHandle:active {
  cursor: grabbing;
}

.roomTestHandle small {
  opacity: 0.72;
  font-size: 10px;
  font-weight: 700;
}

.roomTestStatus {
  padding: 8px 10px 9px;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(238, 242, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.roomTestWindow.isDragging {
  border-color: rgba(141, 255, 189, 0.52);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(141, 255, 189, 0.12);
}

.roomTestWindow.isRoomRemoteHidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
}

.roomTestWindow.isRoomRemoteGhost {
  border-style: dashed;
  opacity: 0.78;
}

.roomTestWindow.isRoomRemoteGhost.isDragging {
  opacity: 0.95;
}

.roomTestWindow.isRoomDragReceiver {
  border-color: rgba(255, 229, 126, 0.62);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42), 0 0 0 2px rgba(255, 229, 126, 0.13);
}

.roomTestWindow.isRoomTopologyConnected {
  border-color: rgba(141, 255, 189, 0.5);
}

.roomTestWindow.isRoomTopologyConnected::before {
  content: "Screen-Verbund";
  position: absolute;
  right: 10px;
  top: -22px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(16, 20, 34, 0.82);
  border: 1px solid rgba(141, 255, 189, 0.28);
  color: rgba(214, 255, 230, 0.86);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  pointer-events: none;
  white-space: nowrap;
}

.roomTestWindow.isRoomTopologyHorizontal .roomTestHandle {
  background: linear-gradient(90deg, rgba(126, 162, 255, 0.25), rgba(141, 255, 189, 0.14));
}

.roomTestWindow.isRoomTopologyVertical .roomTestHandle {
  background: linear-gradient(180deg, rgba(126, 162, 255, 0.25), rgba(141, 255, 189, 0.14));
}

.consoleRepeat {
  margin-left: 8px;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.75;
  background: rgba(255, 255, 255, 0.08);
}

/* Multi-Screen-Verbund: ein virtuelles Layout über mehrere anliegende Browserfenster.
   Wenn zwei Fenster nebeneinanderstehen, wird die App intern so breit wie beide
   Viewports zusammen. Das rechte Fenster sieht dann nur seinen Ausschnitt davon. */
:root {
  --room-virtual-width: 100vw;
  --room-virtual-height: 100vh;
  --room-local-width: 100vw;
  --room-local-height: 100vh;
  --room-offset-x: 0px;
  --room-offset-y: 0px;
  --room-virtual-vw: 1vw;
  --room-virtual-vh: 1vh;
  --room-local-vw: 1vw;
  --room-local-vh: 1vh;
  --room-layout-scale-x: 1;
  --room-layout-scale-y: 1;
  --room-part-x: 0;
  --room-part-y: 0;
}

html.isRoomLayoutConnected,
body.isRoomLayoutConnected {
  overflow: hidden;
}

body.isRoomLayoutConnected .panel {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--room-virtual-width);
  height: var(--room-virtual-height);
  transform: translate(calc(var(--room-offset-x) * -1), calc(var(--room-offset-y) * -1));
  transform-origin: left top;
  will-change: transform;
}

body.isRoomLayoutConnected .topbar::after {
  content: "Virtueller Screen " attr(data-room-layout);
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  padding: 0 10px;
  border-radius: 5px;
  border: 1px solid rgba(141, 255, 189, 0.22);
  background: rgba(141, 255, 189, 0.08);
  color: rgba(214, 255, 230, 0.82);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

body.isRoomLayoutHorizontal .workspace {
  grid-template-columns: none;
}

body.isRoomLayoutHorizontal .splitter {
  /* Im virtuellen Screen bleibt der Seiten-Anfasser Teil des gemeinsamen Layouts.
     Die Breite selbst kommt aus dem geteilten --explorer-width-State. */
}

body.isRoomLayoutVertical .panel {
  min-height: var(--room-virtual-height);
}


.networkChatWindow {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: min(440px, calc(100vw - 24px));
  max-height: min(680px, calc(100vh - 24px));
  border: 1px solid rgba(141, 255, 189, 0.24);
  border-radius: 5px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(141, 255, 189, 0.18), transparent 36%),
    radial-gradient(circle at 88% 20%, rgba(113, 168, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(17, 25, 31, 0.96), rgba(7, 10, 14, 0.96));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
}

.networkChatWindow.isDragging {
  user-select: none;
}

.networkChatWindowHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 9px 10px 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(90deg, rgba(141, 255, 189, 0.10), rgba(113, 168, 255, 0.07));
  cursor: grab;
}

.networkChatWindow.isDragging .networkChatWindowHeader {
  cursor: grabbing;
}

.networkChatTitle {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.networkChatTitle strong {
  letter-spacing: 0.02em;
}

.networkChatWindowActions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.networkChatWindow.isCollapsed .networkChat {
  display: none;
}

.networkChat {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 10px;
  min-height: 400px;
  max-height: calc(min(680px, 100vh - 24px) - 42px);
}

.networkChatTabs,
.networkChatIdentityBar,
.networkChatAuthForm,
.networkChatForm,
.networkChatMessage header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.networkChatTabs {
  padding: 3px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.16);
}

.networkChatTab {
  flex: 1 1 0;
  min-height: 31px;
  border-radius: 5px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(236, 247, 255, 0.72);
  font-weight: 800;
}

.networkChatTab.isActive {
  color: #effff6;
  border-color: rgba(141, 255, 189, 0.22);
  background: linear-gradient(180deg, rgba(141, 255, 189, 0.14), rgba(113, 168, 255, 0.09));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

#networkChatOnlineBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 5px;
  background: rgba(141, 255, 189, 0.18);
  border: 1px solid rgba(141, 255, 189, 0.24);
  font-size: 11px;
}

.networkChatStatus {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(255,255,255,0.055);
  font-size: 11px;
  opacity: 0.9;
}

.networkChatStatus.isOk {
  color: #d9ffe8;
  border-color: rgba(141, 255, 189, 0.26);
  background: rgba(141, 255, 189, 0.08);
}

.networkChatStatus.isError {
  color: #ffd7d7;
  border-color: rgba(255, 120, 120, 0.35);
  background: rgba(255, 80, 80, 0.08);
}

.networkChatStatus.isLoading {
  color: #dfe8ff;
  border-color: rgba(140,170,255,0.26);
  background: rgba(120,160,255,0.08);
}

.networkChatPanel {
  flex: 1 1 auto;
  min-height: 0;
}

.networkChatPanel.isActive {
  display: flex;
  flex-direction: column;
}

.networkChatIdentityBar {
  justify-content: space-between;
  min-height: 31px;
  padding: 6px 8px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.16);
}

.networkChatIdentity {
  font-size: 12px;
  opacity: 0.92;
}

.networkChatIdentity.isUser {
  color: #d9ffe8;
}

.networkChatIdentity.isGuest {
  color: #dfe8ff;
}

.networkChatLogoutBtn {
  flex: 0 0 auto;
}

.networkChatAuthForm[hidden],
.networkChatLogoutBtn[hidden] {
  display: none !important;
}

.networkChatAuthForm input {
  min-width: 0;
}

#networkChatUsername,
#networkChatPassword {
  flex: 1 1 120px;
}

.networkChatAuthForm button,
.networkChatForm button {
  flex: 0 0 auto;
}

.networkChatMessages,
.networkChatOnlineList {
  flex: 1 1 auto;
  min-height: 210px;
  overflow: auto;
  padding: 9px;
  border-radius: 5px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.08);
}

.networkChatMessage {
  padding: 8px 10px;
  border-radius: 5px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 7px;
  word-break: break-word;
}

.networkChatMessage.isOwn {
  margin-left: 26px;
  background: rgba(140,170,255,0.115);
  border-color: rgba(140,170,255,0.22);
}

.networkChatMessage.isUser {
  border-color: rgba(141, 255, 189, 0.20);
}

.networkChatType {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  font-size: 10px;
  opacity: 0.76;
}

.networkChatMessage header {
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 12px;
}

.networkChatMessage time {
  opacity: 0.62;
  font-size: 11px;
  white-space: nowrap;
}

.networkChatOnlineSummary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 5px;
  border: 1px solid rgba(141, 255, 189, 0.14);
  background: rgba(141, 255, 189, 0.06);
}

.networkChatOnlineSummary span {
  opacity: 0.72;
  font-size: 12px;
}

.networkChatOnlineItem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  margin-bottom: 7px;
}

.networkChatOnlineItem.isOwn {
  border-color: rgba(140,170,255,0.24);
  background: rgba(140,170,255,0.10);
}

.networkChatOnlineItem.isUser {
  border-color: rgba(141, 255, 189, 0.20);
}

.networkChatSyncStatus {
  margin: -2px 0 8px;
  padding: 7px 10px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.16);
  color: rgba(236,247,255,0.72);
  font-size: 12px;
}

.networkChatSyncStatus.isLinked {
  color: #d9ffe8;
  border-color: rgba(141, 255, 189, 0.22);
  background: rgba(141, 255, 189, 0.07);
}

.networkChatSyncStatus.isGuest {
  color: #dfe8ff;
  border-color: rgba(140,170,255,0.20);
  background: rgba(140,170,255,0.06);
}

.networkChatOnlineItem.isLinked {
  box-shadow: inset 0 0 0 1px rgba(141, 255, 189, 0.12), 0 0 18px rgba(141, 255, 189, 0.06);
}

.networkChatOnlineDot {
  width: 8px;
  height: 8px;
  border-radius: 5px;
  background: #8dffbd;
  box-shadow: 0 0 10px rgba(141, 255, 189, 0.65);
  flex: 0 0 auto;
}

.networkChatOnlineItem strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.networkChatOnlineItem small {
  margin-left: auto;
  opacity: 0.62;
  white-space: nowrap;
}

.networkChatForm input[type="text"] {
  min-width: 0;
  outline: none;
}

#networkChatInput {
  flex: 1 1 auto;
}

.empty.compact {
  padding: 8px;
  opacity: 0.62;
  font-size: 12px;
}

.htmlConsole.isCollapsed .bridgeBar {
  display: none;
}

@media (max-width: 760px) {
  .networkChatWindow {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
  }

  .networkChatAuthForm,
  .networkChatForm,
  .networkChatIdentityBar,
  .networkChatTitle {
    flex-wrap: wrap;
  }

  #networkChatInput {
    flex: 1 1 100%;
    order: -1;
  }
}

/* Allgemeine Window-UI-Basis: Chat nutzt diese Schicht jetzt statt eigener Drag-Sonderlogik. */
.celestiaWindowUI {
  touch-action: none;
}

.celestiaWindowUIHeader {
  user-select: none;
}

.celestiaWindowUI.isClosed {
  display: none !important;
}

.networkChatOnlineItem {
  flex-direction: column;
  align-items: stretch;
}

.networkChatOnlineMain {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.networkChatOnlineMain small {
  margin-left: auto;
  opacity: 0.62;
  white-space: nowrap;
}

.networkChatOnlineMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-left: 16px;
  padding-top: 6px;
}

.networkChatOnlineMeta span {
  max-width: 100%;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.18);
  color: rgba(236,247,255,0.62);
  font-size: 10px;
  line-height: 1.25;
}

/* Multiscreen Window-UI Diagnose/Übergabe: sichtbar machen, ob ein Fenster lokal, im Übergang oder auf anderem Screen liegt. */
.celestiaWindowUI.isWindowUiHandoff {
  outline: 1px dashed rgba(141, 255, 189, 0.38);
  outline-offset: -2px;
}

.celestiaWindowUI.isWindowUiRemote {
  opacity: 0.82;
}

.celestiaWindowUI.isWindowUiOwner .celestiaWindowUIHeader::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 5px;
  background: rgba(141, 255, 189, 0.72);
  box-shadow: 0 0 10px rgba(141, 255, 189, 0.55);
  margin-left: auto;
}

/* 2026-06-04: kantigeres, kompakteres UI + moderner Netzwerk-Chat */
:root {
  --ui-radius-sm: 5px;
  --ui-radius-md: 5px;
  --ui-radius-lg: 5px;
  --chat-accent: rgba(108, 192, 160, 0.92);
  --chat-accent-soft: rgba(108, 192, 160, 0.12);
}

button,
select,
input[type="search"],
input[type="text"],
input[type="password"],
.dropzone,
.statusPill,
.urlBox,
.explorer,
.preview,
.htmlConsole,
.previewToolbar,
.compactPath,
.bridgeBar input,
.bridgeBar button,
.consoleEntry,
.roomTestWindow,
.roomTestHandle {
  border-radius: var(--ui-radius-md) !important;
}

button {
  min-height: 30px;
  padding: 5px 9px;
  line-height: 1.1;
  background: linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.045));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.055);
}

button:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.145), rgba(255,255,255,0.07));
}

button:active {
  transform: translateY(1px);
}

.btnGlyph {
  display: inline-grid;
  place-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 900;
  line-height: 1;
  color: currentColor;
}

.btnText {
  display: inline-block;
  line-height: 1;
}

.topbarIcon,
.iconButton,
.iconCheck {
  width: 32px;
  min-width: 32px;
  height: 32px;
  border-radius: var(--ui-radius-md) !important;
  font-size: 14px;
}

.compactDropzone {
  min-width: 45px;
  height: 32px;
  min-height: 32px;
  padding: 0 8px;
  gap: 5px;
  border-radius: var(--ui-radius-md) !important;
}

.compactDropzone strong,
.compactDropzone .dropHint {
  font-size: 12px;
}

.explorerTools button,
.compactTabs button,
.htmlConsoleActions .iconButton {
  width: 30px;
  min-width: 30px;
  height: 30px;
  border-radius: var(--ui-radius-sm) !important;
}

.htmlConsoleActions button,
.bridgeBar button,
.consoleTab {
  min-height: 28px;
  padding: 4px 8px;
  border-radius: var(--ui-radius-sm) !important;
}

.networkChatWindow {
  width: min(400px, calc(100vw - 24px));
  border-radius: 5px !important;
  border-color: rgba(120, 190, 170, 0.25);
  background:
    linear-gradient(180deg, rgba(22, 27, 31, 0.97), rgba(10, 13, 17, 0.985));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255,255,255,0.055);
  backdrop-filter: blur(16px);
}

.networkChatWindowHeader {
  min-height: 36px;
  padding: 6px 8px 6px 10px;
  border-bottom-color: rgba(120, 190, 170, 0.16);
  background: linear-gradient(90deg, rgba(75, 116, 106, 0.22), rgba(27, 34, 42, 0.22));
}

.networkChatTitle {
  gap: 7px;
}

.networkChatTitle strong {
  font-size: 13px;
  letter-spacing: 0.01em;
}

.networkChatWindowActions {
  gap: 5px;
}

.networkChatWindowActions .iconButton {
  width: 28px;
  min-width: 28px;
  height: 28px;
}

.networkChat {
  gap: 7px;
  padding: 8px;
  min-height: 350px;
  max-height: calc(min(640px, 100vh - 24px) - 36px);
}

.networkChatTabs,
.networkChatIdentityBar,
.networkChatAuthForm,
.networkChatForm,
.networkChatMessages,
.networkChatOnlineList,
.networkChatMessage,
.networkChatOnlineSummary,
.networkChatOnlineItem,
.networkChatSyncStatus {
  border-radius: var(--ui-radius-lg) !important;
}

.networkChatTabs {
  gap: 4px;
  padding: 3px;
  background: rgba(0, 0, 0, 0.24);
}

.networkChatTab {
  min-height: 28px;
  padding: 4px 8px;
  border-radius: var(--ui-radius-md) !important;
  font-size: 12px;
}

.networkChatTab.isActive {
  background: linear-gradient(180deg, rgba(108, 192, 160, 0.18), rgba(75, 126, 160, 0.10));
  border-color: rgba(108, 192, 160, 0.26);
}

#networkChatOnlineBadge,
.networkChatStatus,
.networkChatType {
  border-radius: var(--ui-radius-sm) !important;
}

#networkChatOnlineBadge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
}

.networkChatStatus {
  max-width: 175px;
  padding: 2px 6px;
  font-size: 10px;
}

.networkChatMessages,
.networkChatOnlineList {
  min-height: 190px;
  padding: 7px;
  background: linear-gradient(180deg, rgba(0,0,0,0.30), rgba(0,0,0,0.22));
}

.networkChatMessage,
.networkChatOnlineItem {
  padding: 7px 8px;
  margin-bottom: 6px;
}

.networkChatIdentityBar {
  min-height: 28px;
  padding: 5px 7px;
  background: rgba(0,0,0,0.22);
}

.networkChatIdentity,
.networkChatMessage header,
.networkChatOnlineSummary span,
.networkChatSyncStatus {
  font-size: 11px;
}

.networkChatAuthForm,
.networkChatForm {
  gap: 6px;
}

.networkChatAuthForm input,
.networkChatForm input[type="text"] {
  min-height: 30px;
  padding: 5px 7px;
  border-radius: var(--ui-radius-sm) !important;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.07);
  color: #f1f6f5;
}

#networkChatUsername,
#networkChatPassword {
  flex: 1 1 90px;
}

.networkChatAuthForm button,
.networkChatForm button,
.networkChatLogoutBtn {
  min-height: 30px;
  padding: 5px 8px;
  border-radius: var(--ui-radius-sm) !important;
  font-size: 12px;
  font-weight: 750;
}

.networkChatAuthForm button,
.networkChatLogoutBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.chatIconButton {
  width: 32px !important;
  min-width: 32px !important;
  height: 30px !important;
  padding: 0 !important;
  font-size: 13px;
}

#networkChatSendBtn {
  color: #eafff7;
  border-color: rgba(108, 192, 160, 0.38);
  background: linear-gradient(180deg, rgba(108, 192, 160, 0.24), rgba(108, 192, 160, 0.10));
}

#networkChatClearBtn {
  color: #ffe7e7;
  border-color: rgba(255, 130, 130, 0.30);
  background: linear-gradient(180deg, rgba(255, 130, 130, 0.14), rgba(255, 130, 130, 0.055));
}

#networkChatInput {
  flex: 1 1 auto;
}

@media (max-width: 760px) {
  .networkChatWindow {
    border-radius: 5px !important;
  }

  .networkChatForm {
    flex-wrap: nowrap;
  }

  #networkChatInput {
    flex: 1 1 auto;
  }
}

/* 2026-06-04: Raum-Fenster als sichtbares Testfenster entfernen; Status wandert in die Window-UI. */
.roomTestWindowHidden {
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.roomTestWindowHidden::before,
.roomTestWindowHidden::after,
.roomTestWindowHidden .roomTestHandle,
.roomTestWindowHidden .roomTestStatus {
  display: none !important;
}

.networkChatWindowHeader {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.networkChatWindowHeader > .networkChatStatus {
  grid-column: 1;
  justify-self: start;
  max-width: 132px;
  white-space: nowrap;
}

.networkChatWindowHeader > .networkChatTitle {
  grid-column: 2;
  min-width: 0;
}

.networkChatWindowHeader > .networkChatWindowActions {
  grid-column: 3;
  justify-self: end;
  margin-left: auto;
}

.networkChatRoomInfo {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: rgba(226, 238, 244, 0.62);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.1;
}

.networkChatRoomInfo small {
  flex: 0 0 auto;
  padding: 1px 4px;
  border-radius: var(--ui-radius-sm);
  border: 1px solid rgba(120, 190, 170, 0.22);
  color: rgba(214, 255, 238, 0.72);
  background: rgba(120, 190, 170, 0.08);
  font-size: 9px;
  font-weight: 800;
}

.networkChatRoomInfo span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .networkChatWindowHeader {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px;
  }

  .networkChatRoomInfo span {
    max-width: 145px;
  }
}

.topbarAuthBtn {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.07);
  color: #eef2ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.topbarAuthBtn:hover,
.topbarChatBtn:hover {
  background: rgba(126, 242, 194, 0.16);
  border-color: rgba(126, 242, 194, 0.35);
}

.topbarAuthBtn.isLoggedIn {
  background: rgba(126, 242, 194, 0.12);
  border-color: rgba(126, 242, 194, 0.38);
}

/* ACL Main-View Admin Modul */
.aclAdminTopbarBtn{gap:6px}
.aclAdminView{display:grid;gap:14px;width:100%;color:var(--text,#e5edf8)}
.aclAdminHeader,.aclAdminCardHead{display:flex;align-items:center;justify-content:space-between;gap:12px}
.aclAdminHeader h2,.aclAdminCard h3{margin:0}.aclAdminHeader p{margin:.3rem 0 0;color:var(--muted,#92a4bb)}
.aclReloadBtn{border:1px solid #38bdf8;border-radius:5px;background:#0ea5e9;color:#03111d;font-weight:800;padding:8px 11px;cursor:pointer}
.aclAdminNotice,.aclAdminState{border:1px solid #253247;background:#020617aa;border-radius:5px;padding:11px;color:var(--muted,#92a4bb)}
.aclAdminNotice.ok{border-color:#22c55e77;color:#86efac}.aclAdminNotice.bad,.aclAdminStateBad{border-color:#fb718577;color:#ff9aae}
.aclAdminCard{border:1px solid #253247;background:#02061788;border-radius:5px;padding:14px;display:grid;gap:12px}
.aclAdminCardHead span,.aclMini,.aclSaveState,.aclRouteModuleHead span,.aclMuted{color:var(--muted,#92a4bb);font-size:12px}.aclAdminCardHead label{display:flex;align-items:center;gap:8px;color:var(--muted,#92a4bb)}
.aclAdminCard select{border:1px solid #253247;border-radius:5px;background:#020617;color:var(--text,#e5edf8);padding:8px 10px;min-width:180px}
.aclUserList{display:grid;gap:8px}.aclUserRow{display:grid;grid-template-columns:1fr minmax(180px,260px) 76px;align-items:center;gap:10px;border:1px solid #25324799;background:#0004;border-radius:5px;padding:10px}
.aclUserRow strong{display:block}.aclUserRow small{display:block;color:var(--muted,#92a4bb);font-size:12px;margin-top:2px}.aclMini[data-mode=ok],.aclSaveState[data-mode=ok]{color:#86efac}.aclMini[data-mode=bad],.aclSaveState[data-mode=bad]{color:#ff9aae}.aclMini[data-mode=saving],.aclSaveState[data-mode=saving]{color:#7dd3fc}
.aclRoleEditor{display:grid;gap:10px}.aclRouteModule{border:1px solid #25324799;border-radius:5px;background:#0004;overflow:hidden}.aclRouteModuleHead{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid #25324799;background:#0f172acc}.aclRouteGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px;padding:10px}.aclRouteCheck{display:flex;align-items:flex-start;gap:8px;border:1px solid #25324780;border-radius:5px;padding:8px;background:#02061788}.aclRouteCheck span{display:grid}.aclRouteCheck small{color:var(--muted,#92a4bb);font-size:11px;margin-top:2px}.aclRouteCheck input:disabled+span{opacity:.65}
@media(max-width:760px){.aclAdminHeader,.aclAdminCardHead{align-items:flex-start;flex-direction:column}.aclUserRow{grid-template-columns:1fr}.aclAdminCard select{width:100%}}
.aclRoleCrudCard{gap:12px}
.aclRoleCreate{display:grid;grid-template-columns:minmax(120px,180px) minmax(160px,1fr) minmax(160px,1.2fr) auto 64px;gap:8px;align-items:center;border:1px solid #25324799;background:#0004;border-radius:5px;padding:10px}
.aclRoleCreate input,.aclRoleRow input[type=text]{border:1px solid #253247;border-radius:5px;background:#020617;color:var(--text,#e5edf8);padding:8px 10px;min-width:0}
.aclRoleCreate button,.aclRoleActions button,.aclReloadBtn{border:1px solid #334155;border-radius:5px;background:#0f172a;color:var(--text,#e5edf8);padding:8px 11px;cursor:pointer}.aclRoleCreate button:hover,.aclRoleActions button:hover,.aclReloadBtn:hover{border-color:#64748b;background:#172033}.aclRoleActions button:disabled,.aclRoleCreate button:disabled{opacity:.45;cursor:not-allowed}
.aclRoleList{display:grid;gap:8px}.aclRoleRow{display:grid;grid-template-columns:minmax(150px,1fr) minmax(150px,220px) minmax(170px,1fr) auto auto 72px;align-items:center;gap:8px;border:1px solid #25324799;background:#0004;border-radius:5px;padding:10px}.aclRoleRow.isInactive{opacity:.72;background:#02061766}.aclRoleRowMain strong{display:block}.aclRoleRowMain small{display:block;color:var(--muted,#92a4bb);font-size:12px;margin-top:2px}.aclRoleActive{display:flex;align-items:center;gap:6px;color:var(--muted,#92a4bb);font-size:12px;white-space:nowrap}.aclRoleActions{display:flex;gap:6px}.aclRoleActions button[data-role-delete]{border-color:#7f1d1d;color:#fecaca}.aclRoleActions button[data-role-delete]:hover{background:#450a0a}
@media(max-width:980px){.aclRoleCreate,.aclRoleRow{grid-template-columns:1fr}.aclRoleActions{justify-content:flex-start}}

.mailTopbarBtn{gap:6px}
.mailAdminView{display:grid;gap:14px;width:100%;color:var(--text,#e5edf8)}
.mailAdminHeader,.mailAdminCardHead{display:flex;align-items:center;justify-content:space-between;gap:12px}
.mailAdminHeader h2,.mailAdminCard h3{margin:0}.mailAdminHeader p{margin:.3rem 0 0;color:var(--muted,#92a4bb)}
.mailAdminActions{display:flex;gap:8px;flex-wrap:wrap}.mailAdminActions button,.mailAccountForm button{border:1px solid #334155;border-radius:5px;background:#0f172a;color:#e5edf8;padding:8px 12px;cursor:pointer}.mailAdminActions button:hover,.mailAccountForm button:hover{background:#172554}.mailAdminActions button:disabled{opacity:.45;cursor:not-allowed}
.mailAdminCard,.mailAdminState{border:1px solid #253247;background:#02061788;border-radius:5px;padding:14px;display:grid;gap:12px}.mailAdminState{color:var(--muted,#92a4bb)}.mailAdminStateBad{border-color:#fb718577;color:#ff9aae}
.mailAdminCardHead span,.mailMini{color:var(--muted,#92a4bb);font-size:12px}.mailAccountForm{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;align-items:end}.mailAccountForm label{display:grid;gap:5px;color:var(--muted,#92a4bb);font-size:12px}.mailAccountForm input,.mailAccountForm select{border:1px solid #253247;border-radius:5px;background:#020617;color:var(--text,#e5edf8);padding:8px 10px;min-width:0}.mailAccountForm button{min-height:38px}.mailInboxList{display:grid;gap:8px}.mailInboxRow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #1e293b;background:#02061777;border-radius:5px;padding:10px 12px}.mailInboxRow.isUnread{border-color:#38bdf855;background:#082f4966}.mailInboxMain{display:grid;gap:3px;min-width:0}.mailInboxMain strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mailInboxMain small,.mailInboxMeta{color:var(--muted,#92a4bb);font-size:12px}.mailInboxMeta{display:flex;gap:8px;align-items:center;white-space:nowrap}
@media(max-width:760px){.mailAdminHeader,.mailAdminCardHead{align-items:flex-start;flex-direction:column}.mailInboxRow{grid-template-columns:1fr}.mailInboxMeta{white-space:normal;flex-wrap:wrap}}
.mailDiagBlock{margin-top:8px;border:1px solid #7f1d1d55;border-radius:5px;padding:8px;background:#450a0a33;color:#fecdd3}.mailDiagBlock ul{margin:6px 0 0 18px;padding:0}.mailDiagBlock li{margin:3px 0}.mailAdminState details{margin-top:8px}.mailAdminState summary{cursor:pointer;color:#fecdd3}

/* Admin Mail Explorer + Inbox Detail */
.explorer.isMailMode .explorerTools{opacity:.55}
.explorer.isMailMode #typeFilter,.explorer.isMailMode #sortSelect{pointer-events:none}
.mailExplorerRoot{display:grid;gap:8px;padding:2px 0 10px}
.mailExplorerSectionTitle{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted,#92a4bb);padding:8px 10px 2px}
.mailExplorerFolder,.mailExplorerMessage{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center;border:1px solid transparent;border-radius:5px;padding:8px 9px;cursor:pointer;color:var(--text,#e5edf8)}
.mailExplorerFolder:hover,.mailExplorerMessage:hover{background:#0f172a99;border-color:#334155}
.mailExplorerFolder.isActive,.mailExplorerMessage.isActive{background:#082f4966;border-color:#38bdf877}
.mailExplorerMessage.isUnread{font-weight:700}.mailExplorerMessage.isUnread .icon{color:#38bdf8}.mailExplorerMessage.isSeen{opacity:.82}
.mailExplorerMessageText{display:grid;gap:2px;min-width:0}.mailExplorerMessageText strong,.mailExplorerMessageText small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mailExplorerMessageText small{font-size:11px;color:var(--muted,#92a4bb);font-weight:400}
.mailAccountDetails summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;color:var(--text,#e5edf8)}
.mailAccountDetails summary span{color:var(--muted,#92a4bb);font-size:12px}.mailAccountDetails .mailAccountForm{margin-top:12px}
.mailInboxRow{width:100%;text-align:left;appearance:none;font:inherit;color:inherit;cursor:pointer}.mailInboxRow.isActive{border-color:#38bdf899;background:#082f49aa}.mailInboxRow:hover{border-color:#64748b;background:#0f172acc}
.mailInboxCard .mailInboxList{max-height:38vh;overflow:auto;padding-right:2px}.mailMessageDetail{min-height:280px}.mailMessageHead{display:grid;gap:8px}.mailMessageHead h3{margin:0;font-size:18px}.mailMessageMeta{display:grid;gap:4px;color:var(--muted,#92a4bb);font-size:12px}.mailMessageBody{white-space:pre-wrap;word-break:break-word;overflow:auto;max-height:54vh;margin:0;border:1px solid #1e293b;border-radius:5px;background:#020617cc;color:#dbeafe;padding:14px;line-height:1.45;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:13px}
@media(max-width:900px){.mailInboxCard .mailInboxList{max-height:none}.mailMessageBody{max-height:none}}
.mailMessageToolbar{display:flex;gap:8px;align-items:center;margin-top:4px}.mailMessageToolbar button{border:1px solid #27405f;background:#08111f;color:#dbeafe;border-radius:5px;padding:6px 10px;cursor:pointer}.mailMessageToolbar button.isActive{background:#0c4a6e;border-color:#38bdf8;color:#fff}.mailMessageToolbar button:disabled{opacity:.45;cursor:not-allowed}.mailMessageHtmlFrame{width:100%;min-height:54vh;max-height:70vh;border:1px solid #1e293b;border-radius:5px;background:#fff;color:#111;display:block}.mailExplorerFolder .name{word-break:break-word}
@media(max-width:900px){.mailMessageHtmlFrame{min-height:60vh;max-height:none}}
.mailComposeCard{border-color:#38bdf855;background:#07111f99}.mailComposeForm{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.mailComposeForm label{display:grid;gap:5px;color:var(--muted,#92a4bb);font-size:12px}.mailComposeForm input,.mailComposeForm textarea{border:1px solid #253247;border-radius:5px;background:#020617;color:var(--text,#e5edf8);padding:9px 10px;min-width:0}.mailComposeForm textarea{resize:vertical;line-height:1.45}.mailComposeBodyLabel{grid-column:1/-1}.mailInlineCheck{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:8px}.mailComposeActions{grid-column:1/-1;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.mailComposeActions button,.mailAdminCardHead button{border:1px solid #334155;border-radius:5px;background:#0f172a;color:#e5edf8;padding:8px 12px;cursor:pointer}.mailComposeActions button:hover,.mailAdminCardHead button:hover{background:#172554}.mailComposeActions button:disabled{opacity:.55;cursor:not-allowed}.mailMessageToolbar [data-mail-delete]{border-color:#7f1d1d;background:#451a1a;color:#fecaca}.mailMessageToolbar [data-mail-delete]:hover{background:#7f1d1d;color:#fff}
.mailAccountToolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}
.mailAccountToolbar button,.mailAccountEditBtn,.mailAccountSwitch{border:1px solid #334155;border-radius:5px;background:#0f172a;color:#e5edf8;padding:8px 10px;cursor:pointer}
.mailAccountToolbar button:hover,.mailAccountEditBtn:hover,.mailAccountSwitch:hover{background:#172554}
.mailAccountSwitchList{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch;margin-top:12px}
.mailAccountSwitch{display:grid;gap:2px;text-align:left;min-width:0}
.mailAccountSwitch strong,.mailAccountSwitch small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mailAccountSwitch small{color:var(--muted,#92a4bb);font-size:12px;font-weight:400}.mailAccountSwitch span{color:#67e8f9;font-size:11px;text-transform:uppercase;letter-spacing:.06em}.mailAccountSwitch.isActive{background:#082f4966;border-color:#38bdf877}.mailAccountEditBtn{font-size:12px;align-self:center}
.mailExplorerAccount{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center;border:1px solid transparent;border-radius:5px;padding:8px 9px;cursor:pointer;color:var(--text,#e5edf8);background:transparent;text-align:left}.mailExplorerAccount:hover{background:#0f172a99;border-color:#334155}.mailExplorerAccount.isActive{background:#082f4966;border-color:#38bdf877}.mailExplorerAccount span:nth-child(2){display:grid;gap:2px;min-width:0}.mailExplorerAccount strong,.mailExplorerAccount small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mailExplorerAccount small{font-size:11px;color:var(--muted,#92a4bb);font-weight:400}.mailExplorerAccount em{font-style:normal;color:#67e8f9;font-size:11px}

.mailMainTabs{display:flex;gap:8px;flex-wrap:wrap;border:1px solid #253247;background:#02061766;border-radius:5px;padding:6px;width:max-content;max-width:100%}
.mailMainTabs button{border:1px solid transparent;border-radius:5px;background:transparent;color:var(--muted,#92a4bb);padding:8px 14px;cursor:pointer;font:inherit;font-weight:700}
.mailMainTabs button:hover{background:#0f172a;border-color:#334155;color:var(--text,#e5edf8)}
.mailMainTabs button.isActive{background:#082f4966;border-color:#38bdf877;color:#e0f2fe}
.mailMainPane{display:grid;gap:14px;min-width:0}
.mailMainPane-mail .mailMessageDetail{min-height:56vh}
.mailMainPane-accounts .mailAccountDetails{min-height:56vh}

/* 2026-06-04: kompakter Mailbaum + Main-Toolbar */
.mailAdminCompactBar{display:grid;grid-template-columns:minmax(180px,1fr) auto auto;gap:10px;align-items:center;border:1px solid #253247;background:#02061766;border-radius:5px;padding:8px 10px;margin-bottom:12px}
.mailAdminTitle{display:flex;align-items:baseline;gap:10px;min-width:0}.mailAdminTitle h2{margin:0;font-size:19px;white-space:nowrap}.mailAdminTitle span{color:var(--muted,#92a4bb);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.mailAdminCompactBar .mailMainTabs{width:auto;padding:4px;border-radius:5px}.mailAdminCompactBar .mailMainTabs button{padding:6px 10px;border-radius:5px;font-size:13px}.mailAdminCompactBar .mailAdminActions{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}.mailAdminCompactBar .mailAdminActions button{padding:7px 10px;border-radius:5px;white-space:nowrap}
.mailExplorerTreeMode{gap:6px}.mailExplorerAccountBlock{display:grid;gap:5px}.mailExplorerAccountBlock.isOpen{border:1px solid #1e3a5f;background:#02061744;border-radius:5px;padding:5px}.mailExplorerAccountBlock.isOpen .mailExplorerAccount{margin:0}.mailExplorerAccountMeta{color:var(--muted,#92a4bb);font-size:11px;padding:0 10px 2px 34px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mailExplorerFolderTree{display:grid;gap:3px;padding-left:10px;border-left:1px solid #1e293b;margin-left:13px}.mailExplorerFolderBlock{display:grid;gap:3px}.mailExplorerFolder{width:100%;background:transparent;text-align:left}.mailExplorerMessagesUnderFolder{display:grid;gap:3px;margin-left:18px;padding-left:8px;border-left:1px dashed #334155}.mailExplorerMessagesUnderFolder .mailExplorerMessage{padding:6px 7px;border-radius:5px;grid-template-columns:auto minmax(0,1fr)}.mailExplorerMessagesUnderFolder .mailExplorerMessageText strong{font-size:12px}.mailExplorerMessagesUnderFolder .mailExplorerMessageText small{font-size:10.5px}.mailExplorerInlineEmpty{padding:7px 8px;margin:0;font-size:12px}.mailExplorerRoot .mailExplorerSectionTitle,.mailExplorerRoot .serverFolderHint{display:none}
@media(max-width:900px){.mailAdminCompactBar{grid-template-columns:1fr}.mailAdminTitle{align-items:flex-start;flex-direction:column;gap:2px}.mailAdminCompactBar .mailAdminActions,.mailAdminCompactBar .mailMainTabs{justify-self:start;flex-wrap:wrap}}

/* Admin-Mail: neue Mail Benachrichtigung */
.mailTopbarBtn{position:relative}.mailTopbarBtn .mailTopbarBadge{position:absolute;right:-6px;top:-7px;min-width:18px;height:18px;padding:0 5px;border-radius:5px;background:#ef4444;color:#fff;font-size:11px;font-weight:800;line-height:18px;text-align:center;box-shadow:0 0 0 2px #111827;display:none}.mailTopbarBtn.hasMailNotify .mailTopbarBadge{display:inline-block}.mailTopbarBtn.hasMailNotify{border-color:#38bdf8;background:#082f49}.mailNotifyToast{position:fixed;right:18px;top:86px;z-index:9999;display:grid;gap:3px;max-width:min(380px,calc(100vw - 36px));border:1px solid #38bdf877;border-radius:5px;background:#020617ee;color:#e5edf8;padding:12px 14px;text-align:left;box-shadow:0 18px 55px #0009,0 0 35px #0284c755;opacity:0;transform:translateY(-10px);pointer-events:none;transition:opacity .18s ease,transform .18s ease}.mailNotifyToast.isVisible{opacity:1;transform:translateY(0);pointer-events:auto}.mailNotifyToast strong{font-size:14px}.mailNotifyToast span{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mailNotifyToast small{color:var(--muted,#92a4bb);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mailAdminCompactBar .mailAdminActions [data-mail-notify-toggle].isActive{border-color:#38bdf877;background:#083344;color:#dff7ff}
.mailAdminStateGood{border-color:#22c55e77;color:#bbf7d0;background:#052e1633}.mailAccountFormActions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.mailSmtpTestState:empty{display:none}.mailSmtpTestState .mailAdminState{margin-top:8px}.mailComposeActions [data-mail-send-state] .mailDiagBlock{margin-top:6px}

/* Mail notifier: sichtbarer lokaler Alert unten links + Kugel */
.mailNotifyToast{left:18px!important;right:auto!important;top:auto!important;bottom:74px!important;display:grid!important;grid-template-columns:auto 1fr!important;align-items:center!important;gap:10px!important;min-width:min(420px,calc(100vw - 36px));border-color:#22d3eeaa!important;background:linear-gradient(135deg,#02111fee,#071b34f2)!important;box-shadow:0 18px 55px #000a,0 0 28px #06b6d477!important;transform:translateX(-12px)!important}.mailNotifyToast.isVisible{transform:translateX(0)!important}.mailNotifyOrb{width:38px;height:38px;border-radius:5px;display:grid;place-items:center;background:#0ea5e9;color:white;font-size:20px;font-weight:900;box-shadow:0 0 0 4px #0ea5e922,0 0 24px #38bdf8aa;animation:mailNotifyPulse 1.15s ease-in-out infinite}.mailNotifyText{display:grid;gap:3px;min-width:0}.mailNotifyText strong{font-size:14px}.mailNotifyText span,.mailNotifyText small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mailNotifyText small{color:var(--muted,#92a4bb)}@keyframes mailNotifyPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}

/* 2026-06-04: Mail notify toast oben rechts und klickbar halten. */
.mailNotifyToast{
  left:auto!important;
  right:18px!important;
  top:86px!important;
  bottom:auto!important;
  cursor:pointer!important;
  transform:translateY(-10px)!important;
}
.mailNotifyToast.isVisible{transform:translateY(0)!important}
.mailNotifyToast:hover{border-color:#67e8f9!important;box-shadow:0 18px 55px #000a,0 0 36px #38bdf8aa!important}

/* 2026-06-04: Mail Main UX - Übersicht im Main, flache Konten, Entwurf-Tabs. */
.mailAdminCompactBar{grid-template-columns:minmax(160px,auto) minmax(260px,1fr) auto!important;align-items:center!important}
.mailAdminCompactBar .mailMainTabs{width:100%!important;overflow-x:auto;flex-wrap:nowrap!important;scrollbar-width:thin}
.mailAdminCompactBar .mailMainTabs button{white-space:nowrap;max-width:220px;overflow:hidden;text-overflow:ellipsis;display:inline-flex;align-items:center;gap:6px}
.mailTabClose{display:inline-grid;place-items:center;width:16px;height:16px;border-radius:5px;color:#fecaca;background:#7f1d1d88;font-weight:900;line-height:1;margin-left:2px}
.mailMainPane-overview .mailInboxCard{min-height:56vh}.mailOverviewCard .mailInboxList{max-height:62vh;overflow:auto;padding-right:4px}
.mailAccountFlat{min-height:56vh}.mailAccountFlat>.mailAdminCardHead{padding-bottom:4px;border-bottom:1px solid #1e293b}
.mailExplorerFolderOnly .mailExplorerFolderTree{gap:5px}.mailExplorerFolderOnly .mailExplorerFolder{grid-template-columns:auto minmax(0,1fr) auto;padding:9px 10px}
.mailMainPane-compose .mailComposeCard{min-height:56vh}.mailMainPane-compose .mailComposeForm textarea{min-height:280px}
@media(max-width:1000px){.mailAdminCompactBar{grid-template-columns:1fr!important}.mailAdminCompactBar .mailMainTabs{justify-self:stretch!important}.mailAdminCompactBar .mailAdminActions{justify-self:start!important;flex-wrap:wrap!important}}


/* 2026-06-04: Mail-Übersicht visuell entzerren und lesbarer machen. */
.mailOverviewCard{gap:10px}
.mailOverviewCard>.mailAdminCardHead{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;padding-bottom:10px;border-bottom:1px solid #1e293b}
.mailOverviewCard>.mailAdminCardHead>div{display:grid;gap:4px;min-width:0}
.mailOverviewCard>.mailAdminCardHead h3{font-size:24px;line-height:1.1}
.mailOverviewCard>.mailAdminCardHead span{font-size:12px;color:var(--muted,#92a4bb)}
.mailOverviewTableHead{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(220px,.95fr) minmax(165px,.6fr);gap:12px;align-items:center;padding:0 14px 8px;color:#7dd3fc;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.mailOverviewCard .mailInboxList{display:grid;gap:10px;max-height:62vh;overflow:auto;padding-right:4px}
.mailOverviewCard .mailInboxRow{grid-template-columns:auto minmax(0,1.35fr) minmax(180px,.95fr) minmax(140px,.6fr);gap:14px;align-items:center;padding:13px 14px;border-radius:5px;border:1px solid #1e3a5f;background:linear-gradient(180deg,rgba(7,17,31,.96),rgba(2,6,23,.92));box-shadow:inset 0 1px 0 rgba(255,255,255,.03),0 8px 20px rgba(0,0,0,.22);transition:border-color .14s ease,background .14s ease,transform .14s ease,box-shadow .14s ease}
.mailOverviewCard .mailInboxRow:hover{transform:translateY(-1px);border-color:#60a5fa;background:linear-gradient(180deg,rgba(12,24,46,.98),rgba(3,9,22,.94));box-shadow:0 12px 24px rgba(0,0,0,.26),0 0 0 1px rgba(96,165,250,.08)}
.mailOverviewCard .mailInboxRow.isActive{border-color:#38bdf8;background:linear-gradient(180deg,rgba(9,41,72,.98),rgba(5,23,43,.96));box-shadow:0 0 0 1px rgba(56,189,248,.18),0 14px 30px rgba(2,132,199,.18)}
.mailOverviewCard .mailInboxRow.isUnread{border-color:#0ea5e980;background:linear-gradient(180deg,rgba(7,35,62,.98),rgba(4,21,39,.94))}
.mailInboxDot{width:10px;height:10px;border-radius:5px;background:#334155;box-shadow:0 0 0 4px rgba(51,65,85,.16)}
.mailInboxRow.isUnread .mailInboxDot{background:#22d3ee;box-shadow:0 0 0 4px rgba(34,211,238,.16),0 0 14px rgba(34,211,238,.5)}
.mailInboxRow.isSeen .mailInboxDot{opacity:.7}
.mailOverviewCard .mailInboxMain{display:grid;gap:6px;min-width:0}
.mailInboxTitleRow{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-width:0}
.mailInboxTitleRow strong{font-size:15px;line-height:1.25;white-space:normal;overflow-wrap:anywhere;color:#f8fbff}
.mailInboxBadges{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.mailFlagBadge{display:inline-flex;align-items:center;justify-content:center;min-height:22px;padding:0 8px;border-radius:5px;border:1px solid #334155;background:#0f172a;color:#bfdbfe;font-size:11px;font-weight:700;letter-spacing:.02em;white-space:nowrap}
.mailFlagBadge.isFlagged{border-color:#f59e0b66;background:#3b2a08;color:#fde68a}
.mailFlagBadge.isUnread{border-color:#0891b266;background:#083344;color:#cffafe}
.mailOverviewCard .mailInboxMain small{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;font-size:12px;color:var(--muted,#9fb0c5);min-width:0}
.mailInboxFromLabel{display:inline-flex;align-items:center;justify-content:center;padding:2px 7px;border-radius:5px;background:#111827;color:#7dd3fc;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.mailInboxFromValue{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#c8d7ea}
.mailOverviewCard .mailInboxMeta{display:grid;gap:5px;justify-items:end;align-items:center;font-size:12px;min-width:0}
.mailInboxDate{color:#dbeafe;font-weight:600;white-space:nowrap}
.mailInboxSize{display:inline-flex;align-items:center;justify-content:center;padding:3px 8px;border-radius:5px;background:#0f172a;border:1px solid #273449;color:#8fb4d8;font-size:11px;white-space:nowrap}
.mailOverviewCard .mailInboxRow>div:nth-child(3){min-width:0}
.mailOverviewCard .mailInboxRow>div:nth-child(4){min-width:0}
@media(max-width:1200px){
  .mailOverviewTableHead{grid-template-columns:minmax(0,1.3fr) minmax(180px,1fr) minmax(130px,.7fr)}
  .mailOverviewCard .mailInboxRow{grid-template-columns:auto minmax(0,1.3fr) minmax(160px,1fr) minmax(120px,.7fr)}
}
@media(max-width:860px){
  .mailOverviewTableHead{display:none}
  .mailOverviewCard .mailInboxRow{grid-template-columns:auto minmax(0,1fr);align-items:flex-start}
  .mailOverviewCard .mailInboxMain{grid-column:2}
  .mailOverviewCard .mailInboxMeta{grid-column:2;justify-items:start;grid-auto-flow:column;gap:8px;flex-wrap:wrap}
  .mailInboxTitleRow{flex-direction:column;align-items:flex-start}
  .mailInboxBadges{justify-content:flex-start}
  .mailOverviewCard>.mailAdminCardHead{grid-template-columns:1fr}
}


/* 2026-06-04: Mail-Übersicht - viele Mails dürfen die Zeilen nicht zusammendrücken. */
.mailOverviewCard{
  min-height:56vh;
  grid-template-rows:auto auto minmax(0,1fr);
}

.mailOverviewCard .mailInboxList{
  min-height:0;
  max-height:none !important;
  overflow-y:auto;
  overflow-x:hidden;
  align-content:start;
  grid-auto-rows:minmax(72px,auto);
  padding:6px 8px 10px 2px;
  gap:12px;
}

.mailOverviewCard .mailInboxRow{
  min-height:72px;
  height:auto;
  align-self:start;
  padding:14px 16px;
  overflow:visible;
}

.mailOverviewCard .mailInboxTitleRow strong{
  line-height:1.25;
  max-height:2.5em;
  overflow:hidden;
}

.mailOverviewCard .mailInboxMain small{
  min-height:22px;
}

.mailOverviewCard .mailInboxMeta{
  align-self:center;
}

.mailOverviewCard .mailInboxDate,
.mailOverviewCard .mailInboxSize{
  line-height:1.2;
}

.mailOverviewCard .mailInboxRow + .mailInboxRow{
  margin-top:0;
}

/* Bei sehr vielen Nachrichten kompakt, aber nicht gequetscht. */
.mailOverviewCard .mailInboxList::-webkit-scrollbar{
  width:10px;
}
.mailOverviewCard .mailInboxList::-webkit-scrollbar-thumb{
  background:#334155;
  border-radius:5px;
  border:2px solid #020617;
}
.mailOverviewCard .mailInboxList::-webkit-scrollbar-track{
  background:#02061766;
  border-radius:5px;
}

@media(max-width:860px){
  .mailOverviewCard .mailInboxList{
    grid-auto-rows:minmax(92px,auto);
  }
  .mailOverviewCard .mailInboxRow{
    min-height:92px;
  }
}


/* 2026-06-04: Mail-Main Header/Tabs bleiben stehen, nur der Inhalt scrollt. */
.mailAdminView{
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  min-height:0;
  height:100%;
}

.mailAdminCompactBar{
  position:sticky;
  top:0;
  z-index:20;
  margin-bottom:12px;
  backdrop-filter:blur(10px);
  box-shadow:0 10px 22px rgba(0,0,0,.28);
}

.mailMainPane{
  min-height:0;
  overflow:hidden;
}

.mailMainPane-overview{
  display:grid;
  grid-template-rows:minmax(0,1fr);
}

.mailMainPane-overview .mailOverviewCard{
  min-height:0;
  height:100%;
  overflow:hidden;
}

.mailMainPane-overview .mailOverviewCard .mailAdminCardHead,
.mailMainPane-overview .mailOverviewTableHead{
  flex:0 0 auto;
}

.mailMainPane-overview .mailInboxList{
  min-height:0;
  overflow-y:auto;
}

/* Main selbst soll nicht wegen der Mail-Liste komplett wegscrollen. */
#previewBody:has(.mailAdminView){
  overflow:hidden;
}

@supports not selector(:has(*)){
  .mailAdminView{
    max-height:calc(100vh - 210px);
  }
}

/* Falls die Workstation-Höhe kleiner ist, bleibt der Header trotzdem nutzbar. */
@media(max-height:760px){
  .mailAdminCompactBar{
    top:0;
  }
  .mailOverviewCard .mailInboxList{
    grid-auto-rows:minmax(66px,auto);
  }
  .mailOverviewCard .mailInboxRow{
    min-height:66px;
  }
}


/* 2026-06-04: Mailordner zeigen ungelesene Mails statt Gesamtzahl. */
.mailExplorerFolder .mailFolderUnread{
  min-width:24px;
  height:22px;
  padding:0 7px;
  border-radius:5px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  justify-self:end;
  border:1px solid #0891b2aa;
  background:#083344;
  color:#cffafe;
  font-size:11px;
  font-weight:900;
  line-height:1;
  box-shadow:0 0 14px rgba(34,211,238,.18);
}
.mailExplorerFolder.hasUnread .name{
  color:#f8fbff;
  font-weight:800;
}
.mailExplorerFolder .mailFolderUnread.isZero{
  border-color:#334155;
  background:#02061766;
  color:#64748b;
  box-shadow:none;
  font-weight:800;
}
.mailExplorerFolder.isActive .mailFolderUnread{
  border-color:#67e8f9;
  background:#0e7490;
  color:#ecfeff;
}
.mailExplorerFolder.isActive .mailFolderUnread.isZero{
  border-color:#475569;
  background:#0f172a;
  color:#94a3b8;
}

/* Gast-/Schaufenster-Modus: Preview darf laufen, der Explorer bleibt als
   fester Bestandteil des Workstation-Layouts sichtbar. Rechte werden ueber
   ACL/API-Antworten gesteuert, nicht durch Layout-Ausblendung. */
body.zipGuestPreviewMode .brandMeta::after {
  content: " · Schaufenster-Modus";
  color: #9fd3ff;
  opacity: 0.9;
}

/* ActionGuard: globale Lazy-/Button-Sperre gegen Doppel-Klicks und Mehrfachfeuer. */
.isActionRunning,
[data-action-guard-running="1"] {
  opacity: .68;
  cursor: wait !important;
  pointer-events: none;
}
button.isActionRunning,
button[data-action-guard-running="1"],
input[type="submit"].isActionRunning,
input[type="button"].isActionRunning {
  filter: saturate(.75);
}
button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
}

/* ActionGuard Target-Locks: Bereich lädt gerade, andere Auslöser dürfen ihn nicht parallel überschreiben. */
.isActionTargetRunning,
[data-action-guard-target-running="1"] {
  position: relative;
}
.isActionTargetRunning::after,
[data-action-guard-target-running="1"]::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: rgba(255, 255, 255, .035);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 128, .16);
}
.isActionErrorLocked,
[data-action-guard-error-locked="1"] {
  opacity: .56;
  cursor: not-allowed !important;
  pointer-events: none;
  filter: grayscale(.25) saturate(.7);
}
button.isActionErrorLocked,
button[data-action-guard-error-locked="1"] {
  box-shadow: inset 0 0 0 1px rgba(255, 90, 90, .42), 0 0 12px rgba(255, 40, 40, .12);
}

/* ActionGuard Warnung: 401/403 bleibt gelb sichtbar, aber klickbar, bis ein späterer Erfolg sie löscht. */
.isActionWarning,
[data-action-guard-warning="1"] {
  opacity: 1;
  cursor: pointer;
  filter: saturate(1.15);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 80, .78), 0 0 14px rgba(255, 198, 58, .22) !important;
}
button.isActionWarning,
button[data-action-guard-warning="1"],
.treeItem.isActionWarning,
.treeItem[data-action-guard-warning="1"] {
  border-color: rgba(255, 214, 80, .82) !important;
  background: linear-gradient(180deg, rgba(255, 214, 80, .22), rgba(255, 160, 32, .12)) !important;
  color: #ffe6a3;
}
.treeItem.isActionWarning .icon,
.treeItem[data-action-guard-warning="1"] .icon {
  color: #ffd65a;
}

/* ActionGuard Spinner: einheitlicher Kreisel im Icon-Bereich statt Textwechsel wie „Lädt…“. */
.actionGuardSpinner {
  width: 1em;
  height: 1em;
  display: inline-block;
  box-sizing: border-box;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 5px;
  animation: actionGuardSpin .72s linear infinite;
  vertical-align: -0.12em;
}
.actionGuardSpinnerInline {
  margin-right: .45em;
  flex: 0 0 auto;
}
.hasActionGuardSpinner,
.hasActionGuardInlineSpinner {
  color: #ffd680;
}
.hasActionGuardInlineSpinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35em;
}
.treeItem .icon.hasActionGuardSpinner {
  align-items: center;
}
@keyframes actionGuardSpin {
  to { transform: rotate(360deg); }
}

/* 2026-06-04: Mail-Listenwerkzeuge (Suche, Filter, Multi-Auswahl) */
.mailFilterBar,.mailBulkBar{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:10px 0 12px;padding:10px;border:1px solid #1e3a5f;border-radius:5px;background:rgba(2,6,23,.55)}
.mailFilterBar label{display:grid;gap:4px;color:var(--muted,#92a4bb);font-size:12px}
.mailSearchBox{min-width:min(320px,100%);flex:1 1 260px}.mailLimitBox{width:96px}.mailFilterBar input,.mailFilterBar select{border:1px solid #273449;border-radius:5px;background:#020617;color:var(--text,#e5edf8);padding:8px 10px;min-height:34px}.mailFilterBar button,.mailBulkBar button{min-height:34px}.mailUnreadToggle{display:flex!important;grid-template-columns:auto!important;align-items:center;gap:7px;min-height:34px;padding:0 6px}.mailBulkBar{align-items:center;margin-top:0;background:rgba(15,23,42,.55)}
.mailInboxSelect{display:flex;align-items:center;justify-content:center;min-width:24px}.mailInboxSelect input{width:16px;height:16px;accent-color:#38bdf8}.mailOverviewCard .mailInboxRow{grid-template-columns:auto minmax(0,1fr)!important;padding:0!important;overflow:hidden}.mailOverviewCard .mailInboxRow.isSelected{border-color:#facc15;background:linear-gradient(180deg,rgba(61,48,9,.96),rgba(24,18,4,.92))}.mailInboxOpen{display:grid;grid-template-columns:auto minmax(0,1.35fr) minmax(140px,.7fr);gap:14px;align-items:center;width:100%;border:0;background:transparent;color:inherit;text-align:left;padding:13px 14px 13px 0;font:inherit;cursor:pointer}.mailInboxOpen:hover{background:rgba(96,165,250,.06)}.mailOverviewTableHead{grid-template-columns:44px minmax(0,1fr) minmax(140px,.7fr)!important}@media(max-width:760px){.mailInboxOpen{grid-template-columns:auto minmax(0,1fr);align-items:start}.mailInboxOpen .mailInboxMeta{grid-column:2;justify-items:start;grid-auto-flow:column}.mailFilterBar,.mailBulkBar{align-items:stretch}.mailFilterBar button,.mailBulkBar button{flex:1 1 auto}}

/* Editor/Preview Fullscreen */
.preview:fullscreen {
  width: 100vw;
  height: 100dvh;
  padding: 0;
  margin: 0;
  border-radius: 0;
  background: var(--app-bg, #101016);
  display: flex;
  flex-direction: column;
}

.preview:fullscreen .previewHeader {
  flex: 0 0 auto;
}

.preview:fullscreen .previewBody,
.preview.isPreviewFullscreen .previewBody {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: none;
}

.preview:fullscreen .previewChrome,
.preview:fullscreen .editorShell,
.preview:fullscreen #htmlPreviewHost,
.preview.isPreviewFullscreen .previewChrome,
.preview.isPreviewFullscreen .editorShell,
.preview.isPreviewFullscreen #htmlPreviewHost {
  flex: 1 1 auto;
  min-height: 0;
}

.preview:fullscreen .codeEditorHost,
.preview:fullscreen .codeEditorHost .cm-editor,
.preview.isPreviewFullscreen .codeEditorHost,
.preview.isPreviewFullscreen .codeEditorHost .cm-editor {
  min-height: 0;
  height: 100%;
}

.preview:fullscreen iframe.liveFrame,
.preview.isPreviewFullscreen iframe.liveFrame {
  min-height: 0;
  height: 100%;
}

.preview.isPreviewFullscreen {
  position: fixed;
  inset: 0;
  z-index: 20000;
  border-radius: 0;
  background: var(--app-bg, #101016);
  display: flex;
  flex-direction: column;
}

body.previewFullscreenFallback {
  overflow: hidden;
}

.jsPreviewFullscreenBtn.active {
  background: rgba(110,145,255,0.24);
  border-color: rgba(130,165,255,0.4);
}

/* Hero Filesystem Testmodul */
.heroFilesystemView {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 18px;
  color: #eef8ff;
}

.heroFilesystemHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(127, 255, 212, 0.22);
  border-radius: 18px;
  background: radial-gradient(circle at top right, rgba(64, 156, 255, 0.2), transparent 36%), rgba(4, 12, 22, 0.76);
}

.heroFilesystemHeader h2 {
  margin: 3px 0 6px;
  font-size: 26px;
}

.heroFilesystemHeader p {
  margin: 0;
  color: rgba(238, 248, 255, 0.72);
  line-height: 1.45;
}

.heroFilesystemEyebrow {
  color: #8fd8ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.heroFilesystemActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.heroFsButton,
.heroFsUploadButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(127, 255, 212, 0.26);
  border-radius: 12px;
  background: rgba(18, 35, 52, 0.84);
  color: #eaffff;
  font-weight: 800;
  cursor: pointer;
}

.heroFsButton:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.heroFsUploadButton input {
  display: none;
}

.heroFilesystemPath {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(238, 248, 255, 0.82);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow: auto;
}

.heroFilesystemDrop {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 76px;
  padding: 16px;
  border: 1px dashed rgba(127, 255, 212, 0.26);
  border-radius: 16px;
  background: rgba(127, 255, 212, 0.045);
  color: rgba(238, 248, 255, 0.72);
  text-align: center;
}

.heroFilesystemDrop.isDragover {
  border-color: rgba(127, 255, 212, 0.75);
  background: rgba(127, 255, 212, 0.12);
}

.heroFilesystemList {
  display: grid;
  gap: 8px;
}

.heroFilesystemItem {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(3, 10, 20, 0.64);
  color: #f4fbff;
  text-align: left;
  cursor: default;
}

.heroFilesystemItem.isDir {
  background: rgba(31, 83, 126, 0.24);
}

.heroFilesystemItem.isDir:hover {
  border-color: rgba(127, 255, 212, 0.35);
  background: rgba(31, 83, 126, 0.36);
}

.heroFilesystemItem.isSelected {
  border-color: rgba(127, 175, 255, 0.75);
  background: rgba(74, 112, 210, 0.18);
  box-shadow: 0 0 0 2px rgba(127, 175, 255, 0.1) inset;
}

.heroFilesystemSelect {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: rgba(18, 35, 52, 0.58);
  color: #eaffff;
  cursor: pointer;
  font-weight: 900;
}

.heroFilesystemSelect:hover {
  border-color: rgba(127, 255, 212, 0.5);
  background: rgba(31, 83, 126, 0.38);
}

.heroFilesystemSelection {
  align-self: flex-start;
  padding: 7px 11px;
  border: 1px solid rgba(127, 175, 255, 0.28);
  border-radius: 999px;
  background: rgba(74, 112, 210, 0.13);
  color: rgba(238, 248, 255, 0.86);
  font-size: 12px;
  font-weight: 800;
}

.heroFilesystemItem.isDragging {
  opacity: .55;
  border-style: dashed;
}

.heroFilesystemItem.isMoveTarget {
  border-color: rgba(127, 255, 212, 0.85);
  background: rgba(74, 182, 150, 0.18);
  box-shadow: 0 0 0 2px rgba(127, 255, 212, 0.1) inset;
}

.heroFilesystemOpen {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 2px 4px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.heroFilesystemOpen:disabled {
  cursor: default;
}

.heroFilesystemItemActions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.heroFilesystemMove,
.heroFilesystemDelete {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: rgba(22, 40, 60, 0.44);
  color: #dff4ff;
  font-weight: 900;
  cursor: pointer;
}

.heroFilesystemMove:hover {
  border-color: rgba(127, 255, 212, 0.56);
  background: rgba(44, 92, 118, 0.54);
}

.heroFilesystemDelete {
  border-color: rgba(255, 115, 115, 0.28);
  background: rgba(120, 24, 36, 0.28);
  color: #ffd9d9;
}

.heroFilesystemDelete:hover {
  border-color: rgba(255, 115, 115, 0.58);
  background: rgba(160, 32, 48, 0.42);
}

.heroFilesystemIcon {
  font-size: 20px;
}

.heroFilesystemName {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.heroFilesystemMeta {
  color: rgba(238, 248, 255, 0.58);
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 780px) {
  .heroFilesystemHeader {
    flex-direction: column;
  }

  .heroFilesystemActions {
    justify-content: flex-start;
  }

  .heroFilesystemItem {
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }

  .heroFilesystemOpen {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .heroFilesystemMeta {
    grid-column: 2;
  }
}

.heroFilesystemItem.isParent {
  border-style: dashed;
  background: rgba(127, 255, 212, 0.08);
}

.heroFilesystemItem.isParent .heroFilesystemName {
  letter-spacing: 0.04em;
}

.heroFilesystemSelect.isPlaceholder {
  opacity: .65;
  pointer-events: none;
}

.aclExplorerTree{margin:0;padding:0;list-style:none}
.aclExplorerHint{margin-bottom:8px}
.aclExplorerSection{cursor:pointer}
.aclExplorerSection .name{font-weight:700}
.aclExplorerSection.active{border-color:#38bdf899;background:rgba(14,116,144,.22);box-shadow:inset 3px 0 0 #38bdf8}
.aclExplorerRoot{font-weight:700}

/* ACL Explorer Navigation nutzt denselben Explorer-Renderer wie ZIP/Hero-Dateien. */
.isAclExplorerMode .aclExplorerItem{cursor:pointer}
.isAclExplorerMode .aclExplorerItem.active{border-color:#38bdf899;background:rgba(14,116,144,.22);box-shadow:inset 3px 0 0 #38bdf8}
.isAclExplorerMode .aclExplorerLevel-section .name{font-weight:800}
.isAclExplorerMode .aclExplorerLevel-module .name{font-weight:700}
.isAclExplorerMode .aclExplorerLevel-route .fileMeta,
.isAclExplorerMode .aclExplorerLevel-role .fileMeta,
.isAclExplorerMode .aclExplorerLevel-user .fileMeta{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.aclAdminView code{display:inline-block;margin-top:4px;padding:2px 7px;border:1px solid rgba(148,163,184,.22);border-radius:8px;background:rgba(15,23,42,.5);color:#93c5fd;font-size:11px}

/* Generic module explorer pipe (Mail/Rechte/Filesystem/Zukunftsmodule) */
.explorer.isModuleExplorerMode .moduleExplorerTree{margin:0;padding:0;list-style:none;display:grid;gap:2px}
.explorer.isModuleExplorerMode .moduleExplorerTree ul{margin:2px 0 0 0;padding-left:14px;list-style:none;border-left:1px solid rgba(148,163,184,.18)}
.explorer.isModuleExplorerMode .moduleExplorerItem{min-height:30px;border-radius:5px}
.explorer.isModuleExplorerMode .moduleExplorerItem .name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.explorer.isModuleExplorerMode .moduleExplorerItem .fileMeta{font-size:11px;opacity:.8;margin-left:auto}
.explorer.isModuleExplorerMode .moduleExplorerItem.active{background:rgba(8,47,73,.52);border-color:rgba(56,189,248,.48)}
.explorer.isModuleExplorerMode .moduleExplorerItem:hover{background:rgba(15,23,42,.72);border-color:rgba(51,65,85,.9)}
.explorer.isModuleExplorerMode .moduleExplorerHint{margin-bottom:8px}
.explorer.isMailMode .moduleExplorer-mail .fileMeta:not(:empty){min-width:18px;text-align:center;border:1px solid rgba(56,189,248,.28);border-radius:999px;padding:1px 5px;background:rgba(8,47,73,.32);color:#dbeafe}
.explorer.isMailMode .moduleExplorer-mail.active .fileMeta:not(:empty){border-color:rgba(125,211,252,.8);background:rgba(14,116,144,.45);color:#fff}

/* 2026-06-05: Gemeinsame Explorer-Pipe: Header und Suchleiste werden pro Modul konfiguriert. */
.explorerHeader {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  justify-content: center;
  min-height: 42px;
}
.explorerHeaderTitle {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.explorerHeaderSubtitle {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 500;
  color: rgba(230,236,255,0.68);
}
.explorer.explorerTypeDisabled #typeFilter,
.explorer.explorerSortDisabled #sortSelect {
  opacity: 0.58;
}
.explorer.explorerSearchDisabled #searchInput {
  opacity: 0.58;
}
.explorer.explorerTypeDisabled #typeFilter:disabled,
.explorer.explorerSortDisabled #sortSelect:disabled,
.explorer.explorerSearchDisabled #searchInput:disabled {
  cursor: not-allowed;
}

/* 2026-06-05: Mail-Liste - Kopfzeile entkoppelt und Bulk-Aktionen als Selectbox. */
.mailListToolbar{
  display:grid;
  grid-template-columns:auto minmax(220px, 320px) 1fr;
  align-items:center;
  gap:10px;
  margin:10px 0 8px;
  padding:8px 10px;
  border:1px solid #1e3a5f;
  border-radius:5px;
  background:rgba(15,23,42,.52);
  min-height:44px;
}
.mailListSelectAll{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:32px;
  padding:0 8px;
  border:1px solid #273449;
  border-radius:5px;
  background:#020617;
  color:var(--text,#e5edf8);
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}
.mailListSelectAll input{
  width:16px;
  height:16px;
  accent-color:#38bdf8;
}
.mailBulkSelect{
  display:grid;
  grid-template-columns:auto minmax(160px,1fr);
  align-items:center;
  gap:8px;
  color:var(--muted,#92a4bb);
  font-size:12px;
}
.mailBulkSelect select{
  min-height:32px;
  border:1px solid #273449;
  border-radius:5px;
  background:#020617;
  color:var(--text,#e5edf8);
  padding:6px 10px;
}
.mailListLegend{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  min-width:0;
  color:#67e8f9;
  font-weight:900;
  opacity:.9;
}
.mailListLegend span{
  min-width:24px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #1e3a5f;
  border-radius:5px;
  background:#02061799;
}
.mailOverviewTableHead{
  display:none !important;
}
.mailOverviewCard .mailInboxList{
  margin-top:0;
}
.mailOverviewCard .mailInboxRow{
  grid-template-columns:40px minmax(0,1fr) !important;
}
.mailOverviewCard .mailInboxSelect{
  min-width:40px;
  align-self:stretch;
  border-right:1px solid rgba(30,58,95,.55);
  background:rgba(2,6,23,.32);
}
@media(max-width:760px){
  .mailListToolbar{
    grid-template-columns:1fr;
    align-items:stretch;
  }
  .mailBulkSelect{
    grid-template-columns:1fr;
  }
  .mailListLegend{
    justify-content:flex-start;
  }
}

/* 2026-06-05: Mail-Bulk-Toolbar bleibt über der Liste und sitzt sauber mittig. */
.mailOverviewCard{
  grid-template-rows:auto auto auto minmax(0,1fr) !important;
}
.mailOverviewCard .mailFilterBar,
.mailOverviewCard .mailListToolbar{
  position:relative;
  z-index:16;
}
.mailOverviewCard .mailListToolbar{
  margin:10px 0 12px;
  align-self:start;
  align-items:center;
  overflow:visible;
  box-shadow:0 8px 18px rgba(0,0,0,.24);
}
.mailOverviewCard .mailListLegend{
  align-self:center;
  transform:translateY(-1px);
}
.mailOverviewCard .mailListLegend span{
  position:relative;
  z-index:17;
  line-height:1;
}
.mailOverviewCard .mailInboxList{
  position:relative;
  z-index:1;
  margin-top:0;
  padding-top:2px;
}
.mailOverviewCard .mailInboxRow{
  position:relative;
  z-index:1;
}
.mailOverviewCard .mailInboxRow:hover,
.mailOverviewCard .mailInboxRow.isActive{
  z-index:2;
}

.mailInlineError{
  margin:0 0 12px 0;
  padding:10px 12px;
  border:1px solid rgba(255,108,108,.45);
  border-radius:10px;
  background:rgba(70,12,18,.72);
  color:#ffd6d6;
  box-shadow:0 10px 28px rgba(0,0,0,.28);
}
.mailInlineError details{margin-top:8px;}
.mailInlineError summary{cursor:pointer;color:#fff;}

/* Serverstatus-Tab in der unteren Console */
.consoleTabServer.hasWarning {
  border-color: rgba(255, 210, 90, .72);
  color: #ffe5a6;
  box-shadow: inset 0 0 0 1px rgba(255, 210, 90, .22), 0 0 14px rgba(255, 184, 64, .16);
}

.consoleTabServer.hasError {
  border-color: rgba(255, 104, 104, .72);
  color: #ffd0d0;
  box-shadow: inset 0 0 0 1px rgba(255, 104, 104, .22), 0 0 14px rgba(255, 80, 80, .18);
}

.serverStatusPanel {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 10px;
  background: linear-gradient(180deg, rgba(4, 12, 22, .68), rgba(2, 7, 14, .88));
}

.serverStatusPanel[hidden] {
  display: none !important;
}

.serverStatusHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.serverStatusHeader strong {
  display: block;
  color: #eaf8ff;
  letter-spacing: .02em;
}

.serverStatusHeader span {
  display: block;
  margin-top: 2px;
  color: rgba(226, 242, 255, .62);
  font-size: 11px;
}

.serverStatusRefreshBtn {
  flex: 0 0 auto;
  border: 1px solid rgba(110, 210, 255, .42);
  border-radius: 5px;
  padding: 6px 10px;
  background: rgba(28, 104, 162, .24);
  color: #dff7ff;
  cursor: pointer;
}

.serverStatusRefreshBtn:hover {
  background: rgba(36, 134, 206, .34);
}

.serverStatusGrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(112px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.serverStatusCard {
  position: relative;
  min-height: 76px;
  padding: 9px 9px 8px 25px;
  border: 1px solid rgba(130, 213, 255, .25);
  border-radius: 5px;
  background: rgba(7, 18, 32, .74);
  overflow: hidden;
}

.serverStatusCard::after {
  content: "";
  position: absolute;
  inset: auto -20px -30px auto;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(90, 190, 255, .08);
  pointer-events: none;
}

.serverStatusCard.ok {
  border-color: rgba(88, 230, 160, .38);
}

.serverStatusCard.warning {
  border-color: rgba(255, 210, 90, .46);
}

.serverStatusCard.error {
  border-color: rgba(255, 104, 104, .52);
}

.serverStatusDot {
  position: absolute;
  left: 9px;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #58e6a0;
  box-shadow: 0 0 12px rgba(88, 230, 160, .66);
}

.serverStatusCard.warning .serverStatusDot {
  background: #ffd25a;
  box-shadow: 0 0 12px rgba(255, 210, 90, .66);
}

.serverStatusCard.error .serverStatusDot {
  background: #ff6868;
  box-shadow: 0 0 12px rgba(255, 104, 104, .66);
}

.serverStatusCard strong,
.serverStatusCard b,
.serverStatusCard small {
  display: block;
}

.serverStatusCard strong {
  color: rgba(226, 242, 255, .72);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.serverStatusCard b {
  margin-top: 5px;
  color: #f4fbff;
  font-size: 14px;
  font-weight: 750;
  word-break: break-word;
}

.serverStatusCard small {
  margin-top: 3px;
  color: rgba(226, 242, 255, .58);
  font-size: 11px;
  word-break: break-word;
}

.serverStatusNotice {
  margin: 8px 0 10px;
  padding: 8px 10px;
  border-radius: 5px;
  border: 1px solid rgba(130, 213, 255, .22);
  background: rgba(8, 18, 30, .76);
  color: rgba(235, 248, 255, .78);
  font-size: 12px;
  line-height: 1.45;
}

.serverStatusNotice.ok {
  border-color: rgba(88, 230, 160, .28);
}

.serverStatusNotice.warn {
  border-color: rgba(255, 210, 90, .34);
  color: #ffe9b8;
}

.serverStatusDetails {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 8px;
}

.serverStatusSection {
  border: 1px solid rgba(130, 213, 255, .19);
  border-radius: 5px;
  background: rgba(5, 14, 26, .66);
  padding: 8px;
}

.serverStatusSection h4 {
  margin: 0 0 7px;
  color: #8fd8ff;
  font-size: 12px;
  letter-spacing: .04em;
}

.serverStatusSection div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  border-top: 1px solid rgba(255, 255, 255, .045);
  font-size: 11px;
}

.serverStatusSection div:first-of-type {
  border-top: 0;
}

.serverStatusSection span {
  color: rgba(226, 242, 255, .56);
}

.serverStatusSection b {
  max-width: 58%;
  color: rgba(246, 251, 255, .86);
  text-align: right;
  overflow-wrap: anywhere;
}

.serverStatusEmpty {
  display: grid;
  min-height: 100%;
  place-items: center;
  color: rgba(226, 242, 255, .58);
  font-size: 13px;
}

.serverStatusPanel.isLoading .serverStatusHeader strong::after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: 8px;
  border: 2px solid rgba(142, 218, 255, .32);
  border-top-color: rgba(142, 218, 255, .95);
  border-radius: 50%;
  animation: serverStatusSpin .8s linear infinite;
}

@keyframes serverStatusSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1120px) {
  .serverStatusGrid { grid-template-columns: repeat(3, minmax(112px, 1fr)); }
  .serverStatusDetails { grid-template-columns: repeat(2, minmax(170px, 1fr)); }
}

@media (max-width: 720px) {
  .serverStatusGrid,
  .serverStatusDetails { grid-template-columns: 1fr; }
}
.htmlConsole.isCollapsed .serverStatusPanel {
  display: none !important;
}

/* Console overview mode: compact one-liners with accordion details */
.consoleEntry {
  grid-template-columns: max-content max-content minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 2px 7px;
  min-height: 24px;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

.consoleEntry.hasDetails:not(.isHardError) {
  min-height: 24px;
}

.consoleEntry .consoleTime,
.consoleEntry .consoleSource {
  line-height: 1.1;
  white-space: nowrap;
}

.consoleEntry .consoleSource {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(34vw, 280px);
}

.consoleMessageOneLine,
.consoleEntrySummaryText {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.15;
}

.consoleEntryDetails {
  display: block;
  min-width: 0;
  width: 100%;
}

.consoleEntrySummary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 20px;
  max-height: 20px;
  line-height: 20px;
  list-style: none;
  cursor: pointer;
  user-select: none;
  border-radius: 5px;
  padding: 0 5px;
}

.consoleEntrySummary::-webkit-details-marker {
  display: none;
}

.consoleEntryChevron {
  flex: 0 0 12px;
  width: 12px;
  color: rgba(159, 183, 255, .86);
  line-height: 20px;
  text-align: center;
  transition: transform .16s ease;
}

.consoleEntryDetails[open] > .consoleEntrySummary .consoleEntryChevron {
  transform: rotate(90deg);
}

.consoleEntrySummaryText {
  flex: 1 1 auto;
}

.consoleEntrySummary:hover {
  background: rgba(255, 255, 255, .045);
}

.consoleEntrySummaryHint {
  flex: 0 0 auto;
  padding: 0 5px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .045);
  color: rgba(238, 238, 238, .58);
  font-size: 9px;
  font-weight: 700;
  line-height: 15px;
  white-space: nowrap;
}

.consoleEntry.isHardError .consoleEntrySummaryHint {
  border-color: rgba(255, 115, 115, .42);
  background: rgba(255, 95, 95, .13);
  color: #ffd0d0;
}

.consoleMessageDetails {
  display: grid;
  gap: 6px;
  margin-top: 5px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 5px;
  background: rgba(0, 0, 0, .18);
}

.consoleEntry:not(.isHardError) .consoleMessageDetails {
  border-left: 2px solid rgba(122, 197, 255, .32);
}

.consoleEntry.isHardError .consoleMessageDetails {
  border-left: 2px solid rgba(255, 115, 115, .7);
}

.consoleEntry .consoleFlowCard,
.consoleEntry .consoleJsonCard {
  max-width: 100%;
}

.consoleEntry .consoleFlowHeader,
.consoleEntry .consoleJsonHeader {
  min-height: 24px;
  padding: 4px 7px;
}

.consoleEntry .consoleFlowBody {
  padding: 6px;
}

.consoleEntry .consoleFlowLine {
  min-height: 24px;
  padding: 5px 7px;
}

.consoleEntry .consoleMiniTable {
  padding: 6px 8px;
}

.consoleEntry .consoleJsonBody {
  max-height: 300px;
}

.securitySentinelManager {
  grid-column: 1 / -1;
}

.securitySentinelActions {
  display: flex !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  padding: 0 0 8px !important;
  border-top: 0 !important;
  flex-wrap: wrap;
}

.serverStatusMiniBtn {
  border: 1px solid rgba(110, 210, 255, .38);
  border-radius: 5px;
  padding: 4px 7px;
  background: rgba(28, 104, 162, .20);
  color: #dff7ff;
  font-size: 11px;
  cursor: pointer;
}

.serverStatusMiniBtn:hover {
  background: rgba(36, 134, 206, .34);
}

.serverStatusMiniBtn.danger {
  border-color: rgba(255, 104, 104, .42);
  color: #ffd0d0;
  background: rgba(125, 35, 45, .20);
}

.serverStatusMiniBtn:disabled,
.serverStatusMiniBtn.isLoading {
  opacity: .55;
  cursor: wait;
}

.securitySentinelHint {
  margin: 0 0 8px;
  color: rgba(226, 242, 255, .58);
  font-size: 11px;
  line-height: 1.4;
}

.securitySentinelSubhead {
  display: block;
  margin: 9px 0 5px;
  color: rgba(226, 242, 255, .76);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.securitySentinelTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  color: rgba(246, 251, 255, .84);
}

.securitySentinelTable th,
.securitySentinelTable td {
  padding: 4px 6px;
  border-top: 1px solid rgba(255, 255, 255, .045);
  text-align: left;
  vertical-align: top;
}

.securitySentinelTable th {
  color: rgba(143, 216, 255, .82);
  font-weight: 700;
}

.securitySentinelTable td {
  overflow-wrap: anywhere;
}

.securitySentinelHtaccessToggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
  padding: 7px 8px;
  border: 1px solid rgba(110, 210, 255, .22);
  border-radius: 5px;
  background: rgba(10, 26, 42, .38);
}

.securitySentinelHtaccessToggle.ok {
  border-color: rgba(76, 220, 142, .34);
  background: rgba(24, 94, 57, .16);
}

.securitySentinelHtaccessToggle.warning {
  border-color: rgba(255, 203, 95, .32);
  background: rgba(126, 84, 18, .13);
}

.securitySentinelHtaccessToggle strong {
  display: block;
  color: rgba(244, 250, 255, .92);
  font-size: 12px;
}

.securitySentinelHtaccessToggle span {
  display: block;
  margin-top: 2px;
  color: rgba(226, 242, 255, .62);
  font-size: 11px;
}

/* Admin Audit DB view */
.auditTopbarBtn{gap:6px}
.adminAuditView{display:grid;gap:14px;width:100%;color:var(--text,#e5edf8)}
.adminAuditHeader{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;border:1px solid #253247;background:#020617aa;border-radius:5px;padding:14px}
.adminAuditHeader h2{margin:0 0 4px;font-size:22px}.adminAuditHeader p{margin:0;color:var(--muted,#92a4bb)}
.adminAuditHeaderActions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.adminAuditState{border:1px solid #253247;background:#020617aa;border-radius:5px;padding:14px;color:var(--muted,#92a4bb)}
.adminAuditState.bad{border-color:#fb718577;color:#ff9aae}
.adminAuditFilters{display:grid;grid-template-columns:2fr 1fr 120px 120px auto;gap:8px;align-items:center;border:1px solid #253247;background:#02061788;border-radius:5px;padding:10px}
.adminAuditFilters input,.adminAuditFilters select{min-height:36px;border:1px solid #253247;border-radius:5px;background:#020617;color:var(--text,#e5edf8);padding:7px 10px;outline:none}
.adminAuditFilters input:focus,.adminAuditFilters select:focus{border-color:#38bdf8;box-shadow:0 0 0 2px rgba(56,189,248,.14)}
.adminAuditStats{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:10px}
.adminAuditStats article{border:1px solid #253247;background:#02061788;border-radius:5px;padding:10px;display:grid;gap:3px}
.adminAuditStats span,.adminAuditMuted{color:var(--muted,#92a4bb);font-size:12px}.adminAuditStats b{font-size:16px;color:#eaf2ff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.adminAuditSummary{display:grid;grid-template-columns:1fr 1fr;gap:10px}.adminAuditSummary>div{border:1px solid #253247;background:#02061788;border-radius:5px;padding:10px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.adminAuditSummary strong{margin-right:4px;color:#dbeafe}
.adminAuditChip{border:1px solid rgba(56,189,248,.28);background:rgba(14,165,233,.10);color:#dff6ff;border-radius:5px;padding:5px 8px;cursor:pointer;font-size:12px;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.adminAuditChip:hover{background:rgba(14,165,233,.18);border-color:rgba(56,189,248,.55)}.adminAuditChip b{color:#86efac;margin-left:4px}
.adminAuditTableWrap{border:1px solid #253247;border-radius:5px;background:#02061788;overflow:auto;max-height:min(58vh,620px)}
.adminAuditTable{width:100%;border-collapse:collapse;font-size:12px}.adminAuditTable th,.adminAuditTable td{padding:8px 9px;border-bottom:1px solid rgba(148,163,184,.13);vertical-align:top;text-align:left}.adminAuditTable th{position:sticky;top:0;z-index:1;background:#07111f;color:#b9c8dd;font-size:11px;text-transform:uppercase;letter-spacing:.05em}.adminAuditTable td strong,.adminAuditTable td small{display:block}.adminAuditTable td small{margin-top:2px;color:var(--muted,#92a4bb);max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.adminAuditTable tr:hover td{background:rgba(56,189,248,.06)}
.adminAuditPager{display:flex;align-items:center;justify-content:center;gap:12px;border:1px solid #253247;background:#02061788;border-radius:5px;padding:10px;color:var(--muted,#92a4bb)}
@media (max-width: 980px){.adminAuditHeader{display:grid}.adminAuditFilters{grid-template-columns:1fr}.adminAuditStats,.adminAuditSummary{grid-template-columns:1fr}}

/* Admin-Zentrale topbar menu */
.adminTopbarMenu{position:relative;display:inline-flex;align-items:center}
.adminTopbarBtn{gap:6px;border-color:rgba(56,189,248,.32);background:linear-gradient(180deg,rgba(14,165,233,.18),rgba(15,23,42,.74))}
.adminTopbarMenu.isOpen .adminTopbarBtn{border-color:rgba(125,211,252,.72);box-shadow:0 0 0 2px rgba(56,189,248,.12),0 10px 24px rgba(0,0,0,.25)}
.adminTopbarDropdown{position:absolute;right:0;top:calc(100% + 8px);z-index:80;min-width:245px;display:grid;gap:5px;padding:8px;border:1px solid rgba(56,189,248,.26);border-radius:5px;background:rgba(2,8,23,.96);box-shadow:0 18px 45px rgba(0,0,0,.48),0 0 0 1px rgba(255,255,255,.04) inset;backdrop-filter:blur(14px)}
.adminTopbarDropdown[hidden]{display:none!important}
.adminTopbarItem{display:grid;grid-template-columns:28px 1fr;grid-template-rows:auto auto;column-gap:8px;align-items:center;width:100%;border:1px solid rgba(148,163,184,.16);border-radius:5px;background:rgba(15,23,42,.72);color:#e5edf8;text-align:left;padding:8px 9px;cursor:pointer}
.adminTopbarItem span{grid-row:1/3;display:grid;place-items:center;width:28px;height:28px;border-radius:5px;background:rgba(56,189,248,.10);font-size:15px}
.adminTopbarItem b{font-size:13px;line-height:1.05}.adminTopbarItem small{margin-top:3px;color:rgba(186,203,224,.72);font-size:11px;line-height:1.1}.adminTopbarItem:hover{border-color:rgba(56,189,248,.48);background:rgba(14,165,233,.14)}

/* Admin hub */
.adminHubView{display:grid;gap:14px;color:var(--text,#e5edf8)}
.adminHubHeader{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:16px;border:1px solid rgba(56,189,248,.24);border-radius:5px;background:linear-gradient(135deg,rgba(2,8,23,.94),rgba(14,30,52,.74));box-shadow:0 18px 40px rgba(0,0,0,.20)}
.adminHubEyebrow{display:inline-flex;margin-bottom:6px;color:#7dd3fc;font-size:11px;text-transform:uppercase;letter-spacing:.09em}.adminHubHeader h2{margin:0 0 5px;font-size:24px}.adminHubHeader p{max-width:820px;margin:0;color:var(--muted,#92a4bb);line-height:1.45}
.adminHubGrid{display:grid;grid-template-columns:repeat(3,minmax(170px,1fr));gap:10px}.adminHubCard{position:relative;display:grid;grid-template-columns:40px 1fr;grid-template-rows:auto auto;gap:3px 10px;align-items:center;min-height:92px;padding:12px;border:1px solid rgba(148,163,184,.18);border-radius:5px;background:rgba(2,8,23,.72);color:#eaf2ff;text-align:left;cursor:pointer;overflow:hidden}.adminHubCard::after{content:"";position:absolute;inset:auto -30px -45px auto;width:100px;height:100px;border-radius:50%;background:rgba(56,189,248,.08)}.adminHubCard:hover{border-color:rgba(56,189,248,.50);background:rgba(14,165,233,.11);transform:translateY(-1px)}.adminHubIcon{grid-row:1/3;display:grid;place-items:center;width:40px;height:40px;border:1px solid rgba(56,189,248,.22);border-radius:5px;background:rgba(14,165,233,.12);font-size:20px}.adminHubCard strong{font-size:15px}.adminHubCard small{color:rgba(186,203,224,.78);line-height:1.32}.adminHubCard em{position:absolute;right:9px;top:8px;border:1px solid rgba(134,239,172,.28);border-radius:999px;padding:2px 7px;background:rgba(22,101,52,.16);color:#bbf7d0;font-style:normal;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.adminHubRoadmap{display:grid;gap:8px;padding:13px;border:1px solid rgba(148,163,184,.18);border-radius:5px;background:rgba(2,8,23,.58)}.adminHubRoadmap h3{margin:0 0 3px;font-size:15px}.adminHubRoadmap div{display:grid;grid-template-columns:180px 1fr;gap:10px;padding:8px;border-top:1px solid rgba(148,163,184,.12)}.adminHubRoadmap span{color:#7dd3fc;font-weight:700}.adminHubRoadmap b{color:rgba(226,242,255,.76);font-weight:500}
@media (max-width: 980px){.adminTopbarDropdown{right:auto;left:0}.adminHubHeader{display:grid}.adminHubGrid{grid-template-columns:1fr}.adminHubRoadmap div{grid-template-columns:1fr}}

.adminSecurityRulesView{display:grid;gap:14px;width:100%;color:var(--text,#e5edf8)}
.adminSecurityRulesForm{display:grid;gap:12px}
.adminRulesGrid{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:10px}
.adminRuleBox{border:1px solid rgba(148,163,184,.18);border-radius:5px;background:rgba(2,8,23,.72);padding:12px;display:grid;gap:10px}
.adminRuleBox.full{grid-column:1/-1}.adminRuleBox h3{margin:0;color:#dbeafe;font-size:15px}.adminRuleBox p{margin:0;color:var(--muted,#92a4bb);font-size:12px;line-height:1.4}
.adminRuleBox label{display:grid;gap:5px;color:#b9c8dd;font-size:12px}.adminRuleBox input[type="number"],.adminRuleBox textarea{border:1px solid #253247;border-radius:5px;background:#020617;color:#e5edf8;padding:7px 9px;outline:none;min-height:34px}.adminRuleBox textarea{min-height:108px;resize:vertical;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.adminRuleBox input:focus,.adminRuleBox textarea:focus{border-color:#38bdf8;box-shadow:0 0 0 2px rgba(56,189,248,.14)}
.adminRuleCheck{display:flex!important;grid-template-columns:none!important;align-items:center;gap:8px}.adminRuleCheck input{accent-color:#38bdf8}.adminRuleCheck strong{display:block;color:#eaf2ff;margin-top:2px}
.adminRulesTableWrap{overflow:auto;border:1px solid rgba(148,163,184,.14);border-radius:5px;background:#02061777;max-height:min(44vh,420px)}.adminRulesTable{width:100%;border-collapse:collapse;font-size:12px}.adminRulesTable th,.adminRulesTable td{border-bottom:1px solid rgba(148,163,184,.13);padding:7px 8px;text-align:left;vertical-align:middle}.adminRulesTable th{position:sticky;top:0;background:#07111f;color:#b9c8dd;text-transform:uppercase;font-size:11px;letter-spacing:.05em}.adminRulesTable input[type="number"]{width:92px;border:1px solid #253247;border-radius:5px;background:#020617;color:#e5edf8;padding:6px 7px}.adminRulesTable tr:hover td{background:rgba(56,189,248,.05)}
.adminRulesFooter{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid rgba(148,163,184,.18);border-radius:5px;background:rgba(2,8,23,.66);padding:10px;color:var(--muted,#92a4bb)}
@media (max-width: 980px){.adminRulesGrid{grid-template-columns:1fr}.adminRulesFooter{display:grid}.adminRulesTable input[type="number"]{width:76px}}

/* Admin-Hero-Verwaltung */
.adminHeroView{display:grid;gap:14px;width:100%;color:var(--text,#e5edf8)}
.adminHeroFilters{grid-template-columns:2fr 160px 160px 120px auto}
.adminHeroStatus{display:inline-flex;align-items:center;justify-content:center;min-width:78px;padding:3px 8px;border-radius:999px;border:1px solid rgba(148,163,184,.22);background:rgba(148,163,184,.10);color:#dbeafe;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.adminHeroStatus.ok{border-color:rgba(134,239,172,.35);background:rgba(22,101,52,.20);color:#bbf7d0}
.adminHeroStatus.warn{border-color:rgba(251,191,36,.38);background:rgba(146,64,14,.22);color:#fde68a}
.adminHeroStatus.bad{border-color:rgba(251,113,133,.45);background:rgba(127,29,29,.24);color:#fecdd3}
.adminHeroStatus.info{border-color:rgba(56,189,248,.36);background:rgba(14,116,144,.18);color:#bae6fd}
.adminHeroTable td{white-space:nowrap}.adminHeroTable td:first-child{white-space:normal;min-width:180px}.adminHeroTable .serverStatusMiniBtn{padding:5px 9px}
.adminHeroActions{display:flex;gap:8px;flex-wrap:wrap;border:1px solid rgba(148,163,184,.18);border-radius:5px;background:rgba(2,8,23,.66);padding:10px}
.adminHeroDetailGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.adminHeroDetailGrid .full{grid-column:1/-1}.adminHeroDetailGrid .adminAuditTableWrap{max-height:min(36vh,360px)}
@media (max-width: 980px){.adminHeroFilters{grid-template-columns:1fr}.adminHeroDetailGrid{grid-template-columns:1fr}.adminHeroTable td{white-space:normal}}

/* Console dock rechts: Explorer, Preview und Console in einer Zeile */
:root {
  --html-console-width: clamp(320px, 28vw, 560px);
}

body.isConsoleDockRight .panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14px var(--html-console-width, 420px);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas:
    "topbar topbar topbar"
    "workspace console-splitter console";
  gap: var(--app-gap);
}

body.isConsoleDockRight .topbar {
  grid-area: topbar;
}

body.isConsoleDockRight .workspace {
  grid-area: workspace;
  min-height: 0;
  min-width: 0;
}

body.isConsoleDockRight .consoleSplitter {
  grid-area: console-splitter;
  flex: none;
  min-width: 14px;
  width: 14px;
  min-height: 0;
  height: auto;
  cursor: col-resize;
}

body.isConsoleDockRight .consoleSplitter::before {
  width: 4px;
  height: 120px;
  background: linear-gradient(180deg, rgba(126,162,255,0.22), rgba(126,162,255,0.92), rgba(126,162,255,0.22));
}

body.isConsoleDockRight .consoleSplitter:hover::before,
body.isConsoleDockRight .consoleSplitter:focus-visible::before {
  width: 4px;
  height: 180px;
}

body.isConsoleDockRight .htmlConsole {
  grid-area: console;
  flex: none;
  width: auto;
  min-width: 280px;
  min-height: 0;
  height: auto;
}

body.isConsoleDockRight .htmlConsoleHeader {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

body.isConsoleDockRight .htmlConsoleHeader > strong,
body.isConsoleDockRight .consoleCount {
  line-height: 28px;
}

body.isConsoleDockRight .consoleTabs {
  order: 3;
  width: 100%;
  overflow-x: auto;
  justify-content: flex-start;
  margin-right: 0;
}

body.isConsoleDockRight .htmlConsoleActions {
  margin-left: auto;
}

body.isConsoleDockRight .bridgeBar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

body.isConsoleDockRight .bridgeBar button {
  width: 100%;
}

body.isConsoleDockRight .htmlConsole.isCollapsed {
  min-width: 42px;
}

body.isConsoleDockRight .htmlConsole.isCollapsed .htmlConsoleHeader {
  border-bottom: 0;
}

body.isConsoleDockRight .htmlConsole.isCollapsed .consoleTabs,
body.isConsoleDockRight .htmlConsole.isCollapsed .htmlConsoleActions,
body.isConsoleDockRight .htmlConsole.isCollapsed .consoleCount {
  display: none;
}

@media (max-width: 1100px) {
  body.isConsoleDockRight {
    --html-console-width: clamp(240px, 30vw, 380px);
    --explorer-width: clamp(220px, 25vw, 320px);
  }

  body.isConsoleDockRight .panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 12px var(--html-console-width, 320px);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
      "topbar topbar topbar"
      "workspace console-splitter console";
  }

  body.isConsoleDockRight .consoleSplitter {
    min-width: 12px;
    width: 12px;
    min-height: 0;
    height: auto;
    cursor: col-resize;
  }

  body.isConsoleDockRight .consoleSplitter::before {
    width: 3px;
    height: 100px;
  }

  body.isConsoleDockRight .htmlConsole {
    width: auto;
    min-width: 240px;
    flex-basis: auto;
  }
}

@media (max-width: 820px) {
  body.isConsoleDockRight {
    overflow: hidden;
    --html-console-width: clamp(220px, 34vw, 320px);
    --explorer-width: clamp(190px, 27vw, 270px);
  }

  body.isConsoleDockRight .panel {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 12px var(--html-console-width, 280px);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
      "topbar topbar topbar"
      "workspace console-splitter console";
  }

  body.isConsoleDockRight .workspace {
    flex-direction: row;
    overflow: hidden;
  }

  body.isConsoleDockRight .preview {
    order: 3;
    flex: 1 1 auto;
    min-height: 0;
  }

  body.isConsoleDockRight .splitter {
    order: 2;
    min-width: 14px;
    min-height: 0;
    cursor: col-resize;
  }

  body.isConsoleDockRight .explorer {
    order: 1;
    flex: 0 0 var(--explorer-width);
    min-width: 180px;
  }

  body.isConsoleDockRight .htmlConsole {
    min-width: 220px;
  }
}

/* Right-docked console collapse safety:
   In right dock, collapsing must never remove the header controls/tabs.
   The panel stays reachable; only the heavy content area is hidden. */
body.isConsoleDockRight .htmlConsole.isCollapsed {
  min-width: 260px;
  width: auto;
  flex-basis: auto;
}

body.isConsoleDockRight .htmlConsole.isCollapsed .htmlConsoleHeader {
  border-bottom: 1px solid rgba(255,255,255,0.10);
  min-height: 42px;
  align-items: flex-start;
  flex-wrap: wrap;
}

body.isConsoleDockRight .htmlConsole.isCollapsed .consoleTabs {
  display: inline-flex;
  order: 3;
  width: 100%;
  overflow-x: auto;
  justify-content: flex-start;
  margin-right: 0;
}

body.isConsoleDockRight .htmlConsole.isCollapsed .htmlConsoleActions {
  display: inline-flex;
  margin-left: auto;
}

body.isConsoleDockRight .htmlConsole.isCollapsed .consoleCount {
  display: inline;
}

body.isConsoleDockRight .htmlConsole.isCollapsed .bridgeBar,
body.isConsoleDockRight .htmlConsole.isCollapsed .htmlConsoleBody,
body.isConsoleDockRight .htmlConsole.isCollapsed .serverStatusPanel {
  display: none !important;
}

body.isConsoleDockRight .htmlConsole.isCollapsed .consoleTab,
body.isConsoleDockRight .htmlConsole.isCollapsed .htmlConsoleActions button {
  pointer-events: auto;
}

body.isConsoleDockRight .serverStatusPanel {
  min-height: 0;
  overflow: auto;
}

body.isConsoleDockRight .serverStatusHeader {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: 8px;
  background: linear-gradient(180deg, rgba(4, 12, 22, .96), rgba(4, 12, 22, .78));
}

/* 2026-06-07: Right-docked console real collapse + stable server tab
   - Rechts einklappen bedeutet: schmale rechte Schiene, nicht nur Inhalt verstecken.
   - Server-Tab blendet die iframe-Brücke aus und bekommt ein ruhiges Header-Grid. */
body.isConsoleDockRight .htmlConsoleHeader {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "title count actions"
    "tabs tabs tabs";
  align-items: center;
  gap: 6px 8px;
}

body.isConsoleDockRight .htmlConsoleHeader > strong {
  grid-area: title;
  min-width: 0;
  white-space: nowrap;
}

body.isConsoleDockRight .consoleCount {
  grid-area: count;
  min-width: 0;
  margin-right: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

body.isConsoleDockRight .consoleTabs {
  grid-area: tabs;
  order: initial;
  width: 100%;
  margin: 0;
  overflow-x: auto;
  justify-content: flex-start;
}

body.isConsoleDockRight .htmlConsoleActions {
  grid-area: actions;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: 0;
  min-width: max-content;
}

body.isConsoleDockRight .htmlConsole.isConsoleServerTab .bridgeBar {
  display: none !important;
}

body.isConsoleDockRight .htmlConsole.isConsoleServerTab .serverStatusPanel {
  padding-top: 8px;
}

body.isConsoleDockRight.isConsoleRightCollapsed .panel {
  grid-template-columns: minmax(0, 1fr) 10px 58px !important;
}

body.isConsoleDockRight.isConsoleRightCollapsed .consoleSplitter {
  width: 10px;
  min-width: 10px;
}

body.isConsoleDockRight.isConsoleRightCollapsed .consoleSplitter::before {
  width: 3px;
  height: 90px;
  opacity: .72;
}

body.isConsoleDockRight.isConsoleRightCollapsed .htmlConsole,
body.isConsoleDockRight .htmlConsole.isCollapsed {
  min-width: 58px !important;
  width: 58px !important;
  flex-basis: 58px !important;
  overflow: hidden;
}

body.isConsoleDockRight.isConsoleRightCollapsed .htmlConsoleHeader,
body.isConsoleDockRight .htmlConsole.isCollapsed .htmlConsoleHeader {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding: 7px 5px;
  min-height: 100%;
  height: 100%;
  border-bottom: 0;
}

body.isConsoleDockRight.isConsoleRightCollapsed .htmlConsoleHeader > strong,
body.isConsoleDockRight.isConsoleRightCollapsed .consoleCount,
body.isConsoleDockRight.isConsoleRightCollapsed .consoleTabs,
body.isConsoleDockRight.isConsoleRightCollapsed #copyConsoleBtn,
body.isConsoleDockRight.isConsoleRightCollapsed #clearConsoleBtn,
body.isConsoleDockRight.isConsoleRightCollapsed #toggleConsoleDockBtn,
body.isConsoleDockRight .htmlConsole.isCollapsed .htmlConsoleHeader > strong,
body.isConsoleDockRight .htmlConsole.isCollapsed .consoleCount,
body.isConsoleDockRight .htmlConsole.isCollapsed .consoleTabs,
body.isConsoleDockRight .htmlConsole.isCollapsed #copyConsoleBtn,
body.isConsoleDockRight .htmlConsole.isCollapsed #clearConsoleBtn,
body.isConsoleDockRight .htmlConsole.isCollapsed #toggleConsoleDockBtn {
  display: none !important;
}

body.isConsoleDockRight.isConsoleRightCollapsed .htmlConsoleActions,
body.isConsoleDockRight .htmlConsole.isCollapsed .htmlConsoleActions {
  display: flex !important;
  margin: 0 !important;
  width: 100%;
  justify-content: center;
}

body.isConsoleDockRight.isConsoleRightCollapsed #toggleConsoleBtn,
body.isConsoleDockRight .htmlConsole.isCollapsed #toggleConsoleBtn {
  display: inline-grid !important;
  place-items: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  border-color: rgba(125, 211, 252, .36);
  background: rgba(14, 165, 233, .16);
}

body.isConsoleDockRight.isConsoleRightCollapsed .bridgeBar,
body.isConsoleDockRight.isConsoleRightCollapsed .htmlConsoleBody,
body.isConsoleDockRight.isConsoleRightCollapsed .serverStatusPanel,
body.isConsoleDockRight .htmlConsole.isCollapsed .bridgeBar,
body.isConsoleDockRight .htmlConsole.isCollapsed .htmlConsoleBody,
body.isConsoleDockRight .htmlConsole.isCollapsed .serverStatusPanel {
  display: none !important;
}

body.isConsoleDockRight.isConsoleRightCollapsed .preview,
body.isConsoleDockRight.isConsoleRightCollapsed .workspace {
  min-width: 0;
}

/* 2026-06-07: Right-docked Serverstatus lazy-content fit
   Loaded Serverstatus content must not create a horizontal overflow in the
   right console. The panel looked fine while lazy, then the 6/4 column grids
   pushed wider than the dock. In right dock we let the cards wrap and stack
   details vertically. */
body.isConsoleDockRight .htmlConsole.isConsoleServerTab,
body.isConsoleDockRight .htmlConsole.isConsoleServerTab * {
  box-sizing: border-box;
}

body.isConsoleDockRight .htmlConsole.isConsoleServerTab {
  overflow: hidden;
}

body.isConsoleDockRight .htmlConsole.isConsoleServerTab .serverStatusPanel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

body.isConsoleDockRight .htmlConsole.isConsoleServerTab .serverStatusHeader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}

body.isConsoleDockRight .htmlConsole.isConsoleServerTab .serverStatusHeader > div,
body.isConsoleDockRight .htmlConsole.isConsoleServerTab .serverStatusHeader strong,
body.isConsoleDockRight .htmlConsole.isConsoleServerTab .serverStatusHeader span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.isConsoleDockRight .htmlConsole.isConsoleServerTab .serverStatusGrid {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.isConsoleDockRight .htmlConsole.isConsoleServerTab .serverStatusCard {
  min-width: 0;
}

body.isConsoleDockRight .htmlConsole.isConsoleServerTab .serverStatusDetails {
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.isConsoleDockRight .htmlConsole.isConsoleServerTab .serverStatusSection,
body.isConsoleDockRight .htmlConsole.isConsoleServerTab .securitySentinelManager {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

body.isConsoleDockRight .htmlConsole.isConsoleServerTab .serverStatusSection div {
  min-width: 0;
  gap: 8px;
}

body.isConsoleDockRight .htmlConsole.isConsoleServerTab .serverStatusSection span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.isConsoleDockRight .htmlConsole.isConsoleServerTab .serverStatusSection b {
  max-width: 62%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.isConsoleDockRight .htmlConsole.isConsoleServerTab .securitySentinelActions {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

body.isConsoleDockRight .htmlConsole.isConsoleServerTab .serverStatusMiniBtn,
body.isConsoleDockRight .htmlConsole.isConsoleServerTab .serverStatusRefreshBtn {
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  body.isConsoleDockRight .htmlConsole.isConsoleServerTab .serverStatusGrid {
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  }

  body.isConsoleDockRight .htmlConsole.isConsoleServerTab .serverStatusHeader {
    grid-template-columns: 1fr;
  }

  body.isConsoleDockRight .htmlConsole.isConsoleServerTab .serverStatusRefreshBtn {
    width: 100%;
  }
}
.adminPackagePanel{display:grid;gap:10px}.adminPackageCreateForm,.adminPackageForm,.adminHeroPlanForm{display:grid;grid-template-columns:repeat(6,minmax(90px,1fr)) auto;gap:8px;align-items:center}.adminPackageCreateForm input,.adminPackageCreateForm select,.adminPackageForm input,.adminPackageForm select,.adminPackageForm textarea,.adminHeroPlanForm select{min-width:0;border-radius:5px;border:1px solid rgba(148,163,184,.22);background:rgba(15,23,42,.82);color:var(--text,#e5edf8);padding:7px 9px}.adminPackageForm textarea{grid-column:1/-2;min-height:52px;resize:vertical}.adminPackageCreateForm label,.adminPackageForm label{display:flex;align-items:center;gap:6px;font-size:12px;color:#cbd5e1}.adminPackageTable td{vertical-align:top}.adminPackageEditRow[hidden]{display:none}.adminHeroPlanForm{display:inline-grid;grid-template-columns:minmax(150px,220px) auto;margin-left:auto}@media (max-width: 980px){.adminPackageCreateForm,.adminPackageForm,.adminHeroPlanForm{grid-template-columns:1fr}.adminPackageForm textarea{grid-column:1}.adminHeroPlanForm{margin-left:0;width:100%}}

/* 2026-06-10: Gallery bekommt eine eigene albumgeführte Ebene statt Normal-Dateisystem-Shortcut. */
.heroGalleryManager{display:grid;gap:12px}.heroGalleryAlbumsStack{display:grid;gap:14px}.heroGalleryCreateAlbum .adminRuleGrid,.heroGalleryAlbumEditor .adminRuleGrid{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:10px}.heroGalleryCreateAlbum .adminRuleGrid .full,.heroGalleryAlbumEditor .adminRuleGrid .full{grid-column:1/-1}.adminRuleBox input[type="text"],.adminRuleBox select,.adminRuleBox .adminInput{border:1px solid #253247;border-radius:5px;background:#020617;color:#e5edf8;padding:7px 9px;outline:none;min-height:34px}.adminRuleBox input[type="text"]:focus,.adminRuleBox select:focus,.adminRuleBox .adminInput:focus{border-color:#38bdf8;box-shadow:0 0 0 2px rgba(56,189,248,.14)}.heroGalleryAlbumEditor{gap:12px}.heroGalleryDropzone{display:grid;gap:5px;place-items:center;min-height:78px;border:1px dashed rgba(45,212,191,.44);border-radius:5px;background:rgba(20,184,166,.08);color:#dbeafe;text-align:center;cursor:pointer}.heroGalleryDropzone span{color:#9fb3c8;font-size:12px}.heroGalleryDropzone input{max-width:92%;font-size:12px;color:#cfe6ff}.heroGalleryImageGrid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.heroGalleryImageCard{display:grid;grid-template-columns:1fr;min-height:0;cursor:default}.heroGalleryImageCard:hover{transform:none}.heroGalleryImageCard figcaption{display:grid;gap:7px}.heroGalleryThumb{position:relative;display:grid;place-items:center;min-height:120px;border:1px solid rgba(148,163,184,.16);border-radius:5px;background:rgba(15,23,42,.76);overflow:hidden}.heroGalleryThumb img{display:block;width:100%;height:145px;object-fit:cover}.heroGalleryThumb span{font-size:32px;color:#7dd3fc}.adminAuditHeader.compact{padding:0;border:0;background:transparent}.adminAuditHeaderActions.compact{gap:6px}.serverStatusMiniBtn.danger{border-color:rgba(248,113,113,.45);background:rgba(127,29,29,.32);color:#fecaca}

/* 2026-06-10: Gallery eigene Ebene - größere Cards, echte Dropzone und saubere Vorschaubilder */
.heroGalleryManager{display:grid;gap:14px;align-content:start}.heroGalleryAlbumsStack{display:grid;gap:16px}.heroGalleryCreateAlbum .adminRuleGrid,.heroGalleryAlbumEditor .adminRuleGrid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:10px}.heroGalleryCreateAlbum .adminRuleGrid .full,.heroGalleryAlbumEditor .adminRuleGrid .full{grid-column:1/-1}.heroGalleryAlbumEditor{display:grid;gap:14px;padding:14px;border-radius:8px;background:linear-gradient(180deg,rgba(8,18,35,.96),rgba(3,7,18,.96));border:1px solid rgba(56,189,248,.2)}.heroGalleryAlbumHeader{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:0 0 10px;border-bottom:1px solid rgba(148,163,184,.13)}.heroGalleryAlbumHeader h3{margin:3px 0;color:#f8fafc}.heroGalleryAlbumHeader p{margin:0;color:#9fb3c8}.heroGalleryAlbumActions,.heroGalleryCardActions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.heroGalleryAlbumFields label{display:grid;gap:5px;color:#9fb3c8;font-size:12px}.heroGalleryDropzone{position:relative;display:grid;gap:6px;place-items:center;min-height:96px;border:1px dashed rgba(45,212,191,.6);border-radius:8px;background:radial-gradient(circle at 50% 0%,rgba(45,212,191,.16),rgba(8,47,73,.1) 55%,rgba(2,6,23,.72));color:#dbeafe;text-align:center;cursor:pointer;transition:background .16s,border-color .16s,transform .16s,box-shadow .16s}.heroGalleryDropzone:hover,.heroGalleryDropzone.isDragover{border-color:#67e8f9;background:radial-gradient(circle at 50% 0%,rgba(103,232,249,.24),rgba(20,184,166,.13) 55%,rgba(2,6,23,.72));box-shadow:0 0 0 2px rgba(45,212,191,.1),0 12px 35px rgba(8,47,73,.22);transform:translateY(-1px)}.heroGalleryDropzone strong{font-size:14px;color:#ecfeff}.heroGalleryDropzone span{color:#9fb3c8;font-size:12px}.heroGalleryDropzone input{position:absolute;inset:0;opacity:0;cursor:pointer}.heroGalleryImageGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}.heroGalleryImageCard{display:grid;grid-template-rows:auto 1fr;min-width:0;overflow:hidden;border:1px solid rgba(56,189,248,.18);border-radius:10px;background:linear-gradient(180deg,rgba(15,23,42,.96),rgba(2,6,23,.98));box-shadow:0 14px 38px rgba(0,0,0,.22)}.heroGalleryImageCard:hover{border-color:rgba(125,211,252,.38);box-shadow:0 18px 42px rgba(8,47,73,.28)}.heroGalleryThumb{position:relative;display:grid;place-items:center;height:178px;background:linear-gradient(135deg,rgba(15,23,42,.96),rgba(8,47,73,.52));overflow:hidden}.heroGalleryThumb::after{content:"";position:absolute;inset:auto 0 0;height:48px;background:linear-gradient(180deg,transparent,rgba(2,6,23,.65));pointer-events:none}.heroGalleryThumb img{display:block;width:100%;height:100%;object-fit:cover}.heroGalleryThumb span{font-size:36px;color:#7dd3fc}.heroGalleryImageBody{display:grid;gap:8px;padding:10px}.heroGalleryTitleInput{font-weight:700;color:#f8fafc}.heroGalleryDescriptionInput{min-height:58px;resize:vertical}.heroGalleryImageMeta{font-size:12px;color:#93a4b8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.heroGalleryEmptyAlbum{display:grid;gap:5px;place-items:center;min-height:130px;border:1px dashed rgba(148,163,184,.22);border-radius:8px;background:rgba(15,23,42,.34);color:#9fb3c8}.heroGalleryEmptyAlbum strong{color:#dbeafe}.adminRuleBox input[type="text"],.adminRuleBox select,.adminRuleBox .adminInput{border:1px solid #253247;border-radius:6px;background:#020617;color:#e5edf8;padding:7px 9px;outline:none;min-height:34px}.adminRuleBox input[type="text"]:focus,.adminRuleBox select:focus,.adminRuleBox .adminInput:focus{border-color:#38bdf8;box-shadow:0 0 0 2px rgba(56,189,248,.14)}

/* Gallery upload progress / optimistic preview */
.heroGalleryPendingCard{position:relative;border-color:rgba(45,212,191,.42);box-shadow:0 16px 42px rgba(20,184,166,.18)}
.heroGalleryPendingCard.isFailed{border-color:rgba(248,113,113,.62);box-shadow:0 16px 42px rgba(127,29,29,.22)}
.heroGalleryPendingCard.isDone{border-color:rgba(134,239,172,.48)}
.heroGalleryPendingThumb::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(2,6,23,.02),rgba(2,6,23,.68));z-index:1;pointer-events:none}
.heroGalleryPendingOverlay{position:absolute;left:10px;right:10px;bottom:10px;z-index:2;display:grid;gap:6px;padding:9px 10px;border:1px solid rgba(125,211,252,.28);border-radius:8px;background:rgba(2,6,23,.82);backdrop-filter:blur(6px);box-shadow:0 10px 25px rgba(0,0,0,.28)}
.heroGalleryPendingOverlay strong{font-size:12px;color:#ecfeff;text-transform:uppercase;letter-spacing:.06em}
.heroGalleryPendingOverlay span{font-size:12px;color:#b7c9dd;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.heroGalleryProgress{height:7px;border-radius:999px;background:rgba(15,23,42,.9);border:1px solid rgba(148,163,184,.18);overflow:hidden}
.heroGalleryProgress i{display:block;height:100%;width:0%;border-radius:999px;background:linear-gradient(90deg,#22d3ee,#86efac);transition:width .18s ease}
.heroGalleryPendingCard.isFailed .heroGalleryProgress i{background:linear-gradient(90deg,#fb7185,#fca5a5)}

/* 2026-06-10: Gallery lazy image hydration */
.heroGalleryThumb img[data-src],
.heroGalleryThumb img[data-gallery-loading="1"] {
  opacity: .12;
  filter: blur(10px);
  transform: scale(1.015);
}
.heroGalleryThumb img.isLoaded {
  opacity: 1;
  filter: none;
  transform: none;
  transition: opacity .22s ease, filter .22s ease, transform .22s ease;
}
.heroGalleryThumb img.isFailed {
  opacity: .5;
  filter: grayscale(1);
}

/* 2026-06-11: Member-Tier Bestandsmember-Erklärung direkt unter Auswahl */
.memberTierLegacyHint {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(45, 212, 191, .28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(20,184,166,.12), rgba(8,47,73,.12));
  color: #cfe6ff;
}
.memberTierLegacyHint strong {
  color: #fef08a;
  font-size: 13px;
}
.memberTierLegacyHint span {
  color: #dbeafe;
  font-size: 13px;
  line-height: 1.45;
}
.memberTierLegacyHint small {
  color: #93c5fd;
  line-height: 1.35;
}
.heroMemberTierFields label.isSoftDisabled {
  opacity: .62;
}
.heroMemberTierFields label.isSoftDisabled input {
  border-style: dashed;
}

/* 2026-06-11: Member-Tiers als Tabs + Explorer + Accordion */
.heroMemberTiersManager{display:grid;gap:14px;align-content:start}
.heroMemberTierTabs{display:flex;flex-wrap:wrap;gap:8px}
.heroMemberTierTab{appearance:none;border:1px solid rgba(56,189,248,.24);background:rgba(2,8,23,.78);color:#dbeafe;border-radius:999px;padding:8px 14px;font-weight:700;cursor:pointer;transition:border-color .16s,background .16s,transform .16s}
.heroMemberTierTab:hover{border-color:rgba(56,189,248,.56);background:rgba(8,47,73,.38);transform:translateY(-1px)}
.heroMemberTierTab.isActive{border-color:rgba(45,212,191,.58);background:linear-gradient(180deg,rgba(20,184,166,.26),rgba(8,47,73,.34));color:#ecfeff}
.heroMemberTierTabPanel{display:grid;gap:14px}
.heroMemberTierWorkbench{display:grid;grid-template-columns:minmax(250px,320px) minmax(0,1fr);gap:14px;align-items:start}
.heroMemberTierExplorerPane{position:sticky;top:0;align-self:start}
.heroMemberTierExplorerList{display:grid;gap:8px;max-height:70vh;overflow:auto;padding-right:4px}
.heroMemberTierExplorerItem{display:grid;gap:4px;text-align:left;padding:10px 12px;border-radius:8px;border:1px solid rgba(148,163,184,.16);background:rgba(15,23,42,.72);color:#dbeafe;cursor:pointer}
.heroMemberTierExplorerItem:hover{border-color:rgba(56,189,248,.42);background:rgba(8,47,73,.34)}
.heroMemberTierExplorerItem.isActive{border-color:rgba(45,212,191,.55);background:linear-gradient(180deg,rgba(20,184,166,.18),rgba(8,47,73,.22));box-shadow:0 0 0 1px rgba(45,212,191,.1) inset}
.heroMemberTierExplorerItem__eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#7dd3fc}
.heroMemberTierExplorerItem strong{font-size:14px}
.heroMemberTierExplorerItem small{color:#9fb3c8;line-height:1.35}
.heroMemberTierStack{display:grid;gap:12px}
.heroMemberTierAccordionItem{padding:0;overflow:hidden}
.heroMemberTierAccordionToggle{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;width:100%;text-align:left;padding:14px 16px;border:0;background:transparent;color:inherit;cursor:pointer}
.heroMemberTierAccordionToggle:hover{background:rgba(56,189,248,.06)}
.heroMemberTierAccordionTitle{display:grid;gap:4px;min-width:0}
.heroMemberTierAccordionTitle strong{font-size:18px;color:#f8fafc}
.heroMemberTierAccordionTitle small{color:#9fb3c8;line-height:1.4}
.heroMemberTierAccordionMeta{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;align-items:center}
.heroMemberTierAccordionMeta span{padding:4px 8px;border-radius:999px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08);font-size:12px;color:#dbeafe}
.heroMemberTierAccordionChevron{font-size:14px;font-weight:900;transition:transform .16s ease}
.heroMemberTierAccordionItem.isOpen .heroMemberTierAccordionChevron{transform:rotate(180deg)}
.heroMemberTierAccordionBody{display:grid;gap:12px;padding:0 16px 16px;border-top:1px solid rgba(148,163,184,.12)}
.heroMemberTierTopActions{justify-content:flex-end}
@media (max-width: 1100px){.heroMemberTierWorkbench{grid-template-columns:1fr}.heroMemberTierExplorerPane{position:static}.heroMemberTierExplorerList{max-height:none}}

/* 2026-08-20: Nexus Payment-Center / PayPal Betreiberkonto */
.adminPaymentView{display:grid;gap:14px;width:100%;color:var(--text,#e5edf8)}
.adminPaymentGates{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
.adminPaymentGate{display:grid;gap:5px;min-height:112px;padding:12px;border:1px solid rgba(148,163,184,.2);border-radius:5px;background:rgba(2,8,23,.72)}
.adminPaymentGate span{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#a9bdd4}.adminPaymentGate strong{font-size:19px}.adminPaymentGate small{color:#9fb3c8;line-height:1.4}
.adminPaymentGate.ok{border-color:rgba(134,239,172,.34);background:linear-gradient(145deg,rgba(20,83,45,.18),rgba(2,8,23,.76))}.adminPaymentGate.ok strong{color:#bbf7d0}
.adminPaymentGate.warn{border-color:rgba(251,191,36,.32);background:linear-gradient(145deg,rgba(120,53,15,.16),rgba(2,8,23,.76))}.adminPaymentGate.warn strong{color:#fde68a}
.adminPaymentGate.bad{border-color:rgba(251,113,133,.34);background:linear-gradient(145deg,rgba(127,29,29,.16),rgba(2,8,23,.76))}.adminPaymentGate.bad strong{color:#fecdd3}
.adminPaymentLayout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:12px;align-items:start}
.adminPaymentForm{display:grid;grid-template-columns:1fr 1fr;gap:10px}.adminPaymentForm label{display:grid;gap:5px;color:#b9c8dd;font-size:12px}.adminPaymentForm label:nth-child(4){grid-column:1/-1}
.adminPaymentForm input,.adminPaymentForm select{width:100%;min-width:0;border:1px solid #253247;border-radius:5px;background:#020617;color:#e5edf8;padding:8px 9px;outline:none;min-height:36px}.adminPaymentForm input:focus,.adminPaymentForm select:focus{border-color:#38bdf8;box-shadow:0 0 0 2px rgba(56,189,248,.14)}
.adminPaymentForm label small{color:#7f96b1;line-height:1.35}.adminPaymentFormActions{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:4px}.adminPaymentFormActions span{color:#93a4b8;font-size:12px}
.adminPaymentFacts{display:grid;gap:0;margin:0}.adminPaymentFacts div{display:grid;grid-template-columns:minmax(130px,.85fr) minmax(0,1.15fr);gap:10px;padding:8px 0;border-bottom:1px solid rgba(148,163,184,.12)}.adminPaymentFacts div:last-child{border-bottom:0}.adminPaymentFacts dt{color:#91a6bf;font-size:12px}.adminPaymentFacts dd{margin:0;color:#e5edf8;font-size:12px;overflow-wrap:anywhere}

.adminPaymentCatalog{display:grid;gap:10px}.adminPaymentCatalogHeader{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.adminPaymentCatalogHeader h3{margin:0 0 4px}.adminPaymentCatalogHeader p{margin:0 0 4px;color:#9fb3c8;line-height:1.45}.adminPaymentCatalogHeader small{color:#7f96b1}.adminPaymentCatalog .adminAuditTableWrap{max-height:min(42vh,460px)}
.adminPaymentRoadmap{display:grid;gap:10px}.adminPaymentPipeline{display:flex;gap:7px;flex-wrap:wrap}.adminPaymentPipeline span{padding:6px 9px;border:1px solid rgba(148,163,184,.2);border-radius:999px;background:rgba(15,23,42,.72);color:#9fb3c8;font-size:11px;font-weight:700}.adminPaymentPipeline span.done{border-color:rgba(134,239,172,.28);color:#bbf7d0;background:rgba(20,83,45,.16)}.adminPaymentPipeline span.current{border-color:rgba(56,189,248,.44);color:#bae6fd;background:rgba(14,116,144,.18)}
@media (max-width:980px){.adminPaymentGates,.adminPaymentLayout,.adminPaymentForm{grid-template-columns:1fr}.adminPaymentCatalogHeader{flex-direction:column;align-items:stretch}.adminPaymentForm label:nth-child(4),.adminPaymentFormActions{grid-column:1}.adminPaymentFormActions{align-items:flex-start;flex-direction:column}.adminPaymentFacts div{grid-template-columns:1fr}}

/* Admin-Mail: IDN/Punycode/Homograph sender warning */
.mailSenderSecurityBadge{display:inline-flex;align-items:center;justify-content:center;min-height:22px;padding:0 8px;border-radius:5px;font-size:10px;font-weight:800;letter-spacing:.02em;white-space:nowrap;border:1px solid #f59e0b77;background:#3b2a08;color:#fde68a}
.mailSenderSecurityBadge.isDanger{border-color:#ef444499;background:#451a1a;color:#fecaca}
.mailInboxRow.hasSenderRisk{position:relative}
.mailInboxRow.hasSenderDanger{border-color:#ef4444aa!important;box-shadow:inset 3px 0 0 #ef4444,0 8px 20px rgba(0,0,0,.22)!important}
.mailInboxRow.hasSenderWarn{border-color:#f59e0b88!important;box-shadow:inset 3px 0 0 #f59e0b,0 8px 20px rgba(0,0,0,.22)!important}
.mailInboxRow.hasSenderDanger .mailInboxFromValue{color:#fecaca}
.mailInboxRow.hasSenderWarn .mailInboxFromValue{color:#fde68a}
.mailSenderMetaRisk{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#fecaca}
.mailSenderSecurityWarning{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:start;padding:11px 12px;border-radius:5px;border:1px solid #f59e0b88;background:#3b2a0866;color:#fde68a}
.mailSenderSecurityWarning.isDanger{border-color:#ef4444aa;background:#451a1a88;color:#fecaca}
.mailSenderSecurityWarningIcon{font-size:18px;line-height:1.2}
.mailSenderSecurityWarning>div:last-child{display:grid;gap:4px;min-width:0}
.mailSenderSecurityWarning strong{font-size:13px;color:inherit}
.mailSenderSecurityWarning span,.mailSenderSecurityWarning small{font-size:11px;line-height:1.4;color:inherit}
.mailSenderSecurityWarning small{opacity:.86}
.mailSenderSecurityWarning code{display:inline-block;justify-self:start;max-width:100%;overflow:auto;padding:3px 6px;border-radius:4px;background:#020617aa;border:1px solid currentColor;color:inherit;font-size:11px;word-break:break-all}

/* Admin Test Runner */
.adminTestView{display:grid;gap:14px;width:100%;color:var(--text,#e5edf8)}
.adminTestForm{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:10px;align-items:end}
.adminTestForm label{display:grid;gap:6px;color:var(--muted,#92a4bb);font-size:12px}
.adminTestForm input{width:100%;box-sizing:border-box;border:1px solid #253247;border-radius:5px;background:#020617;color:var(--text,#e5edf8);padding:9px 10px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.adminTestList{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:8px}
.adminTestItem{display:grid;gap:4px;text-align:left;border:1px solid #253247;border-radius:5px;background:#02061788;color:#e5edf8;padding:10px 12px;cursor:pointer}
.adminTestItem:hover{border-color:#38bdf877;background:#082f4966}.adminTestItem small{color:var(--muted,#92a4bb);overflow-wrap:anywhere}
.adminTestOutput{margin:0;min-height:170px;max-height:48vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #1e293b;border-radius:5px;background:#010409;color:#d7e2f0;padding:14px;font:12px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
@media(max-width:760px){.adminTestForm{grid-template-columns:1fr}.adminTestForm button{justify-self:start}}


/* 2026-09-04: Nexus Pages Owner UI (Step 7) */
.heroPagesWorkspace{display:grid;gap:14px;align-content:start}
.heroPagesCreatePanel,.heroPagesInfoPanel,.heroPagesPageEditor,.heroPagesBlocksStack{display:grid;gap:14px}
.heroPagesFields{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:10px}
.heroPagesFields label,.heroPagesBlockAccess label,.heroPagesModuleEditor label,.heroPagesAddBlock label,.heroPagesBlockContent{display:grid;gap:5px;color:#9fb3c8;font-size:12px}
.heroPagesFields label.full{grid-column:1/-1}
.heroPagesCheck{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;align-content:center;gap:8px!important;min-height:36px;padding:7px 9px;border:1px solid rgba(148,163,184,.15);border-radius:6px;background:rgba(2,6,23,.42)}
.heroPagesCheck input{margin:0}.heroPagesCheck span{color:#dbeafe}
.heroPagesPageHeader,.heroPagesBlockHeader,.heroPagesBlocksHeading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.heroPagesPageHeader h3,.heroPagesBlockHeader h3,.heroPagesBlocksHeading h3{margin:3px 0;color:#f8fafc}
.heroPagesPageHeader p,.heroPagesBlockHeader p,.heroPagesBlocksHeading p{margin:0;color:#9fb3c8}
.heroPagesPageActions,.heroPagesBlockActions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.heroPagesBlocksStack{padding-top:2px}.heroPagesBlockCard{display:grid;gap:12px;border-color:rgba(56,189,248,.22);background:linear-gradient(180deg,rgba(8,18,35,.95),rgba(2,6,23,.97))}.heroPagesBlockCard.isUnavailable{border-color:rgba(248,113,113,.3)}
.heroPagesRawEditor{width:100%;min-height:190px;resize:vertical;font:12px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre-wrap}
.heroPagesModuleEditor{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:10px}
.heroPagesBlockAccess{display:grid;grid-template-columns:minmax(180px,.55fr) minmax(0,1.45fr);gap:10px;padding-top:10px;border-top:1px solid rgba(148,163,184,.12)}
.heroPagesBlockCustomAccess{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:10px}.heroPagesBlockCustomAccess[hidden]{display:none!important}
.heroPagesAddBlock{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:10px;align-items:end;border-style:dashed}
.heroPagesBlocksHeading>span{padding:5px 9px;border-radius:999px;border:1px solid rgba(56,189,248,.22);background:rgba(8,47,73,.24);color:#bae6fd;font-size:12px;font-weight:700}
.heroPagesPageSettings{display:grid;gap:14px}
@media(max-width:1050px){.heroPagesFields{grid-template-columns:repeat(2,minmax(180px,1fr))}.heroPagesBlockAccess{grid-template-columns:1fr}}
@media(max-width:720px){.heroPagesFields,.heroPagesModuleEditor,.heroPagesBlockCustomAccess,.heroPagesAddBlock{grid-template-columns:1fr}.heroPagesFields label.full{grid-column:1}.heroPagesPageActions,.heroPagesBlockActions{justify-content:flex-start}}

/* 2026-09-04: Nexus Pages Rich Text / TinyMCE (Step 8) */
.heroPagesTinyMceEditor{width:100%;min-height:220px;resize:vertical;font:13px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre-wrap}
.heroPagesBlockContent .tox-tinymce{border:1px solid #253247!important;border-radius:7px!important;overflow:hidden;box-shadow:0 0 0 1px rgba(56,189,248,.04)}
.heroPagesBlockContent.isTinyMceReady .heroPagesTinyMceEditor{min-height:0}
.heroPagesRichTextPolicy,.heroPagesTinyMceWarning{display:block;line-height:1.45;color:#7f96b1}
.heroPagesTinyMceWarning{padding:8px 10px;border:1px solid rgba(251,191,36,.32);border-radius:6px;background:rgba(120,53,15,.14);color:#fde68a}

/* Nexus Video Player · Step 4 owner management */
.heroVideoPlayerWorkspace{align-content:start}.heroVideoPlayerStats{display:grid;grid-template-columns:repeat(3,minmax(100px,145px)) minmax(320px,1fr);gap:10px}.heroVideoPlayerStats>article{display:grid;gap:2px;align-content:center;min-height:72px;padding:11px 13px;border:1px solid rgba(56,189,248,.18);border-radius:8px;background:linear-gradient(180deg,rgba(8,18,35,.96),rgba(2,6,23,.96))}.heroVideoPlayerStats>article strong{font-size:22px;color:#f8fafc}.heroVideoPlayerStats>article span{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#8fa7c2}.heroVideoPlayerProviderStrip{display:grid;grid-template-columns:repeat(3,minmax(100px,1fr));gap:8px}.heroVideoPlayerProviderCard{display:flex;align-items:center;gap:9px;min-width:0;padding:10px;border:1px solid rgba(148,163,184,.16);border-radius:8px;background:rgba(2,8,23,.68)}.heroVideoPlayerProviderCard>span{display:grid;place-items:center;width:34px;height:34px;border-radius:7px;background:rgba(56,189,248,.09);font-size:18px}.heroVideoPlayerProviderCard div{display:grid;gap:2px;min-width:0}.heroVideoPlayerProviderCard strong{color:#e6f2ff;font-size:13px}.heroVideoPlayerProviderCard small{color:#879db5;font-size:11px}.heroVideoPlayerSectionHead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.heroVideoPlayerSectionHead>div{display:grid;gap:4px}.heroVideoPlayerSectionHead h3{margin:0}.heroVideoPlayerSectionHead p{margin:0;color:#8fa4bc;font-size:12px;line-height:1.45}.heroVideoPlayerSectionHead>span{white-space:nowrap;color:#a5bdd6;font-size:12px}.heroVideoPlayerCreateFields{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(320px,2fr) auto;gap:9px;align-items:end}.heroVideoPlayerCreateFields label,.heroVideoPlayerSourceFields label,.heroVideoPlayerSettingsValues label{display:grid;gap:5px;color:#9fb3c8;font-size:12px}.heroVideoPlayerCreateFields input,.heroVideoPlayerSourceFields input,.heroVideoPlayerSettingsValues input[type="text"],.heroVideoPlayerSettingsValues input[type="number"]{width:100%;box-sizing:border-box;border:1px solid #253247;border-radius:6px;background:#020617;color:#e5edf8;padding:7px 9px;outline:none;min-height:34px}.heroVideoPlayerCreateFields input:focus,.heroVideoPlayerSourceFields input:focus,.heroVideoPlayerSettingsValues input:focus{border-color:#38bdf8;box-shadow:0 0 0 2px rgba(56,189,248,.14)}.heroVideoPlayerHint{color:#7890aa;line-height:1.4}.heroVideoPlayerSourceList{display:grid;gap:10px}.heroVideoPlayerSourceCard{display:grid;gap:10px;padding:12px;border:1px solid rgba(56,189,248,.18);border-radius:9px;background:linear-gradient(180deg,rgba(9,20,38,.96),rgba(2,6,23,.97));box-shadow:0 10px 28px rgba(0,0,0,.16)}.heroVideoPlayerSourceCard.isDisabled{border-color:rgba(251,191,36,.18);opacity:.84}.heroVideoPlayerSourceHead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.heroVideoPlayerSourceIdentity{display:flex;align-items:center;gap:10px;min-width:0}.heroVideoPlayerProviderIcon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border:1px solid rgba(56,189,248,.18);border-radius:8px;background:rgba(14,165,233,.09);font-size:20px}.heroVideoPlayerSourceIdentity div{display:grid;gap:3px;min-width:0}.heroVideoPlayerSourceIdentity strong{overflow:hidden;text-overflow:ellipsis;color:#f8fafc;font-size:14px}.heroVideoPlayerSourceIdentity small{color:#8da3bb;font-size:11px}.heroVideoPlayerSourceState{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}.heroVideoPlayerOrder{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:25px;padding:0 7px;border:1px solid rgba(148,163,184,.18);border-radius:999px;background:rgba(15,23,42,.72);color:#9db2c9;font:700 11px/1 ui-monospace,SFMono-Regular,Menlo,monospace}.heroVideoPlayerSourceFields{display:grid;grid-template-columns:minmax(180px,.75fr) minmax(300px,2fr);gap:9px}.heroVideoPlayerSourceFields .full{min-width:0}.heroVideoPlayerSourceMeta{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:center;padding:7px 9px;border-radius:6px;background:rgba(15,23,42,.72);color:#8096ad;font-size:11px}.heroVideoPlayerSourceMeta span{font-weight:700;color:#a9bdd1}.heroVideoPlayerSourceMeta code{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7dd3fc}.heroVideoPlayerSourceActions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.heroVideoPlayerEmpty{display:grid;gap:6px;place-items:center;min-height:150px;border:1px dashed rgba(56,189,248,.24);border-radius:8px;background:radial-gradient(circle at 50% 0%,rgba(14,165,233,.10),rgba(2,6,23,.42));text-align:center;color:#8da3bb}.heroVideoPlayerEmpty>span{font-size:32px}.heroVideoPlayerEmpty strong{color:#dbeafe}.heroVideoPlayerEmpty p{max-width:570px;margin:0;font-size:12px;line-height:1.45}.heroVideoPlayerSettingsGrid{display:grid;grid-template-columns:repeat(2,minmax(240px,1fr));gap:8px}.heroVideoPlayerToggle{display:flex!important;grid-template-columns:none!important;align-items:flex-start;gap:9px!important;padding:9px;border:1px solid rgba(148,163,184,.14);border-radius:7px;background:rgba(15,23,42,.52);cursor:pointer}.heroVideoPlayerToggle input{margin-top:3px}.heroVideoPlayerToggle span{display:grid;gap:2px}.heroVideoPlayerToggle strong{color:#dbeafe;font-size:12px}.heroVideoPlayerToggle small{color:#7f95ad;font-size:11px;line-height:1.35}.heroVideoPlayerSettingsValues{display:grid;grid-template-columns:1.2fr .7fr .7fr;gap:10px;padding-top:2px}.heroVideoPlayerVolume{display:grid;grid-template-columns:minmax(120px,1fr) 74px auto;gap:7px;align-items:center}.heroVideoPlayerVolume input[type="range"]{width:100%;accent-color:#38bdf8}.heroVideoPlayerVolume span{color:#8da3bb}.heroVideoPlayerTikTokSettings{display:flex;gap:12px;flex-wrap:wrap;align-items:center;padding:9px 10px;border:1px solid rgba(217,70,239,.16);border-radius:7px;background:rgba(88,28,135,.08);color:#aebfd2;font-size:12px}.heroVideoPlayerTikTokSettings strong{color:#e9d5ff}.heroVideoPlayerTikTokSettings label{display:flex;align-items:center;gap:5px!important;cursor:pointer}.heroVideoPlayerPreviewPlaceholder{grid-template-columns:minmax(0,1fr) auto;align-items:center}.heroVideoPlayerPreviewPlaceholder>div:first-child{display:grid;gap:4px}.heroVideoPlayerPreviewPlaceholder h3,.heroVideoPlayerPreviewPlaceholder p{margin:0}.heroVideoPlayerPreviewPlaceholder p{color:#879db5;font-size:12px;line-height:1.45}
@media (max-width:1100px){.heroVideoPlayerStats{grid-template-columns:repeat(3,1fr)}.heroVideoPlayerProviderStrip{grid-column:1/-1}.heroVideoPlayerCreateFields{grid-template-columns:1fr}.heroVideoPlayerCreateFields .aclReloadBtn{justify-self:start}.heroVideoPlayerSettingsValues{grid-template-columns:1fr}.heroVideoPlayerPreviewPlaceholder{grid-template-columns:1fr}}
@media (max-width:760px){.heroVideoPlayerStats{grid-template-columns:1fr 1fr}.heroVideoPlayerProviderStrip{grid-template-columns:1fr;grid-column:1/-1}.heroVideoPlayerStats>article:first-child{grid-column:1/-1}.heroVideoPlayerSourceHead{display:grid}.heroVideoPlayerSourceState{justify-content:flex-start}.heroVideoPlayerSourceFields{grid-template-columns:1fr}.heroVideoPlayerSettingsGrid{grid-template-columns:1fr}.heroVideoPlayerSourceActions{justify-content:flex-start}.heroVideoPlayerVolume{grid-template-columns:1fr 70px auto}.heroVideoPlayerSectionHead{display:grid}.heroVideoPlayerTikTokSettings{display:grid}.heroVideoPlayerPreviewPlaceholder .adminAuditHeaderActions{justify-content:flex-start}}

/* Nexus Video Player · Step 5 live Workstation preview */
.heroVideoPlayerPreview{display:grid;gap:13px;overflow:visible}.heroVideoPlayerLivePreviewShell{display:grid;place-items:center;min-width:0;padding:12px;border:1px solid rgba(56,189,248,.16);border-radius:10px;background:radial-gradient(circle at 50% 0%,rgba(14,165,233,.10),rgba(0,0,0,.18))}.heroVideoPlayerLivePreviewShell>[data-video-player-live-preview]{width:100%;display:grid;place-items:center}.heroVideoPlayerLivePreviewShell .msp-player{max-width:980px}.heroVideoPlayerPreviewFooter{display:flex;align-items:center;justify-content:space-between;gap:12px}.heroVideoPlayerPreviewFooter>small{max-width:760px;color:#7f95ad;line-height:1.45}.heroVideoPlayerPreviewEmpty{min-height:180px}
@media(max-width:760px){.heroVideoPlayerPreviewFooter{display:grid}.heroVideoPlayerPreviewFooter .adminAuditHeaderActions{justify-content:flex-start}.heroVideoPlayerLivePreviewShell{padding:7px}}

/* 2026-09-10: Nexus Video Player PageBlock editor (Step 6) */
.heroPagesVideoPlayerEditor{grid-template-columns:1fr}
.heroPagesVideoSources{display:grid;gap:8px;padding:10px;border:1px solid rgba(143,216,255,.12);border-radius:8px;background:rgba(5,12,20,.28)}
.heroPagesVideoSource{display:flex!important;grid-template-columns:none!important;align-items:flex-start;gap:10px!important;padding:9px 10px;border:1px solid rgba(143,216,255,.12);border-radius:7px;background:rgba(255,255,255,.025);cursor:pointer}
.heroPagesVideoSource input{margin-top:3px}
.heroPagesVideoSource>span{display:grid;gap:2px;min-width:0}
.heroPagesVideoSource strong{color:#eaf6ff;font-size:13px;font-weight:650;overflow:hidden;text-overflow:ellipsis}
.heroPagesVideoSource small{color:#7f94a8;font-size:11px}
.heroPagesVideoSource.isInactive{opacity:.58}
.heroPagesVideoSource:has(input:disabled){cursor:default}
/* Nexus Video Player · Step 9 detached preview state */
.heroVideoPlayerLivePreviewShell.isDetached{min-height:76px;background:rgba(2,6,23,.5);border-style:dashed}
.heroVideoPlayerLivePreviewShell.isDetached::before{content:"Player abgelöst · unten rechts";color:#7f95ad;font-size:12px;letter-spacing:.02em}

/* Nexus Video Player · Step 9.2 background preview state */
.heroVideoPlayerLivePreviewShell.isBackground{min-height:76px;background:rgba(2,6,23,.5);border-style:dashed}
.heroVideoPlayerLivePreviewShell.isBackground::before{content:"Player als Seitenhintergrund · volle Fläche";color:#7f95ad;font-size:12px;letter-spacing:.02em}

/* Nexus Newsletter · Step 4 Hero owner center */
.heroNewsletterWorkspace{align-content:start}.heroNewsletterStats{display:grid;grid-template-columns:repeat(5,minmax(110px,1fr));gap:10px}.heroNewsletterStats>article{display:grid;gap:2px;align-content:center;min-height:72px;padding:11px 13px;border:1px solid rgba(56,189,248,.18);border-radius:8px;background:linear-gradient(180deg,rgba(8,18,35,.96),rgba(2,6,23,.96))}.heroNewsletterStats>article strong{font-size:22px;color:#f8fafc}.heroNewsletterStats>article span{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#8fa7c2}.heroNewsletterTrust{display:flex;align-items:center;justify-content:space-between;gap:16px;border-color:rgba(34,197,94,.18)}.heroNewsletterTrust>div{display:grid;gap:4px}.heroNewsletterTrust p,.heroNewsletterSectionHead p,.heroNewsletterEditorFooter p{margin:0;color:#8fa4bc;font-size:12px;line-height:1.45}.heroNewsletterSectionHead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.heroNewsletterSectionHead>div{display:grid;gap:4px}.heroNewsletterSectionHead h3{margin:0}.heroNewsletterSectionHead>span{white-space:nowrap;color:#8fa4bc;font-size:12px}.heroNewsletterFilters{display:grid;grid-template-columns:minmax(180px,.45fr) minmax(240px,1fr);gap:10px}.heroNewsletterFilters label,.heroNewsletterEditorGrid label{display:grid;gap:5px;color:#9fb3c8;font-size:12px}.heroNewsletterFilters input,.heroNewsletterFilters select,.heroNewsletterEditorGrid input,.heroNewsletterEditorGrid textarea{width:100%;box-sizing:border-box;border:1px solid #253247;border-radius:6px;background:#020617;color:#e5edf8;padding:7px 9px;outline:none}.heroNewsletterFilters input:focus,.heroNewsletterFilters select:focus,.heroNewsletterEditorGrid input:focus,.heroNewsletterEditorGrid textarea:focus{border-color:#38bdf8;box-shadow:0 0 0 2px rgba(56,189,248,.14)}.heroNewsletterSubscriberTable td strong,.heroNewsletterSubscriberTable td small{display:block}.heroNewsletterSubscriberTable td small{margin-top:3px;color:#7890aa;font-size:11px}.heroNewsletterCampaignLayout{display:grid;grid-template-columns:minmax(260px,.68fr) minmax(430px,1.5fr);gap:12px;align-items:start}.heroNewsletterCampaignList{display:grid;gap:8px}.heroNewsletterCampaignCard{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center;padding:8px;border:1px solid rgba(148,163,184,.14);border-radius:8px;background:rgba(2,8,23,.58)}.heroNewsletterCampaignCard.isSelected{border-color:rgba(56,189,248,.52);box-shadow:0 0 0 2px rgba(56,189,248,.08)}.heroNewsletterCampaignSelect{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.heroNewsletterCampaignSelect>span:first-child{display:grid;gap:3px;min-width:0}.heroNewsletterCampaignSelect strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#eaf4ff;font-size:13px}.heroNewsletterCampaignSelect small{color:#7890aa;font-size:11px}.heroNewsletterEditorGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.heroNewsletterEditorGrid .full{grid-column:1/-1}.heroNewsletterEditorGrid textarea{resize:vertical;min-height:110px;font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.heroNewsletterEditorGrid textarea[disabled],.heroNewsletterEditorGrid input[disabled]{opacity:.72}.heroNewsletterEditorFooter{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:4px}.heroNewsletterEditorFooter p{max-width:680px}.heroNewsletterEmpty{display:grid;gap:6px;place-items:center;min-height:150px;padding:16px;border:1px dashed rgba(56,189,248,.24);border-radius:8px;background:radial-gradient(circle at 50% 0%,rgba(14,165,233,.10),rgba(2,6,23,.42));text-align:center;color:#8da3bb}.heroNewsletterEmpty>span{font-size:30px}.heroNewsletterEmpty strong{color:#dbeafe}.heroNewsletterEmpty p{max-width:540px;margin:0;font-size:12px;line-height:1.45}
@media(max-width:1100px){.heroNewsletterStats{grid-template-columns:repeat(3,1fr)}.heroNewsletterCampaignLayout{grid-template-columns:1fr}.heroNewsletterCampaigns{order:1}.heroNewsletterEditor{order:2}}
@media(max-width:760px){.heroNewsletterStats{grid-template-columns:1fr 1fr}.heroNewsletterStats>article:first-child{grid-column:1/-1}.heroNewsletterTrust,.heroNewsletterSectionHead,.heroNewsletterEditorFooter{display:grid}.heroNewsletterFilters,.heroNewsletterEditorGrid{grid-template-columns:1fr}.heroNewsletterEditorGrid .full{grid-column:auto}.heroNewsletterCampaignCard{grid-template-columns:1fr}.heroNewsletterCampaignSelect{align-items:flex-start}.heroNewsletterSubscriberTable{min-width:760px}}
/* Nexus Newsletter Step 6 · dispatch queue / batch worker */
.heroNewsletterDispatchState{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:4px}.heroNewsletterDispatchState>div{display:grid;gap:3px;padding:10px 12px;border:1px solid rgba(56,189,248,.16);border-radius:7px;background:rgba(2,8,23,.52)}.heroNewsletterDispatchState strong{color:#dbeafe;font-size:12px}.heroNewsletterDispatchState span{color:#8fa4bc;font-size:11px;line-height:1.45}.heroNewsletterEditorActions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.heroNewsletterEditorActions .aclReloadBtn,.heroNewsletterEditorActions .serverStatusMiniBtn{white-space:nowrap}
@media(max-width:760px){.heroNewsletterDispatchState{grid-template-columns:1fr}.heroNewsletterEditorActions{justify-content:stretch}.heroNewsletterEditorActions button{width:100%}}

/* Admin System Notices – Step 1 */
.adminSystemNoticesView{display:grid;gap:14px}
.adminSystemNoticeStats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.adminSystemNoticeStats .adminAuditState{display:grid;gap:3px;align-content:center;min-height:70px}
.adminSystemNoticeStats .adminAuditState strong{font-size:22px}
.adminSystemNoticeStats .adminAuditState span{font-size:12px;color:#94a3b8}
.adminSystemNoticeWorkbench{display:grid;grid-template-columns:minmax(220px,320px) minmax(0,1fr);gap:12px;align-items:start}
.adminSystemNoticeList{display:grid;gap:8px;max-height:min(68vh,760px);overflow:auto;position:sticky;top:8px}
.adminSystemNoticeItem{display:grid;gap:5px;text-align:left;width:100%;padding:10px;border:1px solid rgba(148,163,184,.18);border-radius:6px;background:rgba(15,23,42,.58);color:var(--text,#e5edf8);cursor:pointer}
.adminSystemNoticeItem:hover,.adminSystemNoticeItem.isActive{border-color:rgba(56,189,248,.52);background:rgba(14,116,144,.18)}
.adminSystemNoticeItem strong{font-size:13px}.adminSystemNoticeItem small{color:#94a3b8}
.adminSystemNoticeMain{min-width:0}.adminSystemNoticeEditor{display:grid;gap:12px}
.adminSystemNoticeFields textarea{width:100%;resize:vertical}.adminSystemNoticeFields input,.adminSystemNoticeFields select{width:100%}
@media (max-width:980px){.adminSystemNoticeStats{grid-template-columns:repeat(2,minmax(0,1fr))}.adminSystemNoticeWorkbench{grid-template-columns:1fr}.adminSystemNoticeList{position:static;max-height:none}}

/* Nexus System Notices · Step 3 Hero Inbox */
.heroSystemNoticesWorkspace{align-content:start}.heroSystemNoticeStats{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:10px}.heroSystemNoticeStats>article{display:grid;gap:2px;align-content:center;min-height:72px;padding:11px 13px;border:1px solid rgba(56,189,248,.18);border-radius:8px;background:linear-gradient(180deg,rgba(8,18,35,.96),rgba(2,6,23,.96))}.heroSystemNoticeStats>article strong{font-size:22px;color:#f8fafc}.heroSystemNoticeStats>article span{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#8fa7c2}.heroSystemNoticePolicy{display:flex;align-items:center;justify-content:space-between;gap:16px}.heroSystemNoticePolicy>div{display:grid;gap:4px}.heroSystemNoticePolicy p{margin:0;color:#8fa4bc;font-size:12px;line-height:1.45}.heroSystemNoticeLayout{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(430px,1.4fr);gap:12px;align-items:start}.heroSystemNoticeList{display:grid;gap:9px}.heroSystemNoticeCard{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;width:100%;padding:10px;border:1px solid rgba(148,163,184,.14);border-radius:8px;background:rgba(2,8,23,.58);color:inherit;text-align:left;cursor:pointer}.heroSystemNoticeCard:hover,.heroSystemNoticeCard.isSelected{border-color:rgba(56,189,248,.48);background:rgba(8,24,45,.78)}.heroSystemNoticeCard.isUnread{box-shadow:inset 3px 0 0 rgba(56,189,248,.85)}.heroSystemNoticeIcon{font-size:22px}.heroSystemNoticeCardText{display:grid;gap:3px;min-width:0}.heroSystemNoticeCardText strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#eaf4ff;font-size:13px}.heroSystemNoticeCardText small{color:#7890aa;font-size:11px}.heroSystemNoticeCardMeta{display:flex;align-items:center;gap:7px}.heroSystemNoticeCardMeta i{display:block;width:8px;height:8px;border-radius:50%;background:#38bdf8;box-shadow:0 0 10px rgba(56,189,248,.5)}.heroSystemNoticeCardMeta em{font-style:normal}.heroSystemNoticeDetail{display:grid;gap:14px}.heroSystemNoticeDetailHead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.heroSystemNoticeDetailHead>div{display:flex;align-items:flex-start;gap:10px}.heroSystemNoticeDetailHead h3{margin:2px 0 0;color:#eef7ff}.heroSystemNoticeDetailHead small{color:#8da4bd}.heroSystemNoticeDetailIcon{font-size:30px}.heroSystemNoticePreheader{margin:0;padding:9px 11px;border-left:3px solid rgba(56,189,248,.55);background:rgba(14,165,233,.06);color:#b8c9dc;font-size:12px}.heroSystemNoticeBody{min-height:170px;padding:14px;border:1px solid rgba(148,163,184,.14);border-radius:8px;background:#020617;color:#dce8f5;font-size:13px;line-height:1.65}.heroSystemNoticeMeta{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.heroSystemNoticeMeta>span{display:grid;gap:3px;padding:8px;border:1px solid rgba(148,163,184,.12);border-radius:6px;background:rgba(2,8,23,.42);color:#90a6be;font-size:11px}.heroSystemNoticeMeta strong{color:#dce8f5;font-size:11px}.heroSystemNoticeEmpty{display:grid;gap:6px;place-items:center;min-height:150px;padding:16px;border:1px dashed rgba(56,189,248,.24);border-radius:8px;text-align:center;color:#8da3bb}.heroSystemNoticeEmpty>span{font-size:30px}.heroSystemNoticeEmpty strong{color:#dbeafe}.heroSystemNoticeEmpty p{max-width:520px;margin:0;font-size:12px;line-height:1.45}
@media(max-width:1100px){.heroSystemNoticeLayout{grid-template-columns:1fr}.heroSystemNoticeMeta{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.heroSystemNoticeStats{grid-template-columns:1fr}.heroSystemNoticePolicy,.heroSystemNoticeDetailHead{display:grid}.heroSystemNoticeCard{grid-template-columns:auto minmax(0,1fr)}.heroSystemNoticeCardMeta{grid-column:2}.heroSystemNoticeMeta{grid-template-columns:1fr}}

/* Nexus Hero Planner - Step 1 */
.heroPlannerWorkspace{align-content:start}.heroPlannerStats{display:grid;grid-template-columns:repeat(4,minmax(110px,1fr));gap:10px}.heroPlannerStats>article{display:grid;gap:2px;align-content:center;min-height:72px;padding:11px 13px;border:1px solid rgba(56,189,248,.18);border-radius:8px;background:linear-gradient(180deg,rgba(8,18,35,.96),rgba(2,6,23,.96))}.heroPlannerStats>article strong{font-size:22px;color:#f8fafc}.heroPlannerStats>article span{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#8fa7c2}.heroPlannerSectionHead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.heroPlannerSectionHead>div{display:grid;gap:4px}.heroPlannerSectionHead h3{margin:0}.heroPlannerSectionHead p,.heroPlannerEditorFooter p{margin:0;color:#8fa4bc;font-size:12px;line-height:1.45}.heroPlannerSectionHead>span{white-space:nowrap;color:#8fa4bc;font-size:12px}.heroPlannerSettingsGrid{display:grid;grid-template-columns:minmax(180px,240px) minmax(220px,1fr) auto;gap:12px;align-items:end}.heroPlannerSettingsGrid label,.heroPlannerEditorGrid label{display:grid;gap:5px;color:#9fb3c8;font-size:12px}.heroPlannerSettingsGrid input[type="number"],.heroPlannerEditorGrid input[type="text"],.heroPlannerEditorGrid input[type="datetime-local"],.heroPlannerEditorGrid textarea{width:100%;box-sizing:border-box;border:1px solid #253247;border-radius:6px;background:#020617;color:#e5edf8;padding:7px 9px;outline:none}.heroPlannerSettingsGrid input:focus,.heroPlannerEditorGrid input:focus,.heroPlannerEditorGrid textarea:focus{border-color:#38bdf8;box-shadow:0 0 0 2px rgba(56,189,248,.14)}.heroPlannerCheckbox{display:flex!important;align-items:center;gap:8px;min-height:34px}.heroPlannerCheckbox input{width:auto!important}.heroPlannerLayout{display:grid;grid-template-columns:minmax(260px,.7fr) minmax(430px,1.45fr);gap:12px;align-items:start}.heroPlannerItemList{display:grid;gap:8px}.heroPlannerItemCard{padding:8px;border:1px solid rgba(148,163,184,.14);border-radius:8px;background:rgba(2,8,23,.58)}.heroPlannerItemCard.isSelected{border-color:rgba(56,189,248,.52);box-shadow:0 0 0 2px rgba(56,189,248,.08)}.heroPlannerItemCard.isPast{opacity:.72}.heroPlannerItemSelect{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-width:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.heroPlannerItemSelect>span:first-child{display:grid;gap:3px;min-width:0}.heroPlannerItemSelect strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#eaf4ff;font-size:13px}.heroPlannerItemSelect small{color:#7890aa;font-size:11px}.heroPlannerEditorGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.heroPlannerEditorGrid .full{grid-column:1/-1}.heroPlannerEditorGrid textarea{resize:vertical;min-height:105px}.heroPlannerEditorFooter{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:6px}.heroPlannerEditorFooter p{max-width:650px}.heroPlannerActions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.heroPlannerEmpty{display:grid;gap:6px;place-items:center;min-height:150px;padding:16px;border:1px dashed rgba(56,189,248,.24);border-radius:8px;background:radial-gradient(circle at 50% 0%,rgba(14,165,233,.10),rgba(2,6,23,.42));text-align:center;color:#8da3bb}.heroPlannerEmpty>span{font-size:30px}.heroPlannerEmpty strong{color:#dbeafe}.heroPlannerEmpty p{max-width:500px;margin:0;font-size:12px;line-height:1.45}
@media(max-width:1100px){.heroPlannerStats{grid-template-columns:repeat(2,1fr)}.heroPlannerLayout{grid-template-columns:1fr}.heroPlannerSettingsGrid{grid-template-columns:1fr 1fr}.heroPlannerSettingsGrid button{grid-column:1/-1}}
@media(max-width:760px){.heroPlannerStats,.heroPlannerEditorGrid,.heroPlannerSettingsGrid{grid-template-columns:1fr}.heroPlannerEditorGrid .full,.heroPlannerSettingsGrid button{grid-column:auto}.heroPlannerSectionHead,.heroPlannerEditorFooter{display:grid}.heroPlannerActions{justify-content:stretch}.heroPlannerActions button{width:100%}.heroPlannerItemSelect{align-items:flex-start}}

/* Planner Step 3: compact Hero-dashboard controls */
.heroPlannerDashboardSlot{margin-top:12px}.heroPlannerDashboardCard{display:grid;gap:12px}.heroPlannerDashboardNext{display:grid;grid-template-columns:minmax(145px,auto) 1fr;gap:14px;align-items:center;padding:12px;border:1px solid rgba(56,189,248,.18);border-radius:8px;background:linear-gradient(135deg,rgba(14,165,233,.10),rgba(2,6,23,.7))}.heroPlannerDashboardDate span{display:inline-flex;align-items:center;min-height:34px;padding:0 10px;border:1px solid rgba(56,189,248,.24);border-radius:999px;background:rgba(2,6,23,.72);font-size:12px;color:#bae6fd;white-space:nowrap}.heroPlannerDashboardNext strong,.heroPlannerDashboardEmpty strong{display:block;color:#eef8ff;font-size:14px}.heroPlannerDashboardNext p,.heroPlannerDashboardEmpty p{margin:4px 0 0;color:#8fa4bc;font-size:12px;line-height:1.45}.heroPlannerDashboardEmpty{display:flex;align-items:center;gap:12px;padding:12px;border:1px dashed rgba(56,189,248,.22);border-radius:8px;background:rgba(2,6,23,.45)}.heroPlannerDashboardEmpty>span{font-size:28px}.heroPlannerDashboardTools{display:flex;align-items:flex-end;justify-content:space-between;gap:14px}.heroPlannerDashboardSettings{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px}.heroPlannerDashboardSettings>label:not(.heroPlannerCheckbox){display:grid;gap:5px;color:#9fb3c8;font-size:12px}.heroPlannerDashboardSettings input[type="number"]{width:90px;box-sizing:border-box;border:1px solid #253247;border-radius:6px;background:#020617;color:#e5edf8;padding:7px 9px;outline:none}.heroPlannerDashboardSettings input[type="number"]:focus{border-color:#38bdf8;box-shadow:0 0 0 2px rgba(56,189,248,.14)}
@media(max-width:900px){.heroPlannerDashboardTools{display:grid}.heroPlannerDashboardSettings{align-items:center}.heroPlannerDashboardNext{grid-template-columns:1fr}.heroPlannerDashboardDate span{white-space:normal}}
@media(max-width:620px){.heroPlannerDashboardSettings{display:grid;grid-template-columns:1fr}.heroPlannerDashboardSettings input[type="number"]{width:100%}.heroPlannerDashboardTools .adminAuditHeaderActions{display:grid}.heroPlannerDashboardTools .adminAuditHeaderActions button{width:100%}}

/* Nexus Contact V1 */
.heroContactWorkspace{align-content:start}.heroContactStats{display:grid;grid-template-columns:repeat(4,minmax(110px,1fr));gap:10px}.heroContactStats>article{display:grid;gap:2px;align-content:center;min-height:72px;padding:11px 13px;border:1px solid rgba(56,189,248,.18);border-radius:8px;background:linear-gradient(180deg,rgba(8,18,35,.96),rgba(2,6,23,.96))}.heroContactStats strong{font-size:22px;color:#f8fafc}.heroContactStats span{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#8fa7c2}
.heroContactSectionHead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.heroContactSectionHead>div{display:grid;gap:4px}.heroContactSectionHead h3{margin:0}.heroContactSectionHead p{margin:0;color:#8fa4bc;font-size:12px;line-height:1.45}.heroContactSectionHead>span{white-space:nowrap;color:#8fa4bc;font-size:12px}.heroContactSettingsGrid{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto;gap:10px;align-items:center}.heroContactSettingsGrid label{display:flex;align-items:center;gap:8px;color:#b8c8db;font-size:12px}.heroContactSettingsGrid input{width:auto}
.heroContactLayout{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(430px,1.4fr);gap:12px;align-items:start}.heroContactMessageList{display:grid;gap:8px;margin-top:10px}.heroContactMessageCard{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:10px 11px;border:1px solid rgba(148,163,184,.14);border-radius:8px;background:rgba(2,8,23,.58);color:inherit;text-align:left;cursor:pointer}.heroContactMessageCard>span{display:grid;gap:3px;min-width:0}.heroContactMessageCard strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#eaf4ff;font-size:13px}.heroContactMessageCard small{color:#7890aa;font-size:11px}.heroContactMessageCard em{font-style:normal;font-size:10px;text-transform:uppercase;color:#8fa7c2}.heroContactMessageCard.isUnread{border-color:rgba(127,255,212,.28);background:rgba(127,255,212,.055)}.heroContactMessageCard.isSelected{border-color:rgba(56,189,248,.52);box-shadow:0 0 0 2px rgba(56,189,248,.08)}
.heroContactDetail{display:grid;gap:14px}.heroContactBody{padding:14px;border:1px solid rgba(148,163,184,.12);border-radius:8px;background:#020617;color:#dce8f6;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.heroContactMeta{color:#7890aa;font-size:11px}.heroContactActions{justify-content:flex-end}.heroContactActions a{text-decoration:none}.heroContactEmpty{display:grid;gap:6px;place-items:center;min-height:140px;padding:16px;text-align:center;color:#8da3bb}.heroContactEmpty>span{font-size:28px}.heroContactEmpty strong{color:#dbeafe}.heroContactEmpty p{margin:0;font-size:12px;line-height:1.45}
@media(max-width:900px){.heroContactLayout{grid-template-columns:1fr}.heroContactSettingsGrid{grid-template-columns:1fr}.heroContactStats{grid-template-columns:repeat(2,minmax(110px,1fr))}}

/* Nexus Guestbook Step 4 · Hero owner moderation */
.heroGuestbookWorkspace{align-content:start}.heroGuestbookStats{display:grid;grid-template-columns:repeat(4,minmax(110px,1fr));gap:10px}.heroGuestbookStats>article{display:grid;gap:2px;align-content:center;min-height:72px;padding:11px 13px;border:1px solid rgba(56,189,248,.18);border-radius:8px;background:linear-gradient(180deg,rgba(8,18,35,.96),rgba(2,6,23,.96))}.heroGuestbookStats strong{font-size:22px;color:#f8fafc}.heroGuestbookStats span{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#8fa7c2}
.heroGuestbookSectionHead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.heroGuestbookSectionHead>div{display:grid;gap:4px}.heroGuestbookSectionHead h3{margin:0}.heroGuestbookSectionHead p{margin:0;color:#8fa4bc;font-size:12px;line-height:1.45}.heroGuestbookSectionHead>span{white-space:nowrap;color:#8fa4bc;font-size:12px}.heroGuestbookSettingsGrid{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:10px;align-items:end;margin-top:10px}.heroGuestbookSettingsGrid label{display:grid;gap:5px;color:#9fb3c8;font-size:12px}.heroGuestbookSettingsGrid .heroGuestbookCheck{display:flex;align-items:center;gap:8px;min-height:34px}.heroGuestbookSettingsGrid .heroGuestbookCheck input{width:auto}.heroGuestbookSettingsGrid button{min-height:34px}
.heroGuestbookLayout{display:grid;grid-template-columns:minmax(290px,.82fr) minmax(430px,1.4fr);gap:12px;align-items:start}.heroGuestbookEntryList{display:grid;gap:8px;margin-top:10px}.heroGuestbookEntryCard{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:10px 11px;border:1px solid rgba(148,163,184,.14);border-radius:8px;background:rgba(2,8,23,.58);color:inherit;text-align:left;cursor:pointer}.heroGuestbookEntryCard>span{display:grid;gap:3px;min-width:0}.heroGuestbookEntryCard strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#eaf4ff;font-size:13px}.heroGuestbookEntryCard small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7890aa;font-size:11px}.heroGuestbookEntryCard em{font-style:normal;font-size:10px;text-transform:uppercase;color:#8fa7c2}.heroGuestbookEntryCard.isPending{border-color:rgba(251,191,36,.28);background:rgba(251,191,36,.045)}.heroGuestbookEntryCard.isSelected{border-color:rgba(56,189,248,.52);box-shadow:0 0 0 2px rgba(56,189,248,.08)}
.heroGuestbookDetail{display:grid;gap:14px}.heroGuestbookBody{padding:14px;border:1px solid rgba(148,163,184,.12);border-radius:8px;background:#020617;color:#dce8f6;font-size:13px;line-height:1.6;overflow-wrap:anywhere;white-space:normal}.heroGuestbookMeta{color:#7890aa;font-size:11px}.heroGuestbookActions{justify-content:flex-end}.heroGuestbookEmpty{display:grid;gap:6px;place-items:center;min-height:140px;padding:16px;text-align:center;color:#8da3bb}.heroGuestbookEmpty>span{font-size:28px}.heroGuestbookEmpty strong{color:#dbeafe}.heroGuestbookEmpty p{margin:0;font-size:12px;line-height:1.45}
@media(max-width:1150px){.heroGuestbookSettingsGrid{grid-template-columns:repeat(2,minmax(180px,1fr))}}
@media(max-width:900px){.heroGuestbookLayout{grid-template-columns:1fr}.heroGuestbookStats{grid-template-columns:repeat(2,minmax(110px,1fr))}}
@media(max-width:680px){.heroGuestbookSettingsGrid,.heroGuestbookStats{grid-template-columns:1fr}.heroGuestbookSectionHead{display:grid}.heroGuestbookActions{display:grid}.heroGuestbookActions button{width:100%}}

/* Nexus Social Media V1 · Hero owner workspace */
.heroSocialWorkspace{align-content:start}.heroSocialStats{display:grid;grid-template-columns:repeat(2,minmax(120px,220px));gap:10px}.heroSocialStats>article{display:grid;gap:2px;align-content:center;min-height:72px;padding:11px 13px;border:1px solid rgba(56,189,248,.18);border-radius:8px;background:linear-gradient(180deg,rgba(8,18,35,.96),rgba(2,6,23,.96))}.heroSocialStats strong{font-size:22px;color:#f8fafc}.heroSocialStats span{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#8fa7c2}.heroSocialSectionHead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.heroSocialSectionHead h3{margin:0}.heroSocialSectionHead p{margin:3px 0 0;color:#8fa4bc;font-size:12px;line-height:1.45}.heroSocialSettingsGrid{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:12px;align-items:center}.heroSocialSettingsGrid label{display:flex;align-items:center;gap:8px;color:#cbd5e1}.heroSocialCreateGrid{display:grid;grid-template-columns:minmax(280px,1.6fr) minmax(180px,.8fr) auto;gap:10px;align-items:end}.heroSocialCreateGrid label{display:grid;gap:5px;color:#9fb3c8;font-size:12px}.heroSocialTableWrap{min-width:0;max-width:100%;overflow-x:auto;border:1px solid rgba(148,163,184,.12);border-radius:8px}.heroSocialTable{min-width:850px}.heroSocialTable td,.heroSocialTable th{vertical-align:middle}.heroSocialTable input.adminInput{min-width:0;width:100%;box-sizing:border-box}.heroSocialPlatform{display:flex;align-items:center;gap:7px;white-space:nowrap}.heroSocialPlatform b{display:grid;place-items:center;width:26px;height:26px;border-radius:7px;background:rgba(56,189,248,.08);color:#a5e7ff}.heroSocialActive{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.heroSocialActions{white-space:nowrap}.heroSocialActions>span{display:inline-grid;place-items:center;width:24px;color:#86efac;font-weight:800}.heroSocialActions>span.isError{color:#fca5a5}.heroSocialDrag{border:0;background:transparent;color:#8fa4bc;cursor:grab;font-size:18px}.heroSocialDrag:active{cursor:grabbing}.heroSocialTable tr.isDragging{opacity:.45}.heroSocialEmpty{display:grid;gap:6px;place-items:center;min-height:150px;padding:16px;border:1px dashed rgba(56,189,248,.24);border-radius:8px;background:radial-gradient(circle at 50% 0%,rgba(14,165,233,.10),rgba(2,6,23,.42));text-align:center;color:#8da3bb}.heroSocialEmpty>span{font-size:30px}.heroSocialEmpty strong{color:#dbeafe}.heroSocialEmpty p{max-width:520px;margin:0;font-size:12px;line-height:1.45}
@media(max-width:1000px){.heroSocialCreateGrid,.heroSocialSettingsGrid{grid-template-columns:1fr}.heroSocialCreateGrid button,.heroSocialSettingsGrid button{width:100%}}
@media(max-width:760px){.heroSocialStats{grid-template-columns:1fr 1fr}.heroSocialSectionHead{display:grid}}

/* Social Media V2.1 · Step 1 Provider Foundation */
.heroSocialProviderGrid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:10px;margin-top:12px}
.heroSocialProviderCard{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px;border:1px solid rgba(148,163,184,.14);border-radius:9px;background:rgba(2,6,23,.42)}
.heroSocialProviderCard.isReady{border-color:rgba(74,222,128,.24);background:linear-gradient(135deg,rgba(34,197,94,.08),rgba(2,6,23,.48))}
.heroSocialProviderCard.isPending{border-color:rgba(251,191,36,.20)}
.heroSocialProviderIcon{display:grid;place-items:center;width:36px;height:36px;border-radius:9px;background:rgba(56,189,248,.08);color:#c7efff;font-size:18px}
.heroSocialProviderCard>div{display:grid;gap:2px;min-width:0}.heroSocialProviderCard strong{color:#e5eef8}.heroSocialProviderCard small{color:#8ea4ba;line-height:1.35}.heroSocialProviderCard em{font-style:normal;font-size:11px;white-space:nowrap;color:#fbbf24}.heroSocialProviderCard.isReady em{color:#86efac}
@media(max-width:760px){.heroSocialProviderGrid{grid-template-columns:1fr}.heroSocialProviderCard{grid-template-columns:auto minmax(0,1fr)}.heroSocialProviderCard em{grid-column:2}}

/* Nexus Social Media V2.1 Step 2 · provider metadata */
.heroSocialProfile{display:grid;grid-template-columns:34px minmax(0,1fr);gap:8px;align-items:center;min-width:150px}
.heroSocialProfile>div{display:grid;gap:1px;min-width:0}.heroSocialProfile strong,.heroSocialProfile small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.heroSocialProfile strong{color:#e6eef8;font-size:12px}.heroSocialProfile small{color:#8095aa;font-size:10px}
.heroSocialAvatar{display:grid;place-items:center;width:34px;height:34px;object-fit:cover;border-radius:50%;border:1px solid rgba(148,163,184,.18);background:#07111f;color:#9edfff;font-weight:800}
.heroSocialMetaState{display:inline-flex;width:max-content;max-width:100%;margin-top:2px;padding:2px 5px;border-radius:999px;background:rgba(148,163,184,.08);color:#8fa4ba;font-size:9px;font-weight:800;letter-spacing:.025em;text-transform:uppercase}
.heroSocialMetaState.is-ok{background:rgba(34,197,94,.10);color:#86efac}.heroSocialMetaState.is-error{background:rgba(239,68,68,.10);color:#fca5a5}.heroSocialMetaState.is-unavailable{background:rgba(251,191,36,.10);color:#fcd34d}.heroSocialMetaState.is-refreshing{background:rgba(56,189,248,.10);color:#7dd3fc}
.heroSocialActions{display:flex;align-items:center;gap:4px}

/* Nexus Social Media V2.1 Step 3 · owner live state */
.heroSocialProviderActions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.heroSocialLiveRefreshBtn{border-color:rgba(248,113,113,.24)!important;color:#fca5a5!important}
.heroSocialLiveState{display:inline-flex;width:max-content;max-width:100%;margin-top:2px;padding:2px 5px;border-radius:999px;background:rgba(148,163,184,.08);color:#8fa4ba;font-size:9px;font-weight:900;letter-spacing:.025em;text-transform:uppercase}
.heroSocialLiveState.is-live{background:rgba(239,68,68,.12);color:#fca5a5;box-shadow:0 0 10px rgba(239,68,68,.08)}
.heroSocialLiveState.is-upcoming{background:rgba(245,158,11,.11);color:#fcd34d}
.heroSocialLiveState.is-offline{background:rgba(100,116,139,.10);color:#94a3b8}
.heroSocialLiveTitle{display:block!important;max-width:230px;color:#c7d4e2!important;font-size:9px!important}
@media(max-width:760px){.heroSocialSectionHead{flex-wrap:wrap}.heroSocialProviderActions{width:100%;justify-content:flex-start}}

/* Project ZIP Admin Explorer ------------------------------------------------ */
.projectZipAdminView{display:grid;gap:14px;width:100%;color:var(--text,#e5edf8)}
.projectZipHeader{border-color:rgba(56,189,248,.28)}
.projectZipStats{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:10px}
.projectZipStats article{display:grid;gap:3px;min-width:0;padding:11px 12px;border:1px solid rgba(148,163,184,.18);border-radius:6px;background:rgba(2,8,23,.72)}
.projectZipStats span,.projectZipStats small{color:#91a5be;font-size:12px}.projectZipStats b{font-size:20px;color:#eaf2ff}.projectZipStats small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.projectZipStatusBar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:9px 11px;border:1px solid rgba(148,163,184,.16);border-radius:6px;background:rgba(2,8,23,.54);color:#a9bdd5;font-size:12px}
.projectZipStatusBar small{margin-left:auto;color:#7287a1}.projectZipStatusBar b{color:#dff6ff}.projectZipDirty{border:1px solid rgba(134,239,172,.26);border-radius:999px;padding:4px 8px;background:rgba(22,101,52,.14);color:#bbf7d0}.projectZipDirty.isDirty{border-color:rgba(251,191,36,.35);background:rgba(120,53,15,.2);color:#fde68a}
.projectZipLayout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(290px,.8fr);gap:12px;align-items:start}
.projectZipTreePanel{min-width:0}.projectZipTreeToolbar{display:flex;align-items:end;justify-content:space-between;gap:10px}.projectZipTreeToolbar label{min-width:min(420px,100%);flex:1}.projectZipTreeToolbar .adminAuditHeaderActions{flex-wrap:nowrap}
.projectZipTree{border:1px solid #253247;border-radius:6px;background:#020617aa;max-height:min(66vh,720px);overflow:auto;padding:5px}
.projectZipNode{min-width:0}.projectZipChildren{display:block}.projectZipNodeRow{display:grid;grid-template-columns:22px 22px 24px 22px minmax(120px,1fr) auto auto auto;gap:5px;align-items:center;min-height:31px;padding:2px 6px 2px calc(6px + (var(--zip-depth,0) * 16px));border-radius:4px;border:1px solid transparent;font-size:12px}.projectZipNodeRow:hover{background:rgba(56,189,248,.07);border-color:rgba(56,189,248,.12)}
.projectZipToggle{display:grid;place-items:center;width:22px;height:22px;border:0;background:transparent;color:#8aa2bd;cursor:pointer;padding:0}.projectZipToggle:hover{color:#7dd3fc}.projectZipToggle.placeholder{cursor:default;font-size:9px}
.projectZipExclude{display:grid;place-items:center}.projectZipExclude input{width:15px;height:15px;margin:0;accent-color:#f59e0b;cursor:pointer}.projectZipExclude input:disabled{cursor:not-allowed;opacity:.55}
.projectZipState{display:grid;place-items:center;width:22px;height:22px;border-radius:4px;font-weight:800}.projectZipState-included{color:#86efac;background:rgba(22,101,52,.14)}.projectZipState-excluded{color:#fda4af;background:rgba(127,29,29,.16)}.projectZipState-partial{color:#fde68a;background:rgba(120,53,15,.18)}
.projectZipNodeIcon{opacity:.92}.projectZipNodeName{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#dbeafe}.projectZipNodeMeta{color:#7f96b1;white-space:nowrap;font-size:11px}.projectZipSafety{white-space:nowrap;color:#fbbf24;font-size:11px}.projectZipRuleBadge{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid rgba(148,163,184,.15);border-radius:4px;background:#07111f;color:#8fb4d6;padding:2px 5px;font-size:10px}
.projectZipNode-excluded>.projectZipNodeRow .projectZipNodeName{color:#92a0b3;text-decoration:line-through;text-decoration-color:rgba(248,113,113,.45)}.projectZipNode-partial>.projectZipNodeRow .projectZipNodeName{color:#f6e7b1}
.projectZipConfigPanel{display:grid;gap:12px;position:sticky;top:6px}.projectZipConfigPanel textarea{min-height:320px;max-height:54vh;line-height:1.42;tab-size:2}.projectZipSafetyRules{display:flex;flex-wrap:wrap;gap:6px}.projectZipSafetyRule{display:inline-flex;max-width:100%;padding:4px 6px;border:1px solid rgba(251,191,36,.2);border-radius:4px;background:rgba(120,53,15,.14);color:#fde68a;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1100px){.projectZipLayout{grid-template-columns:1fr}.projectZipConfigPanel{position:static}.projectZipStats{grid-template-columns:repeat(2,minmax(140px,1fr))}.projectZipConfigPanel textarea{min-height:220px}.projectZipTree{max-height:58vh}}
@media(max-width:680px){.projectZipStats{grid-template-columns:1fr 1fr}.projectZipTreeToolbar{display:grid}.projectZipTreeToolbar .adminAuditHeaderActions{justify-content:flex-start}.projectZipNodeRow{grid-template-columns:20px 20px 22px 20px minmax(100px,1fr) auto}.projectZipRuleBadge,.projectZipNodeMeta{display:none}.projectZipStatusBar small{width:100%;margin-left:0}.projectZipStats b{font-size:17px}}
.projectZipGenerateBtn{box-shadow:0 0 0 1px rgba(34,211,238,.12),0 8px 22px rgba(8,145,178,.10)}
.projectZipExportPanel{border-color:rgba(34,211,238,.22)!important}.projectZipFilenameLabel{display:grid;gap:5px;margin:9px 0 10px}.projectZipFilenameLabel>span{color:#91a5be;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.projectZipExportEmpty{padding:9px 10px;border:1px dashed rgba(148,163,184,.18);border-radius:5px;color:#8096b0;font-size:12px;background:rgba(2,8,23,.34)}
.projectZipExportResult{display:grid;gap:9px;padding:10px;border:1px solid rgba(34,197,94,.22);border-radius:6px;background:rgba(3,21,16,.52)}.projectZipExportResultHead{display:flex;align-items:center;gap:7px;min-width:0}.projectZipExportResultHead strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#dcfce7}
.projectZipExportFacts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.projectZipExportFacts>span{display:grid;gap:1px;padding:7px;border:1px solid rgba(148,163,184,.12);border-radius:5px;background:rgba(2,8,23,.38)}.projectZipExportFacts b{color:#eaf2ff;font-size:14px}.projectZipExportFacts small{color:#7f96b1;font-size:10px}
.projectZipExportMeta{display:flex;flex-wrap:wrap;gap:6px;color:#8096b0;font-size:10px}.projectZipExportMeta code{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#9bc8e8}.projectZipExportNotice{margin:0;padding:7px 8px;border-left:2px solid #f59e0b;background:rgba(120,53,15,.16);color:#fde68a;font-size:11px}.projectZipExportWarnings{font-size:11px;color:#fbbf24}.projectZipExportWarnings ul{margin:5px 0 0;padding-left:18px}
@media(max-width:680px){.projectZipExportFacts{grid-template-columns:1fr 1fr}.projectZipGenerateBtn{width:100%}}
.projectZipArchivePanel{border-color:rgba(96,165,250,.18)!important}.projectZipArchiveEmpty{padding:9px 10px;border:1px dashed rgba(148,163,184,.18);border-radius:5px;background:rgba(2,8,23,.34);color:#8096b0;font-size:12px}.projectZipArchiveEmpty code{color:#9bc8e8}.projectZipArchiveList{display:grid;gap:7px}.projectZipArchiveItem{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px 9px;border:1px solid rgba(148,163,184,.14);border-radius:5px;background:rgba(2,8,23,.42)}.projectZipArchiveInfo{display:grid;gap:2px;min-width:0}.projectZipArchiveInfo strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#dbeafe;font-size:12px}.projectZipArchiveInfo small{color:#7890ab;font-size:10px}.projectZipArchiveActions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.projectZipArchiveActions .serverStatusMiniBtn{padding:5px 8px;font-size:10px}@media(max-width:680px){.projectZipArchiveItem{grid-template-columns:1fr}.projectZipArchiveActions{justify-content:flex-start}}


/* Nexus 3D Viewer Step 8.2: owner-side live preview lab. */
.heroThreeDViewerPreviewPanel{gap:12px}
.heroThreeDViewerPreviewControls{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(240px,1.3fr);gap:10px;align-items:end}
.heroThreeDViewerPreviewButtons{grid-column:1/-1;display:flex;gap:7px;flex-wrap:wrap}
.heroThreeDViewerPreviewStage{position:relative;min-height:280px;aspect-ratio:16/9;border:1px solid rgba(56,189,248,.22);border-radius:8px;overflow:hidden;background:radial-gradient(circle at 50% 20%,rgba(14,39,73,.88),rgba(2,6,23,.98) 62%)}
.heroThreeDViewerPreviewCanvas{display:block;width:100%;height:100%;min-height:280px;background:transparent;touch-action:none}
.heroThreeDViewerPreviewState{position:absolute;left:10px;bottom:10px;max-width:calc(100% - 20px);padding:6px 9px;border:1px solid rgba(148,163,184,.22);border-radius:6px;background:rgba(2,6,23,.78);color:#cfe6ff;font-size:11px;line-height:1.3;pointer-events:none;backdrop-filter:blur(5px)}
.heroThreeDViewerPreviewState.isError{border-color:rgba(248,113,113,.45);color:#fecaca;background:rgba(69,10,10,.78)}
@media (max-width:760px){.heroThreeDViewerPreviewControls{grid-template-columns:1fr}.heroThreeDViewerPreviewButtons{grid-column:auto}.heroThreeDViewerPreviewStage,.heroThreeDViewerPreviewCanvas{min-height:210px}}

/* Nexus 3D Viewer Step 8.3: live Composer tuning laboratory. */
.heroThreeDViewerPreviewWorkbench{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:12px;align-items:stretch}
.heroThreeDViewerPreviewWorkbench .heroThreeDViewerPreviewStage{min-width:0}
.heroThreeDViewerTunerPanel{min-width:0;max-height:520px;display:flex;flex-direction:column;border:1px solid rgba(148,163,184,.16);border-radius:8px;background:rgba(2,8,23,.42);overflow:hidden}
.heroThreeDViewerTunerHead{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;border-bottom:1px solid rgba(148,163,184,.13);background:rgba(8,18,38,.72)}
.heroThreeDViewerTunerHead>div{display:grid;gap:2px;min-width:0}.heroThreeDViewerTunerHead small{color:#7690ad;font-size:9px;text-transform:uppercase;letter-spacing:.08em}.heroThreeDViewerTunerHead strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e5f2ff;font-size:12px}
.heroThreeDViewerTuner{display:grid;gap:8px;padding:9px;overflow:auto;overscroll-behavior:contain}
.heroThreeDViewerTunerEmpty{padding:13px;border:1px dashed rgba(148,163,184,.18);border-radius:6px;background:rgba(2,6,23,.38);color:#8fa6bf}.heroThreeDViewerTunerEmpty strong{display:block;color:#d8e8fa;margin-bottom:4px}.heroThreeDViewerTunerEmpty p{margin:0;font-size:11px;line-height:1.45}
.heroThreeDViewerEffectCard{display:grid;gap:9px;padding:9px;border:1px solid rgba(56,189,248,.16);border-radius:7px;background:rgba(4,12,27,.7)}.heroThreeDViewerEffectCard.isDisabled{opacity:.58;border-color:rgba(148,163,184,.12)}
.heroThreeDViewerEffectCard>header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.heroThreeDViewerEffectCard>header>div:first-child{display:flex;align-items:center;gap:6px;min-width:0}.heroThreeDViewerEffectCard strong{color:#e5f2ff;font-size:11px}.heroThreeDViewerEffectCard code{color:#6f8ba8;font-size:9px}
.heroThreeDViewerEffectOrder{display:inline-grid;place-items:center;width:20px;height:20px;border:1px solid rgba(56,189,248,.22);border-radius:5px;background:rgba(14,116,144,.12);color:#9edfff;font-size:9px;font-weight:800}
.heroThreeDViewerEffectActions{display:flex;align-items:center;gap:6px}.heroThreeDViewerEffectToggle{display:flex;align-items:center;gap:4px;color:#9fb2c8;font-size:9px}.heroThreeDViewerEffectToggle input{margin:0}
.heroThreeDViewerTunerControlGrid{display:grid;gap:7px}.heroThreeDViewerTunerControl{display:grid;gap:4px;padding-top:7px;border-top:1px solid rgba(148,163,184,.09)}.heroThreeDViewerTunerControl:first-child{padding-top:0;border-top:0}.heroThreeDViewerTunerControl>span{display:flex;justify-content:space-between;gap:8px;color:#a8bdd3;font-size:10px}.heroThreeDViewerTunerControl>span small{color:#647e9b;font-size:9px}.heroThreeDViewerTunerControl.isDisabled{opacity:.45}
.heroThreeDViewerTunerInputs{display:grid;grid-template-columns:minmax(80px,1fr) 78px;gap:7px;align-items:center}.heroThreeDViewerTunerInputs input[type=range]{width:100%;min-width:0}.heroThreeDViewerTunerInputs .adminInput{min-width:0;padding:5px 6px;font-size:10px}
@media(max-width:1080px){.heroThreeDViewerPreviewWorkbench{grid-template-columns:1fr}.heroThreeDViewerTunerPanel{max-height:none}.heroThreeDViewerTuner{max-height:420px}}
@media(max-width:560px){.heroThreeDViewerTunerInputs{grid-template-columns:1fr 72px}.heroThreeDViewerTunerHead{align-items:flex-start;flex-direction:column}.heroThreeDViewerTunerHead .serverStatusMiniBtn{width:100%}}

/* Nexus 3D Viewer Step 9.2.3: compact Room master/detail laboratory. */
.heroThreeDViewerRoomLab{display:grid;gap:0;border:1px solid rgba(251,191,36,.16);border-radius:8px;background:rgba(16,10,3,.28);overflow:hidden}.heroThreeDViewerRoomLab[hidden]{display:none!important}
.heroThreeDViewerRoomTuner{display:block;padding:9px}
.heroThreeDViewerRoomWorkbench{display:grid;grid-template-columns:minmax(155px,190px) minmax(0,1fr);gap:9px;align-items:stretch}
.heroThreeDViewerRoomNav{display:grid;align-content:start;gap:4px;padding:6px;border:1px solid rgba(251,191,36,.12);border-radius:7px;background:rgba(8,8,9,.5)}
.heroThreeDViewerRoomNavItem{width:100%;min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 8px;border:1px solid transparent;border-radius:5px;background:transparent;color:#aa9a80;font:inherit;font-size:10px;text-align:left;cursor:pointer}.heroThreeDViewerRoomNavItem:hover{background:rgba(251,191,36,.06);color:#ead9b8}.heroThreeDViewerRoomNavItem.isActive{border-color:rgba(251,191,36,.28);background:rgba(251,191,36,.1);color:#fff1cc}.heroThreeDViewerRoomNavItem small{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:rgba(148,163,184,.1);color:#7f8b98;font-size:8px}.heroThreeDViewerRoomNavItem.isActive small{background:rgba(251,191,36,.14);color:#e9c979}
.heroThreeDViewerRoomDetail{min-width:0;border:1px solid rgba(251,191,36,.12);border-radius:7px;background:rgba(17,13,7,.55);overflow:hidden}
.heroThreeDViewerRoomCard{display:grid;align-content:start;gap:10px;padding:11px;background:transparent}.heroThreeDViewerRoomCardDetail{min-height:100%}
.heroThreeDViewerRoomCard>header{padding-bottom:8px;border-bottom:1px solid rgba(251,191,36,.1)}.heroThreeDViewerRoomCard>header>div{display:grid;gap:3px}.heroThreeDViewerRoomCard strong{color:#fff1cc;font-size:12px}.heroThreeDViewerRoomCard small{color:#97866c;font-size:9px;line-height:1.4}
.heroThreeDViewerRoomControlGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 14px}.heroThreeDViewerRoomControlGrid>.heroThreeDViewerTunerControl{padding-top:0;border-top:0}.heroThreeDViewerRoomToggle,.heroThreeDViewerRoomColor{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:38px;padding:7px 0;border-bottom:1px solid rgba(251,191,36,.08);color:#cdbd9f;font-size:10px}.heroThreeDViewerRoomToggle input{margin:0}.heroThreeDViewerRoomColor>div{display:flex;align-items:center;gap:6px}.heroThreeDViewerRoomColor input[type=color]{width:34px;height:25px;padding:0;border:1px solid rgba(148,163,184,.22);border-radius:4px;background:transparent}.heroThreeDViewerRoomColor code{color:#8ea2b9;font-size:9px}
@media(max-width:900px){.heroThreeDViewerRoomWorkbench{grid-template-columns:145px minmax(0,1fr)}.heroThreeDViewerRoomControlGrid{grid-template-columns:1fr}}
@media(max-width:620px){.heroThreeDViewerRoomWorkbench{grid-template-columns:1fr}.heroThreeDViewerRoomNav{grid-template-columns:repeat(2,minmax(0,1fr))}.heroThreeDViewerRoomNavItem{min-height:38px}.heroThreeDViewerRoomControlGrid{grid-template-columns:1fr}}

/* Pages · Step 14.5: Page-specific 3D camera pose fields. */
.heroPagesCameraPoseFields{grid-column:1/-1;display:grid;gap:8px;padding:10px;border:1px solid rgba(127,168,204,.16);border-radius:10px;background:rgba(255,255,255,.018)}
.heroPagesCameraPoseFields>.heroPagesFields{margin:0}

/* 18.19e: Konto-Fenster – gleiche Chat-Fensterbasis statt Inline-Dialog. */
.workstationAccountSecurityWindow {
  left: max(12px, calc(50vw - 200px));
  top: clamp(72px, 15vh, 150px);
  right: auto;
  bottom: auto;
  z-index: 100000;
  width: min(400px, calc(100vw - 24px));
}
.workstationAccountSecurityWindow[hidden],
.workstationAccountSecurityWindow [hidden] { display: none !important; }
.workstationAccountSecurityWindow .accountSecurityBody {
  min-height: 0;
  max-height: min(610px, calc(100dvh - 98px));
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.workstationAccountSecurityWindow .accountSecurityIntro {
  font-weight: 700;
  color: rgba(230, 250, 241, 0.87);
}
.workstationAccountSecurityWindow .accountSecurityForm {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  padding: 11px;
  border: 1px solid rgba(120, 190, 170, 0.17);
  border-radius: var(--ui-radius-lg);
  background: rgba(0, 0, 0, 0.22);
}
.workstationAccountSecurityWindow .accountSecurityForm h3 {
  margin: 0 0 3px;
  font-size: 13px;
  font-weight: 800;
}
.workstationAccountSecurityWindow .accountSecurityForm label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  min-width: 0;
  color: rgba(237, 246, 245, 0.9);
  font-size: 12px;
  font-weight: 650;
}
.workstationAccountSecurityWindow .accountSecurityForm label small {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.7;
}
/* Passwort- und E-Mail-Felder übernehmen die bestehenden Chat-Input-Styles. */
.workstationAccountSecurityWindow .accountSecurityForm input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}
.workstationAccountSecurityWindow .accountSecurityForm input:focus-visible {
  outline: 2px solid rgba(141, 255, 189, 0.50);
  outline-offset: 1px;
}
.workstationAccountSecurityWindow .accountSecuritySubmit {
  flex: none;
  width: 100%;
  cursor: pointer;
  border: 1px solid rgba(108, 192, 160, 0.28) !important;
  background: rgba(108, 192, 160, 0.14) !important;
}
.workstationAccountSecurityWindow .accountSecuritySubmit:hover:not(:disabled) {
  background: rgba(108, 192, 160, 0.26) !important;
}
.workstationAccountSecurityWindow .accountSecuritySubmit:disabled { opacity: 0.55; cursor: wait; }
.workstationAccountSecurityWindow .accountSecurityForm p {
  margin: 0;
  color: rgba(229, 240, 237, 0.68);
  font-size: 11px;
  line-height: 1.45;
}
.workstationAccountSecurityWindow [data-nexus-security-status]:empty { display: none; }
.workstationAccountSecurityWindow [data-nexus-security-status] { white-space: pre-wrap; color: #b4e9d1 !important; }
.workstationAccountSecurityWindow .accountSecurityDetails {
  margin-top: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(120, 190, 170, 0.16);
  border-radius: var(--ui-radius-lg);
}
.workstationAccountSecurityWindow .accountSecurityDetails summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  color: #c6f0df;
}
.workstationAccountSecurityWindow .accountSecurityDetails[open] summary { margin-bottom: 8px; }
@media (max-width: 520px) {
  .workstationAccountSecurityWindow { left: 12px; top: 72px; }
}
/* Die Kontoansicht ist lokal und nicht am RoomSync-Besitz beteiligt. */
.workstationAccountSecurityWindow .networkChatWindowHeader::after { display: none; }
