/*
 * Verejná časť (birmovanci, animátori, právne texty). Mobile-first; zlomy 700 px (tablet) a 1000 px (desktop).
 * Vizuálny jazyk: svetlé pokojné plochy, tenké linky namiesto tieňov, výrazná typografia, farba len ako akcent.
 */

:root {
  --bg: #f8f8f6;
  --surface: #ffffff;
  --ink: #1c1917;
  --ink-2: #44403c;
  --muted: #78716c;
  --faint: #a8a29e;
  --line: #e7e5e4;
  --line-strong: #d6d3d1;
  --accent: #d13f22;
  --accent-hover: #b93519;
  --accent-soft: #fff1ec;
  --ok: #15803d;
  --ok-soft: #ecf8f0;
  --ok-line: #c3e6cf;
  --warn: #a16207;
  --warn-soft: #fef7e0;
  --warn-line: #f1e0a4;
  --err: #be123c;
  --err-soft: #fff1f3;
  --err-line: #fecdd6;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(28, 25, 23, .05);
  --ring: 0 0 0 4px rgba(209, 63, 34, .18);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* atribút hidden musí vyhrať aj nad .btn { display: inline-flex } */

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding-left: max(18px, env(safe-area-inset-left));
  padding-right: max(18px, env(safe-area-inset-right));
}

main { flex: 1 0 auto; }
main a { color: var(--accent-hover); text-underline-offset: 2px; }

/* ------------------------------------------------------------ navigácia */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top);
  background: rgba(248, 248, 246, .82);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }

.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); font-size: 15px; font-weight: 650; letter-spacing: -.01em; text-decoration: none; }
.brand > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.brand-mark { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.brand-mark svg { width: 17px; height: 17px; fill: #fff; }

.topnav { display: flex; flex: none; gap: 2px; margin-right: -8px; }
.topnav a { padding: 7px 11px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 550; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.topnav a:hover, .topnav a:focus-visible { background: #efeeeb; color: var(--ink); outline: none; }
.topnav a.is-active { color: var(--ink); background: #efeeeb; }
.topnav .nav-extra { display: none; }

/* ------------------------------------------------------------ nadpis stránky */

.page-head { padding-top: 30px; padding-bottom: 20px; }

h1 {
  margin: 0;
  font-size: clamp(32px, 8.4vw, 40px);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.lead { margin: 10px 0 0; max-width: 42rem; color: var(--muted); font-size: 17px; line-height: 1.5; }
.lead strong { color: var(--ink-2); font-weight: 650; }

.head-badge { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 4px 11px 4px 8px; border-radius: 99px; background: var(--ok-soft); border: 1px solid var(--ok-line); color: var(--ok); font-size: 13px; font-weight: 650; }
.head-badge svg { width: 15px; height: 15px; }

.head-mark { display: none; }

/* vycentrované úzke stránky: prihlásenie, overenie, krátke otázky */
.is-auth .page-head, .is-auth main { max-width: 476px; }
.is-auth .page-head { padding-top: clamp(36px, 9vh, 104px); padding-bottom: 24px; text-align: center; }
.is-auth .head-mark { display: block; margin-bottom: 22px; }
.is-auth .head-mark .brand-mark { width: 52px; height: 52px; border-radius: 16px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 20px -8px rgba(209, 63, 34, .55); }
.is-auth .head-mark svg { width: 30px; height: 30px; }
.is-auth .lead { margin-left: auto; margin-right: auto; }
.is-auth .site-nav { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; position: static; }

/* ------------------------------------------------------------ karty */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 0 0 14px;
  box-shadow: var(--shadow);
}

.card.has-error { border-color: var(--err); box-shadow: 0 0 0 3px rgba(190, 18, 60, .12); }
.card.card-table { padding: 0; overflow: hidden; }
.card-table .att-wrap { max-height: none; }
.card-table .att-table { min-width: 100%; }
.card-cta { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(209, 63, 34, .1); }
.card-cta .btn { margin-top: 6px; }

h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 17px; font-weight: 650; line-height: 1.3; letter-spacing: -.015em; }
h3 { margin: 22px 0 6px; font-size: 12px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.card h2:only-child { margin-bottom: 0; }

.num { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0; }

.layout { display: block; }

/* ------------------------------------------------------------ polia */

.field { margin: 0 0 16px; }
.field:last-child { margin-bottom: 0; }
.field-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 14px; margin-bottom: 16px; }
.field-grid:last-child { margin-bottom: 0; }
.field-grid > .field:last-child { margin-bottom: 0; }

label, .label { display: block; margin: 0 0 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], input[type="date"], input[type="time"], input[type="number"], select, textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* ≥16px, inak iOS pri kliknutí priblíži stránku */
  appearance: none;
  -webkit-appearance: none;
  box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}

textarea { resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--faint); }

select {
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2378716c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.has-error > input, input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--err); }

.dob { display: grid; grid-template-columns: 0.8fr 1.5fr 1fr; gap: 8px; }

.hint, .error, .suggest { margin: 6px 1px 0; font-size: 13.5px; line-height: 1.45; }
.hint { color: var(--muted); }
.hint a { font-weight: 600; }
.card > .hint { margin: -6px 0 16px; font-size: 14.5px; }
.card > .hint:last-child, .card > .auth-hint { margin: 14px 0 0; }
.a2hs-tip { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 11px 13px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.a2hs-tip svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--ink-2); }
.a2hs-tip strong { color: var(--ink); font-weight: 650; }
.hint-inline { font-weight: 400; color: var(--muted); }
.error { color: var(--err); font-weight: 600; }
.muted { margin: 0; color: var(--muted); font-size: 14px; }

.suggest { color: var(--warn); }
.suggest button { border: 0; background: none; padding: 0; color: var(--accent-hover); font: inherit; font-weight: 650; text-decoration: underline; cursor: pointer; }

.pill-changed { display: none; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); font-size: 11.5px; font-weight: 650; vertical-align: 1px; }
.is-changed .pill-changed { display: inline-block; }
.is-changed > input, .is-changed select { border-color: #86c9a0; }
.has-error.is-changed > input, .has-error.is-changed select[aria-invalid="true"] { border-color: var(--err); }

.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 0; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fafaf9; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }

.callout { margin: 0 0 14px; padding: 12px 14px; border: 1px solid; border-radius: 12px; font-size: 14.5px; line-height: 1.5; }
.callout-err { background: var(--err-soft); border-color: var(--err-line); color: #881337; }
.callout-warn { background: var(--warn-soft); border-color: var(--warn-line); color: #713f12; }
.callout-ok { background: var(--ok-soft); border-color: var(--ok-line); color: #14532d; }
.field .callout { margin-bottom: 8px; }

/* ------------------------------------------------------------ tlačidlá */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.005em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .06s;
}
.btn:active { transform: scale(.985); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(28, 25, 23, .25); }
.btn-primary:hover { background: var(--accent-hover); }
main a.btn-primary { color: #fff; }
.btn-secondary, main a.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow); }
.btn-secondary:hover { background: #fafaf9; border-color: #bab5af; }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn-icon, .g-icon { flex: none; width: 20px; height: 20px; }

.submit-bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin: 18px -18px 0;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: rgba(248, 248, 246, .86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.submit-status { margin: 0 0 8px; padding: 10px 12px; border: 1px solid var(--err-line); border-radius: 11px; background: var(--err-soft); color: #881337; font-size: 14px; font-weight: 600; }

/* ------------------------------------------------------------ prihlásenie */

.auth-buttons { display: grid; gap: 10px; }
.auth-alt { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.auth-foot { margin: 14px 0 0; color: var(--faint); font-size: 13px; text-align: center; }
main .auth-foot a { color: var(--muted); font-weight: 550; }
main .auth-foot a:hover { color: var(--ink); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 8px; color: var(--faint); font-size: 12px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.card > .auth-divider + .auth-hint { margin-top: 0; text-align: center; }

.login-list { list-style: none; margin: 0 0 14px; padding: 0; }
.login-list:empty { display: none; }
.login-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.login-list li:first-child { border-top: 0; }
.login-list li > span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.login-list small { color: var(--muted); }
.key-icon { display: inline-grid; place-items: center; width: 20px; color: var(--muted); }
.link-btn { border: 0; background: none; padding: 6px 0 6px 8px; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link-btn:hover { color: var(--err); }
.logout { margin: 20px 0 0; text-align: center; font-size: 14px; }
.logout a { color: var(--muted); }
.mt-details { margin-top: 16px; }

details.more > summary { cursor: pointer; padding: 4px 0 12px; color: var(--ink-2); font-size: 14.5px; font-weight: 600; }
details.more > summary:hover { color: var(--accent-hover); }

/* ------------------------------------------------------------ popis stránky, právne texty, päta */

.about { margin: 28px 2px 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.about h2 { display: block; margin: 0 0 8px; font-size: 12px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.about p { margin: 0 0 8px; }
.about strong { color: var(--ink-2); font-weight: 600; }

.legal { font-size: 16px; line-height: 1.65; }
.legal h2 { display: block; margin: 28px 0 8px; font-size: 18px; }
.legal p, .legal ul { margin: 0 0 12px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal code { background: #f1f0ed; padding: 1px 5px; border-radius: 5px; font-size: .9em; }
.legal [lang="en"] { color: var(--ink-2); }

.foot { flex: none; margin-top: 48px; padding-top: 22px; padding-bottom: calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; text-align: center; }
.foot p { margin: 0 0 8px; }
.foot strong { color: var(--ink-2); font-weight: 600; }
.fine { font-size: 12.5px; color: var(--faint); }
.foot-links { margin: 10px 0 0; font-size: 12.5px; }
.foot-links a { color: var(--muted); text-underline-offset: 2px; }
.foot-links span { opacity: .7; }

/* ------------------------------------------------------------ fotka */

.photo-row { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }

.photo-frame { flex: none; position: relative; width: 40%; max-width: 160px; aspect-ratio: 2 / 3; border: 1.5px dashed var(--line-strong); border-radius: 14px; background: #fafaf9; overflow: hidden; }
.photo-frame.has-photo { border: 1px solid var(--line); }
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-frame.is-busy img { opacity: .45; }
.photo-placeholder { position: absolute; inset: 12% 10% 0; fill: #e2dfdb; }
.photo-frame.has-photo .photo-placeholder { display: none; }

.tips { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.tips li { position: relative; padding-left: 22px; margin-bottom: 7px; }
.tips li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.tips .yes::before { content: "✓"; color: var(--ok); }
.tips .no::before { content: "✕"; color: var(--err); }

.photo-status { min-height: 21px; margin: 10px 2px 0; font-size: 14px; font-weight: 600; color: var(--ok); text-align: center; }
.photo-status.is-error { color: var(--err); }
.photo-status.is-busy { color: var(--muted); }

.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ------------------------------------------------------------ orezávanie fotky */

body.no-scroll { overflow: hidden; }

.cropper { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: #0c0a09; color: #fff; padding: calc(14px + env(safe-area-inset-top)) 16px calc(14px + env(safe-area-inset-bottom)); }
.cropper-head { text-align: center; font-size: 14.5px; line-height: 1.35; margin-bottom: 12px; }
.cropper-head strong { display: block; font-size: 17px; }
.cropper-head span { opacity: .7; }
.cropper-stage-wrap { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.cropper-stage { position: relative; flex: none; /* rozmery nastavuje app.js podľa miesta na obrazovke */ border-radius: 16px; overflow: hidden; background: #000; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.cropper-stage canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.crop-guide { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cropper-zoom { display: flex; align-items: center; gap: 12px; margin: 14px 4px; font-size: 22px; }
.cropper-zoom input { flex: 1; height: 32px; accent-color: #ff7a59; }
.cropper-actions { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 10px; }
.cropper-actions .btn { min-height: 50px; padding: 8px 10px; font-size: 15px; }

/* ------------------------------------------------------------ moje údaje */

.summary-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.summary-photo { width: 72px; height: 108px; border: 1px solid var(--line); border-radius: 12px; object-fit: cover; }
.summary-name { margin: 0 0 2px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }

dl { margin: 0 0 18px; }
dl > div { padding: 9px 0; border-top: 1px solid var(--line); }
dt { color: var(--muted); font-size: 13px; }
dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }

/* ------------------------------------------------------------ dochádzka a úlohy */

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.stat { display: flex; flex-direction: column; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fafaf9; }
.stat-label { font-size: 12px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.stat b { margin: 2px 0 8px; font-size: clamp(22px, 6.6vw, 30px); font-weight: 750; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat > span:last-child { margin-top: 8px; font-size: 13px; color: var(--muted); }
.stat-bar { display: block; height: 6px; border-radius: 99px; background: #e9e7e3; overflow: hidden; }
.stat-bar i { display: block; height: 100%; border-radius: 99px; background: var(--faint); }
.stat.good b { color: var(--ok); }
.stat.good .stat-bar i { background: #22a35a; }
.stat.mid b { color: var(--warn); }
.stat.mid .stat-bar i { background: #e0a100; }
.stat.bad b { color: var(--err); }
.stat.bad .stat-bar i { background: #e11d48; }

.act-list { list-style: none; margin: 0; padding: 0; }
.act-list li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.act-list li:first-child { border-top: 0; }
.act-list .mark { flex: none; margin-top: 1px; }
.act-main { flex: 1; min-width: 0; }
.act-main strong { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.act-meta { display: block; font-size: 13px; color: var(--muted); }
.act-meta a { color: var(--ink-2); text-decoration-color: var(--line-strong); }
.act-meta a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }
.act-note { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.act-state { flex: none; max-width: 40%; padding-top: 1px; text-align: right; font-size: 13px; font-weight: 600; color: var(--muted); }
.state-yes { color: var(--ok); }
.state-no { color: var(--err); }
.state-excused, .state-late { color: var(--warn); }

.att-legend { padding: 0 4px; }

/* ------------------------------------------------------------ týždenné stretká */

.group-when { margin: -8px 0 10px; font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.group-confirmed .group-when { font-size: 22px; font-weight: 750; letter-spacing: -.025em; color: var(--ok); }

.choice-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.choice-grid > .card { margin: 0; }
.group-choice { transition: border-color .15s, box-shadow .15s; }
.group-choice[data-pref="want"] { border-color: #22a35a; box-shadow: 0 0 0 3px rgba(34, 163, 90, .14); }
.group-choice[data-pref="can"] { border-color: #93b4ea; }
.group-choice[data-pref="cannot"] { border-color: var(--err-line); background: #fffafb; }
.group-choice.needs-answer { border-color: var(--err); box-shadow: 0 0 0 3px rgba(190, 18, 60, .12); animation: shake .4s; }

.pref-options { display: grid; gap: 8px; margin-top: 14px; }
.pref { position: relative; display: block; margin: 0; }
.pref input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pref span { display: block; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 11px; background: #fff; box-shadow: var(--shadow); font-size: 15px; font-weight: 600; color: var(--ink-2); text-align: center; transition: background .12s, border-color .12s; }
.pref:hover span { border-color: #bab5af; }
.pref input:focus-visible + span { box-shadow: var(--ring); }
.pref-want input:checked + span { background: #16a34a; border-color: #16a34a; color: #fff; }
.pref-can input:checked + span { background: #e8f0fe; border-color: #6d9be8; color: #1e3a8a; }
.pref-cannot input:checked + span { background: var(--err-soft); border-color: #f3a3b4; color: #881337; }

/* ------------------------------------------------------------ termíny stretiek */

.sess-list { list-style: none; margin: 0; padding: 0; }
.sess { border-top: 1px solid var(--line); }
.sess:first-child { border-top: 0; }
.sess-in { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: inherit; text-decoration: none; }
a.sess-in { margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 12px; transition: background .12s; }
a.sess-in:hover, a.sess-in:focus-visible { background: #f5f4f1; outline: none; }
main a.sess-in { color: inherit; }
.sess-date { flex: none; display: grid; place-items: center; width: 44px; height: 46px; border: 1px solid var(--line); border-radius: 11px; background: #fafaf9; line-height: 1; }
.sess-date b { font-size: 17px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sess-date i { margin-top: -6px; color: var(--muted); font-size: 11px; font-style: normal; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.sess-main { flex: 1; min-width: 0; }
.sess-main strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.sess-main .act-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sess.is-cancelled .sess-main .act-meta { white-space: normal; }
.sess-wd, .sess-time { white-space: nowrap; } /* keď je miesta málo, zalomí sa čisto medzi dňom a časom */
.sess-topic { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.sess-main strong.sess-topic { display: -webkit-box; font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; }
.sess-list.is-full .sess-topic { -webkit-line-clamp: unset; }
.sess-main .act-meta.sess-when { overflow: visible; white-space: normal; }
.sess-arrow { flex: none; color: var(--faint); font-size: 20px; line-height: 1; }
.sess-chip { flex: none; padding: 2px 9px; border-radius: 99px; background: #efeeeb; color: var(--ink-2); font-size: 12.5px; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip-yes { background: var(--ok-soft); color: var(--ok); }
.chip-no { background: var(--err-soft); color: var(--err); }
.chip-excused, .chip-cancelled { background: var(--warn-soft); color: var(--warn); }
.chip-today { background: var(--ink); color: #fff; }
.chip-todo { background: var(--accent); color: #fff; }
.chip-none { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--faint); font-weight: 600; }
.sess.is-today .sess-date { border-color: var(--ink); background: var(--ink); color: #fff; }
.sess.is-today .sess-date i { color: #d6d3d1; }
.sess.is-cancelled .sess-main strong { text-decoration: line-through; color: var(--muted); }
.sess.is-cancelled .sess-date { opacity: .5; }
.sess.is-past:not(.is-cancelled) .sess-date { background: #fff; }

.cal-menu { margin-top: 14px; }
.cal-menu > summary { list-style: none; cursor: pointer; }
.cal-menu > summary::-webkit-details-marker { display: none; }
.cal-links { display: grid; gap: 6px; margin-top: 10px; }
.cal-links a { display: block; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 11px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; box-shadow: var(--shadow); }
.cal-links a:hover { border-color: #bab5af; background: #fafaf9; }
main .cal-links a { color: var(--ink); }
.cal-menu .hint { margin: 10px 0 0; }
.back-link { margin: 0 0 14px; font-size: 14px; }
.back-link a { color: var(--muted); text-decoration: none; font-weight: 550; }
.back-link a:hover { color: var(--ink); }

/* ------------------------------------------------------------ dochádzka animátora – stavaná na palec */

.attend-head { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.attend-head h2 { margin: 0; }
.attend-head .btn { margin-left: auto; }
.help-btn { flex: none; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 1px solid var(--line-strong, #d6d3d1); border-radius: 50%; background: #fff; color: var(--muted); font: 650 14px/1 inherit; cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
.help-btn:hover, .help-btn[aria-expanded="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.help-btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-compact { width: auto; min-height: 40px; padding: 8px 14px; font-size: 14.5px; }
.card > .attend-help { margin: 10px 0 6px; padding: 10px 12px; border-radius: 10px; background: #f5f4f1; font-size: 13.5px; }
.attend-help b { color: var(--ink); }
.saved { margin-left: 6px; color: var(--ok); font-size: 12.5px; font-weight: 650; }

.attend-list { list-style: none; margin: 0 -8px; padding: 0; }
.attend-list li { display: flex; align-items: center; gap: 10px; padding: 8px; border-top: 1px solid var(--line); border-radius: 0; transition: background .12s; }
.attend-list li:first-child { border-top: 0; }
.attend-list img, .attend-list .member-nophoto { flex: none; width: 32px; height: 48px; border: 1px solid var(--line); border-radius: 8px; object-fit: cover; background: #f1f0ed; }
.attend-name { flex: 1; min-width: 0; font-size: 15.5px; line-height: 1.25; overflow-wrap: break-word; }
.attend-name strong { font-weight: 650; }
.attend-buttons { flex: none; display: inline-flex; gap: 5px; }
.attend-buttons button { width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 13px; background: #fff; color: var(--faint); font: inherit; font-size: 19px; font-weight: 800; cursor: pointer; box-shadow: var(--shadow); -webkit-tap-highlight-color: transparent; transition: background .1s, border-color .1s, color .1s, transform .06s; }
.attend-buttons button:active { transform: scale(.94); }
.attend-buttons button:focus-visible { outline: none; box-shadow: var(--ring); }
.attend-buttons [data-set="yes"][aria-pressed="true"] { background: #16a34a; border-color: #16a34a; color: #fff; }
.attend-buttons [data-set="no"][aria-pressed="true"] { background: #e11d48; border-color: #e11d48; color: #fff; }
.attend-buttons [data-set="excused"][aria-pressed="true"] { background: #e0a100; border-color: #e0a100; color: #fff; }
.attend-list li[data-status="yes"] { background: #f4fbf6; }
.attend-list li[data-status="no"] { background: #fff6f7; }
.attend-list li[data-status="excused"] { background: #fffaea; }
.attend-list li.is-failed { box-shadow: inset 3px 0 0 var(--err); }

.attend-bar { display: flex; align-items: center; gap: 12px; }
.attend-bar .btn { width: auto; flex: none; min-width: 120px; }
.attend-summary { flex: 1; display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font-size: 14px; color: var(--muted); }
.attend-summary b { font-variant-numeric: tabular-nums; }
.sum-yes b { color: var(--ok); }
.sum-no b { color: var(--err); }
.sum-excused b { color: var(--warn); }
.sum-none { font-weight: 650; color: var(--ink); }

/* ------------------------------------------------------------ animátori */

/* súhrn dochádzky stretka (animátor) */
.att-people { list-style: none; margin: 14px 0 0; padding: 0; }
.att-people li { display: grid; grid-template-columns: minmax(0, 1fr) 64px auto; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.att-people li:first-child { border-top: 0; }
.att-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.att-num { min-width: 52px; text-align: right; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.att-num small { color: var(--warn); font-size: 12px; font-weight: 600; }
.att-people .good .stat-bar i { background: #22a35a; }
.att-people .mid .stat-bar i { background: #e0a100; }
.att-people .bad .stat-bar i { background: #e11d48; }
.att-people + .hint { margin-top: 10px; font-size: 12.5px; }

.member-list { list-style: none; margin: 0; padding: 0; }
.member-list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.member-list li:first-child { border-top: 0; }
.member-list img, .member-nophoto { flex: none; width: 44px; height: 66px; border: 1px solid var(--line); border-radius: 9px; object-fit: cover; background: #f1f0ed; }

/* ------------------------------------------------------------ tablet */

@media (min-width: 700px) {
  .wrap { max-width: 740px; padding-left: 28px; padding-right: 28px; }
  .nav-inner { min-height: 62px; }
  .topnav .nav-extra { display: inline-block; }
  .page-head { padding-top: 48px; padding-bottom: 28px; }
  h1 { font-size: 44px; }
  .lead { font-size: 18px; }
  .card { padding: 26px; margin-bottom: 18px; }
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-grid > .field { margin-bottom: 0; }
  .choice-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-bottom: 18px; }
  .choice-grid > .card:only-child .pref-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .member-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 24px; }
  .member-list li, .member-list li:first-child { border-top: 1px solid var(--line); }
  .submit-bar { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; border-top: 0; background: linear-gradient(to top, var(--bg) 60%, rgba(248, 248, 246, 0)); -webkit-backdrop-filter: none; backdrop-filter: none; text-align: center; }
  .submit-bar .btn { max-width: 420px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 10px 24px -10px rgba(209, 63, 34, .6); }
  .auth-buttons { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .col-side .auth-buttons, .is-auth .auth-buttons { grid-template-columns: minmax(0, 1fr); }
  main > p > .btn { width: auto; min-width: 220px; }
  .photo-frame { max-width: 180px; }
  .stat b { font-size: 36px; }
  .summary-photo { width: 84px; height: 126px; }
  .is-auth .card { padding: 28px; }
  .attend-list { margin: 0 -10px; }
  .attend-list li { padding: 9px 10px; gap: 14px; }
  .attend-buttons { gap: 8px; }
  .attend-buttons button { width: 54px; height: 48px; }
  .attend-list img, .attend-list .member-nophoto { width: 36px; height: 54px; }
  .attend-name { font-size: 16px; }
  .attend-bar { justify-content: center; text-align: left; }
  .attend-bar .attend-summary { flex: 0 1 auto; }
  .cal-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cal-links a { text-align: center; }
  .col-side .cal-links { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------ desktop */

@media (min-width: 1000px) {
  .wrap { max-width: 800px; }
  .wrap-wide { max-width: 1180px; }
  .page-head { padding-top: 64px; padding-bottom: 36px; }
  h1 { font-size: 52px; }
  .is-auth h1 { font-size: 44px; }
  .layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .card { margin-bottom: 24px; }
  .act-state { max-width: 46%; }
  .foot { margin-top: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------ materiály */

.mat-list { list-style: none; margin: 0; padding: 0; }
.mat-list li { border-top: 1px solid var(--line); }
.mat-list li:first-child { border-top: 0; }
a.mat-in { display: flex; align-items: center; gap: 12px; margin: 0 -8px; padding: 11px 8px; border-radius: 12px; color: inherit; text-decoration: none; transition: background .12s; }
a.mat-in:hover, a.mat-in:focus-visible { background: #f5f4f1; outline: none; }
main a.mat-in { color: inherit; }
.mat-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; }
.mat-icon svg { width: 22px; height: 22px; }
.mat-study { background: #e8f0fe; color: #1a56db; }
.mat-slides { background: #fef3c7; color: #b45309; }
.mat-summary { background: #ecf8f0; color: #15803d; }
.mat-debate { background: #fce7f3; color: #be185d; }
.mat-quiz { background: #ede9fe; color: #6d28d9; }
.mat-main { flex: 1; min-width: 0; }
.mat-kind { display: block; font-size: 11.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mat-main strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 1px; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.mat.is-read .mat-main strong { font-weight: 550; color: var(--ink-2); }
.mat-meta { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.mat-meta b { color: var(--ok); font-weight: 650; }
.chip-new { background: var(--accent); color: #fff; }
.chip-answer { background: var(--warn-soft); color: var(--warn); }
.chip-read { background: var(--ok-soft); color: var(--ok); }
.chip-no { background: var(--err-soft); color: var(--err); }
@media (max-width: 479px) { .mat-list .sess-chip { padding: 2px 7px; font-size: 12px; } .mat-list .sess-arrow { display: none; } }
/* stránka Materiály: zobrazenia, nové a nedokončené, časová os po mesiacoch, posuvník času (assets/timeline.js) */
.mat-views { display: flex; gap: 6px; margin: 0 -18px 14px; padding: 2px 18px 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mat-views::-webkit-scrollbar { display: none; }
.mat-view { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--surface); font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
main a.mat-view { color: var(--ink-2); }
main a.mat-view:hover { border-color: var(--muted); color: var(--ink); }
main a.mat-view.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.mat-view .badge-count { min-width: 20px; height: 20px; padding: 0 6px; font-size: 11.5px; }
.mat-view.is-on .badge-count { background: #fff; color: var(--ink); }
.card.mat-todo { border: 1.5px solid #f4c7b6; background: #fff8f4; box-shadow: 0 1px 0 #fbe3d9, 0 6px 18px -12px rgba(209, 63, 34, .35); }
.mat-todo a.mat-in:hover, .mat-todo a.mat-in:focus-visible { background: #fdeee6; }
.mat-board .mat-list li { border-top: 0; } /* čiara len medzi viditeľnými riadkami – skryté (iné zobrazenie) sa nerátajú */
.mat-board .mat-list li:not([hidden]) ~ li { border-top: 1px solid var(--line); }
.mat-board .mat-todo .mat-list li:not([hidden]) ~ li { border-top-color: #f6ddd2; }
.mat-todo-head { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.mat-todo-head h2 { margin: 0; }
.card.mat-todo.is-done { padding-top: 14px; padding-bottom: 14px; border-color: var(--ok-line); background: var(--ok-soft); box-shadow: none; }
.mat-todo.is-done .mat-todo-head { display: none; }
.mat-alldone { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ok); font-size: 15px; font-weight: 600; }
.mat-alldone span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 13px; }
.mat-done-head { margin: 0 0 4px; font-size: 15px; color: var(--muted); }
.tl-month + .tl-month { margin-top: 10px; }
.tl-month-head { margin: 18px 0 2px; font-size: 21px; font-weight: 750; letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.tl-month-head span { color: var(--faint); font-weight: 600; }
.tl-group-head { margin: 14px 0 2px; font-size: 12px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); line-height: 1.4; }
.mat-empty { margin: 0 0 14px; }
.tl-rail { position: fixed; bottom: 16px; z-index: 18; width: 72px; user-select: none; -webkit-user-select: none; touch-action: none; }
.tl-track { position: absolute; top: 6px; bottom: 6px; left: 11px; width: 2px; border-radius: 2px; background: var(--line); }
.tl-marks { position: absolute; inset: 0; pointer-events: none; }
.tl-mark { position: absolute; left: 7px; display: flex; align-items: center; gap: 7px; transform: translateY(-50%); color: var(--muted); font-size: 11.5px; font-weight: 650; line-height: 1; white-space: nowrap; }
.tl-mark::before { content: ''; flex: none; width: 10px; height: 2px; border-radius: 2px; background: var(--line-strong); }
.tl-mark.is-dot::before { width: 6px; margin-left: 2px; }
.tl-thumb { position: absolute; left: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--bg); transform: translateY(-50%); pointer-events: none; }
.tl-bubble { position: absolute; right: calc(100% - 4px); display: grid; gap: 1px; width: max-content; max-width: min(320px, 72vw); padding: 7px 12px; border-radius: 11px; background: var(--ink); color: #fff; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .4); transform: translateY(-50%); pointer-events: none; font-size: 14px; line-height: 1.3; }
.tl-bubble b { font-weight: 700; white-space: nowrap; }
.tl-bubble span { overflow: hidden; color: #d6d3d1; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.tl-rail.is-side { cursor: pointer; }
.tl-rail.is-side .tl-bubble { right: calc(100% + 6px); }
.tl-rail.is-overlay { right: 0; width: 46px; pointer-events: none; }
.tl-rail.is-overlay .tl-track, .tl-rail.is-overlay .tl-marks { opacity: 0; transition: opacity .2s; }
.tl-rail.is-overlay.is-dragging .tl-track, .tl-rail.is-overlay.is-dragging .tl-marks { opacity: 1; }
.tl-rail.is-overlay .tl-track { left: auto; right: 22px; }
.tl-rail.is-overlay .tl-mark { left: auto; right: 16px; flex-direction: row-reverse; padding: 3px 7px 3px 5px; border-radius: 6px; background: rgba(255, 255, 255, .92); }
.tl-rail.is-overlay .tl-thumb { left: auto; right: 4px; display: grid; place-items: center; width: 34px; height: 44px; border: 1px solid var(--line-strong); border-radius: 17px; background: var(--surface); box-shadow: 0 4px 14px -4px rgba(28, 25, 23, .35); opacity: 0; transition: opacity .2s; }
.tl-rail.is-overlay.is-active .tl-thumb { opacity: 1; pointer-events: auto; cursor: grab; }
.tl-rail.is-overlay.is-dragging .tl-thumb { background: var(--ink); border-color: var(--ink); cursor: grabbing; }
.tl-grip { width: 12px; height: 16px; background: linear-gradient(var(--muted), var(--muted)) center top / 12px 2px no-repeat, linear-gradient(var(--muted), var(--muted)) center / 12px 2px no-repeat, linear-gradient(var(--muted), var(--muted)) center bottom / 12px 2px no-repeat; }
.tl-rail.is-overlay.is-dragging .tl-grip { filter: invert(1) brightness(2); }
.tl-rail.is-overlay .tl-bubble { right: 46px; }
@media (min-width: 700px) { .mat-views { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; } }
@media (prefers-reduced-motion: reduce) { .tl-rail * { transition: none !important; } }
.mat-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mat-cta h2 { margin-bottom: 14px; }
.mat-cta .hint { margin: 0 0 14px; }
.badge-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 700; }
.card > .mat-list + .hint { margin-top: 10px; }
h3.first { margin-top: 0; }
.mat-head-kind { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; font-weight: 650; color: var(--muted); line-height: 1.35; }
.mat-head-kind .mat-icon { width: 30px; height: 30px; border-radius: 9px; }
.mat-head-kind .mat-icon svg { width: 17px; height: 17px; }
.mat-body { font-size: 16px; line-height: 1.6; }
.mat-body p { margin: 0 0 14px; }
.mat-body > :last-child { margin-bottom: 0; }
.mat-body h2 { margin: 18px 0 6px; font-size: 17px; }
.mat-body h2:first-child { margin-top: 0; }
.mat-body ul, .mat-body ol { margin: 0 0 14px; padding-left: 22px; }
.mat-body li { margin: 4px 0; }
.mat-body blockquote { margin: 0 0 14px; padding: 8px 14px; border-left: 3px solid var(--line-strong); color: var(--ink-2); font-style: italic; }
.mat-body hr { margin: 16px 0; border: 0; border-top: 1px solid var(--line); }
.mat-body img { display: block; max-width: 100%; height: auto; margin: 6px 0; border-radius: 12px; border: 1px solid var(--line); }
.mat-body a { color: var(--accent); text-decoration-color: var(--line-strong); }
.mat-question { font-size: 16px; margin: 0 0 6px; color: var(--ink); }
.file-list { list-style: none; margin: 0; padding: 0; }
.file-list li + li { margin-top: 8px; }
.file-list a, main .file-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fafaf9; color: inherit; text-decoration: none; transition: border-color .12s, background .12s; }
.file-list a:hover { border-color: var(--line-strong); background: #fff; }
.file-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; }
.file-icon svg { width: 24px; height: 24px; }
.file-main { flex: 1; min-width: 0; }
.file-main strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-main small { display: block; font-size: 12.5px; color: var(--muted); }
.file-open { flex: none; color: var(--faint); font-size: 17px; }
.task-link { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 12px; font-size: 14px; color: var(--ink-2); }
.task-link b { color: var(--ink); }
.mark { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-size: 13px; font-weight: 700; }
.mark-yes { background: var(--ok-soft); color: var(--ok); }
.mark-none { background: #f1f0ed; color: var(--faint); }
.read-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.read-bar .hint { margin: 0; }
.read-done { display: inline-flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 650; }
.answer-box textarea { width: 100%; min-height: 96px; margin-bottom: 12px; }
#read-todo .btn { width: 100%; }
#read-todo .hint { margin-top: 10px; }
.notes-anim { border-color: var(--warn-line); background: var(--warn-soft); }
.notes-anim h2 { color: #713f12; }
.notes-anim .mat-body { color: #713f12; font-size: 15px; }
.mat-kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 6px; }
.pref-kind span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; font-size: 13.5px; }
.pref-kind .mat-icon { width: 34px; height: 34px; border-radius: 10px; }
.pref-kind .mat-icon svg { width: 18px; height: 18px; }
.pref-kind input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); box-shadow: 0 0 0 3px rgba(209, 63, 34, .1); }
.link-grid { margin-bottom: 0; }
@media (min-width: 700px) { .link-grid { grid-template-columns: 1.4fr 1fr; } }
/* lišta formátovania vo verejnej časti (animátor) */
.fmt-bar { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 6px; padding: 6px; border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 12px 12px 0 0; background: #fafaf9; }
.fmt-bar button { min-width: 32px; height: 30px; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; }
.fmt-bar button:hover { background: #fff; box-shadow: var(--shadow); }
.fmt-bar .sep { width: 1px; height: 20px; margin: 0 4px; background: var(--line); }
.fmt-bar .seg-control { display: inline-flex; gap: 2px; margin-left: auto; padding: 2px; border-radius: 9px; background: #efeeeb; }
.fmt-bar .seg-control a { padding: 4px 10px; border-radius: 7px; color: var(--muted); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.fmt-bar .seg-control a.active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(28, 25, 23, .12); }
.fmt-bar + textarea, .fmt-preview { margin-top: 0; border-radius: 0 0 12px 12px; }
.fmt-preview { min-height: 100px; padding: 12px 14px; border: 1px solid var(--line-strong); background: #fff; font-size: 15px; }
.fmt-help { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 1px 0; color: var(--faint); font-size: 12px; }
.fmt-help code { padding: 1px 5px; border-radius: 5px; background: #f1f0ed; color: var(--ink-2); font-size: 11.5px; }
/* prečítania stretka (animátor) */
.reads { list-style: none; margin: 0; padding: 0; }
.reads li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.reads li:first-child { border-top: 0; }
.reads .who { flex: 1; min-width: 0; }
.reads .who strong { font-weight: 600; }
.reads .who span { display: block; margin-top: 2px; color: var(--ink-2); font-size: 13.5px; line-height: 1.4; }
.reads .when { flex: none; color: var(--faint); font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ testy */

.test-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 14px 0; }
.test-facts div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fafaf9; }
.test-facts span { display: block; font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.test-facts b { display: block; margin-top: 2px; font-size: 16px; font-weight: 650; }
.pledge { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fafaf9; font-size: 14.5px; line-height: 1.45; cursor: pointer; }
.pledge input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); }
.attempts { list-style: none; margin: 0; padding: 0; }
.attempts li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.attempts li:first-child { border-top: 0; }
.attempts a { font-weight: 600; }
/* riešenie */
.q-head { margin: -6px 0 14px; }
.q-head-line { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.q-count { flex: 1; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.q-timer { padding: 2px 9px; border-radius: 99px; background: #f1f0ed; color: var(--ink-2); font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.q-timer.is-low { background: var(--err-soft); color: var(--err); }
.q-timer.is-over { background: var(--err); color: #fff; }
.q-bar { display: block; height: 5px; border-radius: 99px; background: #e9e7e3; overflow: hidden; }
.q-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.q-type { display: block; margin-bottom: 8px; font-size: 12.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.q-text { margin: 0 0 14px; font-size: 18px; font-weight: 650; line-height: 1.35; letter-spacing: -.01em; }
.q-text p { margin: 0 0 8px; }
.q-card.no-copy .q-text, .q-card.no-copy .opt-row span:last-child { -webkit-user-select: none; user-select: none; }
.q-media { margin: 0 0 14px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #f5f4f1; }
.q-media img { display: block; width: 100%; height: auto; }
.q-video { aspect-ratio: 16 / 9; background: #1c1917; }
.q-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.q-audio { padding: 10px; }
.q-audio audio { display: block; width: 100%; }
.opt-row { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; font-size: 15.5px; font-weight: 500; cursor: pointer; }
.opt-row input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt-row.is-on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px rgba(209, 63, 34, .1); }
.opt-row.is-ok { border-color: var(--ok-line); background: var(--ok-soft); }
.opt-row.is-bad { border-color: var(--err-line); background: var(--err-soft); }
.opt-row.is-miss { border-style: dashed; border-color: #86c9a2; }
.opt-row:focus-within { box-shadow: var(--ring); }
.opt-dot, .opt-box { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid var(--line-strong); background: #fff; color: transparent; font-size: 13px; font-weight: 700; }
.opt-dot { border-radius: 50%; }
.opt-box { border-radius: 6px; }
.is-on .opt-dot { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 45%, #fff 50%); }
.is-on .opt-box { border-color: var(--accent); background: var(--accent); color: #fff; }
.is-ok .opt-dot, .is-ok .opt-box { border-color: var(--ok); background: var(--ok); color: #fff; }
.is-bad .opt-dot, .is-bad .opt-box { border-color: var(--err); background: var(--err); color: #fff; }
.is-miss .opt-dot, .is-miss .opt-box { border-color: var(--ok); color: var(--ok); }
.q-input { margin-top: 4px; }
.q-saved { margin: 10px 0 0; }
.q-saved.is-err { color: var(--err); }
.q-nav { display: flex; align-items: center; gap: 10px; }
.q-nav .btn { flex: 1 1 0; width: auto; min-width: 0; }
.q-nav .btn-secondary { flex: 0 0 auto; }
.q-flag.is-on { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.q-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 10px; }
.q-grid a { display: grid; place-items: center; height: 36px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: var(--ink-2); font-size: 13.5px; font-weight: 650; text-decoration: none; }
.q-grid a.done { background: var(--ink); border-color: var(--ink); color: #fff; }
.q-grid a.now { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(209, 63, 34, .15); color: var(--accent); }
.q-grid a.flag { border-color: var(--warn); color: var(--warn); }
@media (min-width: 1000px) { .q-nav .btn { flex: 0 0 auto; min-width: 160px; } .q-nav { justify-content: space-between; } }
/* výsledok */
.score { display: flex; align-items: center; gap: 18px; }
.score-num { flex: none; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; border: 6px solid var(--ok); color: var(--ok); font-size: 24px; font-weight: 750; letter-spacing: -.02em; }
.score.is-fail .score-num { border-color: var(--err); color: var(--err); }
.score.is-wait .score-num { border-color: var(--line-strong); color: var(--faint); }
.score p { margin: 0; }
.score .lead { margin: 2px 0 0; font-size: 15px; }
.review { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.review > li { padding: 14px 0; border-top: 1px solid var(--line); }
.review > li:first-child { border-top: 0; padding-top: 0; }
.review .q-text { font-size: 15.5px; margin-bottom: 8px; }
.review .q-text > p:first-child::before { counter-increment: q; content: counter(q) ". "; color: var(--faint); }
.review .opt-row { margin-top: 6px; padding: 8px 12px; font-size: 14.5px; cursor: default; }
.review .pts { float: right; margin-left: 10px; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--muted); }
.pts.ok { color: var(--ok); }
.pts.bad { color: var(--err); }
.pts.part { color: var(--warn); }
.explain { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #f5f4f1; font-size: 14px; color: var(--ink-2); }
.explain b { color: var(--ink); }
.explain p { margin: 0; display: inline; }
.my-answer { margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14.5px; }
.my-answer.is-bad { border-color: var(--err-line); background: var(--err-soft); }
.feedback { margin-top: 8px; padding: 10px 12px; border: 1px solid var(--ok-line); border-radius: 10px; background: var(--ok-soft); font-size: 14.5px; color: #14532d; }
.feedback small { display: block; margin-top: 4px; color: var(--ok); font-size: 12.5px; }
/* hodnotenie (animátor) */
.grade-pts { display: inline-flex; gap: 4px; padding: 3px; border-radius: 11px; background: #f1f0ed; }
.grade-pts label { position: relative; margin: 0; }
.grade-pts input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.grade-pts span { display: grid; place-items: center; min-width: 40px; height: 34px; padding: 0 10px; border-radius: 8px; font-weight: 650; color: var(--muted); cursor: pointer; }
.grade-pts input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(28, 25, 23, .12); }
.grade-pts input:focus-visible + span { box-shadow: var(--ring); }
.grade-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.grade-line .hint { margin: 0; }
.signals { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--warn-line); border-radius: 10px; background: var(--warn-soft); color: #713f12; font-size: 13.5px; line-height: 1.5; }
.signals b { color: #92400e; }
.signals ul { margin: 4px 0 0; padding-left: 18px; }
.discussed { display: flex; gap: 10px; align-items: center; margin-top: 12px; font-size: 14px; cursor: pointer; }
.discussed input { width: 18px; height: 18px; accent-color: var(--ok); }
.prev-texts { margin-top: 10px; }
.prev-texts .my-answer { font-size: 13.5px; }
.people { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.people li:first-child { border-top: 0; }
.people li strong { flex: 1; min-width: 0; font-weight: 600; }
.people li strong a { color: inherit; text-decoration: none; }
.people li strong a:hover { color: var(--accent); }
.people li.is-now strong { color: var(--accent); }
.mat-head-kind a { color: var(--accent); }

/* ---------------------------------------------------------------- upomienka nedokončených údajov, heslo */
.nag { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nag > span { flex: 1 1 240px; }
.nag .btn { flex: none; min-height: 38px; padding: 8px 16px; font-size: 14px; }
.pw-box { margin-top: 14px; }
.pw-form { margin-top: 10px; }
.pw-form .btn { margin-top: 4px; }
.pw-forgot { margin-top: 16px; }
.inline-fields { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.inline-fields input { flex: 1 1 200px; min-width: 0; }
.inline-fields .btn { flex: none; }

/* ---------------------------------------------------------------- zaznamenávanie účasti: lišta, môj QR kód, skener */
.live-bar { position: sticky; top: calc(57px + env(safe-area-inset-top)); z-index: 19; display: flex; align-items: center; gap: 10px; padding: 11px 18px; background: var(--accent); color: #fff; font-size: 14.5px; font-weight: 600; text-decoration: none; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.live-bar:hover { background: var(--accent-hover); }
.live-bar.is-done { background: #15803d; }
.live-bar.live-scan { background: #1e3a8a; }
.live-bar .live-text { flex: 1 1 auto; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.3; }
.live-bar .live-text b { font-weight: 750; }
.live-bar .live-go { flex: none; display: inline-flex; align-items: center; gap: 2px; padding: 5px 10px 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .18); font-size: 13px; white-space: nowrap; }
.live-bar .live-go svg { width: 14px; height: 14px; }
.live-dot { flex: none; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: livepulse 1.4s ease-in-out infinite; }
@keyframes livepulse { 0%, 100% { opacity: .35; transform: scale(.75); } 50% { opacity: 1; transform: scale(1.1); } }
@media (max-width: 480px) { .live-bar { padding: 10px 14px; font-size: 13.5px; } .live-bar .live-go { padding: 5px 8px 5px 10px; font-size: 12.5px; } }

.ucast { text-align: center; }
.ucast-name { margin: 0 0 14px; font-size: 24px; font-weight: 750; letter-spacing: -.02em; }
.ucast-qr { display: grid; place-items: center; margin: 0 auto 12px; padding: 12px; width: min(100%, 360px); border-radius: 18px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 10px 30px rgba(28, 25, 23, .08); }
.ucast-qr svg, .ucast-qr img { display: block; width: 100%; height: auto; }
.only-light, .only-light .ucast-qr { color-scheme: only light; }
.ucast-qr { forced-color-adjust: none; }
.ucast-timer { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; }
.ucast-bar { display: block; width: min(100%, 360px); height: 4px; margin: 0 auto 10px; border-radius: 99px; background: var(--fill); overflow: hidden; }
.ucast-bar i { display: block; height: 100%; width: 100%; background: var(--accent); transition: width .25s linear; }
.ucast-done { display: none; margin: 0 auto 14px; padding: 22px 16px; width: min(100%, 360px); border-radius: 18px; background: var(--ok-soft); color: #14532d; font-size: 18px; }
.ucast-done svg { display: block; width: 56px; height: 56px; margin: 0 auto 8px; }
.ucast.is-done .ucast-done { display: block; }
.ucast.is-done .ucast-qr, .ucast.is-done .ucast-timer { display: none; }
.ucast-list { list-style: none; margin: 0; padding: 0; text-align: left; }
.ucast-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.ucast-list li b { flex: none; color: var(--muted); font-weight: 600; }
.ucast-list li.is-done b { color: #15803d; }
.ucast-none { margin: 0 0 14px; color: var(--ink-2); }

.pick-list { list-style: none; margin: 0; padding: 0; }
.pick-list li + li { border-top: 1px solid var(--line); }
.pick-list a { display: flex; flex-direction: column; gap: 2px; padding: 14px 4px; color: var(--ink); text-decoration: none; }
.pick-list a:hover { background: #fafaf9; }

.scan { padding-bottom: 14px; }
.scan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 12px; font-size: 14.5px; }
.scan-counter { flex: none; color: var(--muted); }
.scan-counter b { color: var(--ink); font-size: 18px; }
.scan-stage { position: relative; width: 100%; aspect-ratio: 3 / 4; max-height: 68vh; border-radius: 16px; background: #111; overflow: hidden; }
.scan-stage video { display: block; width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.scan-frame::before { content: ''; width: 66%; aspect-ratio: 1; border-radius: 18px; box-shadow: 0 0 0 2000px rgba(0, 0, 0, .35); }
.scan-frame i { position: absolute; width: 28px; height: 28px; border: 4px solid #fff; border-radius: 4px; }
.scan-frame i:nth-child(1) { top: calc(50% - 33% - 2px); left: calc(50% - 33% - 2px); border-right: 0; border-bottom: 0; }
.scan-frame i:nth-child(2) { top: calc(50% - 33% - 2px); right: calc(50% - 33% - 2px); border-left: 0; border-bottom: 0; }
.scan-frame i:nth-child(3) { bottom: calc(50% - 33% - 2px); left: calc(50% - 33% - 2px); border-right: 0; border-top: 0; }
.scan-frame i:nth-child(4) { bottom: calc(50% - 33% - 2px); right: calc(50% - 33% - 2px); border-left: 0; border-top: 0; }
.scan-hint { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; padding: 0 16px; color: #fff; font-size: 14px; font-weight: 600; text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.scan-start { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: auto; }
.scan-torch { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .22); color: #fff; font-size: 20px; cursor: pointer; }
.scan-torch.is-on { background: rgba(255, 255, 255, .85); }
.scan-manual { margin-top: 16px; padding: 4px 0 0; }
.scan-manual input[type="search"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-height: 50px; margin: 8px 0 0; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 17px; }
.scan-manual input[type="search"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.scan-manual input[type="search"]::-webkit-search-decoration, .scan-manual input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.scan-manual-hint { margin: 8px 0 0; }
.scan-people { list-style: none; margin: 10px 0 0; padding: 0; max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.scan-people:empty, .scan-people.is-empty { display: none; }
.scan-people li + li { border-top: 1px solid var(--line); }
.scan-people li button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; padding: 12px 14px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 16.5px; text-align: left; cursor: pointer; }
.scan-people li button::after { content: '＋'; flex: none; color: var(--accent); font-size: 20px; line-height: 1; }
.scan-people li button:hover, .scan-people li button:active { background: #fafaf9; }
.scan-recent { margin-top: 16px; }
.scan-recent h3 { margin: 0 0 6px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.scan-recent ul { list-style: none; margin: 0; padding: 0; }
.scan-recent li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.scan-recent li:first-child { border-top: 0; }

.scan-result { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; gap: 12px; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); background: #fff; border-top: 6px solid var(--ok); box-shadow: 0 -8px 30px rgba(0, 0, 0, .18); border-radius: 18px 18px 0 0; animation: sheetin .18s ease-out; }
.scan-result.is-again { border-top-color: #d97706; }
.scan-result.is-error { border-top-color: var(--err); }
@keyframes sheetin { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.scan-card { display: flex; align-items: center; gap: 14px; }
.scan-card img { flex: none; width: 76px; height: 114px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); }
.scan-who { min-width: 0; }
.scan-name { margin: 0 0 4px; font-size: 22px; font-weight: 750; letter-spacing: -.02em; line-height: 1.15; }
.scan-status { margin: 0; color: #15803d; font-size: 15px; font-weight: 600; }
.is-again .scan-status { color: #b45309; }
.is-error .scan-status { color: var(--err); }
.scan-ok { min-height: 54px; font-size: 17px; }
@media (min-width: 720px) { .scan-result { left: 50%; right: auto; width: 520px; transform: translateX(-50%); border-radius: 18px; bottom: 24px; } }

.callout-info { background: var(--info-soft, #eaf1ff); border-color: #c7d2fe; color: #1e3a8a; }
.setup-prompt { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; padding: 10px 12px; font-size: 13.5px; line-height: 1.4; }
.setup-prompt > span:first-child { flex: 1 1 220px; }
.setup-prompt .setup-actions { display: inline-flex; align-items: center; gap: 4px; }
.setup-prompt .btn { width: auto; min-height: 34px; padding: 5px 13px; font-size: 13.5px; }
.setup-prompt .link-btn { font-size: 13px; }
.setup-actions { display: inline-flex; align-items: center; gap: 12px; }
.setup-actions .btn { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.setup-actions .link-btn { color: #1e3a8a; }

/* ------------------------------------------------------------ špeciálne ponuky (lib/offers.php) */

.offer-heading { margin: 4px 0 10px; }
.offer-list { list-style: none; margin: 0; padding: 0; }
.offer-list li + li { margin-top: 12px; }
a.offer-card, main a.offer-card { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: inherit; text-decoration: none; box-shadow: var(--shadow); transition: border-color .12s; }
a.offer-card:hover, a.offer-card:focus-visible { border-color: var(--line-strong); outline: none; }
.offer-photo { flex: none; width: 84px; height: 84px; border-radius: 12px; object-fit: cover; background: #f1f0ed; }
.offer-body { flex: 1; min-width: 0; }
.offer-body strong { display: block; font-size: 16.5px; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; }
.offer-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin-top: 3px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.offer-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.offer-mine { list-style: none; margin: 0; padding: 0; }
.offer-mine li { border-top: 1px solid var(--line); }
.offer-mine li:first-child { border-top: 0; }
.offer-hero { display: block; width: 100%; max-height: 320px; margin: 0 0 14px; border: 1px solid var(--line); border-radius: var(--radius); object-fit: cover; background: #f1f0ed; }
.offer-facts { display: grid; gap: 8px; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
.offer-facts div { display: grid; grid-template-columns: 112px 1fr; gap: 10px; font-size: 14.5px; }
.offer-facts dt { margin: 0; padding-top: 2px; font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.offer-facts dd { margin: 0; color: var(--ink-2); }
.offer-status h2 .sess-chip { margin-left: auto; }
.offer-status-text { margin: 0 0 12px; font-size: 15.5px; }
.offer-status-accepted { border-color: var(--ok-line); }
.offer-status-pending, .offer-status-waitlist { border-color: var(--warn-line); }
.offer-reply { margin-bottom: 12px; }
.offer-contact { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fafaf9; font-size: 15px; }
.offer-contact .label { margin-bottom: 4px; }
.offer-contact .mat-body { font-size: 15px; }
.offer-rich a { color: var(--accent-hover); font-weight: 600; overflow-wrap: anywhere; }
.offer-status form { margin-top: 4px; }
.offer-status form .btn { width: auto; min-height: 42px; padding: 9px 16px; font-size: 14.5px; }
/* prihlášky v portáli animátora */
.sg-list { list-style: none; margin: 0; padding: 0; }
.sg-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.sg-list li:first-child { border-top: 0; padding-top: 0; }
.sg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sg-head strong { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 600; }
.sg-meta { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.sg-meta a { color: var(--ink-2); }
.sg-note { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.sg-note b { font-weight: 600; color: var(--ink); }
.sg-form { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 10px; }
.sg-form select, .sg-form input { min-height: 42px; padding: 8px 11px; font-size: 15px; }
.sg-form .btn { width: auto; min-height: 42px; padding: 8px 14px; font-size: 14.5px; }
.copy-row { display: flex; flex-wrap: wrap; gap: 8px; }
.copy-row .btn { width: auto; min-height: 40px; padding: 8px 14px; font-size: 14px; }
.copy-src { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.bonus-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; font-size: 14.5px; }
.bonus-line .muted { color: var(--muted); }
@media (min-width: 700px) {
  .sg-form { grid-template-columns: 160px 1fr auto; align-items: center; }
  .offer-photo { width: 104px; height: 104px; }
}

/* administrátor si pozerá stránku očami birmovanca (lib/tester.php) */
.viewas-bar { position: sticky; top: calc(57px + env(safe-area-inset-top)); z-index: 19; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 9px 18px; background: #1e3a8a; color: #fff; font-size: 13.5px; }
.viewas-bar b { font-weight: 700; }
.viewas-bar a { flex: none; padding: 4px 11px; border-radius: 99px; background: rgba(255, 255, 255, .18); color: #fff; font-weight: 600; text-decoration: none; }
.viewas-bar a:hover { background: rgba(255, 255, 255, .3); }
.viewas-bar + .live-bar { top: calc(57px + 41px + env(safe-area-inset-top)); }

/* ------------------------------------------------------------ novinky (lib/news.php) */

.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.news-item:first-child { border-top: 0; padding-top: 0; }
.news-card .news-item:first-child { padding-top: 2px; }
.news-item.is-read { opacity: .62; }
.news-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #f1f0ed; color: var(--ink-2); }
.news-icon svg { width: 19px; height: 19px; }
.news-material, .news-test { background: #e8f0fe; color: #1a56db; }
.news-offer { background: #fef3c7; color: #b45309; }
.news-decision { background: var(--ok-soft); color: var(--ok); }
.news-weekly { background: #ede9fe; color: #6d28d9; }
.news-session { background: var(--err-soft); color: var(--err); }
.news-task { background: var(--warn-soft); color: var(--warn); }
.news-event { background: #ecf8f0; color: #15803d; }
.news-main { flex: 1; min-width: 0; }
.news-title, main a.news-title { display: block; color: var(--ink); font-size: 15.5px; font-weight: 600; line-height: 1.3; text-decoration: none; }
.news-title:hover { color: var(--accent-hover); }
.news-text { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.news-sub { list-style: none; margin: 4px 0 0; padding: 0; }
.news-sub li { font-size: 14px; line-height: 1.5; }
.news-sub a { color: var(--ink-2); font-weight: 500; text-decoration-color: var(--line-strong); }
.news-date { display: block; margin-top: 3px; font-size: 12px; color: var(--faint); }
.news-done { flex: none; }
.news-done button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; color: var(--muted); cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
.news-done button:hover { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.news-done svg { width: 16px; height: 16px; }
.news-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.news-foot .link-btn { padding: 4px 0; font-size: 13.5px; }
.news-foot .link-btn:hover { color: var(--ink); }
.news-foot .hint { margin: 0; }
.card.news-card > .mat-cta .link-btn { padding: 0 0 14px; }
.news-item.is-warn .news-icon { background: var(--warn-soft); color: var(--warn); }
.news-item.is-err .news-icon { background: var(--err-soft); color: var(--err); }
.news-item.is-err .news-title { color: var(--err); }
.news-item.is-warn .news-title { color: #8a5a00; }
.news-extra { display: block; margin-top: 6px; }
.news-mail, main a.news-mail { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 99px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.news-mail:hover { border-color: var(--accent); color: var(--accent-hover); }
.news-item { transition: opacity .25s, transform .25s; }
.news-item.is-going { opacity: 0; transform: translateX(10px); }

/* natívna appka (lib/native.php): navigáciu nahrádza lišta appky, bez spojenia lišta „Si offline“ (assets/native.js) */
.is-native .page-head { padding-top: 20px; }
.offline-bar { position: sticky; top: 0; z-index: 30; padding: 9px 16px; background: var(--warn-soft); border-bottom: 1px solid var(--warn-line); color: var(--warn); font-size: 14px; font-weight: 600; text-align: center; }
