/*
Theme Name: Dom
Theme URI: https://domrach.pl
Description: Motyw bazowy portalu Domrach.pl. Własne zmiany trzymaj w motywie potomnym Dom własny.
Author: Arkadiusz Kosicki
Version: 1.5.0
Text Domain: portal-dom
Update URI: https://domrach.pl
*/

body.dom-portal {
  --navy: #1e3a8a;
  --navy-2: #172e6e;
  --blue: #3b82f6;
  --blue-soft: #dbeafe;
  --blue-bg: #eff6ff;
  --gold: #f59e0b;
  --gold-soft: #fef3c7;
  --ink: #0f172a;
  --muted: #64748b;
  --gray: #94a3b8;
  --line: #e2e8f0;
  --bg: #f1f5f9;
  --card: #fff;
  --bad: #dc2626;
  --bad-soft: #fee2e2;
  --ok: #16a34a;
  --ok-soft: #dcfce7;
  --font: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 20px rgba(15, 23, 42, .06);
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: var(--bg);
}

body.dom-portal *,
body.dom-portal *::before,
body.dom-portal *::after { box-sizing: border-box; }

body.dom-portal a { color: var(--navy); }
body.dom-portal a:hover { color: var(--blue); }
body.dom-portal h1,
body.dom-portal h2,
body.dom-portal h3 {
  font-family: var(--font);
  color: var(--navy);
  letter-spacing: -.02em;
  line-height: 1.2;
}

.dom-skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: var(--ink);
  padding: .5rem .8rem;
  z-index: 20;
}
.dom-skip:focus { top: .5rem; }

/* Górny pasek */
.dom-top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(15, 23, 42, .25);
}
body.admin-bar .dom-top { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .dom-top { top: 46px; }
}
.dom-top-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 2rem;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: .6rem 0;
}
body.dom-portal .dom-brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}
.dom-logo {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, .6);
}
.dom-brand-text { display: flex; flex-direction: column; min-width: 0; }
.dom-brand-text strong {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.dom-brand-text small {
  color: #bfdbfe;
  font-size: .82rem;
  line-height: 1.3;
}

.dom-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.dom-nav::-webkit-scrollbar { display: none; }
body.dom-portal .dom-nav-link {
  position: relative;
  flex: 0 0 auto;
  padding: .7rem .8rem;
  color: #dbeafe;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
  transition: color .15s ease, background-color .15s ease;
}
body.dom-portal .dom-nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
body.dom-portal .dom-nav-link.is-on { color: #fff; }
.dom-nav-link.is-on::after {
  content: "";
  position: absolute;
  left: .8rem;
  right: .8rem;
  bottom: .3rem;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
}
body.dom-portal .dom-nav-out {
  margin-left: .35rem;
  border: 1px solid rgba(255, 255, 255, .3);
}
body.dom-portal .dom-nav-link:focus-visible,
body.dom-portal .dom-btn:focus-visible,
body.dom-portal a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Zakładki wewnątrz Rachmistrza */
.dom-tabs {
  display: flex;
  gap: .4rem;
  overflow-x: auto;
  margin: 0 0 1rem;
  padding-bottom: .2rem;
  scrollbar-width: none;
}
body.dom-portal .dom-tabs .dom-nav-link {
  padding: .5rem .9rem;
  font-size: .9rem;
  color: var(--navy);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
}
body.dom-portal .dom-tabs .dom-nav-link.is-on {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}
.dom-tabs .dom-nav-link.is-on::after { display: none; }

.dom-main {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

/* Powitanie */
.dom-welcome {
  margin: 0 0 1.5rem;
  padding: 1.75rem 2rem;
  border-radius: var(--radius);
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(245, 158, 11, .18), transparent 70%),
    linear-gradient(135deg, var(--blue-soft), var(--blue-bg));
  border: 1px solid #bfdbfe;
}
body.dom-portal .dom-welcome h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 800;
}
.dom-welcome > p { margin: .35rem 0 0; color: #1e40af; font-size: 1.1rem; }
.dom-welcome-demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  margin: 1rem 0 0 !important;
  color: var(--muted) !important;
  font-size: .95rem !important;
}

/* Pulpit */
.dom-dash {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}
.dom-dash-main,
.dom-dash-side {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

.dom-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow);
  min-width: 0;
}
body.dom-portal .dom-card h1 { margin: .1rem 0 .4rem; font-size: clamp(1.6rem, 4vw, 2.1rem); }
body.dom-portal .dom-card h2 { margin: 0 0 .9rem; font-size: 1.15rem; font-weight: 700; }

.dom-stat {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
body.dom-portal .dom-stat h2 {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.dom-stat p { margin: 0; }
.dom-stat-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 14px;
  color: var(--navy);
  background: var(--blue-soft);
}
.dom-stat-icon.is-gold { color: #b45309; background: var(--gold-soft); }
body.dom-portal a.dom-stat-link { color: inherit; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
body.dom-portal a.dom-stat-link:hover { border-color: var(--blue); transform: translateY(-2px); }
.dom-stat-value {
  color: var(--navy);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.dom-stat-value.is-small { font-size: 1.45rem; }

/* Wykres słupkowy */
.dom-chart {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .75rem;
  height: 300px;
  padding-bottom: 1.8rem;
}
.dom-chart-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--gray);
  font-size: .75rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  transform: translateY(.5em);
}
.dom-chart-axis span { line-height: 0; }
.dom-chart-plot {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: .75rem;
  border-bottom: 2px solid var(--line);
  background-image: linear-gradient(to top, var(--line) 1px, transparent 1px);
  background-size: 100% calc(100% / 7);
  background-position: bottom;
}
.dom-chart-col {
  position: relative;
  display: flex;
  flex: 1 1 0;
  max-width: 72px;
  height: 100%;
  align-items: flex-end;
  justify-content: center;
}
.dom-chart-bar {
  position: relative;
  width: 100%;
  border-radius: 8px 8px 0 0;
  background: var(--blue);
  animation: dom-grow .7s ease-out both;
  transform-origin: bottom;
}
.dom-chart-bar.is-gold { background: var(--gold); }
.dom-chart-bar.is-gray { background: var(--gray); }
.dom-chart-bar span {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: .25rem;
  color: var(--ink);
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}
.dom-chart-label {
  position: absolute;
  top: calc(100% + .45rem);
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: .8rem;
  white-space: nowrap;
}
@keyframes dom-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Listy na pulpicie */
.dom-rows { list-style: none; margin: 0; padding: 0; }
.dom-rows li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name amount" "date status";
  gap: .1rem .75rem;
  padding: .7rem 0;
  border-top: 1px solid var(--line);
}
.dom-rows li:first-child { border-top: 0; padding-top: 0; }
.dom-row-name { grid-area: name; font-weight: 600; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
body.dom-portal .dom-row-name a { color: var(--ink); text-decoration: none; }
body.dom-portal .dom-row-name a:hover { color: var(--blue); }
.dom-row-amount { grid-area: amount; font-weight: 700; color: var(--navy); text-align: right; font-variant-numeric: tabular-nums; }
.dom-row-date { grid-area: date; color: var(--muted); font-size: .85rem; }
.dom-status,
.dom-tag {
  grid-area: status;
  justify-self: end;
  align-self: center;
  padding: .12rem .55rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.dom-status.is-due { color: var(--bad); background: var(--bad-soft); }
.dom-status.is-ok { color: var(--ok); background: var(--ok-soft); }
.dom-tag { color: #92400e; background: var(--gold-soft); text-transform: none; letter-spacing: 0; font-size: .78rem; }
body.dom-portal .dom-more {
  display: inline-block;
  margin-top: .75rem;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}

/* Wspólne elementy pozostałych stron */
.dom-hero h1 { margin: .4rem 0 .6rem; font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; }
.dom-lead { max-width: 40rem; color: var(--muted); font-size: 1.1rem; }
.dom-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.dom-card + .dom-card { margin-top: 1.25rem; }
.dom-grid > .dom-card + .dom-card,
.dom-dash .dom-card + .dom-card { margin-top: 0; }
.dom-narrow { max-width: 34rem; }
.dom-contact { max-width: 44rem; margin-inline: auto; }
.dom-muted { color: var(--muted); }
.dom-sum {
  margin: .2rem 0;
  color: var(--navy);
  font-size: clamp(2rem, 6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.dom-split { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }

.dom-list { list-style: none; margin: .6rem 0 0; padding: 0; }
.dom-list li { display: grid; gap: .35rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.dom-list strong { display: block; }
.dom-list-meta, .dom-actions { display: flex; flex-wrap: wrap; gap: .55rem .8rem; align-items: center; }
.dom-actions form { margin: 0; }
.dom-actions button,
.dom-actions a {
  background: transparent;
  color: var(--navy);
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.dom-pill,
.dom-badge {
  display: inline-block;
  border-radius: 999px;
  padding: .12rem .55rem;
  font-size: .8rem;
  font-weight: 600;
  color: #92400e;
  background: var(--gold-soft);
}
.dom-pill.is-ok { color: var(--ok); background: var(--ok-soft); }

.dom-bars { list-style: none; margin: .4rem 0 0; padding: 0; }
.dom-bars li {
  display: grid;
  grid-template-columns: minmax(6rem, 8.5rem) 1fr auto;
  gap: .6rem;
  align-items: center;
  margin: .6rem 0;
}
.dom-bar-track { display: block; height: .6rem; border-radius: 999px; background: var(--bg); overflow: hidden; }
.dom-bar-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--navy)); }
.dom-bar-sum { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }

.dom-btn, .dom-btn-quiet {
  display: inline-block;
  border-radius: 10px;
  padding: .65rem 1.15rem;
  min-height: 44px;
  border: 0;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
body.dom-portal .dom-btn { background: var(--navy); color: #fff; }
body.dom-portal .dom-btn:hover { background: var(--blue); color: #fff; }
body.dom-portal .dom-btn-quiet {
  margin-top: .8rem;
  background: transparent;
  color: var(--bad);
  border: 1px solid #fca5a5;
}
.dom-link { margin-left: .8rem; }

.dom-field { display: flex; flex-direction: column; gap: .35rem; margin: 0 0 .9rem; }
.dom-field span, .dom-check span { color: var(--muted); font-size: .92rem; font-weight: 600; }
.dom-field input,
.dom-field select,
.dom-field textarea {
  width: 100%;
  background: #fff;
  color: var(--ink);
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: .7rem .8rem;
  font: inherit;
}
.dom-field input:focus,
.dom-field select:focus,
.dom-field textarea:focus {
  outline: 3px solid var(--blue-soft);
  border-color: var(--blue);
}
.dom-check { display: flex; gap: .55rem; align-items: center; margin: 0 0 .9rem; }
.dom-note {
  padding: .7rem .9rem;
  border-radius: 10px;
  background: var(--blue-bg);
  border: 1px solid #bfdbfe;
  color: #1e40af;
}
.dom-note.is-bad { background: var(--bad-soft); border-color: #fca5a5; color: #991b1b; }
.dom-inline-form { margin-top: .4rem; }

.dom-foot {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}
.dom-foot p { margin: 0; }
body.dom-portal .dom-foot a { color: var(--navy); font-weight: 700; text-decoration: none; }

.dom-foot .dom-foot-author { margin-top: .35rem; font-size: .8rem; }
.cmplz-cookiebanner .cmplz-logo img { width: auto; max-height: 48px; border-radius: 50%; }

body.dom-portal .dom-welcome-app {
  display: inline-block;
  margin-top: .85rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #bfdbfe;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}

/* Budżet */
.dom-month-nav {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.dom-month-nav strong { color: var(--navy); font-size: 1.15rem; min-width: 10rem; text-align: center; }
body.dom-portal .dom-month-nav a {
  display: inline-grid;
  place-items: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 .7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #bfdbfe;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
body.dom-portal .dom-month-nav a:hover { border-color: var(--blue); }
.dom-month-now { font-size: .9rem; }
.dom-budget-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1rem;
}
@media (min-width: 900px) {
  .dom-budget-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.dom-budget-stats .dom-card { margin: 0; }
body.dom-portal .dom-budget-stat h2 { margin: 0 0 .3rem; color: var(--muted); font-size: .95rem; font-weight: 700; }
.dom-budget-stat .dom-stat-value { margin: 0; font-size: clamp(1.3rem, 3vw, 1.75rem); }
.dom-budget-stat .dom-muted { margin: .3rem 0 0; font-size: .88rem; }
.dom-budget-stat .dom-stat-value.is-empty { color: var(--muted); }
.dom-budget-stat.is-left { background: var(--ok-soft); border-color: #86efac; }
.dom-budget-stat.is-left .dom-stat-value { color: var(--ok); }
.dom-budget-stat.is-minus { background: var(--bad-soft); border-color: #fca5a5; }
.dom-budget-stat.is-minus .dom-stat-value { color: var(--bad); }
.dom-card.dom-budget-spend { margin: 0 0 1rem; }
.dom-budget-bar {
  height: 14px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.dom-budget-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy), var(--blue));
}
.dom-budget-bar.is-over span { background: var(--bad); }
.dom-income-field { max-width: 20rem; }
.dom-private {
  margin: 1rem 0 0;
  padding: .7rem .9rem;
  border-radius: 10px;
  background: var(--ok-soft);
  border: 1px solid #86efac;
  color: #166534;
  font-size: .92rem;
}
.dom-income-field input { font-size: 1.25rem; font-weight: 700; color: var(--navy); }

/* Strona w budowie (goście) */
.dom-soon {
  max-width: 44rem;
  margin: 2rem auto 1rem;
  padding: 2.5rem 1.5rem 2.25rem;
  text-align: center;
  border-radius: var(--radius);
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(245, 158, 11, .2), transparent 70%),
    linear-gradient(135deg, var(--blue-soft), var(--blue-bg));
  border: 1px solid #bfdbfe;
  box-shadow: var(--shadow);
}
.dom-soon-logo {
  display: block;
  margin: 0 auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 32px rgba(30, 58, 138, .25);
}
.dom-soon-badge {
  display: inline-block;
  margin: 1.25rem 0 .75rem;
  padding: .3rem .9rem;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid rgba(245, 158, 11, .5);
  color: #92400e;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
body.dom-portal .dom-soon h1 { margin: 0 0 .6rem; font-size: clamp(1.9rem, 5.5vw, 2.8rem); font-weight: 800; }
.dom-soon-lead { max-width: 34rem; margin: 0 auto 1.5rem; color: #1e40af; font-size: 1.1rem; }
.dom-soon-bar {
  width: min(320px, 80%);
  height: 8px;
  margin: 0 auto 1.75rem;
  border-radius: 999px;
  background: rgba(30, 58, 138, .12);
  overflow: hidden;
}
.dom-soon-bar span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  animation: dom-soon-slide 2.2s ease-in-out infinite;
}
@keyframes dom-soon-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}
.dom-soon .dom-muted { margin: 0 0 .6rem; }
.dom-soon-reg { margin: .9rem 0 0; font-weight: 600; }

/* Aplikacja na telefon */
.dom-app-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  margin: 0 0 1.5rem;
  padding: 2rem;
  border-radius: var(--radius);
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(245, 158, 11, .2), transparent 70%),
    linear-gradient(135deg, var(--blue-soft), var(--blue-bg));
  border: 1px solid #bfdbfe;
}
.dom-app-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 30px rgba(30, 58, 138, .25);
}
.dom-app-eyebrow {
  margin: 0 0 .35rem;
  color: #b45309;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
body.dom-portal .dom-app-hero h1 { margin: 0 0 .5rem; font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 800; }
.dom-app-lead { max-width: 40rem; margin: 0 0 1.25rem; color: #1e40af; font-size: 1.08rem; }
.dom-app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
body.dom-portal .dom-btn-big {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.5rem;
  font-size: 1.05rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(30, 58, 138, .3);
}
.dom-app-hero .dom-note { margin: 1rem 0 0; max-width: 40rem; }
.dom-app-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 0 0 1.25rem;
}
.dom-app-steps .dom-card + .dom-card { margin-top: 0; }
.dom-app-os { font-size: 1.8rem; }
body.dom-portal .dom-app-steps h2 { margin: .35rem 0 .6rem; }
.dom-app-steps ol { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.dom-app-steps li { margin: .3rem 0; }
.dom-app-steps strong { color: var(--ink); }
.dom-app-why ul { margin: 0; padding-left: 1.2rem; }
.dom-app-why li { margin: .45rem 0; color: var(--muted); }
.dom-app-why strong { color: var(--ink); }
.dom-app-author { margin: 1rem 0 0; font-size: .85rem; }

html.czu-standalone .pwa-hide { display: none !important; }
html:not(.czu-standalone) .pwa-only { display: none !important; }
.pwa-ios {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  padding: 16px;
  background: rgba(15, 23, 42, .55);
}
.pwa-ios[hidden] { display: none !important; }
.pwa-ios-card {
  width: min(420px, 100%);
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  color: #0f172a;
  margin-bottom: env(safe-area-inset-bottom, 0);
}
.pwa-ios-card h3 { margin: 0 0 10px; color: #1e3a8a; }
.pwa-ios-card ol { margin: 0 0 16px; padding-left: 1.2rem; color: #334155; }
.pwa-ios-card .btn {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: #1e3a8a;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (min-width: 720px) {
  .dom-app-hero { grid-template-columns: auto 1fr; padding: 2.25rem 2.5rem; }
  .dom-app-steps { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  .dom-grid { grid-template-columns: 1.1fr .9fr; }
  .dom-split { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .dom-list li { grid-template-columns: 1.4fr auto auto; align-items: center; }
}
@media (min-width: 960px) {
  .dom-dash { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .dom-top-in { gap: .25rem; }
  .dom-nav { width: 100%; margin: 0 -.5rem; }
}
@media (max-width: 520px) {
  .dom-brand-text small { display: none; }
  .dom-logo { width: 44px; height: 44px; }
  .dom-welcome { padding: 1.35rem 1.25rem; }
  .dom-card { padding: 1.15rem 1.1rem; }
  .dom-chart { height: 240px; gap: .4rem; }
  .dom-chart-plot { gap: .35rem; }
  .dom-chart-bar span { font-size: .65rem; }
  .dom-chart-label { font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  body.dom-portal * { scroll-behavior: auto; transition: none !important; animation: none !important; }
}

/* Ekran logowania WordPressa */
body.login {
  font-family: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #0f172a;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(59, 130, 246, .25), transparent 60%),
    #f1f5f9;
  min-height: 100vh;
}
body.login #login { width: min(24rem, calc(100% - 2rem)); padding: 6vh 0 3rem; }
body.login h1 a {
  background-image: url("assets/logo.png") !important;
  background-size: 110px !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  width: auto !important;
  height: auto !important;
  margin: 0 auto 1rem;
  padding-top: 120px;
  text-indent: 0 !important;
  overflow: visible !important;
  font-size: 1.2rem;
  font-weight: 800;
  color: #1e3a8a !important;
  text-decoration: none;
  box-shadow: none;
}
body.login .dom-login-note {
  margin: 0 0 1rem;
  text-align: center;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.4;
}
body.login form {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .06);
  padding: 26px 24px;
}
body.login label { color: #334155; font-weight: 600; }
body.login form .input,
body.login input[type="text"],
body.login input[type="password"] {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #0f172a;
  font-size: 1.05rem;
  box-shadow: none;
}
body.login .wp-core-ui .button-primary,
body.login input#wp-submit {
  background: #1e3a8a !important;
  border-color: #1e3a8a !important;
  color: #fff !important;
  border-radius: 10px;
  text-shadow: none !important;
  box-shadow: none !important;
  font-weight: 700;
  width: 100%;
  float: none !important;
  height: auto !important;
  padding: .7rem 1rem !important;
}
body.login .wp-core-ui .button-primary:hover,
body.login input#wp-submit:hover { background: #3b82f6 !important; border-color: #3b82f6 !important; }
body.login #nav,
body.login #backtoblog { text-align: center; }
body.login #nav a,
body.login #backtoblog a { color: #1e3a8a; }
body.login .language-switcher { display: none; }
body.login .message,
body.login #login_error {
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  border-left: 4px solid #3b82f6;
  box-shadow: none;
}
