﻿:root {
  --bg: #0b1020;
  --panel: #121a2d;
  --line: #2b3853;
  --text: #e6edf8;
  --muted: #90a2bf;
  --accent: #4cc9f0;
  --danger: #f87171;
  --ok: #34d399;
}
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #17233d 0%, #0b1020 48%, #060912 100%);
  color: var(--text);
}
.shell {
  max-width: min(96vw, 1800px);
  margin: 0 auto;
  padding: 32px 20px 48px;
}
.card {
  background: rgba(18,26,45,.95);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.hidden { display: none; }
h1, h2 { margin: 0 0 8px; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 16px; margin: 16px 0; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
label span { display: block; margin-bottom: 6px; font-size: 14px; color: var(--muted); }
input, select, button {
  font: inherit;
}
input, select {
  width: 100%;
  box-sizing: border-box;
  background: #0a1326;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
button {
  background: var(--accent);
  color: #04111d;
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
}
button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.actions { display: flex; align-items: end; }
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.status {
  margin-top: 12px;
  min-height: 20px;
}
.status.ok { color: var(--ok); }
.status.error { color: var(--danger); }
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
tr:last-child td { border-bottom: 0; }
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.badge.ok { background: rgba(52,211,153,.16); color: var(--ok); }
.badge.off { background: rgba(248,113,113,.16); color: var(--danger); }
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.tabbar {
  display: flex;
  gap: 10px;
  margin: 20px 0 18px;
}
.tab {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.tab.is-active {
  background: rgba(76,201,240,.12);
  color: var(--accent);
  border-color: rgba(76,201,240,.35);
}
.tab-panel.is-active {
  display: block;
}
html[data-initial-tab="licenses"] [data-tab="licenses"],
html[data-initial-tab="demos"] [data-tab="demos"],
html[data-initial-tab="odoo"] [data-tab="odoo"] {
  background: rgba(76,201,240,.12);
  color: var(--accent);
  border-color: rgba(76,201,240,.35);
}
html[data-initial-tab="licenses"] #licensesTab,
html[data-initial-tab="demos"] #demosTab,
html[data-initial-tab="odoo"] #odooTab {
  display: block;
}
html[data-initial-tab="licenses"] #demosTab,
html[data-initial-tab="licenses"] #odooTab,
html[data-initial-tab="demos"] #licensesTab,
html[data-initial-tab="demos"] #odooTab,
html[data-initial-tab="odoo"] #licensesTab,
html[data-initial-tab="odoo"] #demosTab {
  display: none;
}
code {
  font-family: Consolas, monospace;
  font-size: 12px;
}
.grid.four { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.grid.one { grid-template-columns: 1fr; }
.compact-grid { margin-top: 0; margin-bottom: 14px; }
.multi-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.72);
  z-index: 9999;
  padding: 24px;
}
.modal-panel {
  max-width: 720px;
  max-height: calc(100vh - 80px);
  overflow: auto;
  margin: 40px auto 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  scrollbar-width: thin;
  scrollbar-color: rgba(76,201,240,.45) rgba(10,19,38,.95);
}
.modal-panel::-webkit-scrollbar {
  width: 10px;
}
.modal-panel::-webkit-scrollbar-track {
  background: rgba(10,19,38,.95);
  border-radius: 999px;
}
.modal-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(76,201,240,.55), rgba(43,56,83,.95));
  border-radius: 999px;
  border: 2px solid rgba(10,19,38,.95);
}
.modal-close {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  font-size: 24px;
  line-height: 1;
}
