:root {
  --bg: #f1f5f9;
  --bg-strong: #e2e8f0;
  --sidebar: #0f172a;
  --sidebar-soft: #1e293b;
  --panel: rgba(255, 255, 255, 0.95);
  --panel-strong: #ffffff;
  --line: rgba(15, 23, 42, 0.09);
  --text: #0f172a;
  --muted: #64748b;
  --accent: #0d9488;
  --accent-strong: #0f766e;
  --accent-soft: #ccfbf1;
  --success: #16a34a;
  --danger: #dc2626;
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 12px 32px -6px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at 5% 15%, rgba(13, 148, 136, 0.14) 0%, transparent 38%),
    radial-gradient(ellipse at 92% 85%, rgba(99, 102, 241, 0.1) 0%, transparent 38%),
    radial-gradient(ellipse at 68% 4%, rgba(245, 158, 11, 0.08) 0%, transparent 28%),
    linear-gradient(160deg, #f8fbfd 0%, var(--bg) 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 25%),
    linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-soft) 100%);
  color: #f8fafc;
  position: sticky;
  top: 0;
  height: 100vh;
  width: 250px;
  min-width: 250px;
  overflow: hidden;
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              min-width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-shell.sidebar-hidden .sidebar {
  width: 0;
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
}

.sidebar-toggle {
  background: transparent;
  color: var(--text);
  padding: 8px;
  border-radius: 6px;
  box-shadow: none;
  border: 1px solid var(--line);
}

.sidebar-toggle:hover {
  background: var(--bg-strong);
  filter: none;
  box-shadow: none;
}

.sidebar-toggle:active {
  background: var(--bg-strong);
  filter: none;
  box-shadow: none;
}

.brand-block {
  padding: 4px 4px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-kicker,
.eyebrow,
.status-label,
.stat-label,
.panel-heading p,
.form-note {
  color: var(--muted);
}

.brand-name {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.1;
  font-weight: 800;
}

.brand-tagline {
  margin: 6px 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.62);
}

.brand-block h1 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.1;
}

.brand-copy {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  font-size: 0.95rem;
}

.nav-menu {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #f8fafc;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 2;
}

.nav-item-text {
  display: grid;
  gap: 2px;
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.55), rgba(11, 91, 85, 0.78));
  border-color: rgba(13, 148, 136, 0.45);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
}

.nav-title {
  font-weight: 700;
}

.nav-subtitle {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.72);
}

.sidebar-status {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.status-dot.ok {
  background: var(--success);
  animation: pulse-dot 2.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(22, 163, 74, 0); }
}

.status-dot.error {
  background: #f97316;
}

.sidebar-status .status-label,
.sidebar-status strong {
  color: #f8fafc;
}

.main-shell {
  padding: 16px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar h2,
.panel-heading h3 {
  margin: 0;
}

.eyebrow {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding: 14px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.panel-heading.compact {
  margin-bottom: 8px;
}

.filters-panel {
  margin-bottom: 16px;
}

.filters-grid,
.stats-grid,
.dashboard-grid,
.employee-form,
.split-layout,
.analysis-grid {
  display: grid;
  gap: 16px;
}

.filters-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-bottom: 16px;
}

.dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split-layout {
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
}

.analysis-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wide-panel,
.wide-field {
  grid-column: 1 / -1;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.8rem, 2.8vw, 2.7rem);
  letter-spacing: -0.02em;
}

.clickable-card {
  cursor: pointer;
}

.clickable-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.stat-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stat-icon-badge {
  width: 22px;
  height: 22px;
  opacity: 0.45;
  flex-shrink: 0;
}

.stat-info-button {
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--text);
}

.stat-info-button:hover {
  background: #ffffff;
}

.stat-info-icon {
  width: 15px;
  height: 15px;
}

.accent-card {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow), 0 8px 28px rgba(13, 148, 136, 0.28);
}

.accent-card .stat-label {
  color: rgba(255, 255, 255, 0.76);
}

.accent-card .stat-icon-badge {
  opacity: 0.6;
  color: #ffffff;
}

/* Jumlah aktivitas — teal */
.stat-card:has(#total-sessions) {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, rgba(255, 255, 255, 0.97) 65%);
  border-color: rgba(13, 148, 136, 0.2);
}
.stat-card:has(#total-sessions) strong { color: var(--accent-strong); }
.stat-card:has(#total-sessions) .stat-icon-badge { color: var(--accent); opacity: 0.55; }

/* Waktu efektif — blue */
.stat-card:has(#total-duration) {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(255, 255, 255, 0.97) 65%);
  border-color: rgba(59, 130, 246, 0.2);
}
.stat-card:has(#total-duration) strong { color: #1d4ed8; }
.stat-card:has(#total-duration) .stat-icon-badge { color: #3b82f6; opacity: 0.55; }

/* Waktu idle — amber */
.stat-card:has(#app-count) {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(255, 255, 255, 0.97) 65%);
  border-color: rgba(245, 158, 11, 0.2);
}
.stat-card:has(#app-count) strong { color: #b45309; }
.stat-card:has(#app-count) .stat-icon-badge { color: #f59e0b; opacity: 0.55; }

/* Karyawan aktif — violet */
.stat-card:has(#employee-count) {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(255, 255, 255, 0.97) 65%);
  border-color: rgba(139, 92, 246, 0.2);
}
.stat-card:has(#employee-count) strong { color: #6d28d9; }
.stat-card:has(#employee-count) .stat-icon-badge { color: #8b5cf6; opacity: 0.55; }

/* Jumlah device — sky */
.stat-card:has(#device-count) {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(255, 255, 255, 0.97) 65%);
  border-color: rgba(14, 165, 233, 0.2);
}
.stat-card:has(#device-count) strong { color: #0369a1; }
.stat-card:has(#device-count) .stat-icon-badge { color: #0ea5e9; opacity: 0.55; }

/* Efektivitas — emerald */
.stat-card:has(#effectiveness-rate),
.stat-card:has(#division-detail-effectiveness-rate) {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(255, 255, 255, 0.97) 65%);
  border-color: rgba(16, 185, 129, 0.2);
}
.stat-card:has(#effectiveness-rate) strong,
.stat-card:has(#division-detail-effectiveness-rate) strong { color: #065f46; }
.stat-card:has(#effectiveness-rate) .stat-icon-badge,
.stat-card:has(#division-detail-effectiveness-rate) .stat-icon-badge { color: #10b981; opacity: 0.55; }

/* Division-detail stat cards — same palette as dashboard */
.stat-card:has(#division-detail-employee-count) {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(255, 255, 255, 0.97) 65%);
  border-color: rgba(139, 92, 246, 0.2);
}
.stat-card:has(#division-detail-employee-count) strong { color: #6d28d9; }
.stat-card:has(#division-detail-employee-count) .stat-icon-badge { color: #8b5cf6; opacity: 0.55; }

.stat-card:has(#division-detail-total-sessions) {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, rgba(255, 255, 255, 0.97) 65%);
  border-color: rgba(13, 148, 136, 0.2);
}
.stat-card:has(#division-detail-total-sessions) strong { color: var(--accent-strong); }
.stat-card:has(#division-detail-total-sessions) .stat-icon-badge { color: var(--accent); opacity: 0.55; }

.stat-card:has(#division-detail-total-duration) {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(255, 255, 255, 0.97) 65%);
  border-color: rgba(59, 130, 246, 0.2);
}
.stat-card:has(#division-detail-total-duration) strong { color: #1d4ed8; }
.stat-card:has(#division-detail-total-duration) .stat-icon-badge { color: #3b82f6; opacity: 0.55; }

.stat-card:has(#division-detail-app-count) {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(255, 255, 255, 0.97) 65%);
  border-color: rgba(245, 158, 11, 0.2);
}
.stat-card:has(#division-detail-app-count) strong { color: #b45309; }
.stat-card:has(#division-detail-app-count) .stat-icon-badge { color: #f59e0b; opacity: 0.55; }

label {
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-strong);
  color: var(--text);
  font-size: 0.85rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

textarea {
  resize: vertical;
}

.checkbox-field {
  align-content: end;
}

.checkbox-field input {
  width: 16px;
  height: 16px;
}

button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 6px;
  padding: 9px 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: white;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.82rem;
  transition: filter 0.15s, box-shadow 0.15s;
}

button:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

button:active {
  filter: brightness(0.92);
  box-shadow: none;
}

.secondary-button {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.employee-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.company-form {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-days-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-strong);
}

.work-days-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

.work-days-group input {
  width: 16px;
  height: 16px;
}

.toolbar-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 0.8fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.toolbar-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.employee-form-actions {
  display: flex;
  gap: 8px;
  grid-column: 1 / -1;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 20, 30, 0.4);
  z-index: 20;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal-window {
  width: min(760px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  padding: 14px;
}

.compact-modal {
  width: min(460px, 100%);
}

.table-wrap {
  overflow-x: auto;
}

.bar-chart {
  display: grid;
  gap: 12px;
}

.bar-chart-row {
  display: grid;
  gap: 6px;
}

.bar-chart-row.is-clickable {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.bar-chart-row.is-clickable:hover {
  transform: translateY(-1px);
}

.bar-chart-row.is-selected {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.2);
}

.bar-chart-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.bar-chart-title {
  font-weight: 700;
  font-size: 0.9rem;
}

.bar-chart-meta {
  color: var(--muted);
  font-size: 0.78rem;
}

.bar-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  overflow: hidden;
}

.bar-fill-group {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #14b8a6 0%, #0f766e 100%);
}

.bar-fill.is-effective {
  background: linear-gradient(90deg, #14b8a6 0%, #0f766e 100%);
}

.bar-fill.is-idle {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.bar-chart-apps .bar-fill {
  background: linear-gradient(90deg, #38bdf8 0%, #2563eb 100%);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

th,
td {
  padding: 8px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

tbody tr {
  transition: background 0.12s;
}

tbody tr:hover td {
  background: rgba(13, 148, 136, 0.04);
}

td code {
  font-family: "SFMono-Regular", "Consolas", monospace;
  font-size: 0.76rem;
}

.muted-inline {
  color: var(--muted);
  font-size: 0.76rem;
}

.location-link {
  color: var(--accent-strong);
  text-decoration: none;
}

.location-link:hover code {
  text-decoration: underline;
}

.device-id-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-button {
  padding: 5px 8px;
  font-size: 0.72rem;
  line-height: 1;
}

.timeline-chart {
  display: grid;
  gap: 10px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 120px;
  gap: 8px;
  align-items: center;
}

.timeline-bar {
  position: relative;
  height: 14px;
  border-radius: 6px;
  background: rgba(15, 118, 110, 0.12);
  overflow: hidden;
}

.timeline-bar > span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #13b5aa 0%, #0f766e 100%);
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

.analysis-summary {
  display: grid;
  gap: 10px;
}

.analysis-note {
  margin: 4px 0 0;
  color: var(--muted);
}

.ai-chat-messages {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.ai-chat-bubble {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.ai-chat-bubble.user {
  background: rgba(13, 148, 136, 0.08);
  border-color: rgba(13, 148, 136, 0.18);
}

.ai-chat-bubble.assistant {
  background: rgba(15, 23, 42, 0.03);
}

.ai-chat-bubble strong {
  display: block;
  margin-bottom: 4px;
}

.analysis-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfc 100%);
  font-size: 0.83rem;
}

.analysis-card strong {
  display: block;
  margin-bottom: 4px;
}

.insight-list {
  display: grid;
  gap: 8px;
}

.insight-item {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.83rem;
}

.insight-item.high {
  border-color: rgba(181, 71, 71, 0.22);
  background: rgba(181, 71, 71, 0.06);
}

.insight-item.medium {
  border-color: rgba(249, 115, 22, 0.2);
  background: rgba(249, 115, 22, 0.06);
}

.insight-item.low {
  border-color: rgba(15, 118, 110, 0.18);
  background: rgba(15, 118, 110, 0.05);
}

.insight-badge {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(24, 33, 43, 0.08);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.empty-state {
  color: var(--muted);
  text-align: center;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  z-index: 150;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Tablet (≤ 900px) ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .main-shell {
    padding: 14px;
  }

  .panel-heading {
    flex-direction: column;
    align-items: start;
  }

  .dashboard-grid,
  .split-layout,
  .analysis-grid,
  .employee-form,
  .toolbar-row {
    grid-template-columns: 1fr;
  }

  .timeline-row {
    grid-template-columns: 1fr;
  }

  .filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar-actions {
    justify-content: start;
  }

  .stat-card strong {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }
}

/* ── Mobile (≤ 640px) ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  /* Sidebar becomes fixed overlay on mobile */
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100dvh;
    z-index: 200;
    width: 260px !important;
    min-width: 260px !important;
    padding: 18px 16px !important;
    transform: translateX(0);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* On mobile, sidebar-hidden = slide out via transform (not width) */
  .app-shell.sidebar-hidden .sidebar {
    width: 260px !important;
    min-width: 260px !important;
    padding: 18px 16px !important;
    transform: translateX(-100%);
  }

  .main-shell {
    padding: 12px;
  }

  .topbar-left h2 {
    font-size: 1.2rem;
  }

  .filters-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel {
    padding: 12px;
  }

  .nav-menu {
    grid-template-columns: 1fr;
  }

  .modal-box {
    width: calc(100vw - 24px);
    max-height: 90dvh;
    overflow-y: auto;
  }

  .employee-form {
    grid-template-columns: 1fr;
  }

  .wide-field {
    grid-column: auto;
  }

  /* Topbar: shrink left side, icon-only refresh button */
  .topbar-left {
    flex: 1;
    min-width: 0;
  }

  #refresh-button {
    flex-shrink: 0;
    font-size: 0;
    padding: 9px;
    gap: 0;
  }

  #refresh-button .nav-icon {
    width: 18px;
    height: 18px;
  }

  /* Stat card: fix Safari backdrop-filter clipping + label wrapping */
  .panel {
    overflow: hidden;
  }

  .stat-label {
    flex: 1;
    min-width: 0;
    font-size: 0.78rem;
  }

  .stat-icon-badge {
    width: 18px;
    height: 18px;
  }
}
