/*
 * Tokeny kolorystyczne wg zwalidowanej palety dataviz.
 * Tryb ciemny jest zestrojony osobno pod ciemne tło, a nie odwrócony automatycznie.
 */
:root {
  color-scheme: light;
  --surface-1: #fcfcfb;
  --page: #f9f9f7;
  --ink-1: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --grid: #e1e0d9;
  --baseline: #c3c2b7;
  --border: rgba(11, 11, 11, 0.10);
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --good: #0ca30c;
  --critical: #d03b3b;
  --warning: #fab219;
  --ghost: rgba(11, 11, 11, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --surface-1: #1a1a19;
    --page: #0d0d0d;
    --ink-1: #ffffff;
    --ink-2: #c3c2b7;
    --muted: #898781;
    --grid: #2c2c2a;
    --baseline: #383835;
    --border: rgba(255, 255, 255, 0.10);
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --ghost: rgba(255, 255, 255, 0.06);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink-1);
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 24px 20px 64px; }

/* --- nagłówek --- */
header {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between; margin-bottom: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.live { background: var(--good); }
.dot.down { background: var(--critical); }
.sub { color: var(--muted); font-size: 12px; font-weight: 400; }

.ranges { display: flex; gap: 2px; background: var(--ghost); border-radius: 8px; padding: 2px; }
.ranges button {
  border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
  font: inherit; font-size: 13px; padding: 5px 11px; border-radius: 6px;
}
.ranges button:hover { background: var(--ghost); color: var(--ink-1); }
.ranges button[aria-pressed="true"] {
  background: var(--surface-1); color: var(--ink-1); font-weight: 600;
  box-shadow: 0 0 0 1px var(--border);
}

.account { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.account-email { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-out {
  border: 1px solid var(--border); background: var(--surface-1); color: var(--ink-2);
  cursor: pointer; font: inherit; font-size: 12px; padding: 5px 10px; border-radius: 6px;
}
.account-out:hover { background: var(--ghost); color: var(--ink-1); }
.account-out:disabled { opacity: 0.55; cursor: default; }

/* --- odpowiedzi serwera --- */
.load-status { display: grid; gap: 8px; margin-bottom: 20px; }
.request-status { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-1); }
.request-status[hidden], .request-status button[hidden] { display: none; }
.request-message { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.request-message strong { font-size: 13px; }
.request-detail { color: var(--ink-2); font-size: 12px; }
.request-elapsed { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.request-indicator { width: 14px; height: 14px; border: 2px solid var(--baseline); border-radius: 50%; flex: none; }
.request-status[data-state="loading"] .request-indicator,
.request-status[data-state="background"] .request-indicator { border-top-color: var(--series-1); animation: waiting 0.8s linear infinite; }
.request-status[data-state="ready"] .request-indicator { background: var(--good); border-color: var(--good); width: 8px; height: 8px; margin: 3px; }
.request-status[data-state="error"] { border-color: var(--critical); }
.request-status[data-state="error"] .request-indicator { background: var(--critical); border-color: var(--critical); }
.request-status button { padding: 7px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-1); color: var(--ink-1); cursor: pointer; font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--series-1); outline-offset: 3px; }
@keyframes waiting { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .request-indicator { animation: none !important; } }
@media (max-width: 540px) { .request-status { flex-wrap: wrap; } .request-message { min-width: 60%; } }

/* --- karty --- */
.card {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 20px; margin-bottom: 16px;
}
.card h2 { margin: 0 0 2px; font-size: 13px; font-weight: 600; color: var(--ink-1); letter-spacing: -0.005em; }
.card .note { margin: 0 0 14px; font-size: 12px; color: var(--muted); }

.hero-figure { font-size: 52px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.hero-label { font-size: 13px; color: var(--ink-2); margin-top: 2px; }

/* --- kafelki KPI --- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--surface-1); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.tile .label { font-size: 12px; color: var(--ink-2); }
.tile .value { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; }
.tile .foot { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tile .foot .up { color: var(--good); }
.tile .foot .down { color: var(--critical); }

/* --- legenda --- */
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 12px; }
.legend .item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); }
.legend .swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend .num { color: var(--ink-1); font-weight: 600; font-variant-numeric: tabular-nums; }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.grid2 .card { margin-bottom: 0; }

/* --- słupki poziome --- */
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; gap: 12px; align-items: center; }
.bar-name { font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 10px; background: var(--ghost); border-radius: 5px; overflow: hidden; }
.bar-fill { height: 10px; border-radius: 0 4px 4px 0; background: var(--series-1); }
.bar-fill.warn { background: var(--critical); }
.bar-value { font-size: 12px; color: var(--ink-1); font-variant-numeric: tabular-nums; }

/* --- pasek użytkowników --- */
.userbar { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: flex; flex-direction: column; gap: 1px;
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--page); color: var(--ink-1); text-decoration: none;
  min-width: 120px; transition: border-color 90ms, background 90ms;
}
.chip:hover { background: var(--ghost); border-color: var(--baseline); }
.chip.active { border-color: var(--series-1); box-shadow: inset 0 0 0 1px var(--series-1); }
.chip-name {
  font-size: 13px; font-weight: 600; letter-spacing: -0.005em;
  max-width: 24ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chip-sub { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }

.user-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 6px 0 12px; }
.idlist {
  display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px;
  margin: 0; font-size: 12px;
}
.idlist dt { color: var(--muted); }
.idlist dd { margin: 0; color: var(--ink-2); }
.idlist dd.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; }

.back {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
  color: var(--ink-2); text-decoration: none; padding: 4px 0;
}
.back:hover { color: var(--ink-1); }

/* --- tabele --- */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th {
  text-align: left; font-weight: 600; color: var(--muted); padding: 6px 8px;
  border-bottom: 1px solid var(--grid); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.04em; white-space: nowrap;
}
td { padding: 7px 8px; border-bottom: 1px solid var(--grid); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
td.name { color: var(--ink-1); font-variant-numeric: normal; }
td .up { color: var(--good); }
td .down { color: var(--critical); }
tr:last-child td { border-bottom: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; }

/* --- feed zdarzeń --- */
.feed { max-height: 420px; overflow-y: auto; }
.ev {
  display: grid; grid-template-columns: 62px 150px 1fr; gap: 12px;
  padding: 6px 0; border-bottom: 1px solid var(--grid); align-items: baseline;
}
.ev:last-child { border-bottom: 0; }
.ev .t { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.ev .n { font-size: 12px; font-weight: 600; color: var(--ink-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev .d { font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev.err .n { color: var(--critical); }
.ev.warn .n { color: var(--warning); }

input[type="search"] {
  width: 100%; max-width: 280px; padding: 6px 10px; font: inherit; font-size: 13px;
  color: var(--ink-1); background: var(--page); border: 1px solid var(--border);
  border-radius: 8px; margin-bottom: 12px;
}

/* --- stan pusty --- */
.empty { color: var(--ink-2); font-size: 13px; }
.empty h3 { font-size: 14px; margin: 0 0 8px; color: var(--ink-1); }
.empty pre {
  background: var(--page); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; overflow-x: auto; font-size: 12px; line-height: 1.6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink-1);
}
.muted { color: var(--muted); }

/* --- SVG --- */
svg.chart { display: block; width: 100%; height: auto; }
svg .grid-line { stroke: var(--grid); stroke-width: 1; }
svg .axis-line { stroke: var(--baseline); stroke-width: 1; }
svg .tick { fill: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
svg .hit { fill: transparent; }
svg .hit:hover { fill: var(--ghost); }

/* --- tooltip --- */
.tooltip {
  position: fixed; pointer-events: none; z-index: 10; opacity: 0;
  background: var(--surface-1); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; font-size: 12px; color: var(--ink-1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14); transition: opacity 90ms;
}
.tooltip .tt-title { font-weight: 600; margin-bottom: 5px; }
.tooltip .tt-row { display: flex; align-items: center; gap: 7px; }
.tooltip .tt-row .swatch { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.tooltip .tt-row .v { margin-left: auto; font-variant-numeric: tabular-nums; }

/* Ekran logowania. Tokeny i tryb ciemny przychodzą ze styles.css. */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 26rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 26px 22px;
}

.login-card h1 { margin: 0 0 6px; font-size: 16px; letter-spacing: -0.01em; }

.login-lead { margin: 0 0 20px; color: var(--ink-2); }

.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-weight: 600;
  color: var(--ink-1);
  background: var(--page);
  border: 1px solid var(--baseline);
  border-radius: 10px;
  cursor: pointer;
}

.login-button:hover:not(:disabled) { background: var(--ghost); }
.login-button:disabled { opacity: 0.6; cursor: progress; }

.login-mark {
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--series-1);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.login-error {
  margin: 14px 0 0;
  color: var(--critical);
  min-height: 1.5em;
}

.login-note {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}


/*# sourceMappingURL=login.1e4e4f01.css.map*/