:root {
  --ink: #0B1426;
  --ink-soft: #1E293B;
  --muted: #64748B;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --bg: #FFFFFF;
  --bg-tint: #F8FAFC;
  --bg-blue-tint: #EFF6FF;
  --primary: #2563EB;
  --primary-strong: #1D4ED8;
  --primary-soft: #DBEAFE;
  --primary-ink: #1E3A8A;
  --accent-rose: #FB7185;
  --accent-rose-soft: #FFE4E6;
  --accent-amber: #F59E0B;
  --accent-amber-soft: #FEF3C7;
  --accent-green: #10B981;
  --accent-green-soft: #D1FAE5;
  --accent-red: #EF4444;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 1px rgba(15,23,42,.03);
  --shadow-md: 0 8px 24px -8px rgba(15,23,42,.12), 0 2px 6px -2px rgba(15,23,42,.06);
  --shadow-lg: 0 30px 60px -20px rgba(37,99,235,.18), 0 8px 24px -8px rgba(15,23,42,.10);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
}

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

html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

.mono { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }

/* ───── layout ───── */
.app-shell { position: relative; min-height: 100dvh; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }
.container--wide { max-width: 1280px; }

.topbar {
  position: relative; z-index: 2;
  padding: 22px 24px 0;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1280px; margin: 0 auto;
}
.topbar .help {
  display: inline-flex; gap: 14px; align-items: center;
  color: var(--muted); font-size: 14px; font-weight: 600;
}
.topbar .help a { color: var(--ink-soft); border-bottom: 1px dashed var(--line-strong); padding-bottom: 1px; }
.topbar .help a:hover { color: var(--primary); border-bottom-color: var(--primary); }

.brand {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-weight: 800; font-size: 18px; letter-spacing: -.01em;
}
.brand .mark {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  background: var(--ink); color: white;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 14px;
  transform: translateY(2px);
}
.brand .name { color: var(--ink); }
.brand .name small { color: var(--primary); font-weight: 800; font-size: 14px; }
.brand .product {
  margin-left: 10px; padding-left: 10px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted); font-weight: 600; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase;
}

/* ───── decorative background ───── */
.deco {
  position: absolute; pointer-events: none; z-index: 0;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .55;
}
.deco--blue { background: radial-gradient(closest-side, var(--primary-soft), transparent 70%); }
.deco--rose { background: radial-gradient(closest-side, var(--accent-rose-soft), transparent 70%); }

/* ───── pill ───── */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--bg-blue-tint);
  color: var(--primary-ink);
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: 13px;
}
.pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,.15);
  animation: pulse 2.4s ease-in-out infinite;
}
.pill--amber {
  background: var(--accent-amber-soft);
  color: #92400E;
  border-color: #FCD34D;
}
.pill--amber .dot { background: var(--accent-amber); box-shadow: 0 0 0 4px rgba(245,158,11,.18); }
.pill--green {
  background: var(--accent-green-soft);
  color: #065F46;
  border-color: #6EE7B7;
}
.pill--green .dot { background: var(--accent-green); box-shadow: 0 0 0 4px rgba(16,185,129,.18); }
.pill--rose {
  background: var(--accent-rose-soft);
  color: #9F1239;
  border-color: #FDA4AF;
}
.pill--rose .dot { background: var(--accent-rose); box-shadow: 0 0 0 4px rgba(251,113,133,.18); }
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(37,99,235,.15); }
  50%     { box-shadow: 0 0 0 9px rgba(37,99,235,0); }
}

/* ───── buttons ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: 15px;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 22px -10px rgba(37,99,235,.6), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn--primary:hover { background: var(--primary-strong); box-shadow: 0 12px 32px -10px rgba(37,99,235,.7); }
.btn--ghost {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { background: var(--bg-tint); }
.btn--ink {
  background: var(--ink);
  color: white;
}
.btn--ink:hover { background: var(--ink-soft); }
.btn--xl { padding: 18px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ───── card ───── */
.card {
  position: relative; z-index: 1;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.card--padded { padding: 36px; }
.card--padded-sm { padding: 22px; }

/* ───── form ───── */
.form-section + .form-section { margin-top: 36px; padding-top: 32px; border-top: 1px dashed var(--line); }
.form-section-title {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  font-weight: 800; font-size: 20px; letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 22px;
}
.form-section-title .num {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  background: var(--ink); color: white;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 13px;
  transform: translateY(2px);
}
.form-section-title .hint {
  margin-left: auto; font-weight: 500; font-size: 13px; color: var(--muted);
  letter-spacing: 0; text-transform: none;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }

.field {
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
}
.field--full { grid-column: 1 / -1; }
.field > .field-label,
.field > label > span {
  font-weight: 700; font-size: 13px; color: var(--ink-soft);
  display: flex; align-items: baseline; gap: 8px;
}
.field-label em, .field > span em { color: var(--primary); font-style: normal; font-size: 14px; }
.field-label small, .field > span small {
  font-weight: 500; font-size: 12px; color: var(--muted); margin-left: auto;
}
.field input, .field textarea, .field select {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 15px; font-weight: 500;
  width: 100%;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #94A3B8; font-weight: 500; }
.field input:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,.14);
}
.field .err {
  font-size: 12px; color: #B91C1C; font-weight: 600;
}

/* ───── AI fill button ───── */
.ai-fill {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 16px 18px;
  background: linear-gradient(95deg, #EFF6FF 0%, #FEF3F2 100%);
  border: 1px dashed #93C5FD;
  border-radius: var(--radius);
  text-align: left;
  transition: transform .12s ease, box-shadow .15s ease, background .2s ease;
  position: relative;
  overflow: hidden;
}
.ai-fill:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -16px rgba(37,99,235,.35);
  background: linear-gradient(95deg, #DBEAFE 0%, #FEE4E2 100%);
}
.ai-fill .sparkle {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  background: white;
  border-radius: 10px;
  border: 1px solid #BFDBFE;
  font-size: 16px;
  flex-shrink: 0;
}
.ai-fill .copy { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ai-fill .copy strong { font-weight: 800; font-size: 14px; color: var(--primary-ink); }
.ai-fill .copy span { font-size: 13px; color: var(--muted); font-weight: 500; }
.ai-fill .arr { color: var(--primary); font-weight: 800; font-size: 18px; transition: transform .15s ease; }
.ai-fill:hover .arr { transform: translateX(3px); }
.ai-fill[disabled] { cursor: wait; }
.ai-fill[disabled] .sparkle { animation: spin 1.4s linear infinite; }

/* ───── consent + form actions ───── */
.consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--muted); font-weight: 500;
}
.consent input[type=checkbox] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 5px; background: white;
  display: grid; place-items: center;
  cursor: pointer; flex-shrink: 0;
  transition: all .12s ease;
  margin-top: 1px;
}
.consent input[type=checkbox]:checked {
  background: var(--primary);
  border-color: var(--primary);
}
.consent input[type=checkbox]:checked::after {
  content: '✓'; color: white; font-size: 13px; font-weight: 800;
}
.consent a { color: var(--primary-strong); border-bottom: 1px dashed currentColor; }
.consent label { cursor: pointer; }

.form-actions {
  margin-top: 32px;
  display: flex; flex-direction: column; gap: 16px;
}

/* ───── messages (Django messages framework) ───── */
.flash {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 14px;
  margin-bottom: 16px;
  border: 1px solid;
}
.flash--error { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.flash--success { background: var(--accent-green-soft); color: #065F46; border-color: #6EE7B7; }
.flash--info { background: var(--bg-blue-tint); color: var(--primary-ink); border-color: #BFDBFE; }

/* ───── hero (home) ───── */
.hero {
  position: relative; z-index: 1;
  max-width: 760px; margin: 0 auto;
  padding: 56px 24px 36px;
  text-align: center;
}
.hero h1 {
  font-weight: 800; font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05; letter-spacing: -.025em;
  color: var(--ink);
  margin: 18px 0 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--primary);
  position: relative;
}
.hero h1 em::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -6px; height: 8px;
  background: var(--primary-soft);
  border-radius: 4px;
  z-index: -1;
}
.hero .lede {
  color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto;
}

/* ───── stats strip (landing PR4 sexy) ───── */
.stats-strip {
  max-width: 1080px; margin: 56px auto 0; padding: 0 24px;
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.stat-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
  transition: border-color .15s ease, transform .15s ease;
}
.stat-item:hover { border-color: #BFDBFE; transform: translateY(-2px); }
.stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px; font-weight: 700;
  color: var(--primary-strong);
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
.stat-label { color: var(--muted); font-size: 13px; line-height: 1.4; }

/* ───── benefits + section heads ───── */
.benefits-head {
  max-width: 760px; margin: 80px auto 28px;
  text-align: center; padding: 0 24px;
}
.benefits-head h2 {
  font-size: 36px; font-weight: 800; letter-spacing: -.02em;
  color: var(--ink); margin-top: 12px;
}
.benefits-head h2 em {
  font-style: normal;
  background: linear-gradient(120deg, #2563EB 30%, #7C3AED 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.benefits-head .lede { font-size: 16px; margin-top: 12px; }

.benefits {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
}
.benefits-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.benefit-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.benefit-card:hover { border-color: #BFDBFE; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.benefit-ico {
  font-size: 28px;
  margin-bottom: 10px;
  display: inline-block;
}
.benefit-card h3 {
  font-weight: 800; font-size: 18px; letter-spacing: -.01em;
  color: var(--ink); margin-bottom: 8px;
}
.benefit-card p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ───── for whom ───── */
.for-whom {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
}
.for-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.for-card {
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .15s ease;
}
.for-card:hover { border-color: var(--primary-soft); }
.for-card h3 {
  font-weight: 800; font-size: 17px; letter-spacing: -.01em;
  color: var(--ink); margin-bottom: 10px;
}
.for-card p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ───── FAQ ───── */
.faq {
  max-width: 760px; margin: 0 auto 64px; padding: 0 24px;
}
.faq-list {
  display: flex; flex-direction: column; gap: 10px;
}
.faq-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: border-color .15s ease;
}
.faq-item[open] { border-color: var(--primary-soft); }
.faq-item summary {
  padding: 18px 22px;
  font-weight: 700; font-size: 15px;
  color: var(--ink-soft);
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px; font-weight: 400;
  color: var(--primary-strong);
  transition: transform .15s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding: 0 22px 20px;
  color: var(--muted); font-size: 14px; line-height: 1.6;
}

/* ───── final CTA ───── */
.final-cta {
  max-width: 760px; margin: 24px auto 56px;
  padding: 48px 32px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-blue-tint) 0%, var(--bg-tint) 100%);
  border: 1px solid var(--primary-soft);
  border-radius: var(--radius-lg);
}
.final-cta h2 {
  font-size: 30px; font-weight: 800; letter-spacing: -.02em;
  color: var(--ink); margin-bottom: 10px;
}
.final-cta h2 em {
  font-style: normal;
  background: linear-gradient(120deg, #2563EB 30%, #7C3AED 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.final-cta p { color: var(--muted); font-size: 16px; max-width: 480px; margin: 0 auto; }

/* ───── how it works (landing PR4) ───── */
.how-it-works { max-width: 1080px; margin: 56px auto 0; padding: 0 24px; }
.how-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.how-step {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.how-step:hover { border-color: #BFDBFE; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.how-num {
  width: 36px; height: 36px;
  background: var(--bg-blue-tint);
  color: var(--primary-strong);
  font-weight: 800; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; margin-bottom: 12px;
}
.how-step h3 {
  font-weight: 800; font-size: 17px; letter-spacing: -.01em;
  color: var(--ink); margin-bottom: 6px;
}
.how-step p { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ───── event list (landing globalny PR2) ───── */
.event-list { display: flex; flex-direction: column; gap: 16px; max-width: 820px; margin: 0 auto; padding: 0 24px; }
.event-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 28px 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.event-card:hover { border-color: #BFDBFE; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.event-card .ec-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.event-card h3 {
  font-weight: 800; font-size: 22px; letter-spacing: -.015em; color: var(--ink);
}
.event-card .meta {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  font-size: 14px; color: var(--muted); font-weight: 500;
}
.event-card .meta strong { color: var(--ink-soft); font-weight: 700; }
.event-card .ec-loc {
  font-size: 14px; color: var(--ink-soft); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; margin-top: 2px;
}
.event-card .ec-desc {
  color: var(--muted); font-size: 15px; line-height: 1.55;
  margin-top: 4px;
}
.event-card .ec-price {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--primary-strong);
  background: var(--bg-blue-tint); padding: 6px 12px; border-radius: 999px;
}
.event-card .ec-mode {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  background: var(--bg-tint); padding: 4px 10px; border-radius: 6px;
  border: 1px solid var(--line);
}
.event-card .ec-actions { display: flex; gap: 10px; align-items: center; }
@media (min-width: 820px) {
  .event-card { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .event-card .ec-body { flex: 1; }
  .event-card .ec-actions { flex-shrink: 0; padding-top: 4px; }
}

.empty-state {
  max-width: 760px; margin: 0 auto;
  padding: 48px 24px;
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  background: var(--bg-tint);
}
.empty-state h3 { font-size: 18px; font-weight: 800; color: var(--ink-soft); margin-bottom: 6px; }
.empty-state p { color: var(--muted); font-size: 14px; }

/* ───── profile chip (logged-in summary) ───── */
.profile-chip {
  max-width: 760px; margin: 0 auto 20px;
  padding: 16px 22px;
  background: var(--accent-green-soft);
  border: 1px solid #6EE7B7;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.profile-chip .ico {
  width: 36px; height: 36px;
  background: white; border-radius: 50%;
  display: grid; place-items: center;
  color: #065F46; font-weight: 800;
  border: 1px solid #6EE7B7;
}
.profile-chip .who { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.profile-chip .who small { color: #047857; font-size: 12px; font-weight: 600; }
.profile-chip .who strong { font-weight: 800; color: #064E3B; font-size: 15px; }
.profile-chip .who span { color: #065F46; font-size: 13px; font-weight: 500; }
.profile-chip a {
  color: #047857; font-weight: 700; font-size: 13px;
  border-bottom: 1px dashed currentColor;
}
.profile-chip a:hover { color: #064E3B; }

/* ═════════════════════════════════════════ */
/* ═════════ ROUND VIEW (live) ═════════════ */
/* ═════════════════════════════════════════ */

.round-bar {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto;
  padding: 22px 24px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.round-bar-left {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 14px; color: var(--muted); font-weight: 600;
}
.round-bar-left .event {
  color: var(--ink); font-weight: 800; font-size: 16px;
  letter-spacing: -.01em;
}
.round-bar-left .divider { color: var(--line-strong); }
.round-bar-right { text-align: right; font-size: 13px; color: var(--muted); font-weight: 600; }

.timer {
  position: relative;
  width: 120px; height: 120px;
  display: grid; place-items: center;
  margin: 0 auto;
}
.timer svg { position: absolute; inset: 0; transform: rotate(-90deg); width: 100%; height: 100%; }
.timer .bg { fill: none; stroke: var(--line); stroke-width: 2.6; }
.timer .fg {
  fill: none; stroke: url(#timerGrad); stroke-width: 2.8; stroke-linecap: round;
  transition: stroke-dasharray .5s ease;
}
.timer-text {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  font-family: 'JetBrains Mono', monospace;
}
.timer-text strong {
  font-size: 26px; font-weight: 700; letter-spacing: -.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.timer-text small {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px; color: var(--muted); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  margin-top: 2px;
}
.timer.is-warning .fg { stroke: #F97316; }
.timer.is-warning .timer-text strong { color: #C2410C; }

/* ───── prostokątny timer + akcje w round-bar ───── */
.round-bar--actions { grid-template-columns: 1fr auto; }
.round-bar-actions {
  display: flex; align-items: stretch; gap: 10px;
}
.timer-rect {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8px 18px;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  border: 1px solid var(--primary-soft);
  border-radius: 12px;
  min-width: 96px;
  font-family: 'JetBrains Mono', monospace;
  transition: background .2s ease, border-color .2s ease;
}
.timer-rect strong {
  font-size: 22px; font-weight: 700; letter-spacing: -.02em;
  color: var(--primary-ink);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.timer-rect small {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9px; color: var(--muted); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin-top: 2px;
}
.timer-rect.is-warning {
  background: linear-gradient(135deg, #FEF3C7, #FCD34D);
  border-color: #F59E0B;
}
.timer-rect.is-warning strong { color: #C2410C; }
.round-bar-actions__buttons {
  display: flex; gap: 8px; align-items: stretch;
}
.round-bar-actions__buttons > form,
.round-bar-actions__buttons > * {
  margin: 0;
}
.round-bar-action-btn {
  height: 100%;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
  transition: border-color .12s ease, color .12s ease, background .12s ease;
}
.round-bar-action-btn--leave:hover {
  border-color: var(--accent-red); color: var(--accent-red);
}
.round-bar-action-btn--extend {
  color: var(--ink-soft);
}
.round-bar-action-btn--extend:hover {
  border-color: var(--primary); color: var(--primary);
}
.round-bar-action-btn--extend-waiting {
  background: var(--bg-blue-tint);
  border-color: var(--primary);
  color: var(--primary-ink);
}
.round-bar-action-btn--extend-pending {
  background: var(--accent-amber-soft);
  border-color: var(--accent-amber);
  color: #92400E;
  font-weight: 800;
}
.round-bar-action-btn--extend-mutual {
  background: var(--accent-green-soft);
  border-color: #6EE7B7;
  color: #065F46;
  font-weight: 800;
}

@media (max-width: 920px) {
  .round-bar--actions { grid-template-columns: 1fr; }
  .round-bar-actions { flex-wrap: wrap; }
  .round-bar-actions__buttons { flex: 1 1 100%; }
  .round-bar-action-btn { padding: 12px 14px; width: 100%; }
  .round-bar-actions__buttons > form,
  .round-bar-actions__buttons > div { flex: 1; }
}

.round-stage {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 24px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr);
  gap: 24px;
  align-items: start;
}

.round-questions {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 24px auto 0;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.video-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; display: block;
}
.video-status {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  color: white; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.video-status .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 0 4px rgba(239,68,68,.25);
  animation: pulse-red 1.6s ease-in-out infinite;
}
@keyframes pulse-red {
  0%,100% { box-shadow: 0 0 0 3px rgba(239,68,68,.3); }
  50%     { box-shadow: 0 0 0 7px rgba(239,68,68,0); }
}
.video-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255,255,255,.85); font-weight: 600; padding: 24px; text-align: center;
}

.partner-panel { display: flex; flex-direction: column; gap: 16px; }
.panel-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
}

.partner-card .head { display: flex; gap: 14px; align-items: center; }
.avatar {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: white;
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px;
  letter-spacing: -.02em;
  box-shadow: 0 8px 18px -8px rgba(37,99,235,.5);
  flex-shrink: 0;
}
.partner-card h2 { font-size: 19px; font-weight: 800; letter-spacing: -.015em; color: var(--ink); }
.partner-card .role { font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.partner-card .role strong { color: var(--ink-soft); font-weight: 700; }

.chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 5px 10px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600;
  color: var(--ink-soft);
}
.chip--primary {
  background: var(--bg-blue-tint);
  border-color: #BFDBFE;
  color: var(--primary-ink);
}

.partner-summary {
  margin-top: 14px;
  padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 14px; color: var(--ink-soft); line-height: 1.55;
  font-weight: 500;
}

.partner-links {
  margin-top: 14px; display: flex; flex-direction: column; gap: 8px;
  padding-top: 14px; border-top: 1px dashed var(--line);
}
.plink {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink-soft); font-weight: 600;
  padding: 6px 0;
  transition: color .12s ease;
  word-break: break-all;
}
.plink:hover { color: var(--primary); }
.plink .ico {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--bg-tint);
  border-radius: 8px;
  font-size: 13px;
  flex-shrink: 0;
}
.plink.muted { color: var(--muted); cursor: default; }
.plink.muted:hover { color: var(--muted); }
.plink.muted .ico { background: transparent; border: 1px dashed var(--line-strong); }

/* ───── AI panel (full-width pod video) ───── */
.ai-panel {
  background: linear-gradient(160deg, #EFF6FF 0%, #FFF7ED 100%);
  border: 1px solid #BFDBFE;
  padding: 24px 26px;
}
.ai-panel .head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ai-panel .head .sparkle {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  background: white; border: 1px solid #BFDBFE; border-radius: 10px;
  font-size: 16px;
}
.ai-panel .head strong {
  font-weight: 800; font-size: 16px; color: var(--primary-ink);
  letter-spacing: -.01em; line-height: 1.3;
}
.ai-panel .head strong small {
  display: block; font-weight: 500; font-size: 12px; color: var(--muted);
  margin-top: 2px; letter-spacing: 0;
}
.ai-panel .head .tag {
  margin-left: auto;
  font-size: 11px; font-weight: 700; color: var(--muted);
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; background: white; border-radius: var(--radius-pill); border: 1px solid var(--line);
}
.ai-panel ul {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.ai-panel li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 16px 16px 14px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(191,219,254,.7);
  border-radius: 14px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  line-height: 1.5;
  min-height: 76px;
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
.ai-panel li:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  box-shadow: 0 8px 22px -12px rgba(37,99,235,.3);
}
.ai-panel li::before {
  content: '→';
  color: var(--primary); font-weight: 800; flex-shrink: 0;
  font-size: 16px; line-height: 1.5;
}
.ai-panel .loading {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 4px;
  font-size: 14px; color: var(--muted); font-weight: 500;
}
.ai-panel .loading .dots {
  display: inline-flex; gap: 4px;
}
.ai-panel .loading .dots span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
  animation: bounce 1.2s ease-in-out infinite;
}
.ai-panel .loading .dots span:nth-child(2) { animation-delay: .15s; }
.ai-panel .loading .dots span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce {
  0%,80%,100% { transform: scale(.6); opacity: .5; }
  40% { transform: scale(1); opacity: 1; }
}

/* ───── static questions (full-width pod AI) ───── */
.static-q { padding: 24px 26px; }
.static-q .head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.static-q .head .ico {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  background: var(--bg-tint); border: 1px solid var(--line); border-radius: 10px;
  font-size: 16px;
}
.static-q .head strong {
  font-weight: 800; font-size: 16px; color: var(--ink);
  letter-spacing: -.01em; line-height: 1.3;
}
.static-q .head strong small {
  display: block; font-weight: 500; font-size: 12px; color: var(--muted);
  margin-top: 2px;
}
.static-q .head .tag {
  margin-left: auto;
  font-size: 11px; font-weight: 700; color: var(--muted);
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; background: var(--bg-tint); border-radius: var(--radius-pill); border: 1px solid var(--line);
}
.static-q ol {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: q;
}
.static-q li {
  counter-increment: q;
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 14.5px; color: var(--ink-soft); font-weight: 500;
  line-height: 1.5;
  min-height: 76px;
  transition: border-color .15s ease, transform .12s ease, box-shadow .15s ease;
}
.static-q li:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  box-shadow: 0 8px 22px -12px rgba(37,99,235,.25);
}
.static-q li::before {
  content: counter(q, decimal-leading-zero);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 13px;
  color: var(--primary);
  flex-shrink: 0; padding-top: 2px;
  min-width: 22px;
}

/* ───── like CTA ───── */
.like-cta { display: flex; flex-direction: column; gap: 10px; }
.btn--like {
  width: 100%;
  padding: 18px 22px;
  background: var(--ink);
  color: white;
  border-radius: var(--radius);
  display: flex; align-items: center; gap: 14px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: all .18s ease;
}
.btn--like::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(95deg, var(--accent-rose) 0%, var(--primary) 100%);
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 0;
}
.btn--like > * { position: relative; z-index: 1; }
.btn--like:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -16px rgba(251,113,133,.5); }
.btn--like:hover::before { opacity: 1; }
.btn--like.is-liked { background: var(--accent-rose); }
.btn--like.is-liked::before { opacity: 1; }
.btn--like .heart {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12);
  border-radius: 12px;
  font-size: 22px;
  flex-shrink: 0;
}
.btn--like .copy { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.btn--like .copy strong { font-weight: 800; font-size: 16px; letter-spacing: -.005em; }
.btn--like .copy small { font-size: 12px; opacity: .85; font-weight: 500; }
.btn--like .arr { font-size: 18px; font-weight: 800; opacity: .8; }
.btn--skip {
  background: transparent;
  color: var(--muted); font-weight: 600; font-size: 13px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  text-align: center;
}
.btn--skip:hover { color: var(--ink-soft); background: var(--bg-tint); }

/* ───── pause / lobby ───── */
.state-screen {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
}
.state-screen .icon {
  width: 64px; height: 64px;
  background: var(--bg-blue-tint);
  border: 1px solid #BFDBFE;
  border-radius: 18px;
  margin: 0 auto 24px;
  display: grid; place-items: center;
  font-size: 28px;
}
.state-screen h2 {
  font-weight: 800; font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -.02em; line-height: 1.1; color: var(--ink);
  margin-bottom: 14px;
}
.state-screen p { color: var(--muted); font-size: 16px; max-width: 480px; margin: 0 auto; }
.state-screen .countdown {
  margin-top: 28px;
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 14px 22px;
  background: var(--ink); color: white;
  border-radius: var(--radius);
  font-family: 'JetBrains Mono', monospace;
}
.state-screen .countdown strong { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.state-screen .countdown span { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.state-screen .heartbeat-info {
  margin-top: 36px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); font-weight: 600;
}
.state-screen .heartbeat-info .d {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-green);
  animation: pulse-green 1.6s ease-in-out infinite;
}
@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
  50%     { box-shadow: 0 0 0 7px rgba(16,185,129,0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ───── finished view ───── */
.met-list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.met-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px; align-items: center;
  padding: 16px 18px;
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.met-card:hover { border-color: var(--line-strong); }
.met-card.is-mutual {
  background: linear-gradient(95deg, #FFE4E6 0%, #FEF3C7 100%);
  border-color: #FDA4AF;
}
.met-card .a-mini {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: white; display: grid; place-items: center;
  font-weight: 800; font-size: 16px; flex-shrink: 0;
}
.met-card.is-mutual .a-mini {
  background: linear-gradient(135deg, var(--accent-rose), #F43F5E);
}
.met-card .body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.met-card .body strong {
  font-weight: 800; color: var(--ink); font-size: 15px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.met-card .body .row {
  font-size: 13px; color: var(--muted); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.met-card .body .row strong { display: inline; color: var(--ink-soft); font-weight: 700; }
.met-card .body .mutual-badge {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 4px;
  font-size: 11px; font-weight: 700; color: #9F1239;
  letter-spacing: .04em; text-transform: uppercase;
}
.met-card .actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.met-card .action-link {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--bg-tint); border: 1px solid var(--line); border-radius: 12px;
  font-size: 13px; font-weight: 700; color: var(--ink-soft);
  transition: all .12s ease;
}
.met-card .action-link:hover {
  background: var(--bg-blue-tint); border-color: var(--primary); color: var(--primary);
}

/* mini like — kwadracik 40x40 z sercem */
.btn--like-mini {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--bg-tint); border: 1px solid var(--line); border-radius: 12px;
  font-size: 18px; color: var(--muted);
  transition: all .15s ease;
}
.btn--like-mini:hover {
  background: var(--accent-rose-soft); border-color: var(--accent-rose); color: #BE123C;
  transform: translateY(-1px);
}
.btn--like-mini.is-liked {
  background: var(--accent-rose); border-color: #BE123C; color: white;
}
.btn--like-mini.is-liked:hover { background: #E11D48; }

@media (max-width: 520px) {
  .met-card { grid-template-columns: auto minmax(0, 1fr); }
  .met-card .actions { grid-column: 1 / -1; justify-content: flex-end; padding-top: 6px; border-top: 1px dashed var(--line); margin-top: 4px; }
}

/* ───── responsive ───── */
@media (max-width: 920px) {
  .round-stage { grid-template-columns: 1fr; }
  .round-bar { grid-template-columns: 1fr auto; gap: 14px; }
  .ai-panel, .static-q { padding: 20px; }
  .round-bar-right { display: none; }
  .timer { width: 96px; height: 96px; }
  .timer-text strong { font-size: 22px; }
  .grid-2 { grid-template-columns: 1fr; }
  .card--padded { padding: 24px; }
  .hero { padding: 36px 20px 24px; }
  .topbar { padding-top: 18px; }
  .brand .product { display: none; }
  .topbar .help span { display: none; }
}
@media (max-width: 520px) {
  .ai-fill { flex-wrap: wrap; }
  .btn--like .copy small { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   STAFF PANEL - jasny motyw, refined editorial
   ═══════════════════════════════════════════════════════════════ */

.staff-shell { max-width: 1280px; margin: 0 auto; padding: 0 32px 80px; position: relative; z-index: 1; }

.staff-crumbs {
  color: var(--muted); font-size: 13px; font-weight: 600;
  margin-top: 18px; margin-bottom: 28px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.staff-crumbs a { color: var(--ink-soft); border-bottom: 1px dashed var(--line-strong); padding-bottom: 1px; }
.staff-crumbs a:hover { color: var(--primary); border-bottom-color: var(--primary); }
.staff-crumbs .sep { color: var(--line-strong); }
.staff-crumbs .here { color: var(--ink); }

.staff-page-head { margin-bottom: 36px; }
.staff-page-head h1 {
  font-weight: 800; font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -.025em; line-height: 1.1;
  color: var(--ink); margin-bottom: 10px;
}
.staff-page-head h1 em {
  font-style: normal; color: var(--primary); position: relative;
}
.staff-page-head h1 em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 10px;
  background: var(--primary-soft); border-radius: 4px; z-index: -1;
}
.staff-page-head .lede { color: var(--muted); font-size: 15px; max-width: 640px; }

.staff-section { margin-bottom: 36px; }
.staff-section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px;
}
.staff-section-title .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.staff-section-title .dot--green {
  background: var(--accent-green);
  box-shadow: 0 0 0 4px rgba(16,185,129,.18);
  animation: pulse-green 2.4s ease-in-out infinite;
}
@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 0 4px rgba(16,185,129,.18); }
  50%     { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
}

.staff-stack > * + * { margin-top: 14px; }
.staff-empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-tint);
  padding: 48px 32px;
  text-align: center;
  color: var(--muted);
}
.staff-empty p { margin-bottom: 18px; font-size: 15px; }

/* event row */
.event-row {
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
  padding: 20px 24px;
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color .12s ease, box-shadow .15s ease, transform .12s ease;
}
.event-row:hover { border-color: #BFDBFE; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.event-row__main { min-width: 0; }
.event-row__title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.event-row__title h3 { font-weight: 800; font-size: 18px; letter-spacing: -.015em; color: var(--ink); margin: 0; }
.event-row__meta {
  color: var(--muted); font-size: 13px; font-weight: 500;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.event-row__meta .glyph { display: inline-flex; align-items: center; gap: 4px; }
.event-row__meta .sep { color: var(--line-strong); }
.event-row__actions { display: flex; align-items: center; gap: 8px; }

/* status pills */
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700; border: 1px solid;
}
.status-pill .dot { width: 6px; height: 6px; border-radius: 50%; }
.status-pill--draft    { background: #F1F5F9; color: #475569; border-color: var(--line-strong); }
.status-pill--draft    .dot { background: #94A3B8; }
.status-pill--lobby    { background: var(--accent-amber-soft); color: #92400E; border-color: #FCD34D; }
.status-pill--lobby    .dot { background: var(--accent-amber); }
.status-pill--running  { background: var(--accent-green-soft); color: #065F46; border-color: #6EE7B7; }
.status-pill--running  .dot {
  background: var(--accent-green); box-shadow: 0 0 0 3px rgba(16,185,129,.2);
  animation: pulse-green 2.4s ease-in-out infinite;
}
.status-pill--paused   { background: var(--bg-blue-tint); color: var(--primary-ink); border-color: #BFDBFE; }
.status-pill--paused   .dot { background: var(--primary); }
.status-pill--finished { background: #F1F5F9; color: #475569; border-color: var(--line-strong); }
.status-pill--finished .dot { background: #94A3B8; }
.status-pill--live     { background: var(--accent-rose-soft); color: #9F1239; border-color: #FDA4AF; }
.status-pill--live     .dot { background: var(--accent-rose); }

/* button variants */
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--amber { background: var(--accent-amber); color: white; }
.btn--amber:hover { background: #D97706; }
.btn--rose { background: #BE123C; color: white; box-shadow: 0 8px 20px -10px rgba(190,18,60,.5); }
.btn--rose:hover { background: #9F1239; }
.btn--text {
  background: transparent; color: var(--ink-soft);
  padding: 9px 14px; font-weight: 600; border-radius: var(--radius);
  border: 1px solid transparent;
}
.btn--text:hover { background: var(--bg-tint); color: var(--ink); }

/* LIVE PANEL */
.live-hero {
  display: grid; grid-template-columns: 1fr auto; gap: 24px;
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px 32px; margin-bottom: 22px;
  align-items: start;
}
.live-hero__title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; }
.live-hero__title h1 {
  font-weight: 800; font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -.02em; color: var(--ink); margin: 0;
}
.live-hero__meta {
  color: var(--muted); font-size: 14px; font-weight: 500;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.live-hero__meta .glyph { display: inline-flex; align-items: center; gap: 5px; }
.live-hero__cta { display: flex; flex-direction: column; gap: 8px; }

.support-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  background: var(--primary); color: white;
  font-weight: 700; font-size: 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 24px -10px rgba(37,99,235,.6);
  transition: background .12s ease, transform .12s ease;
}
.support-cta:hover { background: var(--primary-strong); transform: translateY(-1px); }
.support-cta__badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  background: rgba(255,255,255,.2); border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 700;
}
.support-cta__badge:empty { display: none; }

.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px; margin-bottom: 22px;
}
.stat-card {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.stat-card__label {
  font-size: 11px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 8px;
}
.stat-card__value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 32px; line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-card__value small { font-size: 18px; color: var(--muted); font-weight: 500; }
.stat-card__value.is-warn { color: var(--accent-amber); }
.stat-card__value.is-crit { color: var(--accent-red); }
.stat-card__value.is-mute { color: var(--line-strong); }
.stat-card__hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

.live-panel-card {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px 24px; margin-bottom: 22px;
}
.live-panel-card h2 {
  font-size: 12px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 16px;
}

.action-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.action-bar .spacer { flex: 1; }

.pair-list { display: flex; flex-direction: column; gap: 8px; }
.pair-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--bg-tint); border: 1px solid var(--line);
  border-radius: var(--radius); font-size: 14px;
}
.pair-row__num {
  font-family: 'JetBrains Mono', monospace; font-weight: 700;
  color: var(--muted); font-size: 13px; min-width: 24px;
}
.pair-row__name { font-weight: 700; color: var(--ink); }
.pair-row__sep { color: var(--line-strong); }
.pair-row__solo {
  padding: 2px 8px; border-radius: var(--radius-pill);
  background: var(--accent-amber-soft); color: #92400E;
  font-size: 11px; font-weight: 700;
}
.pair-row__room {
  margin-left: auto;
  color: var(--primary); font-size: 12px; font-weight: 700;
  border-bottom: 1px dashed transparent;
}
.pair-row__room:hover { border-bottom-color: var(--primary); }
.pair-row__missing { margin-left: auto; color: var(--accent-red); font-size: 12px; font-weight: 700; }

.attendee-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}
.attendee-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg-tint); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.attendee-item__indicator { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--line-strong); }
.attendee-item__indicator.is-active {
  background: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(16,185,129,.16);
}
.attendee-item__main { flex: 1; min-width: 0; }
.attendee-item__name { font-size: 13px; font-weight: 700; color: var(--ink); }
.attendee-item__email { font-size: 11px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.attendee-item__rounds {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700; color: var(--muted);
}
.attendee-item__li {
  color: var(--muted); font-size: 12px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
}
.attendee-item__li:hover { color: var(--primary-strong); background: var(--bg-blue-tint); }

/* SUPPORT ADMIN - WhatsApp-Web layout */
.support-layout {
  display: grid; grid-template-columns: 320px 1fr;
  gap: 18px;
  height: calc(100vh - 220px);
  min-height: 520px;
}
.support-sidebar {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.support-sidebar__head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.support-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: var(--bg-tint);
}
.support-tabs button {
  flex: 1; padding: 10px 12px;
  font-size: 12px; font-weight: 700;
  color: var(--muted); background: transparent; border: 0;
  cursor: pointer;
  transition: color .12s ease, background .12s ease;
}
.support-tabs button:hover { color: var(--ink); background: white; }
.support-tabs button.is-active {
  color: var(--primary-ink); background: white;
  border-bottom: 2px solid var(--primary);
  margin-bottom: -1px;
}
.support-threads { flex: 1; overflow-y: auto; }
.support-thread {
  display: flex; gap: 10px;
  width: 100%; text-align: left;
  padding: 12px 16px;
  background: white; border: 0; border-bottom: 1px solid var(--line);
  cursor: pointer; transition: background .12s ease;
  font: inherit;
}
.support-thread:hover { background: var(--bg-tint); }
.support-thread__main { flex: 1; min-width: 0; }
.support-thread__name { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.support-thread__snippet { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.support-thread__time { font-size: 10px; color: var(--line-strong); margin-top: 3px; font-family: 'JetBrains Mono', monospace; }
.support-thread__unread {
  margin-top: 4px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.16);
  flex-shrink: 0;
}
.support-empty {
  padding: 36px 24px;
  text-align: center; color: var(--muted);
  font-size: 13px;
}

.support-window {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.support-window__placeholder {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 14px;
}
.support-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-tint);
}
.support-header__main { min-width: 0; }
.support-header__name { font-size: 15px; font-weight: 800; color: var(--ink); }
.support-header__meta { font-size: 12px; color: var(--muted); font-family: 'JetBrains Mono', monospace; margin-top: 2px; }
.support-header__actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }

.support-msgs {
  flex: 1; overflow-y: auto;
  padding: 22px 22px 8px;
  display: flex; flex-direction: column; gap: 8px;
}
.bubble { max-width: 70%; padding: 9px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; word-wrap: break-word; }
.bubble__time { font-size: 10px; opacity: .75; margin-top: 3px; font-family: 'JetBrains Mono', monospace; }
.bubble--attendee { align-self: flex-start; background: var(--bg-tint); color: var(--ink); border: 1px solid var(--line); }
.bubble--admin { align-self: flex-end; background: var(--primary); color: white; }
.bubble--admin .bubble__time { color: rgba(255,255,255,.78); }
.bubble--system {
  align-self: center; background: transparent;
  color: var(--muted); font-size: 12px; font-style: italic;
  padding: 4px 10px; border-radius: 0;
  text-align: center;
}

.support-compose {
  border-top: 1px solid var(--line);
  background: var(--bg-tint);
  padding: 12px;
  display: flex; gap: 10px; align-items: flex-end;
}
.support-compose textarea {
  flex: 1; resize: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; color: var(--ink);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.support-compose textarea:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.14);
}

.support-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: 12px;
  text-decoration: none;
  box-shadow: 0 6px 16px -8px rgba(37,99,235,.55);
}
.support-badge:hover { background: var(--primary-strong); }

@media (max-width: 900px) {
  .support-layout { grid-template-columns: 1fr; height: auto; }
  .support-sidebar { max-height: 260px; }
}

/* STAFF TOPBAR ACTIONS */
.staff-topbar-actions {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--muted); font-size: 13px; font-weight: 600;
}
.staff-topbar-actions a {
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line-strong);
  padding-bottom: 1px;
}
.staff-topbar-actions a:hover { color: var(--primary); border-bottom-color: var(--primary); }
.staff-topbar-actions .sep { color: var(--line-strong); }
.staff-topbar-actions form { display: inline; margin: 0; }
.staff-topbar-actions .logout {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-weight: 700; font-size: 12px;
  cursor: pointer;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.staff-topbar-actions .logout:hover { background: var(--ink); color: white; border-color: var(--ink); }

/* EVENT FORM - refined editorial */
.event-form { max-width: 880px; margin: 0 auto; }

.event-form .live-panel-card {
  padding: 32px 36px;
  margin-bottom: 24px;
  position: relative;
}
.event-form .live-panel-card h2 {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.event-form .live-panel-card h2::before {
  content: attr(data-step);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 8px;
  border-radius: 999px;
  letter-spacing: .08em;
}

.event-form .ff-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
}
.event-form .ff { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.event-form .ff--col-2 { grid-column: 1 / -1; }
.event-form .ff label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
}

.event-form .ff__input {
  width: 100%;
  padding: 14px 16px;
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.event-form .ff__input::placeholder {
  color: var(--muted);
  font-weight: 400;
}
.event-form .ff__input:hover:not(:focus) {
  border-color: var(--line-strong);
}
.event-form .ff__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
  background: #FAFBFF;
}
.event-form .ff__input--num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 17px;
  max-width: 220px;
  letter-spacing: .02em;
}
input.ff__input[type="datetime-local"] {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
}

.event-form .ff__hint {
  font-size: 13px;
  color: var(--muted);
  margin: 2px 0 0;
  line-height: 1.45;
}
.event-form .ff__err {
  font-size: 13px;
  color: var(--accent-red);
  margin: 4px 0 0;
  font-weight: 600;
}

.event-form__footer {
  display: flex; gap: 14px; justify-content: flex-end; align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.event-form__footer .btn--primary {
  font-size: 15px;
  padding: 14px 28px;
}

@media (max-width: 760px) {
  .staff-shell { padding: 0 16px 60px; }
  .event-row { grid-template-columns: 1fr; }
  .event-row__actions { width: 100%; justify-content: flex-end; }
  .live-hero { grid-template-columns: 1fr; padding: 22px; }
  .event-form .ff-grid { grid-template-columns: 1fr; }
}

/* ───── extra small (telefon) ───── */
@media (max-width: 540px) {
  .topbar { padding: 14px 16px 0; gap: 12px; flex-wrap: wrap; }
  .brand { font-size: 16px; gap: 6px; min-width: 0; flex-shrink: 1; }
  .brand .mark { width: 24px; height: 24px; font-size: 12px; flex-shrink: 0; }
  .brand .name small { font-size: 12px; }
  .topbar .help { gap: 10px; font-size: 13px; flex-shrink: 0; }
  .container { padding: 0 16px; }
  .pair-row { flex-wrap: wrap; }
  .pair-row__room, .pair-row__missing { margin-left: 0; flex-basis: 100%; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-card { padding: 14px; }
  .stat-card__value { font-size: 24px; }
  .live-panel-card { padding: 18px 16px; }
  .attendee-item__email { font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .card--padded { padding: 18px; }
  .card--padded-sm { padding: 16px; }
  .form-section + .form-section { margin-top: 24px; padding-top: 22px; }
  .hero h1 { font-size: clamp(28px, 9vw, 42px) !important; }
  .met-card { padding: 12px 14px !important; }
}

/* ───── bardzo wąski - schowaj .name żeby brand się mieścił ───── */
@media (max-width: 380px) {
  .brand .name { display: none; }
}

/* ───── round screen optimizations dla mobile ───── */
@media (max-width: 600px) {
  .round-bar { padding: 14px 14px 0; gap: 10px; }
  .round-bar-left { font-size: 13px; gap: 6px; }
  .round-bar-left .event { font-size: 14px; }
  .timer { width: 72px; height: 72px; }
  .timer-text strong { font-size: 18px; }
  .timer-text small { font-size: 9px; letter-spacing: .08em; }
  .round-stage { margin-top: 14px; padding: 0 14px; gap: 14px; }
  .round-questions { margin-top: 14px; padding: 0 14px 24px; gap: 14px; }
  .partner-card .head { gap: 10px; }
  .partner-card h2 { font-size: 17px; }
  .ai-panel, .static-q { padding: 16px !important; }
}
