:root {
  --font: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --bg0: #05070d;
  --bg1: #070a14;
  --fg0: rgba(255, 255, 255, 0.92);
  --fg1: rgba(255, 255, 255, 0.80);
  --fg2: rgba(255, 255, 255, 0.66);

  --glass: rgba(255, 255, 255, 0.06);
  --glass2: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.12);
  --border2: rgba(255, 255, 255, 0.18);
  --blur: 16px;

  --neon-cyan: #31f7ff;
  --neon-magenta: #ff4fd8;
  --neon-lime: #52ff9a;
  --neon-amber: #ffcc33;
  --danger: #ff3a52;

  --shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
  --shadow2: 0 10px 30px rgba(0, 0, 0, 0.45);

  --radius: 18px;
  --radius2: 14px;

  --focus: 0 0 0 3px rgba(49, 247, 255, 0.25);
}

html[data-theme="light"] {
  --bg0: #f6f7ff;
  --bg1: #f0f5ff;
  --fg0: rgba(10, 14, 24, 0.92);
  --fg1: rgba(10, 14, 24, 0.80);
  --fg2: rgba(10, 14, 24, 0.66);

  --glass: rgba(0, 20, 60, 0.06);
  --glass2: rgba(0, 20, 60, 0.09);
  --border: rgba(0, 20, 60, 0.12);
  --border2: rgba(0, 20, 60, 0.18);

  --shadow: 0 18px 55px rgba(10, 14, 24, 0.14);
  --shadow2: 0 10px 25px rgba(10, 14, 24, 0.12);
}

* { box-sizing: border-box; }

html { font-size: 25px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--fg0);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: radial-gradient(1200px 600px at 12% 10%, rgba(255, 79, 216, 0.18), transparent 55%),
              radial-gradient(1000px 550px at 72% 14%, rgba(49, 247, 255, 0.18), transparent 55%),
              radial-gradient(900px 520px at 58% 78%, rgba(82, 255, 154, 0.12), transparent 52%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  min-height: 100vh;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0% { background-position: 0% 0%; }
  100% { background-position: -135% 0%; }
}

body.is-loading #refreshBtn .btn__icon {
  animation: spin 900ms linear infinite;
}

.card--skeleton {
  position: relative;
  overflow: hidden;
}

.skeletonLine {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.14) 40%, rgba(255,255,255,0.06) 80%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

.skeletonLine--title { height: 16px; width: 62%; }
.skeletonLine--sub { height: 12px; width: 82%; opacity: 0.9; margin-top: 10px; }
.skeletonLine--chip { height: 24px; width: 110px; }

.skeletonDevice {
  margin-top: 12px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .skeletonDevice { background: rgba(255, 255, 255, 0.55); }

.skeletonRow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.skeletonStack { display: grid; gap: 8px; width: 100%; }

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 15% 65%, rgba(49, 247, 255, 0.08), transparent 55%),
    radial-gradient(800px 440px at 85% 72%, rgba(255, 79, 216, 0.06), transparent 55%);
  mix-blend-mode: screen;
  filter: blur(0.2px);
}

.container {
  width: min(90%, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 36px;
}

.glass {
  background: linear-gradient(180deg, var(--glass2), var(--glass));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}

.topbar {
  position: sticky;
  top: 12px;
  /* Must sit above cards/chips so dropdowns never get covered */
  z-index: 2000;
  isolation: isolate;
  margin: 12px auto 0;
  width: min(90%, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
}

.brand { display: flex; gap: 12px; align-items: center; }
.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background:
    radial-gradient(16px 16px at 30% 30%, rgba(255,255,255,0.25), transparent 60%),
    linear-gradient(135deg, rgba(49, 247, 255, 0.95), rgba(255, 79, 216, 0.85));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 18px 40px rgba(49, 247, 255, 0.16);
}
.brand__title { font-weight: 700; letter-spacing: 0.3px; }
.brand__sub { font-size: 14px; color: var(--fg2); }

.topbar__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
}

.pill--link {
  cursor: pointer;
}

.pill--link:hover {
  border-color: var(--border2);
  background: rgba(255, 255, 255, 0.07);
}
.pill__label { font-size: 14px; color: var(--fg2); }
.pill__value { font-size: 14px; color: var(--fg1); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn {
  position: relative;
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg0);
  font-size: 16px;
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn:hover { transform: translateY(-1px); border-color: var(--border2); background: rgba(255, 255, 255, 0.07); }
.btn:active { transform: translateY(0px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn__icon { opacity: 0.85; }

.btn--primary {
  border: 1px solid rgba(49, 247, 255, 0.32);
  background: linear-gradient(135deg, rgba(49, 247, 255, 0.18), rgba(255, 79, 216, 0.14));
  box-shadow: 0 18px 55px rgba(49, 247, 255, 0.14);
  font-weight: 600;
  justify-content: center;
}
.btn--primary .btn__glow {
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: radial-gradient(500px 60px at 20% 0%, rgba(49, 247, 255, 0.32), transparent 55%),
              radial-gradient(500px 60px at 80% 100%, rgba(255, 79, 216, 0.22), transparent 55%);
  pointer-events: none;
  opacity: 0.8;
  filter: blur(10px);
}

.btn--danger {
  border-color: rgba(255, 58, 82, 0.35);
  background: rgba(255, 58, 82, 0.08);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
}

.view { margin-top: 18px; }
.hidden { display: none !important; }

.dashboardLayout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 14px;
  align-items: start;
}

.sidebar {
  padding: 14px;
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 110px);
  overflow: auto;
}

.sidebar__title { font-weight: 700; letter-spacing: 0.2px; margin-bottom: 6px; }
.sidebar__hint { font-size: 14px; margin-bottom: 10px; }

.sidebar__actions {
  display: flex;
  gap: 8px;
  margin: 6px 0 12px;
  flex-wrap: wrap;
}

.btn--mini {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 14px;
}

.tree { display: grid; gap: 2px; }
.tree__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
}
.tree__row:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--border); }
.tree__row--active { border-color: rgba(49, 247, 255, 0.35); background: rgba(49, 247, 255, 0.07); }
.tree__toggle {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  flex: 0 0 auto;
}
.tree__toggle[aria-hidden="true"] { opacity: 0.35; }
.tree__label { flex: 1 1 auto; font-size: 16px; color: var(--fg0); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree__meta { flex: 0 0 auto; font-size: 15px; color: var(--fg2); }

.tree__indent { width: var(--indent, 0px); flex: 0 0 var(--indent, 0px); }

@media (max-width: 980px) {
  .dashboardLayout { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: none; }
}

.panel {
  padding: 18px;
  width: min(720px, 100%);
  margin: 42px auto 0;
}

.h1 { margin: 0 0 8px; font-size: 38px; }
.muted { color: var(--fg2); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }

.form { display: grid; gap: 14px; margin-top: 12px; }

.field { display: grid; gap: 6px; }
.field__label { font-size: 15px; color: var(--fg1); }
.field__hint { font-size: 14px; color: var(--fg2); }
.field--checkbox { display: flex; align-items: center; gap: 10px; }

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 760px) {
  .row2 { grid-template-columns: 1fr; }
  .btn__text { display: none; }
  .pill__value { max-width: 150px; }
}

.input, .select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  color: var(--fg0);
  font-size: 17px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

/* Login readability boost */
#viewLogin .muted { font-size: 18px; }
#viewLogin .field__label { font-size: 18px; }
#viewLogin .field__hint { font-size: 16px; }
#viewLogin .input { font-size: 20px; padding: 12px 14px; }
#viewLogin #loginBtn { font-size: 20px; padding: 12px 14px; }

html[data-theme="light"] .input,
html[data-theme="light"] .select {
  background: rgba(255, 255, 255, 0.6);
}

.input:focus, .select:focus { border-color: rgba(49, 247, 255, 0.38); box-shadow: var(--focus); }
.input--search { min-width: 240px; }

.input--topbar {
  width: 74px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 14px;
}

.dropdown { position: relative; }
.dropdown__btn { min-width: 180px; text-align: left; justify-content: space-between; }
.dropdown__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(380px, 80vw);
  padding: 12px;
    z-index: 2100;
  /* Always solid/opaque so text behind never bleeds through.
     Use the background shorthand to override .glass (which sets translucent backgrounds). */
  background: linear-gradient(180deg, var(--bg0), var(--bg1)) !important;
  opacity: 1;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  isolation: isolate;
}

/* Dropdown panels need stronger contrast than regular glass cards */
.dropdown__panel.glass {
  /* Match the main app background (opaque) for readability */
  background: linear-gradient(180deg, var(--bg0), var(--bg1)) !important;
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-theme="light"] .dropdown__panel.glass {
  background: linear-gradient(180deg, var(--bg0), var(--bg1));
  border-color: rgba(0, 20, 60, 0.18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.dropdown__panelTop {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.dropdown__panelActions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.checklist {
  display: grid;
  gap: 6px;
  max-height: 320px;
  overflow: auto;
  padding-right: 2px;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
}
.check:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--border); }
.check input { margin: 0; }
.check__label { flex: 1 1 auto; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check__meta { flex: 0 0 auto; font-size: 14px; color: var(--fg2); }

.menu { display: grid; gap: 6px; }
.menu__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  user-select: none;
}
.menu__row:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--border); }
.menu__row--active { border-color: rgba(49, 247, 255, 0.35); background: rgba(49, 247, 255, 0.08); }
.menu__label { font-size: 14px; color: var(--fg0); }
.menu__meta { font-size: 14px; color: var(--fg2); }

.help { padding: 12px 14px; border-radius: 14px; }
.help__title { font-weight: 600; margin-bottom: 6px; }
.help__body { display: grid; gap: 4px; color: var(--fg1); font-size: 14px; }

.groupTitle { display: grid; gap: 2px; }
.groupTitle__seg { line-height: 1.15; font-weight: 600; }
.groupTitle__seg--root { color: var(--neon-cyan); }

.banner {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 204, 51, 0.10);
  color: var(--fg0);
  margin-top: 16px;
}
.banner--danger { background: rgba(255, 58, 82, 0.10); border-color: rgba(255, 58, 82, 0.20); }
.banner--ok { background: rgba(82, 255, 154, 0.10); border-color: rgba(82, 255, 154, 0.20); }

.toolbar {
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.toolbar__left {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.toolbar__right {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.filterChips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.filterChip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg1);
  font-size: 14px;
}

.filterChip__label { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.filterChip__x {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}
.filterChip__x:hover { border-color: var(--border2); background: rgba(255, 255, 255, 0.06); }

@media (max-width: 900px) {
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar__left { justify-content: space-between; }
  .toolbar__right { justify-content: space-between; }
  .input--search { min-width: 0; }
}

.stat { display: grid; gap: 2px; }
.stat__label { font-size: 14px; color: var(--fg2); }
.stat__value { font-weight: 700; letter-spacing: 0.2px; }

.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

@media (max-width: 1600px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1280px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  padding: 14px;
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  box-shadow: var(--shadow2);
}

.card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.card__chips {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.card__title {
  font-weight: 700;
  letter-spacing: 0.2px;
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

.card__subtitle { color: var(--fg1); font-size: 14px; margin-top: 2px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 15px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.20);
}

.chip--muted {
  opacity: 0.92;
}

.chip--good {
  border-color: rgba(82, 255, 154, 0.30);
  background: rgba(82, 255, 154, 0.08);
}

.chip--warn {
  border-color: rgba(255, 204, 51, 0.30);
  background: rgba(255, 204, 51, 0.08);
}

.chip--bad {
  border-color: rgba(255, 58, 82, 0.35);
  background: rgba(255, 58, 82, 0.10);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--neon-amber);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.06), 0 0 22px rgba(255, 204, 51, 0.28);
}

.dot--on { background: var(--neon-lime); box-shadow: 0 0 0 2px rgba(255,255,255,0.06), 0 0 22px rgba(82, 255, 154, 0.28); }
.dot--off { background: rgba(255,255,255,0.25); box-shadow: 0 0 0 2px rgba(255,255,255,0.04); }
.dot--unknown { background: var(--neon-amber); }
.dot--danger { background: var(--danger); box-shadow: 0 0 0 2px rgba(255,255,255,0.06), 0 0 22px rgba(255, 58, 82, 0.26); }

.kv {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  margin-top: 12px;
  font-size: 16px;
}

.kv__k { color: var(--fg1); }
.kv__v { color: var(--fg1); overflow: hidden; text-overflow: ellipsis; }

.group__devices {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.device {
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}

/* Power glow indicators */
.device--pwr-on {
  border-color: rgba(82, 255, 154, 0.55);
  box-shadow: 0 0 0 1px rgba(82, 255, 154, 0.18), 0 0 18px rgba(82, 255, 154, 0.22);
}

.device--pwr-off {
  border-color: rgba(255, 58, 82, 0.60);
  box-shadow: 0 0 0 1px rgba(255, 58, 82, 0.20), 0 0 18px rgba(255, 58, 82, 0.18);
}

.device--pwr-unk {
  border-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="light"] .device { background: rgba(255, 255, 255, 0.6); }

.device__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.device--master .device__row[data-action="toggle-children"] {
  cursor: pointer;
}

.device--master {
  cursor: pointer;
}

.device__chev {
  display: inline-block;
  width: 1em;
  margin-right: 6px;
  color: var(--neon-cyan);
  font-weight: 700;
}

.device__masterTag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid rgba(49, 247, 255, 0.35);
  background: rgba(49, 247, 255, 0.08);
  color: var(--neon-cyan);
  font-size: 14px;
  font-weight: 700;
}

.device__children {
  margin-top: 12px;
  padding-left: 14px;
  border-left: 2px solid rgba(49, 247, 255, 0.6);
  opacity: 0.95;
}

.device__childrenTitle {
  font-size: 15px;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: 8px;
}

.device--child {
  padding: 8px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--glass2), var(--glass));
}

.device--child .kv {
  grid-template-columns: 92px 1fr;
  margin-top: 6px;
  font-size: 15px;
}

.device__name { font-weight: 600; }
.device__meta { font-size: 15px; color: var(--fg1); margin-top: 2px; }

.footer {
  margin-top: 18px;
  padding: 12px;
  text-align: center;
}

.btnIcon {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg0);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btnIcon:hover { border-color: var(--border2); background: rgba(255, 255, 255, 0.07); }
.btnIcon:focus-visible { outline: none; box-shadow: var(--focus); }

.device__right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.drawerOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 70;
}

.drawer {
  position: fixed;
  top: 14px;
  right: 14px;
  height: calc(100vh - 28px);
  width: min(520px, calc(100vw - 28px));
  z-index: 80;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.92), rgba(5, 7, 13, 0.82));
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

html[data-theme="light"] .drawer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 248, 255, 0.86));
  border-color: rgba(0, 20, 60, 0.18);
}

.drawer__header {
  padding: 14px 14px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.drawer__title {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.2px;
}

.drawer__sub {
  margin-top: 4px;
  font-size: 15px;
}

.drawer__body {
  padding: 14px;
  overflow: auto;
  display: grid;
  gap: 14px;
}

.drawerSection {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.drawerSection__title {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.25px;
  color: var(--fg2);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.drawerKv {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.10);
}

.drawerKv:first-of-type { border-top: none; }
.drawerKv__k { color: var(--fg2); font-size: 15px; }
.drawerKv__v { color: var(--fg0); overflow: hidden; text-overflow: ellipsis; }

.drawerLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.drawerLink {
  color: var(--neon-cyan);
  text-decoration: none;
  border: 1px solid rgba(49, 247, 255, 0.25);
  background: rgba(49, 247, 255, 0.06);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 14px;
}

.drawerLink:hover { border-color: rgba(49, 247, 255, 0.45); background: rgba(49, 247, 255, 0.10); }

.timeline {
  display: grid;
  gap: 8px;
}

.timelineItem {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .timelineItem { background: rgba(255, 255, 255, 0.55); }

.timelineItem__left { display: grid; gap: 4px; }
.timelineItem__time { font-weight: 700; }
.timelineItem__meta { color: var(--fg2); font-size: 14px; }
