:root {
  color-scheme: dark;
  --bg: #071018;
  --panel: #101922;
  --panel-2: #151f2a;
  --line: #283647;
  --text: #edf4fb;
  --muted: #8ea0b3;
  --accent: #4da3ff;
  --good: #62d26f;
  --warn: #f5b94d;
  --danger: #ef4444;
  --terminal: #020405;
}

* { box-sizing: border-box; }

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

button, input, select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(7, 16, 24, 0.94), rgba(7, 16, 24, 0.65)),
    url("./assets/ragnarok-bg.png") center/cover;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  background: rgba(12, 19, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.brand {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand span { color: var(--accent); }

.login-card h1 {
  font-size: 20px;
  margin: 8px 0 22px;
  color: var(--muted);
  font-weight: 600;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field label, .field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field.compact {
  margin-bottom: 0;
}

.input, .select {
  width: 100%;
  border: 1px solid var(--line);
  background: #0b131c;
  color: var(--text);
  border-radius: 8px;
  padding: 11px 12px;
  outline: none;
}

.input:focus, .select:focus {
  border-color: var(--accent);
}

.primary-btn {
  width: 100%;
  background: var(--accent);
  color: #05111d;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 800;
  margin-top: 8px;
}

.error-text { color: #ff9d9d; font-size: 13px; min-height: 18px; }

.shell {
  min-height: 100vh;
  height: 100vh;
  display: grid;
  grid-template-columns: 270px 1fr;
  overflow: hidden;
}

.sidebar {
  background: #071019;
  border-right: 1px solid var(--line);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-title {
  padding: 0 8px 16px;
  border-bottom: 1px solid var(--line);
}

.sidebar-title strong {
  display: block;
  font-size: 22px;
}

.sidebar-title span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.sidebar-section {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0 8px;
}

.admin-panel {
  display: grid;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.admin-search {
  display: grid;
  gap: 8px;
}

.admin-current {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  background: rgba(77, 163, 255, 0.08);
  border: 1px solid rgba(77, 163, 255, 0.22);
  border-radius: 8px;
  padding: 9px;
}

.admin-current strong {
  color: var(--text);
  display: inline-block;
  margin-top: 3px;
}

.admin-current span {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  margin-top: 5px;
}

.admin-client-list {
  display: grid;
  gap: 6px;
  max-height: 210px;
  overflow: auto;
}

.admin-client-item {
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 8px;
}

.admin-client-item strong {
  display: block;
  font-size: 13px;
}

.admin-client-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.service-list {
  display: grid;
  gap: 8px;
  overflow: auto;
}

.service-item {
  position: relative;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  padding: 11px 10px;
  border: 1px solid transparent;
}

.service-item.active {
  background: var(--panel-2);
  border-color: var(--line);
}

.service-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: #64748b;
}

.service-item.service-active {
  background: linear-gradient(90deg, rgba(22, 163, 74, 0.2), rgba(255, 255, 255, 0.03));
  border-color: rgba(98, 210, 111, 0.28);
}

.service-item.service-active::before { background: var(--good); }

.service-item.service-suspended {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.19), rgba(255, 255, 255, 0.03));
  border-color: rgba(245, 185, 77, 0.3);
}

.service-item.service-suspended::before { background: var(--warn); }

.service-item.service-terminated {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.18), rgba(255, 255, 255, 0.03));
  border-color: rgba(239, 68, 68, 0.3);
}

.service-item.service-terminated::before { background: var(--danger); }

.service-name { font-weight: 800; }
.service-ip { color: var(--muted); font-size: 13px; margin-top: 3px; }
.service-status {
  font-size: 11px;
  font-weight: 800;
  margin-top: 5px;
}

.support-entry {
  text-align: left;
  background: rgba(77, 163, 255, 0.08);
  border: 1px solid rgba(77, 163, 255, 0.24);
  color: var(--text);
  border-radius: 8px;
  padding: 11px 10px;
}

.support-entry strong,
.support-entry span {
  display: block;
}

.support-entry span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.logout-btn {
  margin-top: auto;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  min-height: 86px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(10, 18, 27, 1), rgba(10, 18, 27, 0.84)),
    url("./assets/ragnarok-bg.png") center 38%/cover;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar h1 {
  margin: 0;
  font-size: 23px;
}

.topbar p {
  color: var(--muted);
  margin: 5px 0 0;
  font-size: 13px;
}

.content {
  min-height: 0;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(300px, 1.1fr) minmax(360px, 1.5fr) minmax(300px, 0.9fr);
  gap: 12px;
  overflow: auto;
}

.dashboard-modern {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto minmax(50vh, 1fr);
  align-content: start;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 0.8fr);
  gap: 12px;
}

.panel {
  background: rgba(16, 25, 34, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  min-width: 0;
}

.server-alert {
  grid-column: 1 / -1;
  border-radius: 8px;
  padding: 13px 16px;
  border: 1px solid;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.server-alert strong {
  font-size: 15px;
}

.server-alert span {
  color: rgba(237, 244, 251, 0.82);
  font-size: 13px;
  text-align: right;
}

.server-alert.danger {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.45);
}

.server-alert.warning {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 185, 77, 0.45);
}

.service-status-panel.status-active {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.22), rgba(16, 25, 34, 0.94));
  border-color: rgba(98, 210, 111, 0.45);
}

.service-status-panel.status-suspended {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(16, 25, 34, 0.94));
  border-color: rgba(245, 185, 77, 0.48);
}

.service-status-panel.status-terminated {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(16, 25, 34, 0.94));
  border-color: rgba(239, 68, 68, 0.46);
}

.panel h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
}

.row span:first-child { color: var(--muted); }
.row span:last-child { text-align: right; font-weight: 700; }

.ports {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.port {
  background: #0b131c;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.port strong { display: block; font-size: 13px; margin-bottom: 7px; }
.status-dot { color: var(--danger); font-weight: 800; font-size: 13px; }
.status-dot.online { color: var(--good); }
.status-dot.loading { color: var(--muted); }
.status-dot.degraded { color: var(--warn); }

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cmd-btn {
  min-height: 54px;
  background: #202b38;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  font-weight: 800;
}

.cmd-btn.good { color: var(--good); }
.cmd-btn.warn { color: var(--warn); }
.cmd-btn.danger { color: #ff9d9d; border-color: rgba(239, 68, 68, 0.55); }
.cmd-btn.active { background: #0b4f91; }

.tool-card {
  padding: 0;
  overflow: hidden;
}

.tool-tabs {
  display: flex;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.tool-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 800;
}

.tool-tab.active {
  background: rgba(77, 163, 255, 0.12);
  border-color: rgba(77, 163, 255, 0.34);
  color: var(--accent);
}

.tool-panel {
  padding: 14px;
}

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

.tool-panel-head h2 {
  margin: 0;
}

.backup-list {
  max-height: 180px;
  overflow: auto;
}

.console-card {
  grid-column: 1 / -1;
  min-height: 270px;
  padding: 0;
  overflow: hidden;
}

.console-card-large {
  min-height: 50vh;
}

.console-head {
  height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.console {
  margin: 0;
  min-height: 228px;
  max-height: 360px;
  overflow: auto;
  background: var(--terminal);
  color: #d7ffe0;
  padding: 14px;
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 13px;
  line-height: 1.42;
  white-space: pre-wrap;
}

.console-large {
  min-height: calc(50vh - 42px);
  max-height: none;
  height: calc(100% - 42px);
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.check-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0;
}

.backup-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 9px 0;
}

.small-btn {
  background: #0b131c;
  border: 1px solid var(--line);
  color: var(--accent);
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 800;
}

.muted { color: var(--muted); }
.ok { color: var(--good); }
.warn-text { color: var(--warn); }
.bad { color: var(--danger); }
.hidden { display: none !important; }

.support-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
}

.support-chat {
  width: min(980px, calc(100vw - 32px));
  height: min(720px, calc(100vh - 48px));
  background: #0b131c;
  border: 1px solid rgba(77, 163, 255, 0.28);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.support-head {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.support-head strong,
.support-head span {
  display: block;
}

.support-head span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.support-body {
  padding: 14px;
  display: grid;
  gap: 10px;
  align-content: end;
  background:
    linear-gradient(rgba(8, 17, 27, 0.94), rgba(8, 17, 27, 0.94)),
    url("./assets/ragnarok-bg.png") center/cover;
}

.support-content { min-height: 0; overflow: hidden; }
.support-home { height: 100%; display: grid; grid-template-columns: minmax(280px, .9fr) minmax(340px, 1.1fr); }
.support-ticket-list, .support-new-ticket { min-width: 0; padding: 20px; }
.support-ticket-list { border-right: 1px solid var(--line); overflow: hidden; display: grid; grid-template-rows: auto auto 1fr; gap: 14px; }
.support-new-ticket { display: grid; align-content: start; gap: 14px; overflow-y: auto; background: rgba(12, 25, 39, .7); }
.support-new-ticket label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 800; }
.support-new-ticket textarea, .support-compose textarea { resize: vertical; min-height: 86px; font-family: inherit; }
.support-new-ticket small { color: var(--muted); line-height: 1.45; }
.support-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.support-section-title strong, .support-section-title span { display: block; }
.support-section-title strong { font-size: 17px; }
.support-section-title span { color: var(--muted); margin-top: 4px; font-size: 12px; }
.support-tickets { min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 8px; padding-right: 3px; }
.support-ticket { width: 100%; padding: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(14, 29, 44, .86); color: var(--text); text-align: left; cursor: pointer; }
.support-ticket:hover { border-color: rgba(77, 163, 255, .65); background: rgba(24, 54, 80, .9); }
.support-ticket span, .support-ticket strong, .support-ticket small { display: block; min-width: 0; }
.support-ticket strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-ticket small { color: var(--muted); margin-top: 5px; }
.ticket-status { flex: 0 0 auto; border-radius: 999px; padding: 5px 8px; font-size: 11px; font-style: normal; font-weight: 900; background: rgba(77,163,255,.14); color: #83c3ff; }
.ticket-status.answered { color: #45dfa1; background: rgba(34,197,94,.13); }
.ticket-status.pending { color: #ffd166; background: rgba(245,158,11,.13); }
.ticket-status.closed { color: var(--muted); background: rgba(148,163,184,.12); }
.support-empty { min-height: 150px; display: grid; place-content: center; gap: 6px; text-align: center; color: var(--muted); }
.support-empty strong, .support-empty span { display: block; }
.support-error { padding: 10px 12px; border: 1px solid rgba(255,89,113,.35); border-radius: 10px; color: #ff8798; background: rgba(160,20,45,.13); font-size: 13px; }
.support-conversation { height: 100%; min-height: 0; display: grid; grid-template-rows: auto auto 1fr auto auto; }
.support-conversation-head { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.support-conversation-head strong, .support-conversation-head span { display: block; }
.support-conversation-head span { color: var(--muted); margin-top: 4px; font-size: 12px; }
.support-back { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: rgba(22,39,57,.8); color: var(--text); font-size: 20px; cursor: pointer; }
.support-messages { min-height: 0; overflow-y: auto; padding: 18px; display: grid; gap: 10px; align-content: start; background: linear-gradient(rgba(8,17,27,.96),rgba(8,17,27,.96)),url('./assets/ragnarok-bg.png') center/cover; }
.support-message time { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; }
.support-closed-note { padding: 9px 14px; color: var(--muted); text-align: center; font-size: 12px; }

.support-message {
  max-width: 82%;
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

.support-message strong {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.support-message p {
  margin: 0;
  color: rgba(237, 244, 251, 0.86);
  font-size: 13px;
  line-height: 1.4;
}

.support-message.admin {
  background: rgba(77, 163, 255, 0.18);
}

.support-message.client {
  justify-self: end;
  background: rgba(22, 163, 74, 0.18);
}

.support-compose {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1100px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .content,
  .overview-grid { grid-template-columns: 1fr; }
  .tool-tabs { overflow-x: auto; }
}

@media (max-width: 700px) {
  .support-overlay { padding: 0 !important; }
  .support-chat { width: 100vw; height: 100dvh !important; max-height: none; border: 0; border-radius: 0; }
  .support-head { padding: 12px 14px; }
  .support-home { grid-template-columns: 1fr; overflow-y: auto; }
  .support-ticket-list { min-height: 320px; max-height: 48dvh; border-right: 0; border-bottom: 1px solid var(--line); padding: 15px; }
  .support-new-ticket { padding: 15px; overflow: visible; }
  .support-compose { grid-template-columns: 1fr; }
  .support-compose .primary-btn { width: 100%; }
  .support-messages { padding: 12px; }
  .support-message { max-width: 90%; }
}

/* Interfaz 2026: jerarquia mas clara, mejor contraste y controles tactiles. */
:root {
  --bg: #060b14;
  --panel: #0d1726;
  --panel-2: #132238;
  --line: #22334a;
  --text: #f5f8fc;
  --muted: #91a2b8;
  --accent: #38bdf8;
  --good: #34d399;
  --warn: #fbbf24;
  --danger: #fb7185;
  --terminal: #03070d;
}

body {
  background:
    radial-gradient(circle at 82% -10%, rgba(56, 189, 248, 0.12), transparent 32rem),
    var(--bg);
  letter-spacing: -0.01em;
}

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

.sidebar {
  background: linear-gradient(180deg, #0a1422 0%, #07101c 100%);
  padding: 26px 20px 20px;
  gap: 22px;
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

.sidebar-title { padding: 0 4px 22px; }
.sidebar-title strong { font-size: 24px; letter-spacing: -0.04em; }
.sidebar-title span { display: block; margin-top: 6px; letter-spacing: 0.1em; color: #7dd3fc; }
.sidebar-section { padding: 0 4px; letter-spacing: 0.12em; color: #71839a; }

.admin-panel {
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 16px;
  background: rgba(56, 189, 248, 0.055);
}

.admin-search { grid-template-columns: minmax(0, 1fr) auto; }
.admin-current { border-radius: 12px; padding: 11px 12px; }
.admin-client-list { max-height: 180px; }
.admin-client-item { border-radius: 11px; padding: 10px 11px; transition: 160ms ease; }
.admin-client-item:hover { border-color: rgba(56, 189, 248, 0.5); background: rgba(56, 189, 248, 0.08); }

.service-list { gap: 10px; }
.service-item {
  border-radius: 14px;
  padding: 13px 13px 13px 17px;
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.05);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}
.service-item:hover { transform: translateY(-1px); border-color: rgba(125, 211, 252, 0.35); }
.service-item.active { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22); }
.service-name { font-size: 14px; }
.service-ip { font-family: Consolas, monospace; font-size: 12px; }

.support-entry, .logout-btn { border-radius: 13px; }
.support-entry { margin-top: auto; }
.logout-btn { margin-top: 0; }

.topbar {
  min-height: 92px;
  padding: 20px clamp(22px, 3vw, 42px);
  background: rgba(7, 15, 26, 0.86);
  backdrop-filter: blur(18px);
}
.topbar h1 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.04em; }
.topbar p { font-size: 14px; }
.topbar-identity { min-width: 220px; }
.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.topbar-actions .quick-controls { flex-wrap: nowrap; }
.top-live-status { display: flex; align-items: center; gap: 5px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: rgba(3, 9, 17, 0.58); }
.top-live-item { min-width: 68px; display: grid; grid-template-columns: 7px auto; column-gap: 6px; align-items: center; padding: 5px 7px; border-radius: 8px; color: var(--muted); }
.top-live-item i { grid-row: 1 / 3; width: 7px; height: 7px; border-radius: 50%; background: #fb7185; box-shadow: 0 0 8px rgba(251, 113, 133, .65); }
.top-live-item b { color: var(--text); font-size: 10px; line-height: 1; }
.top-live-item small { color: #fb7185; font-size: 9px; line-height: 1.15; }
.top-live-item.online i { background: #34d399; box-shadow: 0 0 8px rgba(52, 211, 153, .65); }
.top-live-item.online small { color: #34d399; }
.top-live-item.degraded i { background: #fbbf24; box-shadow: 0 0 8px rgba(251, 191, 36, .65); }
.top-live-item.degraded small { color: #fbbf24; }
.top-live-item.loading i { background: #64748b; box-shadow: none; animation: scripts-pulse 1s ease-in-out infinite; }
.top-live-item.loading small { color: var(--muted); }
.password-input-wrap { position: relative; display: block; }
.password-input-wrap .input { width: 100%; padding-right: 48px; }
.password-eye {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 40px;
  height: 40px;
  padding: 8px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}
.password-eye svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password-eye .eye-off-icon { display: none; }
.password-eye.is-visible .eye-icon { display: none; }
.password-eye.is-visible .eye-off-icon { display: block; }
.panel-controls { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.panel-control {
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}
.panel-control:hover { border-color: rgba(56, 189, 248, 0.5); background: rgba(56, 189, 248, 0.1); }
.adaptive-panel.is-minimized { min-height: 0 !important; height: auto !important; }
.console-card.adaptive-panel.is-minimized { display: flex !important; flex-direction: column; flex: 0 0 auto; visibility: visible; }
.console-card.adaptive-panel.is-minimized .console-head { display: flex !important; min-height: 62px; flex: 0 0 auto; }
.adaptive-panel.is-minimized .panel-collapsible-body { display: none !important; }
.adaptive-panel.is-minimized .tool-panel-head { margin-bottom: 0; }
.adaptive-panel.is-expanded {
  position: fixed;
  z-index: 90;
  inset: 12px;
  width: auto;
  height: auto !important;
  max-height: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.72);
}
.console-card.adaptive-panel.is-expanded {
  inset: 0;
  width: 100vw;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-width: none;
  border: 0;
  border-radius: 0;
}
.console-card:fullscreen { width: 100vw; height: 100vh !important; max-width: none; max-height: none; background: #07101b; }
.console-card:fullscreen .console-large { flex: 1; min-height: 0; max-height: none; }
.console-card.adaptive-panel.is-expanded .console-head { flex: 0 0 auto; }
.console-card.adaptive-panel.is-expanded .console-large { flex: 1; width: 100%; min-height: 0; }
.adaptive-panel.is-expanded .tool-panel { flex: 1; max-height: none; overflow: auto; }
.adaptive-panel.is-expanded .panel-collapsible-body { flex: 1; min-height: 0; }
.console-card.is-expanded .console-large { height: auto; max-height: none; }
.module-card.is-expanded .install-grid { align-content: start; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.content { padding: clamp(18px, 2.5vw, 34px); gap: 18px; }
.dashboard-modern { grid-template-rows: auto minmax(0, 1fr); align-content: stretch; overflow: hidden; }
.dashboard-modern:has(.server-alert) { grid-template-rows: auto auto minmax(0, 1fr); }
.overview-grid { grid-template-columns: minmax(360px, 1.15fr) minmax(340px, 0.85fr); gap: 18px; }

.panel {
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(16, 29, 47, 0.98), rgba(11, 20, 34, 0.98));
  border-color: rgba(145, 162, 184, 0.17);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.18);
}
.panel h2 { font-size: 17px; letter-spacing: -0.02em; }
.service-status-panel { position: relative; overflow: hidden; }
.service-status-panel::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -75px;
  top: -85px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.045;
}
.row { padding: 10px 0; }

.control-restriction {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  border-color: rgba(251, 113, 133, 0.35);
  background:
    linear-gradient(135deg, rgba(127, 29, 29, 0.2), rgba(11, 20, 34, 0.98));
}
.control-restriction.is-suspended {
  border-color: rgba(251, 191, 36, 0.38);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.2), rgba(11, 20, 34, 0.98));
}
.restriction-label {
  color: var(--danger);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.is-suspended .restriction-label { color: var(--warn); }
.control-restriction h2 { margin: 0; font-size: 20px; }
.control-restriction p { margin: 0 0 4px; color: var(--muted); line-height: 1.55; max-width: 62ch; }

.service-console-layout { display: grid; align-content: stretch; min-height: 0; }
.service-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
}
.service-identity { min-width: 0; }
.service-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.service-identity h2 { margin: 0; font-size: 20px; }
.service-identity p { margin: 5px 0 0; color: var(--muted); font-family: Consolas, monospace; font-size: 12px; }
.quick-controls { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.quick-control {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-weight: 800;
}
.quick-control.start { color: var(--good); border-color: rgba(52, 211, 153, 0.28); }
.quick-control.stop { color: var(--warn); border-color: rgba(251, 191, 36, 0.28); }
.quick-control:hover { background: rgba(56, 189, 248, 0.1); border-color: rgba(56, 189, 248, 0.42); }
.service-lock {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(251, 113, 133, 0.1);
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
}
.service-navigation {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  padding: 7px;
  border-radius: 14px;
  background: rgba(7, 15, 26, 0.92);
}
.service-navigation .tool-tab {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding-inline: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.service-overview-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
  gap: 18px;
}
.service-overview-grid .overview-actions { grid-column: 1 / -1; }
.overview-actions .actions { grid-template-columns: repeat(2, minmax(180px, 280px)); }
.module-card { padding: 0; overflow: hidden; }
.module-card .tool-panel { max-height: 420px; }
.console-standalone { min-height: min(62vh, 640px); }
.console-standalone .console-large { min-height: min(52vh, 540px); max-height: min(62vh, 650px); }

.ports { gap: 12px; }
.port { border-radius: 14px; padding: 14px; background: rgba(3, 9, 17, 0.58); }
.status-dot { display: inline-flex; align-items: center; gap: 6px; }
.status-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

.tool-card { padding: 0; }
.tool-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  background: rgba(3, 9, 17, 0.36);
}
.tool-tab { min-height: 42px; border-radius: 11px; padding: 10px 16px; }
.tool-tab.active { background: var(--accent); border-color: var(--accent); color: #032033; }
.tool-panel {
  padding: 22px;
  min-height: 176px;
  max-height: 300px;
  overflow: auto;
  scrollbar-color: #34506e transparent;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(520px, 1.35fr);
  gap: 18px;
  align-items: stretch;
  min-height: 0;
  height: 100%;
}

.workspace-grid > .panel { min-height: 0; height: 100%; }
.workspace-grid .tool-card { height: 100%; }
.workspace-grid .module-card { display: flex; flex-direction: column; }
.workspace-grid .console-card { grid-column: auto; height: 100%; display: flex; flex-direction: column; }
.workspace-grid .tool-panel {
  flex: 1;
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow-y: auto;
}
.workspace-grid .console-large { flex: 1; min-height: 0; height: auto; max-height: none; }
.actions { grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 12px; }

.cmd-btn {
  min-height: 64px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}
.cmd-btn:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(56, 189, 248, 0.5); background: rgba(56, 189, 248, 0.08); }

.input, .select { min-height: 44px; border-radius: 11px; background: rgba(3, 9, 17, 0.7); }
.input:focus, .select:focus { box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12); }
.primary-btn, .small-btn { border-radius: 11px; }
.primary-btn { background: linear-gradient(135deg, #38bdf8, #22d3ee); color: #032033; }
.small-btn { min-height: 38px; background: rgba(56, 189, 248, 0.08); }
.install-mode-options { grid-column: 1 / -1; display: grid; gap: 10px; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.install-mode-options legend { padding: 0 8px; color: var(--accent); font-weight: 800; }
.install-mode-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 11px; align-items: start; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(3, 9, 17, 0.48); cursor: pointer; }
.install-mode-card:has(input:checked) { border-color: var(--accent); background: rgba(56, 189, 248, 0.1); box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.08); }
.install-mode-card.danger-mode:has(input:checked) { border-color: #fb7185; background: rgba(251, 113, 133, 0.09); }
.install-mode-card input { margin-top: 3px; accent-color: var(--accent); }
.install-mode-card span { display: grid; gap: 4px; }
.install-mode-card strong { color: var(--text); font-size: 14px; }
.install-mode-card small { color: var(--muted); line-height: 1.45; }
.install-grid > .primary-btn { grid-column: 1 / -1; min-height: 44px; margin-top: 2px; }

@media (min-width: 1101px) {
  .topbar { min-height: 78px; padding: 11px clamp(18px, 2vw, 30px); }
  .topbar h1 { max-width: none; font-size: clamp(23px, 1.8vw, 28px); line-height: 1.08; white-space: nowrap; }
  .topbar p { margin-top: 4px; white-space: nowrap; }
  .topbar-identity { min-width: max-content; }
  .topbar-actions { flex-wrap: nowrap; gap: 7px; }
  .topbar-actions .small-btn, .quick-control { min-height: 40px; padding-block: 7px; }
  .content.dashboard-modern { padding-top: 11px; padding-bottom: 14px; gap: 11px; }
  .service-navigation { padding: 5px; gap: 5px; border-radius: 12px; }
  .service-navigation .tool-tab { min-height: 36px; padding-block: 7px; }
  .module-card .tool-panel { padding: 15px 18px; }
  .module-card .tool-panel-head { margin-bottom: 8px; }
  .module-card .install-grid { gap: 7px 10px; align-content: start; }
  .module-card .install-grid .field { gap: 4px; margin-bottom: 2px; }
  .module-card .install-grid .field > span:first-child { font-size: 11px; }
  .module-card .install-grid .input,
  .module-card .install-grid .select { min-height: 40px; height: 40px; }
  .module-card .install-mode-options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 8px; }
  .module-card .install-mode-options legend { font-size: 13px; }
  .module-card .install-mode-card { min-height: 98px; gap: 7px; padding: 9px; }
  .module-card .install-mode-card strong { font-size: 12px; line-height: 1.25; }
  .module-card .install-mode-card small { font-size: 10px; line-height: 1.32; }
}
.scripts-update-card { min-width: 250px; display: grid; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(3, 9, 17, 0.55); }
.scripts-update-card.is-current { border-color: rgba(52, 211, 153, 0.3); }
.scripts-update-card.needs-update { border-color: rgba(56, 189, 248, 0.35); }
.scripts-version-head { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 12px; }
.scripts-status-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 10px rgba(251, 191, 36, 0.65); }
.scripts-update-card.is-current .scripts-status-dot { background: #34d399; box-shadow: 0 0 10px rgba(52, 211, 153, 0.65); }
.scripts-update-card.is-updating .scripts-status-dot { background: var(--accent); animation: scripts-pulse 1s ease-in-out infinite; }
.scripts-version-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.scripts-version-grid > span { display: grid; gap: 2px; padding: 8px 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.04); }
.scripts-version-grid small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.scripts-version-grid b { color: var(--text); font-size: 12px; overflow-wrap: anywhere; }
.scripts-progress { height: 7px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.scripts-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #38bdf8, #22d3ee); transition: width 280ms ease; }
.scripts-progress-label { color: var(--muted); font-size: 10px; text-align: right; }
.scripts-update-card .cmd-btn { width: 100%; min-height: 42px; }
@keyframes scripts-pulse { 50% { opacity: .35; transform: scale(.82); } }

.backup-list {
  max-height: 210px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-color: #34506e transparent;
}
.workspace-grid .tool-panel { display: flex; flex-direction: column; }
.workspace-grid .backup-list { flex: 1; min-height: 0; max-height: none; display: grid; align-content: start; gap: 8px; padding-right: 6px; }
.workspace-grid .tool-panel-head small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.backup-row { min-height: 62px; }
.workspace-grid .backup-row { position: relative; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; min-height: 74px; padding: 25px 10px 9px; border: 1px solid rgba(148, 163, 184, .14); border-radius: 12px; background: rgba(3, 9, 17, .46); }
.backup-kind { position: absolute; top: 7px; left: 10px; color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.backup-row.is-database .backup-kind { color: #34d399; }
.backup-info { min-width: 0; display: grid; gap: 3px; }
.backup-info strong { overflow: hidden; color: var(--text); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.backup-info span { color: var(--muted); font-size: 11px; }
.backup-row .small-btn { align-self: center; min-height: 38px; }
.backup-empty { height: 100%; min-height: 180px; display: grid; place-content: center; gap: 5px; color: var(--muted); text-align: center; }
.backup-empty strong { color: var(--text); }
.console-card-large { min-height: 320px; }
.console-head { min-height: 62px; height: auto; padding: 10px 18px; background: rgba(255, 255, 255, 0.025); }
.console-title-wrap { display: grid; gap: 3px; }
.console-eyebrow { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.console-live-note { color: var(--muted); font-size: 10px; font-weight: 600; }
.console-follow-toggle {
  min-height: 38px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.console-follow-toggle input { accent-color: var(--accent); }
.service-console-layout:has(.console-standalone) { grid-template-rows: auto minmax(0, 1fr); height: 100%; }
.service-console-layout:has(.console-standalone) .console-standalone { height: 100%; min-height: 0; }
.service-console-layout:has(.console-standalone) .console-large { min-height: 0; max-height: none; }
.console { padding: 18px; line-height: 1.58; color: #b9f6ca; }
.console .ansi-bold { font-weight: 800; }
.console .ansi-black { color: #64748b; }
.console .ansi-red { color: #f87171; }
.console .ansi-green { color: #4ade80; }
.console .ansi-yellow { color: #facc15; }
.console .ansi-blue { color: #60a5fa; }
.console .ansi-magenta { color: #e879f9; }
.console .ansi-cyan { color: #22d3ee; }
.console .ansi-white { color: #e5e7eb; }
.console .ansi-bright-black { color: #94a3b8; }
.console .ansi-bright-red { color: #fb7185; }
.console .ansi-bright-green { color: #86efac; }
.console .ansi-bright-yellow { color: #fde047; }
.console .ansi-bright-blue { color: #93c5fd; }
.console .ansi-bright-magenta { color: #f0abfc; }
.console .ansi-bright-cyan { color: #67e8f9; }
.console .ansi-bright-white { color: #fff; }
.console-line { display: block; min-height: 1.58em; color: #e5e7eb; }
.console-line-error, .console-line-warning, .console-line-notice, .console-line-status, .console-line-info { color: #e5e7eb; }
.console-line-success { color: #e5e7eb; }
.console-line-meta { color: #94a3b8; font-style: italic; }
.console-tag { font-weight: 700; text-shadow: none; }
.console-tag-status, .console-tag-success { color: #4ade80; }
.console-tag-warning { color: #eab308; }
.console-tag-error { color: #ef4444; }
.console-tag-notice { color: #d946ef; }
.console-tag-info { color: #38bdf8; }
.console-tag-debug { color: #94a3b8; }
.console-large { min-height: 328px; height: calc(100% - 62px); max-height: 420px; }
.panel-install-note { grid-column: 1 / -1; display: grid; gap: 7px; padding: 14px; border: 1px solid rgba(56, 189, 248, .25); border-radius: 12px; background: rgba(56, 189, 248, .07); color: var(--muted); }
.panel-install-note strong { color: var(--text); }
.panel-install-note.warning { border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .08); }
.support-message.sending { opacity: .68; }
.support-message.sending time { color: var(--accent); }

.login-card {
  border-radius: 22px;
  padding: 36px;
  background: rgba(8, 17, 30, 0.92);
  backdrop-filter: blur(20px);
  border-color: rgba(125, 211, 252, 0.2);
}
.login-card h1 { margin-bottom: 28px; }

.mobile-menu-toggle,
.mobile-menu-close,
.mobile-menu-backdrop { display: none; }

@media (max-width: 1250px) {
  .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-grid { grid-template-columns: minmax(380px, 0.9fr) minmax(430px, 1.1fr); }
}

@media (max-width: 1100px) {
  .shell { height: auto; min-height: 100vh; grid-template-columns: 1fr; overflow: visible; }
  .sidebar {
    display: flex;
    position: fixed;
    z-index: 60;
    inset: 0 auto 0 0;
    width: min(88vw, 340px);
    max-height: 100dvh;
    padding: 24px 18px 20px;
    overflow-y: auto;
    border-right: 1px solid var(--line);
    transform: translateX(-105%);
    transition: transform 220ms ease;
    box-shadow: 24px 0 70px rgba(0, 0, 0, 0.48);
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .mobile-menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.08);
  }
  .mobile-menu-toggle span { width: 20px; height: 2px; border-radius: 2px; background: var(--accent); }
  .mobile-menu-close {
    display: grid;
    place-items: center;
    position: absolute;
    top: 16px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 28px;
    line-height: 1;
  }
  .mobile-menu-backdrop {
    display: block;
    position: fixed;
    z-index: 50;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 5, 12, 0.7);
    backdrop-filter: blur(3px);
  }
  .sidebar-title { padding-bottom: 14px; }
  .admin-panel { order: initial; }
  .service-list { display: grid; overflow: visible; padding-bottom: 4px; }
  .service-item { min-width: 0; }
  .support-entry { margin-top: 0; }
  .main { display: block; }
  .topbar { min-height: 78px; position: sticky; top: 0; z-index: 5; }
  .content { overflow: visible; }
  .overview-grid { grid-template-columns: 1fr; }
  .dashboard-modern { display: grid; grid-template-rows: auto auto; align-content: start; overflow: visible; }
  .dashboard-modern:has(.server-alert) { grid-template-rows: auto auto auto; }
  .tool-panel { max-height: none; }
  .workspace-grid { grid-template-columns: 1fr; height: auto; }
  .workspace-grid > .panel { height: auto; }
  .workspace-grid .module-card { min-height: min(68dvh, 680px); }
  .workspace-grid .console-card { min-height: min(68dvh, 680px); }
  .workspace-grid .tool-panel { min-height: 0; max-height: min(68dvh, 680px); }
  .service-overview-grid { grid-template-columns: 1fr; }
  .service-overview-grid .overview-actions { grid-column: auto; }
}

@media (max-width: 620px) {
  .scripts-update-card { min-width: 0; width: 100%; }
  .install-mode-options { grid-template-columns: 1fr; }
  .topbar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
  }
  .topbar h1 { font-size: 19px; line-height: 1.15; }
  .topbar p { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar-actions { grid-column: 1 / -1; width: 100%; justify-content: stretch; }
  .top-live-status { width: 100%; order: -1; justify-content: stretch; }
  .top-live-item { flex: 1; min-width: 0; }
  .topbar-actions > .small-btn { min-height: 42px; padding: 8px 10px; font-size: 12px; }
  .topbar-actions .quick-controls { flex: 1; }
  .adaptive-panel.is-expanded { inset: 0; border-radius: 0; padding: 12px; }
  .module-card.is-expanded .install-grid { grid-template-columns: 1fr; }
  .panel-controls { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console-head { align-items: flex-start; flex-direction: column; }
  .console-head .panel-controls { grid-template-columns: 1fr 1fr; }
  .console-follow-toggle { grid-column: 1 / -1; justify-content: center; }
  .panel-control, .console-head .small-btn { width: 100%; min-width: 0; padding-inline: 6px; }
  .content { padding: 14px; }
  .panel { padding: 16px; border-radius: 15px; }
  .ports, .install-grid, .actions { grid-template-columns: 1fr; }
  .tool-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-tab { white-space: normal; }
  .server-alert { align-items: flex-start; flex-direction: column; }
  .server-alert span { text-align: left; }
  .support-overlay { padding: 10px; }
  .overview-grid, .workspace-grid { gap: 12px; min-width: 0; }
  .workspace-grid { min-height: 0; }
  .workspace-grid .module-card, .workspace-grid .console-card { min-height: min(72dvh, 620px); }
  .workspace-grid .tool-panel { max-height: min(72dvh, 620px); padding: 14px; }
  .console-card-large { min-height: 280px; }
  .console-large { min-height: 220px; max-height: 320px; font-size: 12px; }
  .backup-row { grid-template-columns: minmax(0, 1fr); }
  .backup-row .small-btn { width: 100%; }
  .support-chat { height: calc(100dvh - 20px); }
  .quick-controls { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-control { width: 100%; }
  .service-navigation {
    grid-template-columns: repeat(6, minmax(104px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }
  .service-navigation .tool-tab { scroll-snap-align: start; padding: 9px 10px; font-size: 12px; }
  .service-overview-grid { gap: 12px; }
  .overview-actions .actions { grid-template-columns: 1fr; }
}
