/* tipLOVE – wspólny wygląd (SPECYFIKACJA 13.1, 13.5, 13.6; makiety/).
   Mobile first: style bazowe dla telefonu, rozszerzenia przez min-width
   (390 / 768 / 1024 / 1280 px). Jedna strona dla telefonu i komputera. */

/* --- Lato (self-hosted, SIL OFL 1.1; latin + latin-ext for Polish) ------------ */
@font-face { font-family: Lato; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/lato-latin-ext-400-normal.633f8feda218.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Lato; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/lato-latin-400-normal.e1b3b5908c9c.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Lato; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/lato-latin-ext-700-normal.33c906549bd6.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Lato; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/lato-latin-700-normal.de69cf9e514d.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Lato; font-style: normal; font-weight: 900; font-display: swap;
  src: url("../fonts/lato-latin-ext-900-normal.3d62dac47ae3.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Lato; font-style: normal; font-weight: 900; font-display: swap;
  src: url("../fonts/lato-latin-900-normal.1c6c65523675.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Lato; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/lato-latin-400-italic.efee2d080d7b.woff2") format("woff2"); }

/* --- tokens (13.1) ------------------------------------------------------------- */
:root {
  --bg: #1B0A44;
  --bg-deep: #12052E;
  --tile: #4B1F8E;
  --card: #2D1266;
  --card-border: #5B2BA0;
  --accent: #FFCC00;
  --on-accent: #000;          /* na żółtym zawsze czarny napis */
  --text: #fff;
  --text-soft: #E3D8F5;
  --error-bg: #FADADD;
  --error-text: #8A0F1D;
  --error-line: #E5484D;
  --ok-bg: #D8F0DE;
  --ok-text: #155724;
  --radius: 8px;              /* kafelki, przyciski, pola, karty, komunikaty */
  --radius-tag: 4px;          /* etykiety, znaczniki, zakładki paska */
  --shadow: rgba(50, 50, 93, .25) 0 2px 5px -1px, rgba(0, 0, 0, .3) 0 1px 3px -1px;
  --shadow-card: rgba(0, 0, 0, .55) 0 14px 34px 0;
  --font: Lato, Arial, sans-serif;
  --nav-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(520px 640px at 100% 0%, rgba(140, 70, 215, .42), transparent 72%),
    radial-gradient(520px 800px at 0% 55%, rgba(110, 50, 190, .26), transparent 72%),
    radial-gradient(520px 700px at 100% 100%, rgba(110, 50, 190, .3), transparent 72%),
    linear-gradient(#1F0D4E 0%, #260F5E 50%, #1B0A44 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}
body.has-bottom-nav { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; }

/* --- header ----------------------------------------------------------------------- */
.site-header {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  min-height: 92px; padding: 0 20px;
  background: linear-gradient(90deg, #241058 0%, #4B1F8E 55%, #2D1266 100%);
  border-bottom: 2px solid #6A2CB0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .5);
}
.logo { display: inline-flex; align-items: flex-end; gap: 6px; text-decoration: none; color: var(--text); }
.logo__word { font-weight: 700; font-size: 48px; letter-spacing: -1.6px; line-height: 1; }
.logo__word span { color: var(--accent); }
.logo__beta { font-style: italic; font-size: 14px; margin-bottom: 2px; color: var(--text); }
.top-nav { display: none; }

/* --- page layout --------------------------------------------------------------------- */
.page { width: 100%; max-width: 640px; margin: 0 auto; padding: 32px 20px 40px; }
.page--wide { max-width: 1200px; }

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px 20px 28px;
}
.card__inner { max-width: 280px; margin: 0 auto; }
.card__title {
  margin: 20px 0 32px; text-align: center;
  font-size: 26px; font-weight: 900; line-height: 1.1; text-transform: uppercase;
}
.card__lead { margin: 0 0 20px; color: var(--text-soft); font-size: 15px; text-align: center; }
.section-title { /* 13.6: nagłówek grupy pól, 20,8 px, wielkie litery, odstęp 50 px */
  margin: 50px 0 20px; font-size: 20.8px; font-weight: 900; text-transform: uppercase;
}
.section-title:first-child { margin-top: 0; }

/* --- forms (13.6) ---------------------------------------------------------------------- */
.field { margin: 0 0 16px; }
.field__label {
  display: block; margin: 0 0 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.field__input {
  display: block; width: 100%; min-height: 48px; padding: 0 14px;
  font: inherit; font-size: 16px; color: #111;
  background: #fff; border: 0; border-bottom: 3px solid var(--accent);
  border-radius: var(--radius);
}
textarea.field__input { padding: 12px 14px; min-height: 120px; resize: vertical; line-height: 1.4; }
.field__hint { margin: 6px 0 0; font-size: 12px; line-height: 1.35; color: var(--text-soft); }
.field__error { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: #FFB3B8; }
.field--invalid .field__input { border-bottom-color: var(--error-line); }
.field--check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }

/* --- buttons (13.6: 280 x 46, wyśrodkowane, nie rozciągnięte) ------------------------------ */
.btn {
  display: flex; align-items: center; justify-content: center;
  width: 280px; max-width: 100%; min-height: 46px; margin: 0 auto; padding: 0 16px;
  font: inherit; font-size: 14px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase;
  text-align: center; text-decoration: none; cursor: pointer;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.btn--primary { background: var(--accent); color: var(--on-accent); border: 2px solid #5C478A; }
.btn--outline { background: transparent; color: var(--text); border: 2px solid var(--accent); }
.btn:disabled, .btn[aria-disabled="true"] { background: #CFCFCF; color: #555; border-color: #CFCFCF; cursor: not-allowed; }
.btn + .btn { margin-top: 16px; }
.btn-stack { margin-top: 24px; }

.link-center { margin: 16px 0 0; text-align: center; font-size: 14px; }
.link-center a { font-weight: 700; }
.divider { display: flex; align-items: center; gap: 10px; margin: 24px 0 20px;
  font-size: 12px; color: var(--text-soft); }
.divider::before, .divider::after { content: ""; flex: 1; height: 2px; background: #fff; opacity: .9; }

/* --- messages ------------------------------------------------------------------------------ */
.alert { margin: 0 0 16px; padding: 10px 14px; border-radius: var(--radius);
  font-size: 13px; font-weight: 700; line-height: 1.35; }
.alert--error { background: var(--error-bg); color: var(--error-text); }
.alert--success { background: var(--ok-bg); color: var(--ok-text); }
.alert--info { background: #EDE4FB; color: #2D1266; }

.icon-badge { display: flex; align-items: center; justify-content: center;
  width: 96px; height: 96px; margin: 8px auto 0; border-radius: 50%; background: #FFF1C2; color: #111; }

/* --- bottom navigation (13.1: 5 zakładek, zaokrąglenie 4 px, odstęp 2 px) -------------------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
  background: var(--bg-deep); box-shadow: 0 -6px 16px rgba(0, 0, 0, .4);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 44px; border-radius: var(--radius-tag);
  color: var(--text); text-decoration: none; text-align: center;
  font-size: 11px; line-height: 1.1; text-transform: uppercase;
}
.bottom-nav a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.bottom-nav svg { width: 30px; height: 30px; }
.bottom-nav--public { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* --- tablet / desktop -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .page { padding-top: 36px; }
  .card { padding: 24px 40px 32px; }
  .card__inner { max-width: 400px; }
}
@media (min-width: 1024px) {
  /* 13.5: pasek górny zamiast dolnego */
  body.has-bottom-nav { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .site-header { justify-content: space-between; padding: 0 64px; }
  .top-nav { display: flex; align-items: center; gap: 4px; }
  .top-nav a {
    padding: 8px 16px; border-radius: var(--radius-tag);
    color: var(--text); font-size: 18px; font-weight: 700; text-decoration: none;
  }
  .top-nav a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
  .top-nav form { margin: 0; }
  .top-nav button { font: inherit; font-size: 18px; font-weight: 700; color: var(--text);
    background: none; border: 0; padding: 8px 16px; cursor: pointer; }
  body {
    background-image:
      radial-gradient(1000px 800px at 88% 0%, rgba(140, 70, 215, .42), transparent 72%),
      radial-gradient(900px 900px at 0% 52%, rgba(110, 50, 190, .26), transparent 72%),
      radial-gradient(1000px 800px at 100% 100%, rgba(110, 50, 190, .3), transparent 72%),
      linear-gradient(#1F0D4E 0%, #260F5E 50%, #1B0A44 100%);
  }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
.mt-16 { margin-top: 16px; }

/* --- registration forms (makiety Rejestracja*) ---------------------------------------- */
.field__error { margin: 8px 0 0; padding: 6px 12px; border-radius: var(--radius);
  background: var(--error-bg); color: var(--error-text); font-size: 12px; font-weight: 700; }
.field__error::before { content: "! "; }
.field__input--big { text-align: center; font-size: 22px; font-weight: 900; }
.field__hint--row { display: flex; justify-content: space-between; gap: 12px; }
.counter { flex: none; font-weight: 700; color: var(--text); }
.card__lead--left { text-align: left; }
.section-title { padding-bottom: 8px; border-bottom: 1px solid var(--card-border); }
.prompt { margin: 0 0 20px; color: var(--text-soft); font-size: 15px; }
.info-box { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 24px; padding: 18px 20px;
  border-radius: var(--radius); background: #4E1E96; color: var(--text-soft); font-size: 14px; }
.info-box strong { color: var(--text); font-size: 17px; font-weight: 400; }
.info-box .field { margin-bottom: 0; }
.chip { display: inline-block; padding: 3px 10px; border-radius: var(--radius-tag);
  background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.code-badge { margin: 0 0 16px; color: var(--text-soft); font-size: 14px; }
.code-badge strong { color: var(--accent); letter-spacing: .04em; }
.blik { border: 0; padding: 0; margin: 8px 0 16px; min-width: 0; }
.blik__label { padding: 0; margin-bottom: 8px; font-size: 20px; font-weight: 900; letter-spacing: .12em; }
.blik__digits { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.blik__digit { width: 100%; min-width: 0; height: 48px; text-align: center; font: inherit; font-size: 22px; font-weight: 900;
  color: #111; background: #fff; border: 0; border-bottom: 3px solid var(--accent); border-radius: var(--radius); }
.payment-element { margin: 16px 0; padding: 16px; border-radius: var(--radius); background: #fff; }

/* --- menu (makiety Menu, PC_Menu) ------------------------------------------------------- */
.menu-layout { display: grid; gap: 32px; }
.menu { display: flex; flex-direction: column; gap: 10px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 96px; padding: 12px 8px; border-radius: var(--radius); box-shadow: var(--shadow);
  background: var(--tile); color: var(--text); text-decoration: none; text-align: center;
  font-size: 12px; font-weight: 900; letter-spacing: .03em; text-transform: uppercase;
}
.tile svg { width: 32px; height: 32px; }
.tile--static { cursor: default; }
.tile__badge { position: absolute; top: 10px; right: 10px; min-width: 26px; height: 26px; padding: 0 6px;
  display: flex; align-items: center; justify-content: center; border-radius: 13px;
  background: var(--accent); color: var(--on-accent); font-size: 13px; }
.tile--wide { min-height: 50px; background: var(--accent); color: var(--on-accent); font-size: 16px; letter-spacing: .06em; }
.tile--low { min-height: 56px; }
.tile--pool { min-height: 56px; gap: 2px; }
.tile--pool strong { font-size: 16px; }
.tile--pool span { color: var(--accent); font-size: 10px; }
.menu-side { min-width: 0; }

/* --- voting (makiety Main, GlosowanieWspierajacy, PC_Glosowanie) ------------------------ */
.vote__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip--purple { background: #6A2CB0; color: var(--text); }
.vote__title { margin: 0 0 16px; font-size: 26px; font-weight: 900; line-height: 1.1; text-transform: uppercase; }
.vote__lead { margin: 0 0 16px; color: var(--text-soft); font-size: 15px; }
.vote__count { margin: 0 0 12px; font-size: 15px; }
.vote__privacy { margin-top: 16px; }
.countdown { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin: 0 0 16px; padding: 18px 20px; border-radius: var(--radius); box-shadow: var(--shadow);
  background: var(--accent); color: var(--on-accent); }
.countdown__label { display: block; font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.countdown__time { display: block; margin-top: 4px; font-size: 26px; font-weight: 900; }
.countdown__note { text-align: right; font-size: 14px; }
.cands { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cand { display: flex; gap: 14px; align-items: flex-start; padding: 16px; cursor: pointer;
  border: 2px solid #6A2CB0; border-radius: var(--radius); background: var(--tile); box-shadow: var(--shadow); }
.cand:has(input:checked) { border-color: var(--accent); }
.cand--own { cursor: default; opacity: .9; }
.cand input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--accent); }
.cand__body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.cand__title { font-weight: 900; text-transform: uppercase; overflow-wrap: anywhere; }
.cand__meta { font-size: 12px; color: var(--text-soft); }
.cand__text { color: var(--text-soft); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cand__text.is-open { display: block; }
.cand__more { padding: 0; border: 0; background: none; color: var(--accent); font: inherit;
  font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer; min-height: 24px; }

@media (min-width: 1024px) {
  .menu-layout { grid-template-columns: 280px minmax(0, 1fr); align-items: start; }
  .menu-side { padding: 24px 28px; border: 1px solid var(--card-border); border-radius: var(--radius);
    background: var(--card); box-shadow: var(--shadow-card); }
}
.text-center { text-align: center; }
.thanks { display: flex; flex-direction: column; gap: 8px; margin: 0 0 20px; padding: 16px 14px;
  border-radius: var(--radius); background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow); }
.thanks strong { font-size: 19px; }

/* --- results (makiety Wyniki, WynikRundy, Finalowy, WyborWspierajacego) -------------------- */
.result { margin-bottom: 32px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.tabs__item { padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center;
  border-radius: var(--radius); background: #fff; color: #111; font-weight: 900; font-size: 14px;
  text-decoration: none; box-shadow: var(--shadow); }
.tabs__item[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.group-picker { max-width: 280px; margin-bottom: 16px; }
.res { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--radius);
  background: var(--tile); border: 2px solid #6A2CB0; box-shadow: var(--shadow); }
.res--winner { border-color: var(--accent); }
.res__head { display: flex; align-items: center; gap: 10px; }
.res__head .cand__title { flex: 1; min-width: 0; }
.res__votes { font-weight: 900; font-size: 18px; }
.res__bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.res__bar span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.table { width: 100%; margin: 0 0 20px; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 8px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-soft); border-bottom: 2px solid #fff; }
.table td { padding: 10px 6px; border-bottom: 1px solid rgba(255, 255, 255, .5); }
.table .num { text-align: right; }
.table .is-winner td { color: var(--accent); font-weight: 900; }

/* --- Mój kod i QR (13.4) ------------------------------------------------------------------- */
.code-card__title { margin: 4px 0 12px; font-size: 26px; font-weight: 900; text-transform: uppercase; }
.code-card__lead { margin: 0 0 20px; color: var(--text-soft); font-size: 15px; }
.code-panel { display: flex; flex-direction: column; gap: 20px; padding: 20px;
  background: var(--bg-deep); border: 1px solid var(--card-border); border-radius: var(--radius); }
.code-panel__qr { width: 100%; max-width: 260px; margin: 0 auto; padding: 20px; background: #fff;
  border: 3px solid #5C478A; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.code-panel__qr svg { display: block; width: 100%; height: auto; }
.code-panel__side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.code-panel__label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.code-panel__code { margin: 0; font-size: 32px; font-weight: 900; line-height: 1.1; overflow-wrap: anywhere; }
.code-panel__link { margin: 0; font-size: 14px; color: var(--text-soft); overflow-wrap: break-word; }
.code-panel__note { margin: 0; font-size: 13px; color: var(--text-soft); }
.code-panel .btn { margin: 0; width: 100%; }
.code-panel .btn + .btn { margin-top: 0; }
.code-change, .code-more { margin: 0; }
.code-change > summary, .code-more > summary { list-style: none; cursor: pointer; }
.code-change > summary::-webkit-details-marker, .code-more > summary::-webkit-details-marker { display: none; }
.code-change[open] > summary { display: none; }
.code-change form { margin-top: 4px; }
.code-change form .btn + .btn { margin-top: 10px; }
.warn-box { margin: 0 0 16px; padding: 12px 14px; background: var(--accent); color: var(--on-accent);
  border-radius: var(--radius); font-size: 13px; font-weight: 700; line-height: 1.35; }
.btn--more { background: #4B1F8E; color: var(--text); border: 2px solid #8D6BD1; }
.code-more > summary::after { content: "▾"; margin-left: 8px; }
.code-more[open] > summary::after { content: "▴"; }
.code-more__list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
@media (min-width: 768px) {
  .code-card { max-width: 760px; margin: 0 auto; padding: 28px 32px 32px; }
  .code-panel { flex-direction: row; align-items: center; padding: 24px; gap: 24px; }
  .code-panel__qr { flex: 0 0 260px; margin: 0; }
  .code-panel__side { flex: 1; }
}
.page--wide:has(> .code-card) > .alert { max-width: 760px; margin-left: auto; margin-right: auto; }

/* --- Mój projekt (makiety Panel, PC_Panel) --------------------------------------------- */
.project-layout { display: grid; gap: 24px; }
.project-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.project__title { margin: 0 0 4px; font-size: 26px; font-weight: 900; text-transform: uppercase; }
.project-side { display: flex; flex-direction: column; gap: 10px; }
.account { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
.account__role { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--on-accent); border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: 12px; font-weight: 900; text-transform: uppercase; text-align: center; padding: 12px 6px; }
.account__role svg { width: 40px; height: 40px; }
.account__rows { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.account__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 46px;
  padding: 0 4px 0 14px; background: var(--tile); border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: 14px; min-width: 0; }
.account__row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account__edit { display: flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px;
  color: var(--text); background: rgba(0, 0, 0, .18); border: 0; border-radius: var(--radius-tag); cursor: pointer; }
.account__edit svg { width: 20px; height: 20px; }
.account__edit[aria-expanded="true"] { background: var(--accent); color: var(--on-accent); }
.panel-form { padding: 20px; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.panel-form__title { margin: 0 0 16px; font-size: 20px; font-weight: 900; text-transform: uppercase; }
.info-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px;
  background: var(--tile); border-radius: var(--radius); box-shadow: var(--shadow); }
.info-card--project { display: block; }
.info-card__label { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.info-card__value { margin: 0; font-size: 24px; font-weight: 900; }
.info-card__note { margin: 12px 0 0; font-size: 13px; color: var(--text-soft); }
.info-card > div > .info-card__note:first-of-type { margin-top: 0; }
.project-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.project-card__heading { margin: 0; font-size: 20px; font-weight: 700; }
.project-card__count { font-size: 12px; font-weight: 700; white-space: nowrap; }
.project-card__name { margin: 0 0 16px; font-size: 20px; font-weight: 900; overflow-wrap: anywhere; }
.project-card__body > summary { list-style: none; }
.project-card__body > summary::-webkit-details-marker { display: none; }
.project-card__body > summary::after { content: "▾"; margin-left: 8px; }
.project-card__body[open] > summary::after { content: "▴"; }
.project-card__body p { margin: 12px 0 0; line-height: 1.5; overflow-wrap: anywhere; }
.btn--small { width: auto; min-height: 42px; margin: 0; display: inline-flex; padding: 0 18px; text-transform: none; letter-spacing: 0; }
.project-card__body, .project-card__fix { display: inline-block; vertical-align: top; margin: 0 8px 0 0; }
.project-card__fix { display: inline-flex; gap: 8px; margin-top: 0; }
.project-card__fix svg { width: 18px; height: 18px; }
.project-card__body[open] { display: block; margin-bottom: 12px; }
.tile--stat strong { font-size: 30px; line-height: 1; }
.tile--votes { min-height: 96px; }
.tile--votes span { text-transform: none; font-weight: 700; }
.tile--voting { flex-direction: column; gap: 2px; min-height: 64px; }
.tile--voting__state { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 700; }
@media (min-width: 1024px) {
  .project-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
  .account { grid-template-columns: 132px minmax(0, 1fr); }
}

/* --- Więcej, Regulamin, Harmonogram (makiety Wiecej, Regulamin, ZmianaRegulaminu) -------- */
.more__grid { display: grid; gap: 24px; }
.more__heading { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }
.more__footer { margin: 28px 0 0; text-align: center; font-size: 13px; color: var(--text-soft); }
.link-list { display: flex; flex-direction: column; gap: 2px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.link-list form { margin: 0; }
.link-list__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  min-height: 60px; padding: 10px 18px; background: var(--tile); color: var(--text); text-decoration: none;
  border: 0; font: inherit; text-align: left; cursor: pointer; }
.link-list__item > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.link-list__item strong { font-size: 16px; }
.link-list__item small { font-size: 13px; color: var(--text-soft); }
.link-list__item > span[aria-hidden] { color: var(--accent); font-size: 24px; line-height: 1; }
a.link-list__item:hover, button.link-list__item:hover { background: #5A27A6; }
.link-list__item--soon { cursor: default; opacity: .75; }
.legal { max-width: 760px; margin: 0 auto; }
.legal__lead { margin: 0 0 20px; color: var(--text-soft); }
.legal__section { margin: 0 0 14px; padding: 16px 18px; background: var(--tile); border-radius: var(--radius); }
.legal__heading { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.legal__section p { margin: 0 0 8px; line-height: 1.55; overflow-wrap: anywhere; }
.legal__section p:last-child { margin-bottom: 0; }
.legal__version { margin: 18px 0 0; text-align: center; font-size: 13px; color: var(--text-soft); }
.legal__summary { margin: 0; line-height: 1.5; }
.legal__logout { margin-top: 20px; text-align: center; font-size: 13px; color: var(--text-soft); }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--accent); text-decoration: underline; cursor: pointer; }
.card__inner--wide { max-width: 520px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.timeline__item { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; background: var(--tile);
  border-left: 4px solid #8D6BD1; border-radius: var(--radius); }
.timeline__item strong { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 16px; }
.timeline__item span { font-size: 14px; color: var(--text-soft); }
.timeline__item .chip { font-size: 11px; color: var(--on-accent); }
.timeline__item .chip--purple { color: var(--text); }
.timeline__item--done { opacity: .7; border-left-color: #6A2CB0; }
.timeline__item--now { border-left-color: var(--accent); }
@media (min-width: 1024px) {
  .more { max-width: 1000px; margin: 0 auto; }
  .more__grid { grid-template-columns: 1fr 1fr; gap: 28px 32px; }
}

/* --- Strona główna (makiety StronaPubliczna, PC_Strona; wersja A, 13.2 p. 6) ----------- */
.top-nav:has(.header-login) { display: flex; }
.site-header:has(.header-login) { justify-content: space-between; }
.top-nav a.header-login { padding: 8px 18px; border: 2px solid var(--accent); border-radius: 999px;
  color: var(--text); font-size: 15px; font-weight: 700; letter-spacing: .02em; text-decoration: none; background: none; }
.top-nav a.header-login:hover { background: var(--accent); color: var(--on-accent); }
.page--home { padding-top: 24px; }
body:has(.page--home) { background-color: #12062F; }
.home { display: flex; flex-direction: column; gap: 28px; }
.marked { position: relative; display: inline-block; white-space: nowrap; }
.marked .swash { position: absolute; left: -4%; right: -4%; bottom: -10px; width: 108%; height: 10px; color: #E9E2FF; opacity: .85; }
.hero { text-align: center; padding: 8px 0 18px; }
.hero__kicker { margin: 0 0 6px; font-size: 14px; font-weight: 900; letter-spacing: .25em; text-transform: uppercase; }
.hero__title { margin: 0; font-size: 72px; line-height: 1; font-weight: 900; letter-spacing: .02em; text-transform: uppercase;
  color: var(--accent); text-shadow: 0 0 24px rgba(255, 204, 0, .35), 0 4px 0 rgba(0, 0, 0, .35); }
.hero__underline { display: block; width: 260px; height: 16px; margin: 2px auto 0; color: var(--accent); }
.home-card { position: relative; padding: 28px 18px 24px; background: linear-gradient(160deg, #4B1F8E 0%, #2D1266 60%, #23104F 100%);
  border: 1px solid #5C3A9E; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.home-card--pool { margin-top: 30px; border-top-color: #E9B800; border-left-color: #9C7A2A; }
.home-card__tab { position: absolute; top: -30px; right: 30px; margin: 0; padding: 4px 18px; height: 30px; line-height: 22px;
  background: #F00; color: #fff; font-size: 15px; border-radius: var(--radius) var(--radius) 0 0; white-space: nowrap; }
.home-card__tab strong { font-style: italic; }
.home-card__grid { display: grid; gap: 22px; }
.home-card__col { min-width: 0; }
.code-form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.code-form__input { text-align: left; }
.code-form__btn { margin: 0; }
.home-card__hint { margin: 18px 0 0; font-size: 15px; font-weight: 700; line-height: 1.5; }
.home-card__label { margin: 0 0 18px; text-align: center; font-size: 22px; font-weight: 900; }
.pool { margin: 0; text-align: center; font-size: 28px; text-transform: uppercase; }
.pool strong { color: var(--accent); font-weight: 900; text-transform: none; }
.home-card__countdown { margin-top: 26px; text-align: center; }
.countdown__label { margin: 0 0 4px; font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.countdown__value { margin: 0; font-size: 32px; font-weight: 900; letter-spacing: .06em; color: var(--accent);
  text-shadow: 0 0 18px rgba(255, 204, 0, .35); font-variant-numeric: tabular-nums; }
.countdown__value--text a { color: var(--accent); }
.home-pay form { margin: 0; }
.home-pay .btn { margin-top: 14px; }
.home-card__col--join { text-align: center; align-self: center; }
.join__lead { margin: 0; font-size: 20px; font-weight: 900; }
.join__cta { margin: 6px 0 0; font-size: 22px; font-weight: 900; color: var(--accent); text-transform: uppercase; }
.how { text-align: center; padding-top: 24px; }
.how__title { margin: 0; font-size: 34px; font-weight: 900; }
.how__lead { margin: 22px 0 28px; color: var(--text-soft); }
.how__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.how__step { padding: 26px 20px; background: linear-gradient(160deg, #4B1F8E, #2D1266); border: 1px solid #5C3A9E;
  border-radius: var(--radius); box-shadow: var(--shadow-card); }
.how__step h3 { margin: 0 0 10px; font-size: 20px; font-weight: 900; text-transform: uppercase; }
.how__step p { margin: 0; color: var(--text-soft); line-height: 1.55; }
.how__buttons { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 32px; }
.how__buttons .btn { margin: 0; }
.home__footer { display: none; margin: 8px 0 0; text-align: center; font-size: 13px; color: var(--text-soft); }
@media (min-width: 768px) {
  .hero__title { font-size: 120px; }
  .hero__underline { width: 470px; height: 22px; }
  .hero__kicker { font-size: 20px; }
  .home-card { padding: 40px 32px 30px; }
  .home-card__grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 32px; }
  .code-form { flex-direction: row; }
  .code-form__input { flex: 1; min-width: 0; }
  .code-form__btn { width: auto; flex: none; padding: 0 26px; }
  .home-card__grid--join { grid-template-columns: 3fr 2fr; }
  .how__steps { grid-template-columns: repeat(2, 1fr); }
  .how__buttons { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .how__buttons .btn { width: auto; padding: 0 32px; }
}
@media (min-width: 1024px) {
  body:has(.page--home) { background-color: var(--bg); }
  .home { max-width: 980px; margin: 0 auto; }
  .how__steps { grid-template-columns: repeat(4, 1fr); }
  .how__title { font-size: 48px; }
  .home__footer { display: block; }  /* telefon: bez pasa „Organizator” (13.2 p. 6) */
}

/* --- Sponsorzy, Laureaci (makiety Sponsorzy, PC_Sponsorzy_user) ------------------------- */
.sponsors, .laureates { max-width: 1152px; margin: 0 auto; }
.sponsors__lead { margin: 0 0 20px; color: var(--text-soft); }
.sponsors__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sponsor { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 120px;
  padding: 20px; background: #fff; color: #1A1A1A; border-radius: var(--radius); box-shadow: var(--shadow);
  text-decoration: none; font-weight: 700; }
.sponsor:hover, .sponsor:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sponsor__logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 96px; }
.sponsor__logo img { max-width: 100%; max-height: 96px; object-fit: contain; }
.sponsor__placeholder { display: flex; align-items: center; justify-content: center; width: 64px; height: 40px;
  border: 2px dashed #B9A6E0; border-radius: var(--radius-tag); background: #EEE8FA; color: #7B68A8; font-size: 11px; letter-spacing: .08em; }
.sponsor__name span[aria-hidden] { color: #6A2CB0; }
.sponsors__note { margin: 20px 0 0; text-align: center; font-size: 13px; color: var(--text-soft); }
.laureate { margin: 0 0 16px; padding: 20px; background: var(--tile); border-radius: var(--radius); box-shadow: var(--shadow); }
.laureate__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.laureate__date { font-size: 13px; color: var(--text-soft); }
.laureate__title { margin: 0 0 4px; font-size: 24px; font-weight: 900; overflow-wrap: anywhere; }
.laureate__who { margin: 0 0 14px; color: var(--text-soft); }
.laureate__supporter { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .15); }
.laureate__picked { margin: 0; font-size: 18px; font-weight: 700; color: var(--accent); }
@media (min-width: 768px) {
  .sponsors__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1024px) {
  .sponsors__grid { grid-template-columns: repeat(4, 1fr); }
  .sponsor { min-height: 170px; }
  .laureates { max-width: 900px; }
}

/* --- Zgłoś nieprawidłowość ---------------------------------------------------------------- */
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; }
.radio-list { display: flex; flex-direction: column; gap: 8px; }
.radio { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; background: var(--tile);
  border-radius: var(--radius); box-shadow: var(--shadow); cursor: pointer; font-size: 15px; }
.radio input { width: 20px; height: 20px; accent-color: #FFCC00; flex: none; }
.radio:has(input:checked) { outline: 2px solid var(--accent); }

/* Powiadomienia, Historia, Moje dane (13.2) */
.info-card__heading { margin: 0 0 8px; font-size: 18px; font-weight: 900; }
.info-card--project > p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.info-card--project > p:last-child, .info-card--project > form:last-child { margin-bottom: 0; }
.info-card--danger { border-left: 4px solid var(--error-line); }
.btn--danger { background: var(--error-line); color: #fff; }
.btn--danger:disabled { opacity: .5; cursor: not-allowed; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.switch-row small { display: block; margin-top: 4px; font-size: 13px; color: var(--text-soft); }
.switch { appearance: none; flex: none; position: relative; width: 48px; height: 28px; margin: 0;
  background: #6A2CB0; border-radius: 14px; cursor: pointer; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  background: #fff; border-radius: 50%; transition: transform .15s; }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(20px); background: #1A1A1A; }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.filter-chips .chip { text-decoration: none; font-size: 13px; padding: 5px 12px; }
.history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.history__item { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 16px;
  background: var(--tile); border-radius: var(--radius); box-shadow: var(--shadow); border-left: 4px solid #6A2CB0; }
.history__item--votes { border-left-color: var(--accent); }
.history__item--payments { border-left-color: #2FBF71; }
.history__type { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.history__date { grid-row: 1; grid-column: 2; font-size: 12px; color: var(--text-soft); white-space: nowrap; }
.history__text { grid-column: 1 / -1; font-size: 14px; overflow-wrap: anywhere; }
.history__empty { padding: 16px; color: var(--text-soft); }

/* Nowa edycja (4.9) */
.radio small { color: var(--text-soft); font-size: 13px; }
.radio span { padding: 10px 0; }
.banner-new-edition { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px;
  padding: 14px 18px; background: var(--accent); color: var(--on-accent); border-radius: var(--radius);
  box-shadow: var(--shadow); text-decoration: none; }
.banner-new-edition strong { display: block; font-weight: 900; }
.banner-new-edition small { display: block; margin-top: 2px; font-size: 13px; }
.banner-new-edition > span:last-child { font-size: 24px; font-weight: 900; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--tile); border-radius: var(--radius); box-shadow: var(--shadow); }
.faq-item > summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; cursor: pointer;
  font-weight: 900; list-style: none; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq-item[open] > summary::after { content: "–"; }
.faq-item > p { margin: 0; padding: 0 18px 16px; font-size: 15px; line-height: 1.55; color: var(--text-soft); }
.card-print-note { margin: 4px 0 0; font-size: 14px; text-align: left; }
