/* NetBox Portal – dark theme in the style of ProxCenter */

@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #1b1b21;
  --bg-sidebar: #212128;
  --bg-panel: #24242c;
  --bg-panel-2: #2a2a33;
  --bg-input: #18181d;
  --bg-hover: #2e2e38;
  --border: #33333d;
  --border-strong: #42424e;
  --text: #e7e7ec;
  --text-2: #b4b4bf;
  --muted: #85858f;
  --accent: #e8892f;
  --accent-2: #d46f1c;
  --accent-soft: rgba(232, 137, 47, .14);
  --accent-grad: linear-gradient(90deg, #e8892f 0%, #d9731f 100%);
  --ok: #3ccf6e;
  --ok-soft: rgba(60, 207, 110, .14);
  --err: #ef4f52;
  --err-soft: rgba(239, 79, 82, .15);
  --warn: #f2b33d;
  --warn-soft: rgba(242, 179, 61, .15);
  --info: #5b9dff;
  --info-soft: rgba(91, 157, 255, .15);
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-w: 268px;
  --topbar-h: 68px;
  --shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14.5px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #f3a35a; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 .75rem; }
small, .small { font-size: 12.5px; }
.muted { color: var(--muted); }
.peer { display: inline-flex; align-items: center; max-width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-panel-2); font-size: 12.5px; line-height: 1; white-space: nowrap; overflow: hidden; vertical-align: middle; }
.peer + .peer { margin-top: 4px; }
.peer-device { display: inline-flex; align-items: center; gap: 5px; padding: 5px 6px 5px 8px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; }
.peer-device .icon { color: var(--muted); flex: none; }
.peer-sep { display: inline-flex; color: var(--muted); }
.peer-port { padding: 5px 8px 5px 6px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--text); font-weight: 600; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }
.icon { flex: none; display: inline-block; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- App shell ---------- */
.shell {
  display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh;
  /* sidebar colour continues below the sticky sidebar on long pages */
  background: linear-gradient(90deg, var(--bg-sidebar) var(--sidebar-w), var(--bg) var(--sidebar-w));
}
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  padding: 18px 14px 24px;
  display: flex; flex-direction: column;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 22px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.nav-section {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0 6px; padding: 0 10px;
  color: var(--muted); font-size: 14px;
}
.nav-section .icon { color: var(--muted); }
.nav-section::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; margin: 2px 0;
  border-radius: 10px;
  color: var(--text); font-weight: 500; font-size: 15px;
  transition: background .15s;
}
.nav-link:hover { background: var(--bg-hover); color: var(--text); }
.nav-link.active { background: var(--accent-grad); color: #fff; box-shadow: 0 4px 14px rgba(232, 137, 47, .25); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px;
  background: rgba(27, 27, 33, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.page-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.page-title .icon { color: var(--accent); }
.page-title h1 { font-size: 19px; white-space: nowrap; }
.page-title .sub { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-title .sub::before { content: "·"; margin: 0 8px 0 2px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 8px;
  background: var(--bg-panel); border: 1px solid var(--border);
  color: var(--text-2); font-size: 12.5px; white-space: nowrap;
}
.content { padding: 22px 24px 40px; max-width: 1500px; width: 100%; }
.topbar .menu-toggle { display: none; }
.backdrop { display: none; }

/* User menu */
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.user-menu summary::-webkit-details-marker { display: none; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-grad); color: #fff;
  font-weight: 700; font-size: 13.5px;
}
.dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px;
  background: var(--bg-panel-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px;
}
.dropdown-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.dropdown-head strong { display: block; }
.dropdown button.menu-item {
  width: 100%; display: flex; align-items: center; gap: 10px;
  background: none; border: 0; color: var(--text); font: inherit;
  padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer;
}
.dropdown button.menu-item:hover { background: var(--bg-hover); }

/* Tenant select */
.tenant-select { display: flex; align-items: center; gap: 8px; }
.tenant-select .icon { color: var(--muted); }
.tenant-select select { width: auto; min-width: 160px; padding: 6px 30px 6px 10px; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.card-head h2, .card-head h3 { font-size: 15.5px; display: flex; align-items: center; gap: 10px; }
.card-head .icon { color: var(--accent); }
.card-head .actions { margin-left: auto; display: flex; gap: 8px; }
.card-body { padding: 18px; }
.card-body.flush { padding: 0; }
.count { color: var(--muted); font-weight: 400; font-size: 13.5px; }

.hero { display: flex; align-items: center; gap: 22px; padding: 20px 22px; flex-wrap: wrap; }
.hero-icon {
  width: 64px; height: 64px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  border: 4px solid var(--accent); color: var(--accent);
}
.hero h2 { font-size: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; color: var(--muted); font-size: 13px; }
.hero .meta span { display: inline-flex; align-items: center; gap: 5px; }
.hero .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }
.notice {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--bg-panel); border: 1px solid var(--border); color: var(--text-2); font-size: 13.5px;
}
.notice .icon { color: var(--accent); }

/* Dashboard tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat {
  display: flex; align-items: center; gap: 16px;
  padding: 18px; border-radius: var(--radius);
  background: var(--bg-panel); border: 1px solid var(--border); color: var(--text);
  transition: border-color .15s, transform .15s;
}
a.stat:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.stat-icon {
  width: 44px; height: 44px; border-radius: 10px; flex: none;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
}
.stat-value { font-size: 24px; font-weight: 700; line-height: 1.1; }
.stat-label { color: var(--muted); font-size: 13px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-weight: 500; color: var(--text-2); font-size: 13px;
  padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 255, 255, .018); }
td.actions { text-align: right; white-space: nowrap; }
td.actions form { display: inline; }
.name-cell { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.name-cell .icon { color: var(--muted); }
.empty { padding: 34px 18px; text-align: center; color: var(--muted); }
tr.editing td { background: var(--bg-panel-2) !important; }

/* ---------- Pills & tags ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  background: var(--bg-hover); color: var(--text-2);
}
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.err { background: var(--err-soft); color: var(--err); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.info { background: var(--info-soft); color: var(--info); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }
.pill.muted { background: var(--bg-hover); color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.tag {
  display: inline-block; padding: 1px 7px; margin: 1px 2px 1px 0;
  border-radius: 6px; border: 1px solid var(--border-strong);
  font-size: 12px; color: var(--text-2); background: var(--bg-input);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--bg-panel-2);
  color: var(--text); font: inherit; font-weight: 500; font-size: 13.5px;
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--bg-hover); color: var(--text); border-color: #50505d; }
.btn-primary { background: var(--accent-grad); border-color: transparent; color: #fff; }
.btn-primary:hover { background: var(--accent-2); color: #fff; border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-hover); }
.btn-danger:hover { background: var(--err-soft); color: var(--err); border-color: transparent; }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-icon { padding: 7px; }
.btn-block { width: 100%; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 0; }
.field > span, .label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.field.full { grid-column: 1 / -1; }
.form-section { padding: 18px; border-bottom: 1px solid var(--border); }
.form-section:last-of-type { border-bottom: 0; }
.form-section h3 { font-size: 14px; color: var(--text-2); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.form-section .facts.current { padding: 12px 14px; background: var(--bg-panel-2); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; }
.form-section .current-source { font-size: 12px; color: var(--muted); margin: 0 0 16px; }
#topic-fields { transition: opacity .15s; }
form.htmx-request #topic-fields, #topic-fields.htmx-request { opacity: .5; pointer-events: none; }
.form-section .form-note { font-size: 12px; color: var(--muted); margin-top: 12px; }
.form-section .notice { margin-bottom: 16px; }
.form-actions { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--border); background: var(--bg-panel-2); border-radius: 0 0 var(--radius) var(--radius); }
input[type=text], input[type=password], input:not([type]), select, textarea {
  width: 100%; padding: 9px 12px;
  background: var(--bg-input); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font: inherit; font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input:disabled { color: var(--muted); }
select {
  appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2385858f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
select[multiple] { background-image: none; padding: 6px; min-height: 150px; }
select[multiple] option { padding: 5px 8px; border-radius: 6px; }
select[multiple] option:checked { background: var(--accent-soft); color: var(--text); }

.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle .track {
  width: 40px; height: 22px; border-radius: 999px; flex: none;
  background: var(--border-strong); position: relative; transition: background .15s;
}
.toggle .track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s;
}
.toggle input:checked + .track { background: var(--accent); }
.toggle input:checked + .track::after { transform: translateX(18px); }
.toggle input:focus-visible + .track { box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Messages ---------- */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 14px;
  border: 1px solid transparent; font-size: 14px;
}
.alert.success { background: var(--ok-soft); color: #8ee6ac; border-color: rgba(60, 207, 110, .25); }
.alert.error { background: var(--err-soft); color: #ff9c9e; border-color: rgba(239, 79, 82, .3); }
.alert.info { background: var(--info-soft); color: #a8c8ff; border-color: rgba(91, 157, 255, .25); }
.saved { color: var(--ok); font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px; }

.breadcrumb { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Login ---------- */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(232, 137, 47, .10), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 400px; background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 30px; box-shadow: var(--shadow); }
.auth-card .brand { justify-content: center; padding: 0 0 8px; }
.auth-card h1 { font-size: 20px; text-align: center; margin: 10px 0 4px; }
.auth-card .lead { text-align: center; color: var(--muted); margin-bottom: 22px; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* htmx */
.htmx-indicator { opacity: 0; transition: opacity .2s; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }
.htmx-request.btn { opacity: .7; pointer-events: none; }

/* ---------- Sections, tabs, facts ---------- */
.section-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 17px; }
.section-head p { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }
.section-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
.tab {
  padding: 10px 16px; margin-bottom: -1px; white-space: nowrap;
  color: var(--text-2); font-weight: 500; border-bottom: 2px solid transparent;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; margin-bottom: 18px; }
.grid-2 > .card { margin-bottom: 0; }
.grid-2.fixed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px 24px; }
.fact .k { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fact .v { font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }
.notice.accent { background: rgba(232, 137, 47, .08); border-color: rgba(232, 137, 47, .35); color: #f0c393; }
.notice a { color: inherit; text-decoration: underline; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row form { display: inline; }
.btn:disabled, .btn.disabled { opacity: .35; pointer-events: none; cursor: default; }
.topbar-link.active { color: var(--accent); border-color: var(--accent); }
.segmented { display: inline-flex; padding: 4px; gap: 4px; background: var(--bg-panel); border: 1px solid var(--border); border-radius: 10px; }
.segmented a { padding: 6px 14px; border-radius: 7px; color: var(--text-2); font-weight: 500; font-size: 13.5px; }
.segmented a:hover { color: var(--text); background: var(--bg-hover); }
.segmented a.active { background: var(--accent-grad); color: #fff; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }

/* ---------- Meters ---------- */
.meter { height: 6px; border-radius: 999px; background: var(--bg-hover); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: var(--accent-grad); }
.meter.muted > span { background: #6b7184; }
.meter-label { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text-2); margin-bottom: 7px; }
.meter-label strong { color: var(--text); }
.usage-row { display: grid; grid-template-columns: 130px 1fr 80px; gap: 14px; align-items: center; padding: 9px 0; color: var(--text-2); }
.usage-row .val { text-align: right; font-weight: 700; color: var(--text); }

/* ---------- VMs ---------- */
.vm-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: center; padding: 18px 22px; }
.vm-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.vm-name { font-size: 16.5px; font-weight: 700; color: var(--text); }
.vm-name:hover { color: var(--accent); }
.vm-meta { margin-left: auto; color: var(--muted); font-size: 13px; }
.vm-meta.err { color: var(--err); }
.meters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; max-width: 680px; }
.vm-actions { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 10px; }
.vm-actions form { display: contents; }
.vm-hero { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding: 20px 22px; }
.vm-hero h2 { display: flex; align-items: center; gap: 12px; font-size: 20px; margin-bottom: 16px; }
.vm-hero > div:first-child { flex: 1; min-width: 0; }
.vm-hero .facts { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.vm-hero .actions { margin-left: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-width: 240px; }
.vm-hero .actions .wide { grid-column: 1 / -1; }
.vm-hero .actions form { display: contents; }

/* Charts */
.chart-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px 4px; }
.chart-head h3 { font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.chart-head .now { margin-left: auto; color: var(--muted); font-size: 13px; }
.chart-head .now strong { color: var(--text); }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.chart.tone-muted .legend-dot { background: #8a90a3; }
.chart svg { display: block; width: 100%; height: auto; padding: 0 10px 8px; }
.chart .gridline { stroke: var(--border); stroke-width: 1; }
.chart text { fill: var(--muted); font-size: 13px; }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; }
.chart.tone-accent .line { stroke: var(--accent); }
.chart.tone-muted .line { stroke: #8a90a3; }
.chart.tone-accent stop { stop-color: var(--accent); }
.chart.tone-muted stop { stop-color: #8a90a3; }

/* Tickets */
details.ticket { display: block; }
details.ticket summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
details.ticket summary::-webkit-details-marker { display: none; }
details.ticket summary .icon { color: var(--muted); transition: transform .15s; }
details.ticket[open] summary .icon { transform: rotate(180deg); }
.ticket-body { white-space: pre-wrap; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg-input); border: 1px solid var(--border); color: var(--text-2); font-size: 13.5px; }

/* Console */
.console-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.console-bar .status { color: var(--muted); font-size: 13.5px; margin-right: auto; }
.console-screen { height: calc(100vh - 220px); min-height: 420px; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.console-screen:fullscreen { border-radius: 0; border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; background: var(--bg); }
  .sidebar {
    position: fixed; z-index: 40; left: 0; top: 0; width: var(--sidebar-w);
    transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow);
  }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .backdrop { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .5); }
  .topbar .menu-toggle { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .content { padding: 16px; }
  .page-title .sub, .tenant-select .icon { display: none; }
  .tenant-select select { min-width: 0; max-width: 150px; }
  .vm-card, .grid-2.fixed { grid-template-columns: 1fr; }
  .meters { grid-template-columns: 1fr; }
  .vm-meta { margin-left: 0; width: 100%; }
  .vm-hero .actions { margin-left: 0; width: 100%; }
  .usage-row { grid-template-columns: 110px 1fr 70px; }
}
