:root {
  --bg: #0b0f14;
  --surface: #151b23;
  --surface-2: #1c2430;
  --sidebar: #10151c;
  --border: #2a3444;
  --text: #e8edf4;
  --muted: #8b949e;
  --accent: #4d9fff;
  --accent-dim: rgba(77, 159, 255, 0.12);
  --online: #3fb950;
  --offline: #f85149;
  --warning: #d29922;
  --sidebar-width: 250px;
  --drawer-width: 440px;
  --radius: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --scrollbar-size: 8px;
  --scrollbar-track: rgba(255, 255, 255, 0.03);
  --scrollbar-thumb: rgba(139, 148, 158, 0.38);
  --scrollbar-thumb-hover: rgba(77, 159, 255, 0.62);
  --scrollbar-thumb-active: var(--accent);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background 0.15s ease;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

*::-webkit-scrollbar-thumb:active {
  background: var(--scrollbar-thumb-active);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

.sidebar-nav,
.drawer-body,
.file-list,
.file-viewer-body,
.file-editor-highlight,
.terminal-cmd-sidebar,
.search-results,
.content {
  scrollbar-gutter: stable;
}

.terminal-session-output .xterm-viewport,
#terminal-output .xterm-viewport {
  scrollbar-width: thin;
  scrollbar-color: rgba(77, 159, 255, 0.35) rgba(0, 0, 0, 0.25);
}

.terminal-session-output .xterm-viewport::-webkit-scrollbar,
#terminal-output .xterm-viewport::-webkit-scrollbar {
  width: 6px;
}

.terminal-session-output .xterm-viewport::-webkit-scrollbar-track,
#terminal-output .xterm-viewport::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
}

.terminal-session-output .xterm-viewport::-webkit-scrollbar-thumb,
#terminal-output .xterm-viewport::-webkit-scrollbar-thumb {
  background: rgba(77, 159, 255, 0.35);
  border-radius: 999px;
}

.terminal-session-output .xterm-viewport::-webkit-scrollbar-thumb:hover,
#terminal-output .xterm-viewport::-webkit-scrollbar-thumb:hover {
  background: rgba(77, 159, 255, 0.65);
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  overflow-x: hidden;
  min-width: 0;
}

.sidebar-brand {
  padding: 1.35rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-brand h1 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sidebar-brand span {
  color: var(--muted);
  font-size: 0.75rem;
}

.sidebar-search {
  padding: 0.65rem 0.75rem 0.75rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.sidebar-nav {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.85rem 0.55rem 0.55rem;
  overflow: hidden;
}

.sidebar-nav-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.sidebar-nav-bottom {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

.nav-item {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  align-items: center;
  column-gap: 0.7rem;
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  cursor: pointer;
  text-align: left;
  margin-bottom: 0.2rem;
  transition: background 0.15s, color 0.15s;
  justify-content: stretch;
  justify-items: start;
}

.nav-item:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.nav-item.active { background: var(--accent-dim); color: var(--accent); font-weight: 600; }
.nav-item.active .nav-label { font-weight: 600; }

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  justify-self: center;
  flex-shrink: 0;
}

.nav-label {
  line-height: 1.25;
  min-width: 0;
}

.tabler-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-image: var(--icon);
  mask-image: var(--icon);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.nav-item .tabler-icon.nav-icon {
  width: 1.125rem !important;
  height: 1.125rem !important;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border);
}

.user-name { font-size: 0.875rem; font-weight: 600; }
.user-role { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.15rem; }

.main {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-width: 0;
}

.topbar {
  padding: 1.1rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-text h2 { font-size: 1.3rem; font-weight: 650; letter-spacing: -0.02em; }
.topbar-text p { color: var(--muted); font-size: 0.875rem; margin-top: 0.15rem; }

.terminal-session-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  max-width: min(42vw, 520px);
  overflow-x: auto;
  flex-shrink: 1;
  min-width: 0;
  padding: 0.15rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.terminal-session-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  max-width: 180px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  flex-shrink: 0;
}

.terminal-session-tab.active {
  border-color: var(--border);
  background: var(--accent-dim);
}

.terminal-tab-main {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.45rem;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  min-width: 0;
  font: inherit;
}

.terminal-tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--muted);
  flex-shrink: 0;
}

.terminal-tab-dot.online { background: var(--online); }
.terminal-tab-dot.connecting { background: var(--warning); }
.terminal-tab-dot.error,
.terminal-tab-dot.closed { background: var(--offline); }

.terminal-tab-name {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal-tab-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-right: 0.15rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.terminal-tab-close:hover {
  background: rgba(248, 81, 73, 0.15);
  color: var(--offline);
}

body.has-terminal-sessions .topbar {
  flex-wrap: wrap;
}

.global-search-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  cursor: text;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.global-search-icon {
  flex-shrink: 0;
  color: var(--muted);
  pointer-events: none;
  display: inline-flex;
}

.global-search-input {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.35;
}

.global-search-input:focus {
  outline: none;
  box-shadow: none;
}

:root[data-theme="light"] .search-field {
  background: var(--surface);
}

.search-results {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  max-height: min(70vh, 480px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 130;
  padding: 0.35rem;
}

.sidebar .search-results {
  min-width: 220px;
}

.search-results-group {
  padding: 0.35rem 0.25rem 0.15rem;
}

.search-results-title {
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 0.15rem 0.5rem 0.35rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.55rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 0.84rem;
}

.search-result-item:hover,
.search-result-item.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.search-result-meta {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.search-empty {
  padding: 0.85rem 0.55rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.page-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; flex-shrink: 0; margin-left: auto; }

.content { padding: 1.5rem 2rem 2.5rem; max-width: 1440px; margin-inline: auto; width: 100%; }

.panel { display: none; animation: fadeIn 0.2s ease; }
.panel.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  justify-content: center;
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  transition: border-color 0.15s;
  overflow: hidden;
  min-width: 0;
}

.card:hover { border-color: #354357; }
.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}

.card-head-main {
  min-width: 0;
  flex: 1 1 12rem;
}

.card-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-left: auto;
  max-width: 100%;
}

.card-head-actions .ghost,
.card-head-actions .small,
.card-head-actions button {
  flex: 0 1 auto;
  white-space: nowrap;
}

.card h3 { font-size: 1rem; font-weight: 600; }

.status {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status.online, .status.success { background: rgba(63,185,80,0.14); color: var(--online); }
.status.offline, .status.failed { background: rgba(248,81,73,0.14); color: var(--offline); }
.status.running, .status.pending { background: rgba(210,153,34,0.14); color: var(--warning); }
.status.admin, .status.user { background: var(--accent-dim); color: var(--accent); }

.meta { color: var(--muted); font-size: 0.84rem; }
.metrics { margin-top: 0.85rem; display: grid; gap: 0.35rem; }

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.packages-grid .card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.packages-grid h4,
.section-title {
  margin: 1rem 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 650;
}

.package-upload-row {
  margin-top: 0.75rem;
}

.package-agent-actions {
  margin: 0.75rem 0 1rem;
}

.checkbox-list {
  display: grid;
  gap: 0.45rem;
  max-height: 280px;
  overflow-y: auto;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.metric {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}
.metric:last-child { border-bottom: none; }

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity 0.15s, transform 0.1s;
}

button:hover { opacity: 0.92; }
button:active { transform: scale(0.98); }
button.secondary { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
button.ghost { background: transparent; border: 1px solid var(--border); color: var(--muted); }
button.danger { background: var(--offline); }
button.small { padding: 0.35rem 0.7rem; font-size: 0.78rem; border-radius: 6px; }
button.icon-btn {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 6px;
}

.subtabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.subtab {
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
}

.subtab.active { background: var(--accent-dim); color: var(--accent); font-weight: 600; }
.subpanel { display: none; }
.subpanel.active { display: block; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th, .table td {
  text-align: left;
  padding: 0.8rem 0.65rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table th { color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.table tr:hover td { background: rgba(255,255,255,0.02); }

.row-actions { display: flex; gap: 0.35rem; justify-content: flex-end; }

.tree { display: grid; gap: 0.85rem; }
.tree-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.tree-block.nested { margin-left: 1.25rem; margin-top: 0.75rem; background: var(--surface-2); }
.tree-block.rack { background: var(--bg); }

.tree-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.tree-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 650;
  font-size: 0.95rem;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  word-break: break-word;
}

.card-title-row .tabler-icon {
  flex-shrink: 0;
}
.tree-badge {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.rack-visual {
  margin-top: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.78rem;
  max-height: 280px;
  overflow-y: auto;
}

.rack-slot {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0.65rem;
  border-bottom: 1px solid var(--border);
}

.rack-slot:last-child { border-bottom: none; }
.rack-slot.occupied { background: rgba(77,159,255,0.08); }
.rack-slot.empty { color: var(--muted); }

.empty {
  color: var(--muted);
  text-align: center;
  padding: 3.5rem 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.01);
}

pre.output {
  background: #06080c;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  overflow: auto;
  font-size: 0.78rem;
  max-height: 280px;
  white-space: pre-wrap;
  margin-top: 0.75rem;
}

/* Drawer (Formular-Menü) */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(var(--drawer-width), 100vw);
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.drawer.open { transform: none; }

.drawer-header {
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-header h3 { font-size: 1.05rem; font-weight: 650; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.35rem; }
.drawer-footer {
  padding: 1rem 1.35rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  font-size: 0.875rem;
}

.form-group textarea { min-height: 140px; font-family: ui-monospace, monospace; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-hint { font-size: 0.78rem; color: var(--muted); margin-top: 0.35rem; }

/* Confirm Dialog */
.dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.dialog-overlay.open { display: flex; }

.dialog {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  width: min(420px, 100%);
  box-shadow: var(--shadow);
}

.dialog h4 { margin-bottom: 0.5rem; }
.dialog p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.25rem; }
.dialog-actions { display: flex; gap: 0.5rem; justify-content: flex-end; }

.password-change-overlay { z-index: 400; }
.password-change-overlay .error-msg {
  background: rgba(248,81,73,0.12);
  color: var(--offline);
  padding: 0.65rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* Toast */
#toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 400;
  display: grid;
  gap: 0.5rem;
}

.toast {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  min-width: 240px;
  box-shadow: var(--shadow);
  animation: slideUp 0.25s ease;
  font-size: 0.875rem;
}

.toast.success { border-color: rgba(63,185,80,0.4); }
.toast.error { border-color: rgba(248,81,73,0.4); }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Terminal — mehrere verschiebbare Fenster */
#terminal-windows-layer {
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
  overflow: hidden;
}

.terminal-window {
  position: absolute;
  display: none;
  pointer-events: auto;
  min-width: 0;
}

.terminal-window.open {
  display: block;
}

.terminal-window.focused .terminal-box {
  border-color: rgba(110, 196, 255, 0.55);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(110, 196, 255, 0.2);
}

.terminal-window.terminal-dragging .terminal-box {
  opacity: 0.96;
  cursor: grabbing;
}

.terminal-box {
  width: min(98vw, 1440px);
  height: min(82vh, 820px);
  min-width: 520px;
  min-height: 320px;
  max-width: 98vw;
  max-height: 92vh;
  resize: both;
  background: #000;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.terminal-header {
  padding: 0.8rem 1rem;
  background: var(--surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: grab;
  user-select: none;
}

.terminal-header:active {
  cursor: grabbing;
}

.terminal-header-title {
  min-width: 0;
  flex: 1;
}

.terminal-header button {
  cursor: pointer;
}

.terminal-session-tab.minimized {
  opacity: 0.72;
}

.terminal-session-tab.detached .terminal-tab-dot {
  background: var(--warning);
}

.terminal-session-tab.detached .terminal-tab-name::after {
  content: ' · offline';
  font-weight: 500;
  color: var(--muted);
}

.terminal-header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.terminal-body {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.terminal-file-sidebar {
  width: 320px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.terminal-file-sidebar.viewer-open .file-list {
  flex: 0 1 42%;
  max-height: 42%;
}

.file-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.file-sidebar-title {
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.file-sidebar-actions {
  display: flex;
  gap: 0.15rem;
  flex-shrink: 0;
}

.file-follow-btn.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.file-path-wrap {
  position: relative;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.file-path-input {
  width: 100%;
  padding: 0.45rem 0.75rem;
  font-size: 0.72rem;
  font-family: ui-monospace, monospace;
  color: var(--accent);
  background: transparent;
  border: none;
}

.file-path-input:focus {
  outline: none;
  background: rgba(110, 196, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(110, 196, 255, 0.25);
}

.file-path-suggestions {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow);
  z-index: 140;
}

.file-path-suggestions[hidden] {
  display: none !important;
}

.file-path-suggestion {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  text-align: left;
  padding: 0.42rem 0.65rem;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.72rem;
  font-family: ui-monospace, monospace;
  cursor: pointer;
}

.file-path-suggestion:hover,
.file-path-suggestion.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.file-path-suggestion .suggestion-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-path-suggestion .suggestion-hint {
  font-size: 0.65rem;
  color: var(--muted);
  flex-shrink: 0;
}

.file-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.35rem;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  text-align: left;
  padding: 0.4rem 0.5rem;
  margin-bottom: 0.15rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.78rem;
  cursor: pointer;
}

.file-item:hover {
  background: var(--surface-2);
  border-color: var(--border);
}

.file-item.is-dir .file-item-name { font-weight: 600; }

.file-item-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-item-meta {
  font-size: 0.68rem;
  color: var(--muted);
  flex-shrink: 0;
}

.file-item-up {
  color: var(--accent);
  font-weight: 600;
}

.file-item.is-text .file-item-name,
.file-item.is-image .file-item-name {
  color: var(--accent);
}

.file-item.active {
  background: var(--accent-dim);
  border-color: rgba(110, 196, 255, 0.25);
}

.file-viewer {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

.file-viewer[hidden] {
  display: none !important;
}

.file-viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.file-viewer-name {
  font-size: 0.72rem;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-viewer-actions {
  display: flex;
  gap: 0.15rem;
  flex-shrink: 0;
}

.file-viewer-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.file-editor {
  flex: 1;
  width: 100%;
  min-height: 160px;
  resize: none;
  border: none;
  background: #0c1016;
  color: #d8dee9;
  font-family: ui-monospace, "Consolas", "Courier New", monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  padding: 0.55rem;
}

.file-editor:focus {
  outline: none;
}

.file-image-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  min-height: 120px;
  background: repeating-conic-gradient(#1a1f27 0% 25%, #151a22 0% 50%) 50% / 16px 16px;
}

.file-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.file-viewer-meta {
  padding: 0.35rem 0.55rem;
  font-size: 0.68rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.file-viewer-loading,
.file-viewer-error {
  padding: 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.file-viewer-error {
  color: #f07178;
}

.icon-btn {
  padding: 0.25rem 0.35rem;
  min-width: 0;
}

.terminal-cmd-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cmd-sidebar-title {
  padding: 0.65rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.cmd-groups {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.cmd-group { margin-bottom: 0.75rem; }

.cmd-group-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
  padding: 0 0.15rem;
}

.cmd-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.55rem;
  margin-bottom: 0.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cmd-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.cmd-mgmt-group { margin-bottom: 1.5rem; }
.cmd-mgmt-group h3 { font-size: 0.95rem; margin-bottom: 0.65rem; }

.cmd-preview {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--muted);
  word-break: break-all;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.tag-chip {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.host-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

.host-type-chip.physical {
  background: rgba(19, 161, 14, 0.12);
  color: #7dff7d;
  border-color: rgba(19, 161, 14, 0.25);
}

.host-type-chip.vm {
  background: rgba(58, 150, 221, 0.12);
  color: #6ec4ff;
  border-color: rgba(58, 150, 221, 0.25);
}

.host-type-chip.proxmox {
  background: rgba(226, 119, 48, 0.14);
  color: #ffb07a;
  border-color: rgba(226, 119, 48, 0.35);
}

.rack-slot .host-type-chip {
  margin-left: 0.35rem;
  vertical-align: middle;
}

.perm-grid {
  display: grid;
  gap: 0.35rem;
  max-height: 240px;
  overflow-y: auto;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.perm-group { margin-bottom: 0.65rem; }
.perm-group-title {
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.perm-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.terminal-hint {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.terminal-output-host {
  flex: 1;
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: #0d0d0d;
  display: flex;
  flex-direction: column;
}

.terminal-session-pane {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.terminal-session-pane[hidden] {
  display: none !important;
}

.terminal-session-output {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0.35rem 0.5rem;
  overflow: hidden;
  background: #0d0d0d;
  position: relative;
}

.terminal-session-output .xterm {
  position: absolute;
  inset: 0.35rem 0.5rem;
  width: auto !important;
  height: auto !important;
}

.terminal-session-output .xterm-viewport {
  overflow-y: auto !important;
}

.terminal-stats-bar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.85rem;
  align-items: end;
  padding: 0.45rem 0.85rem 0.55rem;
  background: #121212;
  border-top: 1px solid #2b2b2b;
  flex-shrink: 0;
}

.terminal-stat-panel {
  min-width: 0;
}

.terminal-stat-header {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.terminal-stat-name {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #8a8a8a;
  min-width: 2rem;
}

.terminal-stat-current {
  font-size: 0.82rem;
  font-weight: 650;
  color: #e8e8e8;
}

.terminal-stat-panel:first-child .terminal-stat-current { color: #7dff7d; }
.terminal-stat-panel:last-of-type .terminal-stat-current { color: #6ec4ff; }

.terminal-stat-summary {
  margin-left: auto;
  font-size: 0.68rem;
  color: #666;
  white-space: nowrap;
}

.terminal-stat-chart {
  display: block;
  width: 100%;
  height: 42px;
  border: 1px solid #2a2a2a;
  border-radius: 3px;
  background: #080808;
}

.terminal-stats-meta {
  align-self: center;
  font-size: 0.68rem;
  color: #666;
  white-space: nowrap;
  padding-left: 0.25rem;
  text-align: right;
  min-width: 6.5rem;
}

@media (max-width: 768px) {
  .terminal-stats-bar {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .terminal-stats-meta {
    text-align: left;
    min-width: 0;
    padding-left: 0;
  }
  .sidebar { width: 68px; }
  .sidebar-brand span, .nav-label, .user-box { display: none; }
  .sidebar-brand h1 { font-size: 0.85rem; text-align: center; }
  .sidebar-search { display: none; }
  .nav-item { justify-content: center; padding: 0.75rem; }
  .main { margin-left: 68px; }
  .content { padding: 1rem; }
  .topbar { flex-direction: column; align-items: flex-start; }
  body.search-expanded .sidebar-search {
    display: block;
    position: fixed;
    left: 68px;
    top: 0;
    right: 0;
    z-index: 150;
    padding: 0.65rem 1rem;
    background: var(--sidebar);
    border-bottom: 1px solid var(--border);
    border-right: none;
  }

  body.search-expanded .sidebar-search .search-results {
    position: fixed;
    left: 68px;
    right: 0;
    top: 3rem;
    max-width: none;
    border-radius: 0 0 10px 10px;
  }

  body.sidebar-open .sidebar {
    width: var(--sidebar-width);
    z-index: 200;
    box-shadow: var(--shadow);
  }
  body.sidebar-open .sidebar-brand span,
  body.sidebar-open .nav-label,
  body.sidebar-open .user-box,
  body.sidebar-open .sidebar-search { display: block; }
  body.sidebar-open .nav-item { justify-content: start; }
  .mobile-only { display: inline-flex !important; }
}

:root[data-theme="light"] {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --sidebar: #ffffff;
  --border: #d8dee8;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-dim: rgba(37, 99, 235, 0.1);
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --scrollbar-track: rgba(15, 23, 42, 0.04);
  --scrollbar-thumb: rgba(107, 114, 128, 0.32);
  --scrollbar-thumb-hover: rgba(37, 99, 235, 0.48);
}

:root[data-theme="light"] .terminal-session-output .xterm-viewport,
#terminal-output .xterm-viewport {
  scrollbar-color: rgba(37, 99, 235, 0.35) rgba(15, 23, 42, 0.06);
}

:root[data-theme="light"] .terminal-session-output .xterm-viewport::-webkit-scrollbar-track,
#terminal-output .xterm-viewport::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.06);
}

:root[data-theme="light"] .terminal-session-output .xterm-viewport::-webkit-scrollbar-thumb,
#terminal-output .xterm-viewport::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.35);
}

:root[data-theme="light"] .terminal-session-output .xterm-viewport::-webkit-scrollbar-thumb:hover,
#terminal-output .xterm-viewport::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 99, 235, 0.58);
}

.mobile-only { display: none; }

.topbar { display: flex; align-items: center; gap: 0.75rem; }
.breadcrumbs { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.15rem; }
.breadcrumbs .crumb-sep { margin: 0 0.35rem; opacity: 0.5; }

.widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.widget-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.widget-card strong { font-size: 1.35rem; }
.widget-card.online strong { color: var(--online); }
.widget-card.offline strong { color: var(--offline); }
.widget-label { color: var(--muted); font-size: 0.75rem; }

.server-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.server-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
}
.server-filters select,
.server-filters input {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  min-width: 140px;
}

.server-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  flex-shrink: 0;
}

.server-view-toggle .icon-btn {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  color: var(--muted);
}

.server-view-toggle .icon-btn.active {
  background: var(--accent-dim);
  color: var(--accent);
}

#servers.server-list {
  display: block;
  grid-template-columns: none;
}

.server-list-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.server-list-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(10rem, 1.2fr) minmax(8rem, 1fr) minmax(0, 1.6fr) auto;
  align-items: center;
  gap: 0.85rem 1rem;
  padding: 0.85rem 1rem 0.85rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
  transition: border-color 0.15s, background 0.15s;
}

.server-list-row.clickable {
  cursor: pointer;
}

.server-list-row:hover {
  border-color: #354357;
  background: color-mix(in srgb, var(--surface) 92%, var(--accent) 8%);
}

.server-list-status-bar {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  background: var(--offline);
}

.server-list-row.online .server-list-status-bar {
  background: var(--online);
}

.server-list-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  flex-shrink: 0;
}

.server-list-identity {
  min-width: 0;
}

.server-list-name {
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-list-sub,
.server-list-node-sub,
.server-list-stat-sub {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-list-node {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.server-list-node-icon {
  color: var(--muted);
  flex-shrink: 0;
}

.server-list-node-label {
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-list-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 1.75rem;
  min-width: 0;
  flex-wrap: wrap;
}

.server-list-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
  text-align: center;
}

.server-list-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
}

.server-list-stat-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.server-list-stat-value {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-list-row-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .server-list-row {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "icon identity actions"
      "icon node actions"
      "metrics metrics metrics";
  }
  .server-list-icon { grid-area: icon; }
  .server-list-identity { grid-area: identity; }
  .server-list-node { grid-area: node; }
  .server-list-metrics { grid-area: metrics; }
  .server-list-row-actions { grid-area: actions; }
}

.agent-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
}
.agent-error { color: var(--warning); }

.location-map { margin-bottom: 1rem; }
.location-map-title { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5rem; }
.location-map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}
.location-map-card {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  color: var(--text);
  cursor: pointer;
}
.location-map-card:hover { border-color: var(--accent); }
.location-map-name { display: flex; align-items: center; gap: 0.35rem; font-weight: 600; }
.location-map-meta, .location-map-addr { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }

.rack-capacity { margin-top: 0.35rem; display: flex; align-items: center; gap: 0.5rem; }
.rack-capacity-bar {
  flex: 1;
  height: 6px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}
.rack-capacity-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--online));
}
.rack-capacity-label { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }

.file-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
}
.file-breadcrumbs .crumb {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  padding: 0.1rem 0.2rem;
}
.file-breadcrumbs .crumb-sep { color: var(--muted); }

.file-dropzone {
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 0.45rem;
}
.file-dropzone.drag-over {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--text);
}

.context-menu {
  position: fixed;
  z-index: 500;
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 0.25rem;
}
.context-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
}
.context-menu button:hover { background: var(--surface-2); }
.context-menu button.danger { color: var(--offline); }

.file-editor-highlight {
  max-height: 50vh;
  overflow: auto;
  background: var(--surface-2);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.file-editor-highlight pre { margin: 0; padding: 0.75rem; }
.file-editor-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.audit-table-wrap { overflow: auto; }
.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.audit-table th,
.audit-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
.audit-table th { color: var(--muted); font-weight: 600; }
.audit-details { max-width: 320px; word-break: break-word; }

.toast.warning { border-color: var(--warning); }

#terminal-record-btn.active { color: var(--offline); }
