/* GeroInfra base: reset, shell layout, shared components. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; height: 100%; }
body {
  margin: 0; min-height: 100%; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss06' 0; word-break: keep-all; overflow-wrap: anywhere;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
code, .mono { font-family: var(--font-mono); font-size: 0.92em; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(61, 220, 151, 0.3); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------------------------------------------ shell */
.app { display: flex; min-height: 100vh; min-height: 100dvh; }
.app::before { /* subtle grid backdrop */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 70%);
}
.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh; width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  display: flex; flex-direction: column; gap: 4px; padding: 18px 14px; z-index: 30;
  background: var(--surface); border-right: 1px solid var(--border);
}
:root[data-theme="dark"] .sidebar { background: linear-gradient(180deg, #0C1A14 0%, #08130E 100%); }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img, .brand svg { width: 38px; height: 38px; flex: 0 0 38px; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; line-height: 1.1; }
.brand-name b { color: var(--brand); font-weight: 800; }
:root[data-theme="dark"] .brand-name b { color: var(--brand-mint); }
.brand-sub { font-size: 11px; color: var(--text-3); letter-spacing: 0.02em; }
.nav-section { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; padding: 14px 12px 6px; }
.nav-link {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--text-2);
  font-weight: 560; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); position: relative;
}
.nav-link:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.nav-link.active { background: var(--brand-soft); color: var(--brand-strong); }
:root[data-theme="dark"] .nav-link.active { color: var(--brand-mint); }
.nav-link.active::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.nav-link svg { flex: 0 0 18px; opacity: 0.9; }
.nav-link .nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; background: var(--st-down); color: #fff; }
.sidebar-foot { margin-top: auto; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; color: var(--text-3); }
.sidebar-foot strong { color: var(--text); font-weight: 650; }

.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; position: relative; z-index: 1; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--topbar-h); display: flex; align-items: center; gap: 12px;
  padding: 0 var(--gutter); background: var(--glass); border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.topbar .page-title { font-size: 18px; font-weight: 750; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar .spacer { flex: 1 1 auto; }
.topbar-brand { display: none; align-items: center; gap: 8px; }
.topbar-brand img, .topbar-brand svg { width: 30px; height: 30px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); font-size: 12px; font-weight: 600; color: var(--text-2); white-space: nowrap;
}
.live-pill .led { width: 8px; height: 8px; }
.search-box { position: relative; width: min(280px, 32vw); }
.search-box input { width: 100%; height: 36px; padding: 0 12px 0 34px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.search-box svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 280px; max-height: 60vh; overflow: auto; z-index: 50;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px;
}
.search-results a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); }
.search-results a:hover, .search-results a.active { background: var(--surface-3); text-decoration: none; }
.search-results .sr-meta { margin-left: auto; font-size: 11px; color: var(--text-3); }

.view { flex: 1 1 auto; padding: var(--gutter); padding-bottom: calc(var(--gutter) + 24px); min-width: 0; max-width: 1680px; width: 100%; margin: 0 auto; }
.view.view-enter { animation: view-in 260ms var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tabbar { display: none; }

@media (max-width: 900px) {
  .sidebar { display: none; }
  .topbar-brand { display: inline-flex; }
  .topbar .page-title { font-size: 16px; }
  .search-box { display: none; }
  .search-box.open { display: block; position: absolute; left: 12px; right: 12px; top: 10px; width: auto; z-index: 60; }
  .view { padding-bottom: calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--glass); border-top: 1px solid var(--border);
    backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  }
  .tabbar a, .tabbar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none;
    color: var(--text-3); font-size: 10.5px; font-weight: 600; cursor: pointer; padding: 6px 2px; min-width: 0;
  }
  .tabbar a span, .tabbar button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar a.active { color: var(--brand-strong); }
  :root[data-theme="dark"] .tabbar a.active { color: var(--brand-mint); }
}
@media (min-width: 901px) { .only-mobile { display: none !important; } }
@media (max-width: 900px) { .only-desktop { display: none !important; } }

/* mobile "more" sheet */
.sheet-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sheet-nav a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: 13px; text-align: center; }
.sheet-nav a:hover { text-decoration: none; background: var(--surface-3); }

/* ------------------------------------------------------------------ page header */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.page-head h1 em { font-style: normal; color: var(--brand); }
:root[data-theme="dark"] .page-head h1 em { color: var(--brand-mint); }
.page-head .lead { color: var(--text-3); margin-top: 4px; font-size: 14px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 600px) { .page-head h1 { font-size: 21px; } .page-head { margin-bottom: 14px; } }

/* ------------------------------------------------------------------ cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.card-pad { padding: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-head .sub { font-size: 12px; color: var(--text-3); }
.card-body { padding: 16px 18px; }
:root[data-theme="dark"] .card { background: linear-gradient(180deg, rgba(19, 36, 29, 0.92), rgba(13, 25, 20, 0.92)); }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 1200px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid { gap: 12px; } }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 8px; }
.wrap { flex-wrap: wrap; }
.muted { color: var(--text-3); }
.small { font-size: 12px; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }

/* KPI tile */
.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.kpi .kpi-label { font-size: 12px; font-weight: 600; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.kpi .kpi-value { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi .kpi-value small { font-size: 14px; font-weight: 600; color: var(--text-3); margin-left: 3px; }
.kpi .kpi-foot { font-size: 12px; color: var(--text-3); }
@media (max-width: 600px) { .kpi .kpi-value { font-size: 24px; } .kpi { padding: 14px; } }

/* ------------------------------------------------------------------ buttons & inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; font-size: 13.5px; cursor: pointer;
  white-space: nowrap; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform 80ms; text-decoration: none !important;
}
.btn:hover { background: var(--surface-3); border-color: var(--border-strong); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
:root[data-theme="dark"] .btn-primary { color: #04130C; background: var(--brand-mint); border-color: var(--brand-mint); }
:root[data-theme="dark"] .btn-primary:hover { background: #5BE7AA; }
.btn-danger { background: var(--st-down); border-color: var(--st-down); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); background: var(--st-down); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-3); border-color: transparent; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn-icon { width: 36px; padding: 0; }
.btn-icon.btn-sm { width: 30px; }
.btn .spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .btn { height: 40px; } .btn-sm { height: 34px; } .btn-icon { width: 40px; } .btn-icon.btn-sm { width: 34px; } }

.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--border); gap: 2px; }
.seg button { height: 28px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font-weight: 600; font-size: 12.5px; cursor: pointer; }
.seg button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-size: 12.5px; font-weight: 650; color: var(--text-2); }
.field .hint { font-size: 11.5px; color: var(--text-3); }
.field .err { font-size: 12px; color: var(--st-down); }
.input, .select, .textarea {
  width: 100%; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); transition: border-color var(--dur), box-shadow var(--dur); font-size: 14px;
}
.textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237F968B' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 163, 107, 0.18); }
.input.invalid { border-color: var(--st-down); }
@media (max-width: 900px) { .input, .select { height: 42px; font-size: 16px; } .textarea { font-size: 16px; } }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 40px; height: 23px; border-radius: 999px; background: var(--border-strong); position: relative; transition: background var(--dur); flex: 0 0 40px; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease); }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(17px); }
.switch input:focus-visible + .track { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ------------------------------------------------------------------ chips, badges, LEDs */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650; white-space: nowrap;
  background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-cat { color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border-color: color-mix(in srgb, var(--c) 30%, transparent); }
.chip-stage-planned { border-style: dashed; color: var(--st-planned); background: color-mix(in srgb, var(--st-planned) 10%, transparent); border-color: color-mix(in srgb, var(--st-planned) 45%, transparent); }
.chip-stage-operational { color: var(--st-up); background: color-mix(in srgb, var(--st-up) 10%, transparent); border-color: color-mix(in srgb, var(--st-up) 30%, transparent); }
.chip-stage-development { color: var(--st-maintenance); background: color-mix(in srgb, var(--st-maintenance) 10%, transparent); border-color: color-mix(in srgb, var(--st-maintenance) 30%, transparent); }
.chip-stage-maintenance { color: var(--st-degraded); background: color-mix(in srgb, var(--st-degraded) 10%, transparent); border-color: color-mix(in srgb, var(--st-degraded) 30%, transparent); }
.chip-stage-retired { color: var(--st-retired); }

.badge { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap;
  color: var(--sc); background: color-mix(in srgb, var(--sc) 13%, transparent); border: 1px solid color-mix(in srgb, var(--sc) 32%, transparent); }
.badge .led { width: 8px; height: 8px; }

.led { --sc: var(--st-unknown); display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--sc); position: relative; flex: 0 0 auto;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sc) 18%, transparent); }
.led.pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--sc); animation: led-pulse 2s var(--ease) infinite; }
@keyframes led-pulse { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
.st-up { --sc: var(--st-up); }
.st-degraded { --sc: var(--st-degraded); }
.st-down { --sc: var(--st-down); }
.st-unknown { --sc: var(--st-unknown); }
.st-planned { --sc: var(--st-planned); }
.st-maintenance { --sc: var(--st-maintenance); }
.st-retired { --sc: var(--st-retired); }
.led.st-planned { background: transparent; border: 2px dashed var(--sc); box-shadow: none; }

/* ------------------------------------------------------------------ table */
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2); position: sticky; top: 0; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--dur); }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr.clickable { cursor: pointer; }

/* ------------------------------------------------------------------ overlay: modal / drawer / toast */
.overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(4, 12, 9, 0.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade-in 160ms var(--ease); }
@keyframes fade-in { from { opacity: 0; } }
.modal { width: min(560px, 100%); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); animation: pop-in 220ms var(--ease); overflow: hidden; }
.modal.lg { width: min(820px, 100%); }
.modal.xl { width: min(1080px, 100%); }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 17px; font-weight: 750; }
.modal-body { padding: 20px 22px; overflow: auto; flex: 1 1 auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--border); background: var(--surface-2); flex-wrap: wrap; }
@media (max-width: 640px) {
  .overlay { align-items: flex-end; padding: 0; }
  .modal, .modal.lg, .modal.xl { width: 100%; max-height: 92dvh; border-radius: 22px 22px 0 0; animation: sheet-in 260ms var(--ease); padding-bottom: env(safe-area-inset-bottom); }
  .modal-head, .modal-body, .modal-foot { padding-left: 16px; padding-right: 16px; }
}
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0.4; } }

.drawer-overlay { justify-content: flex-end; align-items: stretch; padding: 0; }
.drawer { width: min(520px, 100%); height: 100%; background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: drawer-in 260ms var(--ease); }
@keyframes drawer-in { from { transform: translateX(30px); opacity: 0.4; } }
.drawer .modal-body { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
@media (max-width: 640px) { .drawer-overlay { align-items: flex-end; } .drawer { height: 88dvh; border-radius: 22px 22px 0 0; border-left: 0; animation: sheet-in 260ms var(--ease); } }

#toast-root { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; max-width: calc(100vw - 32px); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; min-width: 240px; max-width: 420px; padding: 12px 14px; border-radius: 12px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-weight: 560; animation: toast-in 240ms var(--ease); }
.toast.out { opacity: 0; transform: translateY(8px); transition: all 200ms var(--ease); }
.toast .led { flex: 0 0 auto; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 900px) { #toast-root { left: 16px; right: 16px; bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom)); } .toast { max-width: none; } }

/* ------------------------------------------------------------------ misc */
.empty { padding: 40px 20px; text-align: center; color: var(--text-3); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty svg { opacity: 0.5; }
.skeleton { background: linear-gradient(90deg, var(--surface-3) 0%, var(--surface-2) 50%, var(--surface-3) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.boot { display: grid; place-items: center; min-height: 50vh; color: var(--text-3); gap: 14px; }
.divider { height: 1px; background: var(--border); margin: 14px 0; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; font-size: 13.5px; }
.kv dt { color: var(--text-3); font-weight: 600; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.tooltip { position: fixed; z-index: 300; pointer-events: none; padding: 8px 10px; border-radius: 9px; font-size: 12px; line-height: 1.45; max-width: 280px;
  background: #0B1813; color: #E7F2EC; box-shadow: var(--shadow-lg); border: 1px solid rgba(61, 220, 151, 0.2); }
.dropdown { position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; z-index: 60; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); }
.dropdown button, .dropdown a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 8px; color: var(--text); font-weight: 560; cursor: pointer; text-align: left; }
.dropdown button:hover, .dropdown a:hover { background: var(--surface-3); text-decoration: none; }
.dropdown .dd-head { padding: 8px 10px; font-size: 12px; color: var(--text-3); border-bottom: 1px solid var(--border); margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
