/* H3x-Resume — theme derived from H3x-Dash */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0d0d12;
  --surface:  #13131a;
  --surface2: #1a1a24;
  --border:   #1e1e2e;
  --border2:  #2a2a3e;
  --cyan:     #0ff0fc;
  --violet:   #9b30ff;
  --violet-bright: #9a72c4;
  --green:    #39ff14;
  --red:      #ff4444;
  --orange:   #ff8c00;
  --text:     #c8d6e0;
  --muted:    #4a5060;
  --mono:     "Share Tech Mono", "Courier New", monospace;
  --head:     "Rajdhani", sans-serif;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
html, body { min-height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  display: flex;
  line-height: 1.6;
  width: 100%;
  overflow-x: hidden;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.sidebar {
  width: 220px;
  min-width: 220px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-logo {
  padding: 1.25rem 1rem 1rem;
  border-bottom: 1px solid var(--border);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--cyan);
  border-radius: 6px;
  position: relative;
  margin-bottom: 10px;
}

.logo-icon::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid var(--violet);
  border-radius: 3px;
}

.logo-hex {
  font-family: var(--head);
  font-size: 17px;
  font-weight: 700;
  color: var(--green);
  position: relative;
  z-index: 1;
}

.logo-name {
  font-family: var(--head);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .06em;
  line-height: 1;
}

.logo-name span { color: var(--cyan); }

.logo-sub {
  font-size: 9px;
  color: var(--violet);
  letter-spacing: .2em;
  margin-top: 3px;
}

.nav { flex: 1; padding: 1rem 0; }

.nav-section {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: .25em;
  padding: .5rem 1rem .25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: .55rem 1rem;
  color: #8a939e;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .05em;
  border-left: 2px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan);
  background: rgba(15, 240, 252, .04);
}

.nav-link.active { border-left-color: var(--cyan); background: rgba(15, 240, 252, .06); }

.nav-icon { width: 16px; text-align: center; font-size: 14px; }

.sidebar-footer {
  margin: auto 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.sidebar-links {
  flex-direction: column;
  margin-top: 0;
  gap: .5rem;
}

.sidebar-links .btn {
  width: 100%;
  justify-content: center;
}

.sidebar-status.btn-green {
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .5rem 1rem;
  cursor: default;
  text-align: center;
}

.sidebar-status-label {
  font-size: 10px;
  letter-spacing: .15em;
  color: var(--green);
}

.sidebar-status-val {
  margin-top: .25rem;
  font-size: 11px;
  color: var(--green);
  line-height: 1.35;
}

/* ── Main ────────────────────────────────────────────────────────────────── */
.main {
  flex: 1;
  margin-left: 220px;
  min-height: 100vh;
  min-width: 0;
  width: calc(100% - 220px);
  display: flex;
  flex-direction: column;
  --text: #e2eaf0;
  --muted: #9cabb8;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title {
  font-family: var(--head);
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  letter-spacing: .05em;
}

.topbar-title span { color: var(--cyan); }

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(57, 255, 20, .2);
  display: inline-block;
}

.content {
  flex: 1;
  padding: 1.5rem;
  max-width: 1100px;
  width: 100%;
  box-sizing: border-box;
}

section { scroll-margin-top: 4rem; margin-bottom: 2rem; }

/* ── Components ──────────────────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: .2em;
}

.stat-val {
  font-family: var(--head);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.stat-val.cyan   { color: var(--cyan); }
.stat-val.violet { color: var(--violet); }
.stat-val.green  { color: var(--green); }
.stat-val.orange { color: var(--orange); }
.stat-val.red    { color: var(--red); }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border2);
  font-family: var(--head);
  font-size: 12px;
  font-weight: 700;
  color: #f0f8fc;
  letter-spacing: .22em;
  background: linear-gradient(90deg, rgba(15, 240, 252, .1) 0%, rgba(155, 48, 255, .06) 100%);
  text-shadow: 0 0 18px rgba(15, 240, 252, .25);
}

.panel-header .accent {
  color: var(--cyan);
  filter: drop-shadow(0 0 6px rgba(15, 240, 252, .55));
}
.panel-body { padding: 1rem; }

.col-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.terminal {
  background: #080810;
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: 6px;
  padding: .75rem 1rem;
  font-size: 11px;
  color: var(--green);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
}

.terminal .t-info { color: var(--cyan); }
.terminal .t-dim  { color: var(--muted); }

.hero-name {
  font-family: var(--head);
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
  line-height: 1.1;
  margin-bottom: .25rem;
}

.hero-title {
  font-size: 14px;
  color: var(--cyan);
  letter-spacing: .12em;
  margin-bottom: .5rem;
}

.hero-tagline {
  font-size: 10px;
  color: var(--violet);
  letter-spacing: .18em;
  margin-bottom: 1rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-meta a {
  color: var(--cyan);
  text-decoration: none;
}

.hero-meta a:hover { text-decoration: underline; }

.about-text {
  font-size: 12px;
  color: var(--text);
  line-height: 1.75;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}

.btn:hover { background: var(--surface2); }

.btn-cyan {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-cyan:hover { background: rgba(15, 240, 252, .08); }

.btn-violet {
  border-color: var(--violet-bright);
  color: var(--violet-bright);
  background: rgba(154, 114, 196, .06);
  box-shadow: 0 0 10px rgba(154, 114, 196, .1);
}

.btn-violet:hover {
  background: rgba(154, 114, 196, .14);
  text-shadow: 0 0 8px rgba(155, 48, 255, .35);
}

.btn-green {
  border-color: var(--green);
  color: var(--green);
}

.btn-green:hover { background: rgba(57, 255, 20, .08); }

.btn-red {
  border-color: var(--red);
  color: var(--red);
}

.btn-red:hover { background: rgba(255, 68, 68, .08); }

/* Experience cards */
.exp-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
  background: var(--surface2);
}

.exp-card:last-child { margin-bottom: 0; }

.exp-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem 1rem;
  margin-bottom: .5rem;
}

.exp-role {
  font-family: var(--head);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.exp-company { color: var(--cyan); font-size: 12px; }

.exp-period {
  margin-left: auto;
  font-size: 10px;
  color: var(--exp-muted, var(--muted));
  letter-spacing: .1em;
}

.exp-summary {
  font-size: 12px;
  color: var(--exp-body, var(--text));
  margin-bottom: .75rem;
}

.exp-highlights {
  list-style: none;
  font-size: 11px;
  color: var(--exp-body, var(--text));
}

.exp-highlights li {
  padding-left: 1rem;
  position: relative;
  margin-bottom: .35rem;
}

.exp-highlights li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--green);
}

.exp-subsection {
  margin-top: 1rem;
}

.exp-subsection:first-of-type { margin-top: .5rem; }

#experience {
  --exp-body: #e8f0f6;
  --exp-muted: #e8f0f6;
}

#tenure-panel {
  --exp-body: #e8f0f6;
  --exp-muted: #e8f0f6;
}

.exp-subsection .exp-highlights {
  font-size: 12px;
  line-height: 1.65;
}

.exp-sub-head {
  font-family: var(--head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .32em;
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(15, 240, 252, .4);
  margin-bottom: .55rem;
  padding: .35rem .65rem;
  border: 1px solid var(--border2);
  border-left: 3px solid var(--cyan);
  border-radius: 4px;
  background: rgba(15, 240, 252, .05);
}

/* Boot / wizard overlays */
body.boot-locked .app-shell {
  visibility: hidden;
  pointer-events: none;
}

.boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, .92);
}

.boot-overlay[hidden] { display: none; }

.boot-modal {
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-top: 3px solid var(--cyan);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.boot-modal-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto .75rem;
  border: 1.5px solid var(--cyan);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--green);
  box-shadow: 0 0 16px rgba(15, 240, 252, .2);
}

.boot-modal-title {
  font-family: var(--head);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .12em;
}

.boot-modal-sub {
  font-size: 9px;
  color: var(--violet-bright);
  letter-spacing: .2em;
  margin: .35rem 0 1.25rem;
}

.boot-modal-prompt {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.boot-modal-btns {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.boot-modal-btns .btn {
  justify-content: center;
  width: 100%;
}

.boot-terminal-wrap {
  width: 100%;
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--green);
  border-radius: 8px;
  overflow: hidden;
}

.boot-terminal-head {
  padding: .65rem 1rem;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: .22em;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}

.boot-terminal {
  background: #080810;
  padding: 1rem;
  min-height: 280px;
  max-height: 50vh;
  overflow-y: auto;
  font-size: 11px;
  line-height: 1.65;
  color: var(--green);
  white-space: pre-wrap;
}

.boot-terminal .t-info { color: var(--cyan); }
.boot-terminal .t-warn { color: var(--orange); }
.boot-terminal .t-dim { color: var(--muted); }
.boot-terminal .t-ok { color: var(--green); font-weight: 700; }

.kw {
  color: var(--cyan);
  font-weight: 500;
  text-shadow: 0 0 10px rgba(15, 240, 252, .3);
}

.exp-highlights .kw {
  display: inline;
  padding: .12rem .4rem;
  margin: 0 .08rem;
  border: 1px solid rgba(15, 240, 252, .35);
  border-radius: 3px;
  background: rgba(15, 240, 252, .08);
  box-shadow: 0 0 8px rgba(15, 240, 252, .1);
  line-height: 1.8;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .75rem;
}

.badge {
  display: inline-block;
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: .1em;
  border: 1px solid;
}

.badge-info   { color: var(--cyan);   border-color: var(--cyan);   background: #001418; }
.badge-green  { color: var(--green);  border-color: var(--green);  background: #001400; }
.badge-violet { color: var(--violet); border-color: var(--violet); background: #0e0018; }

.exp-mos {
  font-size: 11px;
  color: var(--violet);
  letter-spacing: .06em;
  margin-bottom: .75rem;
  padding: .5rem .65rem;
  background: #0e0018;
  border: 1px solid var(--border2);
  border-radius: 4px;
}

.tenure-hours {
  grid-column: 1 / -1;
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .5rem .75rem;
  margin-bottom: .25rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface2);
}

.edu-notes {
  font-size: 11px;
  color: var(--muted);
  padding-bottom: .5rem;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}

@media (min-width: 1100px) {
  .skill-grid { grid-template-columns: repeat(3, 1fr); }
}

.skill-block {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .85rem 1rem;
}

.skill-cat {
  display: inline-block;
  font-family: var(--head);
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .16em;
  margin-bottom: .65rem;
  padding: .35rem .65rem;
  border: 1px solid var(--green);
  border-radius: 4px;
  background: rgba(57, 255, 20, .06);
  box-shadow: 0 0 10px rgba(57, 255, 20, .08);
}

.skill-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skill-items li {
  position: relative;
  padding: .28rem 0 .28rem .85rem;
  font-size: 11px;
  color: var(--violet-bright);
  line-height: 1.45;
}

.skill-items li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--violet-bright);
  opacity: .85;
}

.github-block {
  grid-column: 1 / -1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
}

.github-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem 1rem;
  margin-bottom: .75rem;
}

.github-user {
  font-family: var(--head);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.github-user a {
  color: inherit;
  text-decoration: none;
}

.github-user a:hover { color: var(--cyan); }

.github-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1rem;
}

.github-stat {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .08em;
}

.github-stat strong {
  color: var(--cyan);
  font-weight: 700;
}

.github-repo {
  border-top: 1px solid var(--border2);
  padding: .65rem 0;
}

.github-repo:first-of-type { border-top: none; padding-top: 0; }

.github-repo-name {
  font-size: 12px;
  color: var(--cyan);
  margin-bottom: .25rem;
}

.github-repo-name a {
  color: inherit;
  text-decoration: none;
}

.github-repo-name a:hover { text-decoration: underline; }

.github-repo-meta {
  font-size: 10px;
  color: var(--violet-bright);
  letter-spacing: .06em;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: .75rem;
  background: var(--surface2);
  transition: border-color .15s;
}

.project-card.highlight {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(15, 240, 252, .1);
}

.project-card:last-child { margin-bottom: 0; }

.project-name {
  font-family: var(--head);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: .35rem;
}

.project-name a {
  color: inherit;
  text-decoration: none;
}

.project-name a:hover { color: var(--cyan); }

.project-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.65;
}

.cert-row,
.edu-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem 1rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--border2);
  font-size: 12px;
}

.cert-row:last-child,
.edu-row:last-child { border-bottom: none; }

.cert-name { color: #fff; font-weight: 500; }

.edu-degree {
  display: inline-block;
  color: var(--green);
  font-weight: 500;
  padding: .35rem .65rem;
  border: 1px solid var(--green);
  border-radius: 4px;
  background: rgba(57, 255, 20, .06);
  box-shadow: 0 0 10px rgba(57, 255, 20, .08);
}

.cert-issuer { color: var(--cyan); }
.cert-year { margin-left: auto; color: var(--muted); font-size: 10px; }

.hobbies-body {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.hobby-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .85rem;
  border-radius: 4px;
  border: 1px solid var(--border2);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, box-shadow .15s, text-shadow .15s;
}

.hobby-link-spotify {
  color: var(--green);
  border-color: var(--green);
  background: rgba(57, 255, 20, .06);
  box-shadow: 0 0 10px rgba(57, 255, 20, .08);
}

.hobby-link-spotify:hover {
  background: rgba(57, 255, 20, .08);
  text-shadow: 0 0 8px rgba(57, 255, 20, .35);
}

.hobby-icon {
  flex-shrink: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-item label {
  display: block;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: .2em;
  margin-bottom: .25rem;
}

.contact-item .val {
  color: var(--cyan);
  font-size: 12px;
  word-break: break-all;
}

.contact-item a.val {
  text-decoration: none;
}

.contact-item a.val:hover { text-decoration: underline; }

.footer-note {
  text-align: center;
  padding: 2rem 1rem 1rem;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: .15em;
}

.mt-2 { margin-top: 1rem; }

.tenure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}

.tenure-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .75rem 1rem;
}

.tenure-years {
  font-family: var(--head);
  font-size: 22px;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: .35rem;
}

.tenure-label {
  font-size: 10px;
  color: var(--exp-muted, var(--muted));
  letter-spacing: .08em;
  line-height: 1.4;
}

.tenure-note {
  margin-top: 1rem;
  font-size: 11px;
  line-height: 1.5;
}

.tenure-note .tenure-note-mark {
  color: #ffdd44;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 0 8px rgba(255, 221, 68, .45);
}

.tenure-note .tenure-note-text {
  color: #ffdd44;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-shadow: 0 0 6px rgba(255, 221, 68, .25);
}

/* Sidebar backdrop (mobile) */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, .55);
}

.sidebar-backdrop.visible { display: block; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--cyan);
  padding: .35rem .6rem;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 14px;
  cursor: pointer;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* Responsive */
@media (max-width: 1024px) {
  .content { max-width: 100%; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .col-2,
  .skill-grid,
  .tenure-grid { grid-template-columns: 1fr; }
  .cert-row,
  .edu-row { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .cert-year { margin-left: 0; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .sidebar {
    transform: translateX(-100%);
    transition: transform .25s ease;
    width: min(280px, 85vw);
    min-width: 0;
  }

  .sidebar.open { transform: translateX(0); }

  .main {
    margin-left: 0;
    width: 100%;
  }

  .content { padding: 1rem; }
  .topbar { padding: .65rem 1rem; flex-wrap: wrap; }
  .topbar-title { font-size: 15px; }
  .hero-name { font-size: 1.75rem; }
  .hero-title { font-size: 12px; }
  .stat-val { font-size: 26px; }
  .exp-period { margin-left: 0; width: 100%; }
  .exp-header { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .panel-header { font-size: 10px; letter-spacing: .16em; }
  .boot-modal { padding: 1.15rem; }
  .boot-modal-title { font-size: 15px; }
  .link-row .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .sidebar-footer { margin: auto .75rem .75rem; }
  .topbar-right #clock { font-size: 9px; }
}
