/* Panel afiliacyjny „Ona Buduje" — spokojna typografia, dużo światła,
   jeden akcent (niebieski PZ #3369B1 — dyspozycja Wojtka 2026-07-16;
   „wyróżnienia danych/sumy" wg brand PZ). Mobile-first: Marzena otwiera
   to z telefonu. Ton: dobry wyciąg bankowy, nie dashboard startupowy. */

:root {
  --ink: #2c2c2c;
  --ink-soft: #5a656b;     /* szary PZ — body/secondary */
  --paper: #f5f3ef;        /* jasny PZ — paper feel */
  --card: #ffffff;
  --line: #e8e5de;         /* szary jasny PZ — separatory */
  --accent: #3369b1;       /* niebieski PZ — CTA, wyróżnienia danych */
  --accent-strong: #27528c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}

/* ─── Nagłówek ─── */

.masthead { text-align: center; margin-bottom: 28px; }

.masthead-brand {
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}

.masthead-x { color: var(--accent); font-weight: 400; }

.masthead-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}

/* ─── Karty ─── */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 20px;
}

/* ─── Data aktualizacji ─── */

.updated {
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

/* ─── Hero: bieżący miesiąc + narastająco ─── */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

@media (min-width: 480px) {
  .hero { grid-template-columns: 1fr 1fr; }
}

.hero-card { text-align: center; padding: 24px 16px; }

.hero-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.hero-value {
  font-size: 32px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--accent-strong);
  white-space: nowrap;
}

.hero-dash { color: var(--ink-soft); font-weight: 400; }

.hero-netto {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.hero-detail {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ─── Historia ─── */

h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.history {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.history th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  font-weight: 500;
  text-align: left;
  padding: 6px 4px;
  border-bottom: 1px solid var(--line);
}

.history td {
  padding: 9px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.history .num { text-align: right; }
.history .dash { color: var(--ink-soft); }

.history tr.current td { background: #eef3fa; }

.history tfoot td {
  border-bottom: none;
  border-top: 2px solid var(--ink);
  font-weight: 650;
  padding-top: 10px;
}

.tag {
  display: inline-block;
  font-size: 11px;
  color: var(--accent-strong);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 0 5px;
  margin-left: 6px;
  vertical-align: 1px;
}

.rate-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #eef1f5;
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--ink);
}

/* ─── Login ─── */

.login-card { max-width: 420px; margin: 8vh auto 0; }

h1 { font-size: 20px; font-weight: 650; margin-bottom: 14px; }

.input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  margin-bottom: 10px;
}

.input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

.btn {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.btn:hover { background: var(--accent-strong); }

.note { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }
.note a { color: var(--accent-strong); }

.msg {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 12px;
}

.msg-ok { background: #f0f4ea; border: 1px solid #cfdcbe; }
.msg-err { background: #f9ecec; border: 1px solid #e4c3c3; }

.empty-state { color: var(--ink-soft); text-align: center; padding: 12px 0; }

/* ─── Wylogowanie / stopka ─── */

.logout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 0 4px;
}

.logout-email { font-size: 12px; color: var(--ink-soft); overflow-wrap: anywhere; }

.btn-quiet {
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
}

.btn-quiet:hover { color: var(--ink); border-color: var(--ink-soft); }

.footer {
  margin-top: 36px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
}
