﻿/* =====================================================
   Hotmail Checker — Professional UI v4.0
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* surfaces */
  --bg:        #080c14;
  --sur-1:     #0d1220;
  --sur-2:     #111827;
  --sur-3:     #162032;
  --sur-4:     #1c2a40;
  /* borders */
  --bd-1:      #1a2540;
  --bd-2:      #243150;
  --bd-3:      #2e3f60;
  /* text */
  --tx-1:      #e8eeff;
  --tx-2:      #8899bb;
  --tx-3:      #3d5275;
  /* brand */
  --blue:      #4f8ef7;
  --blue-2:    #2563eb;
  --blue-bg:   rgba(79,142,247,.10);
  --blue-bd:   rgba(79,142,247,.22);
  /* status */
  --hit:       #10d98a;  --hit-bg:  rgba(16,217,138,.09); --hit-bd: rgba(16,217,138,.22);
  --fail:      #f3534a;  --fail-bg: rgba(243,83,74,.09);  --fail-bd: rgba(243,83,74,.22);
  --cust:      #f5a623;  --cust-bg: rgba(245,166,35,.09); --cust-bd: rgba(245,166,35,.22);
  --gray:      #5a728f;  --gray-bg: rgba(90,114,143,.09); --gray-bd: rgba(90,114,143,.22);
  /* misc */
  --purple:    #a873f7;  --purple-bg: rgba(168,115,247,.10);
  --orange:    #f97316;
  /* font */
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'Cascadia Code','Consolas','JetBrains Mono',monospace;
  /* sizes */
  --nav-h:  46px;
  --stat-h: 88px;
}

html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--tx-1);
  font-size: 13px;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

@keyframes spin      { to { transform: rotate(360deg); } }
@keyframes fadein    { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:none; } }
@keyframes pulse-dot { 0%,100%{opacity:.6;transform:scale(1)} 50%{opacity:1;transform:scale(1.3)} }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NAVBAR
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.navbar {
  position: fixed; top:0; left:0; right:0; height: var(--nav-h); z-index:200;
  background: var(--sur-1);
  border-bottom: 1px solid var(--bd-1);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
  /* accent line */
  background-image: linear-gradient(90deg, rgba(79,142,247,.4) 0%, transparent 40%);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: bottom;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
}
.nav-logo {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 12px rgba(79,142,247,.4);
}
.nav-logo svg { width:15px; height:15px; color:#fff; }
.nav-title { font-size:.9rem; font-weight:700; color: var(--tx-1); letter-spacing:-.01em; }
.nav-tag {
  font-size:.58rem; font-weight:700;
  background: var(--blue-bg); color: var(--blue);
  border: 1px solid var(--blue-bd); border-radius:5px; padding:2px 7px;
  letter-spacing:.04em;
}
.nav-right { display:flex; align-items:center; gap:14px; }
.nav-stat  { font-size:.65rem; font-family:var(--mono); color: var(--tx-3); letter-spacing:.06em; }
.nav-dot   { width:6px; height:6px; border-radius:50%; background:var(--hit);
             animation: pulse-dot 2s ease-in-out infinite; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   STAT CARDS
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.stat-row {
  position:fixed; top: var(--nav-h); left:0; right:0; z-index:100;
  height: var(--stat-h);
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0;
  border-bottom: 1px solid var(--bd-1);
}
.stat-card {
  display: flex; align-items: center; gap: 14px;
  padding: 0 20px;
  border-right: 1px solid var(--bd-1);
  position:relative; overflow:hidden; cursor:default;
  transition: background .18s;
}
.stat-card:last-child { border-right:none; }
.stat-card::before {
  content:''; position:absolute; left:0; top:0; bottom:0; width:3px;
  border-radius:0 2px 2px 0;
}
.stat-hit  { background: var(--hit-bg); }  .stat-hit::before  { background: var(--hit); box-shadow:0 0 8px var(--hit); }
.stat-fail { background: var(--fail-bg); } .stat-fail::before { background: var(--fail); box-shadow:0 0 8px var(--fail); }
.stat-cust { background: var(--cust-bg); } .stat-cust::before { background: var(--cust); box-shadow:0 0 8px var(--cust); }
.stat-gray { background: var(--gray-bg); } .stat-gray::before { background: var(--gray); }

.stat-card:hover { background: var(--sur-3); }

.stat-icon-wrap {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink:0;
  display: flex; align-items:center; justify-content:center;
}
.stat-hit  .stat-icon-wrap { background: rgba(16,217,138,.14); color: var(--hit); }
.stat-fail .stat-icon-wrap { background: rgba(243,83,74,.14);  color: var(--fail); }
.stat-cust .stat-icon-wrap { background: rgba(245,166,35,.14); color: var(--cust); }
.stat-gray .stat-icon-wrap { background: rgba(90,114,143,.14); color: var(--gray); }
.stat-icon-wrap svg { width:18px; height:18px; }

.stat-body {}
.stat-num  { font-size:1.75rem; font-weight:800; line-height:1; letter-spacing:-.03em; }
.stat-hit  .stat-num { color: var(--hit); }
.stat-fail .stat-num { color: var(--fail); }
.stat-cust .stat-num { color: var(--cust); }
.stat-gray .stat-num { color: var(--gray); }
.stat-lbl  { font-size:.6rem; font-weight:700; text-transform:uppercase; letter-spacing:.1em; color:var(--tx-3); margin-top:2px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LAYOUT
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.layout {
  display:flex;
  height: 100%;
  padding-top: calc(var(--nav-h) + var(--stat-h));
}
.panel { overflow-y: auto; }
.panel-left {
  width: 300px; flex-shrink:0;
  height: calc(100vh - var(--nav-h) - var(--stat-h));
  background: var(--sur-1);
  border-right: 1px solid var(--bd-1);
  display:flex; flex-direction:column;
  padding: 16px 14px;
  gap: 14px;
  position:sticky;
  top: calc(var(--nav-h) + var(--stat-h));
}
.panel-right {
  flex:1;
  padding: 16px 18px;
  min-height: calc(100vh - var(--nav-h) - var(--stat-h));
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECTION LABEL
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.sec-lbl {
  display:flex; align-items:center; justify-content:space-between;
  font-size:.6rem; font-weight:700; color:var(--tx-3);
  text-transform:uppercase; letter-spacing:.1em;
}
.sec-badge {
  font-size:.62rem; font-weight:700; font-family:var(--mono);
  background:var(--sur-4); color:var(--tx-2);
  border:1px solid var(--bd-2); border-radius:100px; padding:1px 8px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TEXTAREA
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ta-wrap { position:relative; flex:1 1 0; min-height:90px; }
.ta-wrap textarea {
  width:100%; height:100%; resize:none;
  background: var(--bg); border: 1px solid var(--bd-2);
  border-radius:8px; padding:9px 10px 22px;
  color:var(--tx-1); font-family:var(--mono); font-size:.7rem;
  outline:none; transition:border-color .18s, box-shadow .18s;
  line-height:1.7;
}
.ta-wrap textarea::placeholder { color:var(--tx-3); }
.ta-wrap textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79,142,247,.12);
}
.ta-counter {
  position:absolute; bottom:6px; right:8px;
  font-size:.56rem; color:var(--tx-3); font-family:var(--mono);
  pointer-events:none;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FORM CONTROLS
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.form-row { display:flex; gap:8px; }
.form-col { flex:1; display:flex; flex-direction:column; gap:5px; }
.fld-lbl {
  font-size:.59rem; font-weight:700; color:var(--tx-3);
  text-transform:uppercase; letter-spacing:.07em;
  display:flex; align-items:center; gap:4px;
}
input[type=text], select {
  width:100%; background:var(--bg); border:1px solid var(--bd-2);
  border-radius:7px; padding:7px 9px; color:var(--tx-1);
  font-size:.76rem; outline:none; transition:.18s; font-family:var(--font);
}
input[type=text]:focus, select:focus {
  border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(79,142,247,.12);
}
input[type=text]::placeholder { color:var(--tx-3); }
select {
  cursor:pointer; appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%233d5275' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 8px center; padding-right:24px;
}
select option { background:var(--sur-3); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TOGGLE / CHECKBOX
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.toggle-row {
  display:flex; align-items:center; justify-content:space-between;
  background: var(--sur-2); border:1px solid var(--bd-1);
  border-radius:8px; padding:8px 10px; cursor:pointer;
}
.toggle-row:hover { border-color:var(--bd-2); }
.toggle-label { font-size:.73rem; color:var(--tx-2); user-select:none; }
.toggle-switch { position:relative; width:32px; height:18px; flex-shrink:0; }
.toggle-switch input { opacity:0; width:0; height:0; }
.toggle-track {
  position:absolute; inset:0; background:var(--bd-2); border-radius:9px;
  transition:.2s; cursor:pointer;
}
.toggle-track::after {
  content:''; position:absolute; left:2px; top:2px;
  width:14px; height:14px; border-radius:50%;
  background:#fff; transition:.2s; box-shadow:0 1px 3px rgba(0,0,0,.4);
}
.toggle-switch input:checked + .toggle-track { background:var(--blue); }
.toggle-switch input:checked + .toggle-track::after { transform:translateX(14px); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BUTTONS
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.btn-group {
  display:grid; grid-template-columns:1fr 1fr;
  gap:6px;
}
.btn-group .btn-start { grid-column:1/-1; }

.btn {
  display:inline-flex; align-items:center; justify-content:center;
  gap:6px; border:none; border-radius:8px; padding:9px 16px;
  font-size:.78rem; font-weight:600; cursor:pointer;
  transition:.15s; white-space:nowrap; font-family:var(--font);
}
.btn svg { width:13px; height:13px; flex-shrink:0; }
.btn:disabled { opacity:.35; cursor:not-allowed; }

.btn-start  { background:linear-gradient(135deg,#1bde8a,#0fb876); color:#fff;
              box-shadow:0 2px 12px rgba(16,217,138,.25); }
.btn-start:hover:not(:disabled)  { background:linear-gradient(135deg,#22e891,#13c980); box-shadow:0 4px 16px rgba(16,217,138,.35); transform:translateY(-1px); }

.btn-pause  { background:var(--sur-3); color:var(--cust); border:1px solid var(--cust-bd); }
.btn-pause:hover:not(:disabled)  { background:var(--cust-bg); }

.btn-resume { background:var(--sur-3); color:var(--blue); border:1px solid var(--blue-bd); }
.btn-resume:hover:not(:disabled) { background:var(--blue-bg); }

.btn-stop   { background:var(--sur-3); color:var(--fail); border:1px solid var(--fail-bd); }
.btn-stop:hover:not(:disabled)   { background:var(--fail-bg); }

.btn-ghost  { background:transparent; color:var(--tx-2); border:1px solid var(--bd-2); }
.btn-ghost:hover { color:var(--tx-1); border-color:var(--bd-3); }
.btn-sm { padding:5px 10px; font-size:.67rem; border-radius:6px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PROGRESS BAR
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.progress-section { display:none; }
.prog-bar {
  height:4px; background:var(--sur-4); border-radius:4px; overflow:hidden;
  margin-top:4px;
}
.prog-fill {
  height:100%;
  background:linear-gradient(90deg, var(--blue-2), var(--blue));
  border-radius:4px; width:0; transition:width .4s ease;
  box-shadow:0 0 6px var(--blue);
}
.prog-row {
  display:flex; justify-content:space-between;
  margin-top:5px; font-family:var(--mono); font-size:.62rem; color:var(--tx-3);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DIVIDER
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.divider { height:1px; background:var(--bd-1); margin:-2px 0; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESULTS PANEL HEADER
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.results-head {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:13px; gap:10px;
}
.results-actions { display:flex; gap:6px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TAB BAR
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.tab-bar {
  display:flex; gap:2px;
  background:var(--sur-2); border:1px solid var(--bd-1);
  border-radius:9px; padding:3px;
}
.tab {
  display:inline-flex; align-items:center; gap:5px;
  background:transparent; border:none; border-radius:7px;
  padding:5px 12px; font-size:.7rem; font-weight:600;
  cursor:pointer; color:var(--tx-3); transition:.14s; white-space:nowrap;
  font-family:var(--font);
}
.tab:hover { color:var(--tx-2); }
.tab.active { background:var(--sur-3); box-shadow:0 1px 4px rgba(0,0,0,.5); }
.tab-cnt {
  font-size:.58rem; border-radius:100px;
  padding:0 5px; min-width:17px; text-align:center;
  font-weight:800; background:var(--sur-4); color:var(--tx-3); transition:.18s;
}
.tab.active[data-tab=all]    { color:var(--tx-1); }
.tab.active[data-tab=hit]    { color:var(--hit); }  .tab.active[data-tab=hit]    .tab-cnt { background:var(--hit-bg); color:var(--hit); }
.tab.active[data-tab=fail]   { color:var(--fail); } .tab.active[data-tab=fail]   .tab-cnt { background:var(--fail-bg); color:var(--fail); }
.tab.active[data-tab=custom] { color:var(--cust); } .tab.active[data-tab=custom] .tab-cnt { background:var(--cust-bg); color:var(--cust); }
.tab.active[data-tab=other]  { color:var(--gray); } .tab.active[data-tab=other]  .tab-cnt { background:var(--gray-bg); color:var(--gray); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   EMPTY STATE
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.empty-state {
  display:flex; flex-direction:column; align-items:center;
  justify-content:center; min-height:240px; gap:10px; color:var(--tx-3);
}
.empty-state svg   { opacity:.12; }
.empty-state p     { font-size:.85rem; font-weight:600; color:var(--tx-3); }
.empty-state small { font-size:.7rem; color:var(--tx-3); opacity:.7; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ENTRY CARD
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.entry {
  border:1px solid var(--bd-1); border-radius:10px;
  margin-bottom:6px; overflow:hidden;
  background:var(--sur-1);
  animation:fadein .18s ease;
  transition:border-color .15s;
}
.entry:hover { border-color:var(--bd-2); }
.entry.pending { opacity:.65; }
.entry[data-tab=hit]    { border-left:3px solid var(--hit); }
.entry[data-tab=fail]   { border-left:3px solid var(--fail); }
.entry[data-tab=custom] { border-left:3px solid var(--cust); }
.entry[data-tab=other]  { border-left:3px solid var(--gray); }

.entry-header {
  display:flex; align-items:center; gap:8px;
  padding:9px 12px; cursor:pointer; user-select:none;
  transition:background .12s;
}
.entry-header:hover { background:var(--sur-2); }
.entry-idx   { font-size:.58rem; color:var(--tx-3); min-width:22px; font-family:var(--mono); flex-shrink:0; text-align:right; }
.entry-email { font-size:.73rem; font-family:var(--mono); flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--tx-1); }
.entry-time  { font-size:.58rem; color:var(--tx-3); font-family:var(--mono); flex-shrink:0; }
.entry-actions { display:flex; gap:3px; flex-shrink:0; }
.chevron     { color:var(--tx-3); font-size:.55rem; transition:transform .2s; flex-shrink:0; margin-left:2px; }

.act-btn {
  background:transparent; border:1px solid var(--bd-2); border-radius:5px;
  color:var(--tx-3); cursor:pointer; padding:2px 7px; font-size:.59rem;
  transition:.12s; display:inline-flex; align-items:center; gap:3px; font-family:var(--font);
}
.act-btn svg { width:9px; height:9px; }
.act-btn:hover { color:var(--tx-1); border-color:var(--bd-3); background:var(--sur-3); }

.spinner-sm {
  width:12px; height:12px; flex-shrink:0;
  border:2px solid var(--blue-bg); border-top-color:var(--blue);
  border-radius:50%; animation:spin .7s linear infinite;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ENTRY BODY
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.entry-body { display:none; border-top:1px solid var(--bd-1); }

.entry-msg {
  padding:8px 13px;
  background:var(--bg); border-bottom:1px solid var(--bd-1);
  font-family:var(--mono); font-size:.68rem; color:var(--tx-2);
  word-break:break-all; line-height:1.6;
}

/* CAPTURE GRID */
.cap-grid {
  display:grid; grid-template-columns:1fr 1fr;
  gap:1px; background:var(--bd-1);
}
.cap-sec { background:var(--sur-1); padding:10px 13px; }
.cap-sec-full { grid-column:1/-1; }

.cap-title {
  display:flex; align-items:center; gap:6px;
  font-size:.57rem; font-weight:700; color:var(--tx-3);
  text-transform:uppercase; letter-spacing:.08em;
  padding-bottom:6px; margin-bottom:6px;
  border-bottom:1px solid var(--bd-1);
}
.cap-dot { width:5px; height:5px; border-radius:50%; flex-shrink:0; }
.cap-sec-profile .cap-dot { background:var(--hit); }
.cap-sec-inbox   .cap-dot { background:var(--blue); }
.cap-sec-payment .cap-dot { background:var(--cust); }
.cap-sec-sub     .cap-dot { background:var(--orange); }
.cap-sec-azure   .cap-dot { background:#60a5fa; }
.cap-sec-rewards .cap-dot { background:var(--purple); }

.ctable { width:100%; border-collapse:collapse; }
.ctable td { padding:3px 0; font-size:.71rem; vertical-align:top; }
.ctable td:first-child { color:var(--tx-3); width:46%; padding-right:8px; white-space:nowrap; }
.ctable td:last-child  { color:var(--tx-1); word-break:break-word; }
.ctable tr + tr td     { border-top:1px solid var(--bd-1); padding-top:3px; }

/* RAW JSON */
.raw-row {
  display:flex; gap:6px; padding:7px 12px;
  background:var(--sur-1); border-top:1px solid var(--bd-1);
}
.json-btn {
  background:transparent; border:1px solid var(--bd-2); color:var(--tx-3);
  border-radius:5px; padding:3px 9px; font-size:.6rem; cursor:pointer; transition:.12s;
}
.json-btn:hover { color:var(--tx-1); border-color:var(--bd-3); }
pre.json {
  display:none; background:var(--bg); border-top:1px solid var(--bd-1);
  padding:10px 13px; font-size:.6rem; font-family:var(--mono);
  overflow:auto; max-height:220px; line-height:1.5; color:var(--tx-2);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BADGES
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.badge { border-radius:5px; padding:2px 7px; font-size:.62rem; font-weight:700; white-space:nowrap; flex-shrink:0; }
.badge-hit    { background:var(--hit-bg);  color:var(--hit);  border:1px solid var(--hit-bd); }
.badge-fail   { background:var(--fail-bg); color:var(--fail); border:1px solid var(--fail-bd); }
.badge-custom { background:var(--cust-bg); color:var(--cust); border:1px solid var(--cust-bd); }
.badge-other,
.badge-error  { background:var(--gray-bg); color:var(--gray); border:1px solid var(--gray-bd); }
.badge-retry  { background:var(--blue-bg); color:var(--blue); border:1px solid var(--blue-bd); }
.badge-ban    { background:rgba(249,115,22,.10); color:var(--orange); border:1px solid rgba(249,115,22,.25); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HINT TEXT
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hint { font-size:.62rem; color:var(--tx-3); line-height:1.5; }
.hint code { font-family:var(--mono); font-size:.6rem; color:var(--tx-2); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TOAST
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.toast {
  position:fixed; bottom:20px; right:20px; z-index:999;
  background:var(--sur-3); border:1px solid var(--bd-2);
  color:var(--tx-1); border-radius:9px; padding:9px 16px;
  font-size:.73rem; opacity:0; transform:translateY(8px);
  transition:opacity .18s, transform .18s; pointer-events:none;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
}
.toast.show { opacity:1; transform:none; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SCROLLBAR
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
::-webkit-scrollbar { width:4px; height:4px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--bd-2); border-radius:4px; }
::-webkit-scrollbar-thumb:hover { background:var(--bd-3); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width:860px) {
  :root { --stat-h: 130px; }
  body { overflow-y:auto; }
  .stat-row { grid-template-columns:repeat(2,1fr); }
  .layout { flex-direction:column; padding-top:calc(var(--nav-h) + var(--stat-h)); }
  .panel-left { width:100%; height:auto; position:static; border-right:none; border-bottom:1px solid var(--bd-1); }
  .panel-right { padding:12px; }
  .cap-grid { grid-template-columns:1fr; }
}
