/* ===== CSS VARIABLES ===== */
:root {
  --primary: #1e3a5f;
  --primary-light: #2563eb;
  --primary-bg: #eff6ff;
  --ok: #16a34a;
  --ok-bg: #dcfce7;
  --no: #dc2626;
  --no-bg: #fee2e2;
  --suspicious: #d97706;
  --suspicious-bg: #fef3c7;
  --neutral: #6b7280;
  --neutral-bg: #f3f4f6;
  --pending: #7c3aed;
  --pending-bg: #ede9fe;
  --bg: #f1f5f9;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --radius: 12px;
  --radius-sm: 8px;
  --nav-height: 64px;
  --header-height: 56px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; font-size: 16px; }
body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
a { color: inherit; text-decoration: none; }

/* ===== SPLASH ===== */
#splash {
  position: fixed; inset: 0; background: var(--primary);
  display: flex; align-items: center; justify-content: center; z-index: 9999;
  transition: opacity .4s ease;
}
#splash.fade-out { opacity: 0; pointer-events: none; }
.splash-inner { text-align: center; color: white; }
.splash-icon { width: 80px; height: 80px; margin: 0 auto 20px; }
.splash-inner h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 40px; }
.splash-loader { display: flex; gap: 8px; justify-content: center; }
.splash-loader span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.6); animation: bounce 1.2s ease infinite;
}
.splash-loader span:nth-child(2) { animation-delay: .2s; }
.splash-loader span:nth-child(3) { animation-delay: .4s; }
@keyframes bounce { 0%,80%,100%{transform:scale(0)} 40%{transform:scale(1)} }

/* ===== APP SHELL ===== */
#app-shell { display: none; flex-direction: column; height: 100dvh; }
#app-shell.active { display: flex; }

/* ===== HEADER ===== */
.app-header {
  height: var(--header-height); background: var(--primary);
  display: flex; align-items: center; padding: 0 16px; gap: 12px;
  position: sticky; top: 0; z-index: 100; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.app-header h2 { color: white; font-size: 1.1rem; font-weight: 600; flex: 1; }
.header-back {
  width: 36px; height: 36px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; color: white;
  background: rgba(255,255,255,.15); flex-shrink: 0;
}
.header-back svg { width: 20px; height: 20px; }
.header-action {
  color: white; font-size: .875rem; font-weight: 600;
  padding: 6px 12px; border-radius: 20px;
  background: rgba(255,255,255,.2);
}

/* ===== MAIN CONTENT ===== */
.app-content {
  flex: 1; overflow-y: auto; padding: 16px;
  padding-bottom: calc(var(--nav-height) + 16px);
}
.app-content.no-nav { padding-bottom: 16px; }

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  height: var(--nav-height); background: var(--card);
  border-top: 1px solid var(--border);
  display: flex; align-items: stretch;
  position: sticky; bottom: 0; z-index: 100; flex-shrink: 0;
  box-shadow: 0 -2px 8px rgba(0,0,0,.06);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  color: var(--text-muted); font-size: .7rem; font-weight: 500;
  transition: color .15s;
}
.nav-item.active { color: var(--primary-light); }
.nav-item svg { width: 22px; height: 22px; }
.nav-item span { display: block; }

/* ===== LOGIN ===== */
.login-screen {
  min-height: 100dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px;
  background: linear-gradient(160deg, var(--primary) 0%, #2563eb 100%);
}
.login-card {
  background: white; border-radius: 20px; padding: 32px 28px;
  width: 100%; max-width: 400px; box-shadow: 0 20px 40px rgba(0,0,0,.2);
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo svg { width: 64px; height: 64px; }
.login-logo h1 { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin-top: 12px; }
.login-logo p { color: var(--text-muted); font-size: .875rem; margin-top: 4px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 1rem; outline: none;
  transition: border-color .15s;
}
.form-group input:focus { border-color: var(--primary-light); }
.btn-primary {
  width: 100%; padding: 14px; background: var(--primary-light);
  color: white; font-size: 1rem; font-weight: 700; border-radius: var(--radius-sm);
  transition: background .15s, transform .1s;
}
.btn-primary:active { background: var(--primary); transform: scale(.98); }
.btn-primary:disabled { background: #93c5fd; cursor: not-allowed; transform: none; }
.error-msg { background: var(--no-bg); color: var(--no); padding: 10px 14px; border-radius: var(--radius-sm); font-size: .875rem; margin-bottom: 16px; }

/* ===== CARDS ===== */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; margin-bottom: 12px;
}
.card-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.card-sub { font-size: .8rem; color: var(--text-muted); }

/* ===== HOME ===== */
.today-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white; border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}
.today-card .label { font-size: .75rem; opacity: .8; text-transform: uppercase; letter-spacing: .05em; }
.today-card .location { font-size: 1.5rem; font-weight: 700; margin: 4px 0; }
.today-card .shift-badge {
  display: inline-block; background: rgba(255,255,255,.2);
  padding: 4px 10px; border-radius: 20px; font-size: .8rem; font-weight: 600;
}
.today-card .today-date { font-size: .8rem; opacity: .8; margin-top: 8px; }
.btn-start {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; background: white; color: var(--primary);
  padding: 12px; border-radius: var(--radius-sm); font-weight: 700;
  font-size: .95rem;
}

.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.quick-btn {
  background: var(--card); border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: var(--text);
}
.quick-btn svg { width: 28px; height: 28px; color: var(--primary-light); }

.section-title { font-size: .75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }

/* ===== INSPECTION LIST ITEM ===== */
.inspection-item {
  background: var(--card); border-radius: var(--radius); padding: 14px 16px;
  box-shadow: var(--shadow); margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
}
.inspection-item-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--primary-bg); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.inspection-item-icon svg { width: 22px; height: 22px; color: var(--primary-light); }
.inspection-item-info { flex: 1; min-width: 0; }
.inspection-item-info .name { font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inspection-item-info .meta { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }
.status-pill {
  padding: 4px 10px; border-radius: 20px; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em; flex-shrink: 0;
}
.status-pill.draft { background: var(--neutral-bg); color: var(--neutral); }
.status-pill.submitted { background: var(--ok-bg); color: var(--ok); }
.status-pill.finalized { background: var(--primary-bg); color: var(--primary-light); }

/* ===== INSPECTION FORM ===== */
.form-header {
  background: var(--card); border-radius: var(--radius); padding: 16px;
  margin-bottom: 12px; box-shadow: var(--shadow);
}
.form-header .location-name { font-size: 1.2rem; font-weight: 700; }
.form-header .form-meta { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }

.form-section { margin-bottom: 8px; }
.form-section-title {
  font-size: .7rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .08em; padding: 12px 0 6px;
}

.meta-input { margin-bottom: 10px; }
.meta-input label { font-size: .8rem; font-weight: 600; color: var(--text-muted); display: block; margin-bottom: 4px; }
.meta-input input, .meta-input textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: .9rem; outline: none;
  transition: border-color .15s; background: var(--card);
}
.meta-input input:focus, .meta-input textarea:focus { border-color: var(--primary-light); }
.meta-input textarea { resize: vertical; min-height: 60px; }

.check-item {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 8px; overflow: hidden;
}
.check-item-header {
  padding: 12px 14px; display: flex; align-items: center; gap: 10px;
}
.check-item-num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--primary-bg);
  color: var(--primary-light); font-size: .7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.check-item-label { flex: 1; font-size: .875rem; font-weight: 600; line-height: 1.3; }
.check-item-indicator {
  width: 10px; height: 10px; border-radius: 50%; background: var(--border); flex-shrink: 0;
}
.check-item-indicator.ok { background: var(--ok); }
.check-item-indicator.no { background: var(--no); }
.check-item-indicator.suspicious { background: var(--suspicious); }
.check-item-indicator.neutral { background: var(--neutral); }
.check-item-indicator.pending { background: var(--pending); }

.check-item-body { padding: 0 14px 12px; border-top: 1px solid var(--border); }
.check-item-desc { font-size: .75rem; color: var(--text-muted); padding: 8px 0; line-height: 1.5; }

.status-buttons { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.status-btn {
  padding: 6px 10px; border-radius: 20px; font-size: .72rem; font-weight: 700;
  border: 2px solid transparent; transition: all .15s;
}
.status-btn.ok { background: var(--ok-bg); color: var(--ok); }
.status-btn.ok.active { background: var(--ok); color: white; }
.status-btn.no { background: var(--no-bg); color: var(--no); }
.status-btn.no.active { background: var(--no); color: white; }
.status-btn.neutral { background: var(--neutral-bg); color: var(--neutral); }
.status-btn.neutral.active { background: var(--neutral); color: white; }
.status-btn.suspicious { background: var(--suspicious-bg); color: var(--suspicious); }
.status-btn.suspicious.active { background: var(--suspicious); color: white; }
.status-btn.pending { background: var(--pending-bg); color: var(--pending); }
.status-btn.pending.active { background: var(--pending); color: white; }

.note-input {
  width: 100%; padding: 8px 10px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: .8rem; resize: vertical;
  min-height: 48px; outline: none; transition: border-color .15s;
}
.note-input:focus { border-color: var(--primary-light); }
.note-input::placeholder { color: #cbd5e1; }

.save-indicator {
  font-size: .75rem; color: var(--text-muted); text-align: center; padding: 4px;
}
.save-indicator.saving { color: var(--pending); }
.save-indicator.saved { color: var(--ok); }

/* ===== STOCK TABLE ===== */
.stock-section { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; }
.stock-section h3 { font-size: .875rem; font-weight: 700; margin-bottom: 12px; }
.stock-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.stock-table th { background: var(--bg); padding: 6px 8px; text-align: left; font-weight: 700; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.stock-table td { padding: 6px 4px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.stock-table td:first-child { font-weight: 600; }
.stock-table input {
  width: 100%; padding: 5px 6px; border: 1.5px solid var(--border);
  border-radius: 6px; font-size: .78rem; outline: none; text-align: right;
}
.stock-table input:focus { border-color: var(--primary-light); }
.diff-cell { font-weight: 700; text-align: right; padding-right: 4px; }
.diff-neg { color: var(--no); }
.diff-pos { color: var(--ok); }
.btn-add-row {
  display: flex; align-items: center; gap: 6px; margin-top: 10px;
  color: var(--primary-light); font-size: .8rem; font-weight: 700;
  padding: 8px 0;
}
.btn-del-row { color: var(--no); padding: 4px; font-size: 1rem; line-height: 1; }
.btn-add-row svg, .btn-del-row svg { width: 16px; height: 16px; }

/* ===== SUBMIT SECTION ===== */
.submit-section { padding: 16px 0; }
.progress-bar { background: var(--border); border-radius: 4px; height: 6px; margin-bottom: 8px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--primary-light); border-radius: 4px; transition: width .3s ease; }
.progress-text { font-size: .75rem; color: var(--text-muted); margin-bottom: 16px; text-align: center; }
.btn-submit {
  width: 100%; padding: 16px; background: var(--primary-light);
  color: white; font-size: 1rem; font-weight: 700; border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(37,99,235,.3); transition: all .15s;
}
.btn-submit:active { transform: scale(.98); }
.btn-submit.complete { background: var(--ok); box-shadow: 0 4px 14px rgba(22,163,74,.3); }
.btn-submit:disabled { background: #93c5fd; cursor: not-allowed; box-shadow: none; }

/* ===== DASHBOARD ===== */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.stat-card { background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.stat-card .stat-val { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-card .stat-label { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }
.stat-card.warning .stat-val { color: var(--suspicious); }
.stat-card.danger .stat-val { color: var(--no); }
.stat-card.success .stat-val { color: var(--ok); }

.location-card {
  background: var(--card); border-radius: var(--radius); padding: 14px;
  box-shadow: var(--shadow); margin-bottom: 8px; display: flex; align-items: center; gap: 12px;
}
.location-card .loc-info { flex: 1; }
.location-card .loc-name { font-weight: 700; font-size: .95rem; }
.location-card .loc-meta { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }
.alert-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.alert-dot.red { background: var(--no); }
.alert-dot.amber { background: var(--suspicious); }
.alert-dot.green { background: var(--ok); }
.alert-dot.gray { background: var(--border); }

/* ===== REPORT DETAIL ===== */
.report-header { background: var(--primary); color: white; border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.report-header h3 { font-size: 1.2rem; font-weight: 700; }
.report-header .report-meta { font-size: .8rem; opacity: .8; margin-top: 4px; }
.report-header .report-inspector { font-size: .8rem; margin-top: 8px; background: rgba(255,255,255,.15); display: inline-block; padding: 4px 10px; border-radius: 20px; }

.check-result-item { background: var(--card); border-radius: var(--radius-sm); padding: 12px 14px; box-shadow: var(--shadow); margin-bottom: 6px; display: flex; align-items: flex-start; gap: 10px; }
.check-result-status { flex-shrink: 0; margin-top: 2px; }
.status-icon { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 700; }
.status-icon.ok { background: var(--ok); color: white; }
.status-icon.no { background: var(--no); color: white; }
.status-icon.suspicious { background: var(--suspicious); color: white; }
.status-icon.neutral { background: var(--neutral); color: white; }
.status-icon.pending { background: var(--pending); color: white; }
.status-icon.empty { background: var(--border); color: var(--text-muted); }
.check-result-label { font-size: .85rem; font-weight: 600; }
.check-result-note { font-size: .75rem; color: var(--text-muted); margin-top: 3px; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state svg { width: 64px; height: 64px; margin: 0 auto 16px; opacity: .3; }
.empty-state h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.empty-state p { font-size: .875rem; }

/* ===== FILTER BAR ===== */
.filter-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0; padding: 6px 14px; border-radius: 20px; font-size: .8rem;
  font-weight: 600; background: var(--card); color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.filter-chip.active { background: var(--primary-light); color: white; border-color: var(--primary-light); }

/* ===== FAB ===== */
.fab {
  position: fixed; bottom: calc(var(--nav-height) + 16px); right: 16px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary-light); color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(37,99,235,.4); z-index: 50;
}
.fab svg { width: 24px; height: 24px; }

/* ===== PROFILE ===== */
.profile-card { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; border-radius: var(--radius); padding: 20px; margin-bottom: 16px; display: flex; align-items: center; gap: 14px; }
.profile-avatar { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700; flex-shrink: 0; }
.profile-name { font-size: 1.1rem; font-weight: 700; }
.profile-role { font-size: .8rem; opacity: .8; margin-top: 2px; }
.btn-logout { margin-left: auto; background: rgba(255,255,255,.2); color: white; padding: 8px 14px; border-radius: 20px; font-size: .8rem; font-weight: 700; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: calc(var(--nav-height) + 16px); left: 50%;
  transform: translateX(-50%) translateY(0); background: var(--text);
  color: white; padding: 10px 20px; border-radius: 24px; font-size: .85rem; font-weight: 600;
  z-index: 999; box-shadow: var(--shadow-md); transition: opacity .3s, transform .3s;
  white-space: nowrap;
}
.toast.hide { opacity: 0; transform: translateX(-50%) translateY(10px); }
.toast.success { background: var(--ok); }
.toast.error { background: var(--no); }

/* ===== SCHEDULE ===== */
.schedule-day { background: var(--card); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 6px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); }
.schedule-day-num { width: 36px; height: 36px; border-radius: 10px; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.schedule-day-num .day { font-size: .6rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.schedule-day-num .num { font-size: 1.1rem; font-weight: 800; line-height: 1; }
.schedule-day.today .schedule-day-num { background: var(--primary-light); color: white; }
.schedule-day.today .schedule-day-num .day { color: rgba(255,255,255,.8); }
.schedule-day-info { flex: 1; }
.schedule-day-info .loc { font-weight: 700; font-size: .9rem; }
.schedule-day-info .sh { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }
.shift-badge { display: inline-block; padding: 3px 8px; border-radius: 10px; font-size: .7rem; font-weight: 700; }
.shift-badge.evening { background: #1e3a5f20; color: var(--primary); }
.shift-badge.morning { background: #fef9c3; color: #854d0e; }
.shift-badge.afternoon { background: #fce7f3; color: #9d174d; }

/* ===== UTILITIES ===== */
.divider { height: 1px; background: var(--border); margin: 12px 0; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.font-bold { font-weight: 700; }
.text-sm { font-size: .875rem; }
.text-muted { color: var(--text-muted); }
.chevron { color: var(--border); }
.chevron svg { width: 16px; height: 16px; }

/* ===== DESKTOP ===== */
@media (min-width: 768px) {
  #app-shell { flex-direction: row; max-width: 1200px; margin: 0 auto; }
  .sidebar-nav {
    width: 220px; flex-shrink: 0; background: var(--primary);
    display: flex; flex-direction: column; padding: 20px 0; height: 100dvh;
    position: sticky; top: 0;
  }
  .sidebar-logo { padding: 0 20px 24px; color: white; display: flex; align-items: center; gap: 10px; }
  .sidebar-logo svg { width: 32px; height: 32px; }
  .sidebar-logo span { font-size: 1rem; font-weight: 700; }
  .sidebar-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 20px;
    color: rgba(255,255,255,.7); font-size: .9rem; font-weight: 600;
    transition: background .15s, color .15s;
  }
  .sidebar-item svg { width: 20px; height: 20px; }
  .sidebar-item.active { background: rgba(255,255,255,.15); color: white; }
  .sidebar-item:hover { background: rgba(255,255,255,.1); color: white; }
  .sidebar-bottom { margin-top: auto; border-top: 1px solid rgba(255,255,255,.15); padding-top: 12px; }
  .main-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
  .app-content { max-width: 700px; padding-bottom: 24px; }
  .bottom-nav { display: none; }
  .fab { bottom: 24px; }
}

@media (max-width: 767px) {
  .sidebar-nav { display: none; }
}

/* ===== ANIMATIONS ===== */
.fade-in { animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

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