:root{color-scheme:dark;--bg:#0b1019;--surface:#141c28;--surface2:#192332;--border:#273243;--text:#e9eef5;--muted:#91a1b4;--dl:#61c7ac;--ul:#f5c54b;--ping:#85b2ff;--shadow:0 15px 40px rgba(0,0,0,.13)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(ellipse 800px 500px at 90% -250px,rgba(60,93,143,.16),transparent),var(--bg);font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--text)}button,input{font:inherit}button{cursor:pointer}.shell{max-width:1500px;margin:0 auto;padding:32px 34px 22px}.topbar,.filter-main,.card-head,.kpi-top,.chart-foot,.status-line,.brand,.legend{display:flex;align-items:center}.topbar{justify-content:space-between;gap:20px;margin-bottom:30px}.brand{gap:15px}.brand-mark{width:52px;height:52px;display:grid;place-items:center;background:linear-gradient(140deg,#243a50,#172435);border:1px solid #34506a;border-radius:16px}.brand-mark svg{width:29px;height:29px;fill:none;stroke:var(--dl);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.eyebrow{font-size:10px;font-weight:800;color:var(--muted);letter-spacing:1.7px;margin:0 0 5px}.brand h1{font-size:27px;letter-spacing:-.8px;font-weight:720;line-height:1.1;margin:0}.heading-muted{color:#75869b;font-weight:400}.status-line{gap:10px;color:var(--muted);font-size:12px}.status-dot{width:8px;height:8px;background:#8ca0b3;border-radius:50%;box-shadow:0 0 0 4px rgba(140,160,179,.1)}.status-dot.good{background:#6bd6a7;box-shadow:0 0 0 4px rgba(75,201,146,.12)}.status-dot.bad{background:#f07d82;box-shadow:0 0 0 4px rgba(240,125,130,.12)}.filters{padding:18px 20px;background:rgba(20,28,40,.95);border:1px solid var(--border);border-radius:13px;margin-bottom:19px}.filter-label{font-size:13px;font-weight:650;margin-bottom:10px}.range-description{color:var(--muted);font-size:11px;font-weight:400;padding-left:8px}.filter-main{gap:12px;flex-wrap:wrap}.range-buttons{display:flex;flex-wrap:wrap;gap:5px;padding:4px;background:#0d1520;border:1px solid #293546;border-radius:10px}.range-buttons button,.subtle-btn,.reload-btn{border:0;color:var(--muted);background:none;border-radius:7px;transition:background .2s,color .2s}.range-buttons button{padding:9px 15px;white-space:nowrap;font-weight:600;font-size:12px}.range-buttons button:hover,.subtle-btn:hover,.reload-btn:hover{color:var(--text);background:#243043}.range-buttons button.active{background:#2a3e51;color:#e6f7ef;box-shadow:inset 0 0 0 1px #3b6170}.subtle-btn{border:1px solid #2e3c50;padding:10px 14px;font-size:12px;font-weight:650}.reload-btn{margin-left:auto;width:40px;height:38px;display:grid;place-items:center;border:1px solid #2e3c50}.reload-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7}.reload-btn.loading svg{animation:spin 1.3s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.custom-form{margin-top:15px;padding:14px 0 0;border-top:1px solid var(--border);display:flex;align-items:end;flex-wrap:wrap;gap:12px}.custom-form[hidden]{display:none}.custom-form label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--muted)}.custom-form input{background:#0c1521;color:var(--text);border:1px solid #34445a;padding:9px 12px;border-radius:7px;min-height:39px}.custom-form button{padding:10px 16px;background:#38685d;border:1px solid #508c7b;color:#fff;border-radius:7px}.custom-hint{font-size:11px;color:var(--muted);width:100%;margin:0}.message{padding:13px 16px;border:1px solid #82545a;background:#3c242c;border-radius:10px;color:#ffbac1;margin-bottom:18px}.message[hidden]{display:none}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:18px}.kpi-card,.chart-card,.table-card{background:linear-gradient(145deg,#182230,#131b26);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow)}.kpi-card{padding:19px 21px;min-height:185px;overflow:hidden;position:relative}.kpi-card:after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--accent);opacity:.68}.download-card{--accent:var(--dl)}.upload-card{--accent:var(--ul)}.ping-card{--accent:var(--ping)}.count-card{--accent:#7283a1}.kpi-top{justify-content:space-between;color:#abb9cb;font-size:11px;font-weight:850;letter-spacing:1px}.kpi-icon{font-size:22px;color:var(--accent);line-height:1}.kpi-value{display:flex;align-items:baseline;gap:7px;margin:24px 0 8px}.kpi-value strong{font-size:clamp(30px,3.2vw,46px);font-weight:760;letter-spacing:-1.7px;line-height:1;color:var(--accent);font-variant-numeric:tabular-nums}.kpi-value span{font-size:13px;color:#b0bccb}.kpi-sub{color:#7e91a8;font-size:11px}.mini{margin-top:13px;color:#bac7d4;font-size:12px}.chart-card,.table-card{overflow:hidden}.chart-card{padding:22px 24px 16px;margin-bottom:18px}.card-head{justify-content:space-between;gap:12px;margin-bottom:16px}.card-head h2{margin:0;font-size:20px;font-weight:710;letter-spacing:-.45px}.legend{gap:18px;color:#aab9ca;font-size:12px;flex-wrap:wrap}.legend span{display:flex;align-items:center;gap:7px}.legend-color{display:inline-block;width:13px;height:3px;border-radius:4px}.dl{background:var(--dl)}.ul{background:var(--ul)}.ping{background:var(--ping)}.chart-area{height:318px;position:relative;cursor:crosshair}.chart-area canvas{display:block;width:100%;height:100%}.chart-tooltip{position:absolute;z-index:5;pointer-events:none;min-width:150px;background:rgba(10,16,24,.95);border:1px solid #425267;border-radius:9px;padding:11px 13px;font-size:12px;box-shadow:0 12px 30px #0007;white-space:nowrap}.chart-tooltip[hidden],.empty-overlay[hidden]{display:none}.tip-date{font-size:11px;color:#91a5ba;margin-bottom:6px}.tip-line{display:flex;justify-content:space-between;gap:16px;margin:3px 0}.tip-line b{font-variant-numeric:tabular-nums}.tip-line span{display:flex;align-items:center;gap:5px}.empty-overlay{position:absolute;inset:0;display:grid;place-items:center;color:#92a1b1;font-size:13px}.chart-foot{justify-content:space-between;gap:8px;color:#6e8399;font-size:11px;border-top:1px solid #263343;padding-top:12px;margin-top:8px}.bottom-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);gap:18px}.bottom-grid .chart-card{margin-bottom:0}.bottom-grid .chart-area{height:303px}.table-card{padding:22px 22px 18px}.stats-table{border-collapse:collapse;width:100%;font-size:12px}.stats-table th{font-size:11px;color:#8294a9;font-weight:500;text-align:right;padding:10px 7px;border-bottom:1px solid #2c394a}.stats-table th:first-child{text-align:left}.stats-table td{padding:13px 7px;border-bottom:1px solid #263244;text-align:right;font-variant-numeric:tabular-nums;color:#e6ecf3}.stats-table td:first-child{text-align:left;white-space:nowrap}.stats-table small{color:#8092a5;font-size:10px}.stat-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:7px}.recent h3{font-size:13px;margin:20px 0 10px;color:#d1dce7}.recent-list{display:grid;gap:2px}.recent-row{display:flex;justify-content:space-between;gap:9px;padding:7px 3px;font-size:11px;border-bottom:1px solid #24303e;align-items:center}.recent-row span:first-child{color:#8294a9}.recent-values{display:flex;gap:13px;font-variant-numeric:tabular-nums}.recent-values b{font-weight:600}.recent-values .download{color:var(--dl)}.recent-values .upload{color:var(--ul)}.recent-values .latency{color:var(--ping)}.muted{color:var(--muted);font-size:12px}footer{text-align:center;color:#65788f;font-size:11px;padding:25px 0 6px}footer span{padding:0 8px}button:focus-visible,input:focus-visible{outline:2px solid #73d5b7;outline-offset:2px}
@media(max-width:1050px){.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bottom-grid{grid-template-columns:1fr}.bottom-grid .chart-area{height:275px}}
@media(max-width:650px){.shell{padding:18px 12px}.topbar{align-items:flex-start;flex-wrap:wrap;gap:14px;margin-bottom:19px}.brand h1{font-size:23px}.brand-mark{width:44px;height:44px;border-radius:13px}.status-line{margin-left:59px;margin-top:-4px}.filters{padding:15px 12px}.range-description{display:block;padding:4px 0 0}.range-buttons{width:100%;justify-content:space-between;gap:2px}.range-buttons button{padding:9px 7px;flex:1;font-size:11px}.filter-main{gap:9px}.subtle-btn{flex:1}.kpi-grid{gap:9px}.kpi-card{padding:16px 12px;min-height:157px}.kpi-value{margin:21px 0 7px}.kpi-value strong{font-size:31px}.kpi-top{font-size:10px;letter-spacing:.5px}.kpi-sub{font-size:10px}.mini{font-size:10px;margin-top:9px}.chart-card,.table-card{padding:17px 12px 11px}.card-head h2{font-size:18px}.card-head{align-items:flex-start;flex-wrap:wrap}.legend{gap:13px;font-size:11px}.chart-area,.bottom-grid .chart-area{height:255px}.chart-foot{font-size:10px}.stats-table td{padding:12px 5px}.recent-values{gap:8px}.recent-row{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;scroll-behavior:auto!important}}

/* ========================================================================== */
/* v1.0.3 — czytelność i wyraźne podziały sekcji                              */
/* ========================================================================== */
:root {
  --bg: #0a111c;
  --surface: #182333;
  --surface2: #1d2a3b;
  --border: #35455a;
  --text: #edf3fa;
  --muted: #a8b8ca;
  --shadow: 0 16px 38px rgba(0, 0, 0, .20);
}

body { font-size: 15px; line-height: 1.55; }
.shell { max-width: 1520px; }

/* Nawigacja i zakres pomiarów */
.eyebrow {
  font-size: 13px;
  letter-spacing: 1.35px;
  color: #adbed2;
}
.brand h1 { font-size: 29px; }
.heading-muted { color: #a0b0c2; }
.status-line { font-size: 14px; }
.filters {
  padding: 20px 22px;
  background: linear-gradient(145deg, #192637, #151f2c);
  border-color: #384a61;
  border-radius: 15px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
}
.filter-label { font-size: 15px; font-weight: 750; }
.range-description { font-size: 13px; color: #b0c0d1; }
.range-buttons { gap: 5px; background: #0d1826; border-color: #35475b; }
.range-buttons button { font-size: 14px; padding: 10px 16px; min-height: 42px; }
.range-buttons button.active {
  background: #31505c;
  border-color: #557f85;
  color: #f1fff8;
  box-shadow: inset 0 0 0 1px #5e9691, 0 2px 8px #0004;
}
.subtle-btn { font-size: 14px; min-height: 43px; }
.reload-btn { width: 44px; height: 43px; }
.custom-form label, .custom-hint { font-size: 13px; }
.custom-form input { min-height: 43px; }
.custom-form button { min-height: 43px; }

/* Mocniejsze, lecz spokojne rozróżnienie kart wynikowych */
.kpi-grid { gap: 17px; margin-bottom: 22px; }
.kpi-card, .chart-card, .table-card {
  background: linear-gradient(148deg, #1b293a, #151f2d 80%);
  border-color: #36485f;
  border-radius: 15px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.025);
}
.kpi-card { padding: 21px 23px; min-height: 199px; }
.kpi-card:before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 4px;
  background: var(--accent);
  opacity: .85;
}
.kpi-card:after { height: 0; }
.kpi-top { font-size: 13px; color: #d6e1ed; letter-spacing: .8px; }
.kpi-value span { font-size: 15px; color: #c3d1e0; }
.kpi-sub { font-size: 13px; color: #a6bacd; }
.mini { font-size: 13px; color: #cbd7e4; margin-top: 13px; }

/* Nagłówki sekcji i obramowania */
.chart-card { padding: 25px 27px 19px; margin-bottom: 22px; }
.table-card { padding: 25px 24px 22px; }
.card-head { padding-bottom: 17px; border-bottom: 1px solid #334559; margin-bottom: 19px; }
.card-head h2 { font-size: 23px; color: #f2f6fc; letter-spacing: -.5px; }
.card-head .eyebrow { margin-bottom: 7px; }
.legend { font-size: 14px; color: #c1cfdd; }
.legend-color { width: 17px; height: 4px; }
.chart-foot { font-size: 13px; color: #a5b7c9; border-top-color: #34465b; padding-top: 15px; }
.chart-tooltip { font-size: 14px; border-color: #63758b; padding: 12px 14px; }
.tip-date { font-size: 13px; color: #bed0e1; }
.empty-overlay { font-size: 15px; }
.bottom-grid { gap: 21px; }
.ping-chart-card { border-top: 2px solid rgba(133,178,255,.44); }
.table-card { border-top: 2px solid rgba(97,199,172,.42); }

/* Dwa czytelne, oddzielone bloki w karcie „Statystyki”. */
.stats-table-wrap, .recent {
  background: linear-gradient(140deg, rgba(15,27,42,.98), rgba(17,31,46,.96));
  border: 1px solid #395067;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.018);
}
.stats-table-wrap { padding: 10px 15px 13px; border-left: 3px solid #60c1a8; }
.stats-table { font-size: 14px; }
.stats-table th {
  font-size: 13px;
  padding: 13px 9px 12px;
  font-weight: 650;
  color: #b6c6d7;
  border-bottom-color: #385066;
}
.stats-table td {
  padding: 16px 9px;
  color: #f0f5fa;
  border-bottom-color: #2c4054;
  font-size: 14px;
}
.stats-table tbody tr:last-child td { border-bottom: 0; }
.stats-table tbody tr:hover td { background: rgba(99, 136, 166, .075); }
.stats-table td:first-child { font-weight: 650; }
.stats-table small { font-size: 13px; color: #b0c0d2; }
.stat-dot { width: 9px; height: 9px; margin-right: 9px; }

.recent { margin-top: 18px; padding: 18px 15px 15px; border-left: 3px solid #85b2ff; }
.recent h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
  color: #e9f1fa;
  font-size: 17px;
  font-weight: 750;
}
.recent h3:before {
  content: "";
  display: block;
  width: 5px;
  height: 19px;
  border-radius: 5px;
  background: var(--ping);
}
.recent-list { gap: 7px; }
.recent-row {
  gap: 12px;
  border: 1px solid #2d4157;
  border-radius: 8px;
  background: rgba(34, 51, 69, .37);
  padding: 11px 12px;
  font-size: 13px;
}
.recent-row:last-child { border-bottom: 1px solid #2d4157; }
.recent-row:hover { background: rgba(52,77,102,.50); border-color: #47617a; }
.recent-row span:first-child { color: #c1cddd; }
.recent-values { gap: 16px; }
.recent-values b { font-weight: 700; white-space: nowrap; font-size: 13px; }
.muted { color: #afc0d2; font-size: 13px; }
footer { color: #a1b1c4; font-size: 13px; padding-top: 27px; }

@media (max-width: 1050px) {
  .bottom-grid { gap: 19px; }
}

@media (max-width: 650px) {
  .shell { padding: 19px 12px; }
  .brand h1 { font-size: 25px; }
  .eyebrow { font-size: 13px; }
  .status-line { font-size: 13px; }
  .filters { padding: 16px 14px; }
  .filter-label, .range-description { font-size: 13px; }
  .range-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 5px;
    padding: 5px;
  }
  .range-buttons button { font-size: 13px; min-height: 43px; padding: 9px 5px; }
  .subtle-btn { font-size: 13px; }
  .kpi-grid { gap: 11px; margin-bottom: 17px; }
  .kpi-card { padding: 16px 14px; min-height: 180px; }
  .kpi-top { font-size: 13px; letter-spacing: .25px; }
  .kpi-value { flex-wrap: wrap; margin-top: 22px; gap: 5px; }
  .kpi-value strong { font-size: clamp(27px,8vw,37px); }
  .kpi-value span, .kpi-sub, .mini { font-size: 13px; }
  .mini { margin-top: 10px; }
  .chart-card, .table-card { padding: 18px 14px 15px; }
  .card-head h2 { font-size: 21px; }
  .card-head { padding-bottom: 14px; margin-bottom: 16px; }
  .legend, .chart-foot { font-size: 13px; }
  .stats-table-wrap { padding: 10px 10px 12px; }
  .stats-table thead { display: none; }
  .stats-table tbody, .stats-table tr, .stats-table td { display: block; }
  .stats-table tbody tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 4px;
    border: 1px solid #344b61;
    border-radius: 9px;
    margin-bottom: 9px;
    padding: 12px 10px;
    background: rgba(35, 54, 75, .45);
  }
  .stats-table tbody tr:last-child { margin-bottom: 0; }
  .stats-table td { border: none; padding: 0; font-size: 14px; }
  .stats-table td:first-child {
    grid-column: 1 / -1;
    border-bottom: 1px solid #344b61;
    padding-bottom: 10px;
    margin-bottom: 7px;
    font-size: 15px;
  }
  .stats-table td:not(:first-child) { text-align: center; }
  .stats-table td:nth-child(2):before,
  .stats-table td:nth-child(3):before,
  .stats-table td:nth-child(4):before {
    display: block;
    margin-bottom: 5px;
    color: #adbed0;
    font-size: 13px;
    font-weight: 500;
  }
  .stats-table td:nth-child(2):before { content: "Średnia"; }
  .stats-table td:nth-child(3):before { content: "Min."; }
  .stats-table td:nth-child(4):before { content: "Maks."; }
  .recent { margin-top: 14px; padding: 16px 11px 12px; }
  .recent h3 { font-size: 16px; }
  .recent-row { display: grid; gap: 8px; padding: 10px 11px; font-size: 13px; }
  .recent-values { justify-content: space-between; gap: 5px; }
  .recent-values b { font-size: 13px; }
  footer { font-size: 13px; }
}


/* ========================================================================== */
/* v1.0.4 — Pełna historia pomiarów                                            */
/* ========================================================================== */
.recent-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:15px; flex-wrap:wrap; }
.recent-heading h3 { margin:0; }
.history-open-btn, .history-export-btn {
  appearance:none; border:1px solid #6184ab; border-radius:9px;
  color:#e1edff; background:#233a55; padding:9px 13px;
  cursor:pointer; font-family:inherit; font-size:13px; font-weight:650;
  transition:background .16s ease, border-color .16s ease;
}
.history-open-btn:hover, .history-export-btn:hover { background:#325276; border-color:#86aadb; }
.history-open-btn span { margin-left:6px; font-size:16px; }
.history-open-btn:focus-visible, .history-export-btn:focus-visible { outline:2px solid #87b4ff; outline-offset:3px; }
body.history-open { overflow:hidden; }
.history-dialog {
  position:fixed; inset:0; width:min(1160px,calc(100vw - 32px)); max-width:none;
  max-height:calc(100dvh - 44px); height:min(800px,calc(100dvh - 44px));
  padding:0; border:1px solid #527398; border-radius:16px;
  background:#152131; color:var(--text);
  box-shadow:0 35px 100px #000b;
  overflow:hidden;
}
.history-dialog::backdrop { background:rgba(2,8,15,.83); backdrop-filter:blur(5px); }
.history-panel { display:flex; flex-direction:column; height:100%; min-height:0; }
.history-head { display:flex; justify-content:space-between; gap:20px; align-items:flex-start;
  padding:23px 27px 21px; background:linear-gradient(110deg,#21374e,#162536 70%); border-bottom:1px solid #3b526d; }
.history-head .eyebrow { margin:0 0 6px; color:#9bbce5; }
.history-head h2 { margin:0; font-size:24px; line-height:1.25; }
.history-subtitle { font-size:14px; margin:8px 0 0; color:#b7c8db; }
.history-close-btn { appearance:none; width:39px; min-width:39px; height:39px; border:1px solid #55708a;
  border-radius:10px; background:#233950; color:#e9f1fa; font-size:29px; font-weight:400;
  line-height:30px; cursor:pointer; }
.history-close-btn:hover { background:#3a546e; }
.history-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:17px;
  padding:15px 25px; border-bottom:1px solid #32475e; background:#172738; }
.history-range { display:flex; align-items:center; flex-wrap:wrap; gap:10px 16px; color:#c7d6e7; font-size:14px; }
.history-range strong { background:#28465a; border:1px solid #3f6979; color:#d9f5ee; border-radius:8px;
  font-size:13px; padding:5px 9px; white-space:nowrap; }
.history-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.history-size-label { color:#bfcede; font-size:13px; }
.history-actions select { color:#e9f3ff; border:1px solid #536d89; background:#152435;
  padding:9px 28px 9px 10px; min-height:40px; border-radius:8px; font-size:14px; }
.history-export-btn { min-height:40px; }
.history-export-btn:disabled { opacity:.5; cursor:not-allowed; }
.history-scroll { flex:1; min-height:0; overflow:auto; scrollbar-color:#526d8b #152435; }
.history-table { width:100%; border-collapse:separate; border-spacing:0; min-width:700px;
  font-size:14px; font-variant-numeric:tabular-nums; }
.history-table th { position:sticky; top:0; z-index:2; text-align:right;
  background:#23364d; border-bottom:1px solid #536d88; white-space:nowrap; }
.history-table th:first-child { text-align:left; }
.history-table th button { display:inline-flex; gap:8px; align-items:center; justify-content:flex-end;
  width:100%; border:0; border-radius:0; padding:16px 17px; color:#d9e6f7;
  background:transparent; font-family:inherit; font-size:13px; font-weight:650; cursor:pointer; white-space:nowrap; }
.history-table th:first-child button { justify-content:flex-start; }
.history-table th button:hover { background:#304860; }
.history-table th button:focus-visible { outline:2px solid #a6c9ff; outline-offset:-3px; }
.history-table th[aria-sort]:not([aria-sort="none"]) { background:#2c4760; }
.history-table th small { font-size:12px; color:#9fb4ce; font-weight:500; }
.history-sort-arrow { font-size:17px; color:#8cb5ed; }
.history-table td { padding:13px 17px; border-bottom:1px solid #304052; text-align:right; white-space:nowrap; }
.history-table td:first-child { text-align:left; color:#d4dfec; }
.history-table tbody tr:nth-child(even) { background:#1a2a3b; }
.history-table tbody tr:hover { background:#2b4056; }
.history-table .history-download { color:var(--dl); font-weight:700; }
.history-table .history-upload { color:var(--ul); font-weight:700; }
.history-table .history-ping { color:var(--ping); font-weight:700; }
.history-table .history-loss { color:#c4d4e5; }
.history-table td.history-empty { text-align:center; color:#b8c9dc; padding:45px 16px; }
.history-footer { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  background:#192b40; border-top:1px solid #3a526b; padding:15px 25px; font-size:13px; color:#c7d5e4; text-align:left; }
.history-pagination { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.history-pagination button { border:1px solid #587493; color:#edf5ff; background:#263d55;
  padding:9px 13px; border-radius:8px; min-height:38px; font-size:13px; cursor:pointer; }
.history-pagination button:not(:disabled):hover { background:#395775; }
.history-pagination button:disabled { opacity:.35; cursor:not-allowed; }
.history-pagination span { min-width:90px; text-align:center; }
@media(max-width:650px) {
  .recent-heading { align-items:center; }
  .history-open-btn { padding:9px 11px; }
  .history-dialog { width:calc(100vw - 16px); height:calc(100dvh - 20px); max-height:calc(100dvh - 20px); border-radius:12px; }
  .history-head { padding:18px 17px; }
  .history-head h2 { font-size:20px; }
  .history-subtitle { font-size:13px; }
  .history-toolbar { padding:12px 16px; }
  .history-actions { width:100%; }
  .history-actions .history-export-btn { margin-left:auto; }
  .history-table { font-size:13px; }
  .history-table td { padding:12px 13px; }
  .history-table th button { padding:15px 13px; }
  .history-footer { gap:12px; padding:14px 15px; }
  .history-pagination { width:100%; justify-content:space-between; gap:8px; }
  .history-pagination button { padding:9px 10px; }
}
