:root {
  --bg: #F6F5F1;
  --card: #FFFFFF;
  --ink: #1C2430;
  --ink-2: #3A414B;
  --muted: #5A616B;
  --line: #E2DFD7;
  --line-2: #CFCBC1;
  --green: #2F5D50;
  --green-dark: #1E3F36;
  --green-bg: #E6F0EC;
  --red: #9A3A12;
  --red-bg: #FBF1EA;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3 { font-family: "Source Serif 4", Georgia, serif; line-height: 1.2; margin: 0 0 12px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.page { padding-top: 28px; padding-bottom: 64px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 14px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }

.logo { width: 44px; height: 44px; border-radius: 10px; background: var(--green); display: flex; align-items: center; justify-content: center; flex: none; }

/* Tlačidlá – min. 44 px */
.btn { min-height: 44px; padding: 0 16px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; border: 1px solid var(--line-2); background: #fff; color: var(--ink); }
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: transparent; }
.btn-lg { min-height: 60px; font-size: 20px; border-radius: 12px; }

.input-lg { min-height: 56px; border: 2px solid var(--line-2); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 20px; width: 100%; }
.input-code { min-height: 68px; border: 2px solid var(--green); border-radius: 12px; font: inherit; font-size: 34px; font-weight: 700; letter-spacing: .2em; text-align: center; width: 100%; }
.input-lg:focus, .input-code:focus { outline: 3px solid #9CC2B5; outline-offset: 1px; }
.label-lg { font-weight: 700; font-size: 20px; }

.alert { border-radius: 12px; padding: 12px 16px; font-weight: 600; margin-bottom: 16px; }
.alert-error { background: var(--red-bg); color: var(--red); }
.alert-ok { background: var(--green-bg); color: var(--green-dark); }

/* Prihlásenie */
body.login { font-size: 18px; }
.login-wrap { max-width: 440px; margin: 0 auto; padding: 56px 20px 32px; }
.login-brand { text-align: center; margin-bottom: 24px; }
.login-brand .logo { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 12px; }
.login-brand h1 { font-size: 28px; margin: 0; }
.login-wrap form.center { margin-top: 12px; }

/* Hlavička a záložky */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); }
.topbar-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-name { font-family: "Source Serif 4", Georgia, serif; font-weight: 700; font-size: 22px; line-height: 1.2; }
.user-box { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-2); }
.user-box form { margin: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tabs a { padding: 12px 16px; text-decoration: none; color: var(--ink-2); font-weight: 600; border-bottom: 3px solid transparent; }
.tabs a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); font-weight: 700; }

/* Pätička */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
.site-footer { text-align: center; font-size: 14px; color: var(--muted); padding: 24px 16px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--green); text-decoration: underline; }

/* Spoločné prvky */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
a.brand { color: inherit; text-decoration: none; }
.btn-link { display: inline-flex; align-items: center; text-decoration: none; }
.btn-primary.btn-link, .btn-primary.btn-link:hover { color: #fff; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 15px; }
.stack-lg { display: flex; flex-direction: column; gap: 20px; }
.card h2 { font-size: 22px; }
.card-flush { padding: 0; overflow: hidden; }
h1 { font-size: 30px; }

.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.page-head h1 { margin: 0; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; min-height: 48px; color: var(--muted); flex: 1 1 280px; max-width: 420px; }
.search input { border: none; outline: none; font: inherit; width: 100%; background: transparent; color: var(--ink); }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--green); }
.checks { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }

/* Tabuľka */
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th { text-align: left; font-size: 14px; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #FBFAF7; }
.table td { padding: 12px 14px; border-bottom: 1px solid #EFEDE7; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.row-inactive td { color: var(--muted); background: #FAF9F6; }
.row-override td { background: #FFF8EF; }
.table-perms { max-width: 640px; }
.table-perms select { min-width: 200px; }

/* Štítky */
.badge { display: inline-block; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 2px 10px; margin-left: 4px; white-space: nowrap; }
.badge-muted { background: #EFEDE7; color: var(--ink-2); }
.badge-warn { background: var(--red-bg); color: var(--red); }
[class*="badge-role-"] { margin-left: 0; background: #EFEDE7; color: var(--ink-2); }
.badge-role-admin, .badge-role-predseda, .badge-role-podpredseda { background: var(--green-bg); color: var(--green-dark); }
.badge-role-pokladnik { background: var(--red-bg); color: #8A3810; }
.badge-role-pravnik { background: #E3ECF8; color: #1F4C94; }

/* Formulár */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 700; }
.field input, .field select, .table select { min-height: 48px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; font: inherit; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .table select:focus { outline: 3px solid #9CC2B5; outline-offset: 1px; border-color: var(--green); }
.field-error { color: var(--red); font-weight: 600; font-size: 15px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ===================== Hlasovanie ===================== */
.tab-badge { display: inline-block; background: #B4471A; color: #fff; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 0 8px; margin-left: 4px; line-height: 20px; }
.group-title { font-size: 20px; margin: 20px 0 10px; }
.text-red { color: var(--red); }
.note { background: #F3F1EC; border-radius: 12px; padding: 18px; color: var(--ink-2); }
textarea { min-height: 120px; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px; font: inherit; resize: vertical; }
.field textarea:focus { outline: 3px solid #9CC2B5; outline-offset: 1px; border-color: var(--green); }
.btn-danger { color: #8A2A0E; border-color: #E3B9A6; }

.poll-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.poll-item { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; color: var(--ink); text-decoration: none; }
.poll-item:hover { border-color: var(--green); color: var(--ink); }
.poll-item-todo { border: 2px solid var(--green); }
.poll-item-title { font-weight: 700; font-size: 18px; line-height: 1.3; }
.poll-item-me { font-size: 15px; font-weight: 700; margin-top: 2px; }
.poll-item-me.todo { color: var(--red); }
.poll-item-me.ok { color: var(--green-dark); }

.poll-block { margin-bottom: 20px; display: flex; flex-direction: column; gap: 16px; }
.poll-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 14px; }
.poll-head h2 { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; font-size: 14px; font-weight: 700; border-radius: 999px; padding: 3px 12px; white-space: nowrap; }
.chip-muted { background: #EFEDE7; color: var(--ink-2); font-weight: 600; }
.chip-green { background: var(--green-bg); color: var(--green-dark); }
.result-passed { background: var(--green-bg); color: var(--green-dark); }
.result-failed, .result-no_quorum { background: var(--red-bg); color: var(--red); }
.result-cancelled, .result-pending { background: #EFEDE7; color: var(--ink-2); }
.poll-item-me.result-passed, .poll-item-me.result-failed, .poll-item-me.result-no_quorum, .poll-item-me.result-cancelled { background: none; }

.countdown { display: flex; align-items: center; gap: 12px; background: var(--red-bg); border-radius: 12px; padding: 10px 16px; }
.countdown-num { font-family: "Source Serif 4", Georgia, serif; font-size: 40px; font-weight: 700; line-height: 1; color: var(--red); }
.countdown-txt { font-weight: 700; color: var(--red); }
.poll-title { font-size: 32px; margin: 0; }
.poll-desc { color: var(--ink-2); max-width: 760px; }
.poll-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.poll-meta strong { color: var(--ink); }

.vote-box { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.vote-label { font-weight: 700; font-size: 18px; }
.vote-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.vote-btn { flex: 1 1 160px; min-height: 64px; border-radius: 12px; border: 2px solid; background: #fff; font: inherit; font-size: 20px; font-weight: 700; cursor: pointer; }
.vote-yes { color: #2A5DB0; border-color: #2A5DB0; }
.vote-no { color: #A8481A; border-color: #A8481A; }
.vote-abstain { color: #4E545C; border-color: #4E545C; }
.vote-yes.is-selected, .vote-yes:hover { background: #2A5DB0; color: #fff; }
.vote-no.is-selected, .vote-no:hover { background: #A8481A; color: #fff; }
.vote-abstain.is-selected, .vote-abstain:hover { background: #4E545C; color: #fff; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; border-top: 1px dashed var(--line-2); padding-top: 14px; }
.admin-actions form { margin: 0; }

.bar-wrap { position: relative; padding-top: 28px; }
.bar { display: flex; height: 48px; border-radius: 10px; overflow: hidden; background: repeating-linear-gradient(135deg, #ECE9E2 0 8px, #E1DDD4 8px 16px); }
.bar-yes { background: #2A5DB0; }
.bar-no { background: #E59A62; }
.bar-abstain { background: #A3A8AF; }
.bar-quorum { position: absolute; top: 22px; bottom: -6px; width: 2px; background: var(--ink); }
.bar-quorum-label { position: absolute; top: 0; transform: translateX(-50%); font-size: 13px; font-weight: 700; white-space: nowrap; }
.bar-quorum-label.q-end { transform: translateX(-100%); padding-right: 6px; }
.bar-quorum-label.q-start { transform: none; padding-left: 6px; }
.poll-block .poll-head + .bar-wrap, .poll-block .alert + .bar-wrap { margin-top: 4px; }
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.legend-key { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.legend-num { font-family: "Source Serif 4", Georgia, serif; font-size: 34px; font-weight: 700; line-height: 1.1; }
.sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.sw-yes { background: #2A5DB0; } .sw-no { background: #E59A62; } .sw-abstain { background: #A3A8AF; }
.sw-none { background: #E1DDD4; border: 1px solid #A3A8AF; }
.verdict { border-radius: 12px; padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.verdict strong { font-size: 18px; }

.voters { display: flex; flex-wrap: wrap; gap: 28px; }
.voters-col { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.voters-waiting { background: #FBF7F3; border-radius: 12px; padding: 16px 18px; }
.voter { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #EFEDE7; }
.vote-chip-yes { background: #E3ECF8; color: #1F4C94; }
.vote-chip-no { background: #F8E6DA; color: #8A3810; }
.vote-chip-abstain { background: #ECECEA; color: #41464E; }

@media (max-width: 600px) {
  .poll-title { font-size: 26px; }
  .vote-buttons { flex-direction: column; }
  .wrap { padding: 0 16px; }
}

/* ===================== Dialógové okná ===================== */
dialog.modal { border: none; padding: 0; background: transparent; max-width: min(480px, calc(100vw - 32px)); width: 100%; }
dialog.modal::backdrop { background: rgba(28, 36, 48, 0.45); backdrop-filter: blur(2px); }
dialog.modal[open] { animation: modal-in .18s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-box { background: #fff; border-radius: 18px; padding: 28px 28px 24px; box-shadow: 0 20px 50px rgba(28,36,48,.25); display: flex; flex-direction: column; gap: 10px; text-align: center; margin: 0; }
.modal-icon { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 4px; display: flex; align-items: center; justify-content: center; font-family: "Source Serif 4", Georgia, serif; font-size: 30px; font-weight: 700; background: var(--green-bg); color: var(--green); }
.modal-danger .modal-icon { background: var(--red-bg); color: var(--red); }
.modal-title { margin: 0; font-size: 24px; }
.modal-text { margin: 0 0 8px; color: var(--ink-2); font-size: 18px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.modal-actions .btn { flex: 1 1 150px; }
.btn-danger-solid, .btn-danger-solid:hover { background: #A8481A; border-color: #A8481A; color: #fff; }

/* ===================== Dokumenty ===================== */
.with-icon { display: flex; align-items: center; gap: 8px; color: var(--red); }
.chip-warn { background: var(--red-bg); color: #8A3810; }
.doc-pinned { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 24px; }
.doc-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 2px solid #E8C8B2; border-radius: 14px; padding: 16px 18px; color: var(--ink); text-decoration: none; }
.doc-card:hover { border-color: #C9875B; color: var(--ink); }
.doc-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.doc-card-title { font-family: "Source Serif 4", Georgia, serif; font-weight: 700; font-size: 20px; line-height: 1.25; }
.doc-card-read { font-size: 15px; font-weight: 700; }
.doc-card-read.ok { color: var(--green-dark); }
.doc-card-read.todo { color: var(--red); }
.search-inline { flex: 0 1 320px; min-height: 44px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.cat-chip { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.cat-chip:hover { border-color: var(--green); color: var(--green); }
.cat-chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.doc-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.input-file { min-height: 72px; border: 2px dashed var(--line-2); border-radius: 12px; padding: 12px 14px; font: inherit; color: var(--muted); background: #FBFAF7; width: 100%; cursor: pointer; }
.input-file:hover, .input-file:focus { border-color: var(--green); background: #F4F8F6; outline: none; }
.input-file::file-selector-button {
  min-height: 46px; margin-right: 14px; padding: 0 20px; border: none; border-radius: 10px;
  background: var(--green); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.input-file::file-selector-button:hover { background: var(--green-dark); }
.readers { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-picker { display: flex; flex-direction: column; max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 6px 14px; }
.poll-attach { display: flex; flex-wrap: wrap; gap: 10px; }
.attach-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; text-decoration: none; font-weight: 600; }
.attach-link:hover { border-color: var(--green); }

/* ===================== Galéria ===================== */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.album-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--ink); text-decoration: none; }
.album-card:hover { border-color: var(--green); color: var(--ink); }
.album-cover { aspect-ratio: 4 / 3; background: #E9E6DE; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-info { padding: 12px 16px 14px; }
.album-title { font-weight: 700; font-size: 18px; line-height: 1.3; }

.upload-box { margin-bottom: 20px; display: flex; flex-direction: column; gap: 14px; }
.upload-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.upload-btn { min-height: 88px; border-radius: 14px; border: 2px solid var(--green); background: #fff; color: var(--green); font-weight: 700; font-size: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-align: center; }
.upload-btn:hover { background: var(--green-bg); }
.upload-btn-primary { background: var(--green); color: #fff; }
.upload-btn-primary:hover { background: var(--green-dark); }
.upload-btn:focus-within { outline: 3px solid #9CC2B5; outline-offset: 2px; }
.upload-box.is-busy .upload-btn { opacity: .5; pointer-events: none; }
.upload-progress { display: flex; flex-direction: column; gap: 8px; }
.upload-progress-row { display: flex; justify-content: space-between; font-weight: 700; }
.upload-bar { height: 12px; border-radius: 999px; background: #E9E6DE; overflow: hidden; }
.upload-bar > div { height: 100%; width: 0; background: var(--green); transition: width .3s; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.photo-tile { position: relative; aspect-ratio: 1 / 1; padding: 0; border: none; border-radius: 10px; overflow: hidden; background: #E9E6DE; cursor: zoom-in; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.photo-tile:hover img { transform: scale(1.04); }
.photo-tile:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.photo-badge { position: absolute; left: 6px; bottom: 6px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 12px; font-weight: 700; border-radius: 6px; padding: 2px 8px; }
@media (max-width: 600px) { .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; } .photo-tile { border-radius: 6px; } }

/* prehliadač fotiek */
dialog.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: none; background: rgba(12, 16, 22, .96); color: #fff; }
dialog.lightbox[open] { display: flex; align-items: center; justify-content: center; }
dialog.lightbox::backdrop { background: rgba(12, 16, 22, .96); }
.lb-img { max-width: 100vw; max-height: calc(100vh - 120px); object-fit: contain; user-select: none; }
.lb-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: linear-gradient(rgba(0,0,0,.55), transparent); }
.lb-info { font-size: 15px; color: #E8E6E1; }
.lb-actions { display: flex; gap: 6px; }
.lb-actions form { margin: 0; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: none; background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.25); color: #fff; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; border: none; background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lb-nav:hover { background: rgba(255,255,255,.25); }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-single .lb-nav, .lb-single .lb-count { display: none; }
.lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font-size: 15px; color: #E8E6E1; }
@media (max-width: 600px) { .lb-nav { width: 44px; height: 44px; background: rgba(0,0,0,.35); } .lb-prev { left: 6px; } .lb-next { right: 6px; } }

/* výber titulnej fotky */
.cover-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; max-height: 460px; overflow-y: auto; padding: 4px; }
.cover-option { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; cursor: pointer; border: 3px solid transparent; background: #E9E6DE; }
.cover-option img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-option:hover { border-color: #9CC2B5; }
.cover-option:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 2px #fff inset; }
.cover-option:has(input:focus-visible) { outline: 3px solid #9CC2B5; outline-offset: 2px; }
.cover-check { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; display: none; align-items: center; justify-content: center; }
.cover-option:has(input:checked) .cover-check { display: flex; }
.cover-auto-box { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-weight: 700; padding: 8px; }

/* ===================== Oznamy ===================== */
.ann-list { display: flex; flex-direction: column; gap: 16px; }
.ann { display: flex; flex-direction: column; gap: 10px; }
.ann-pinned { border: 2px solid #E8C8B2; }
.ann-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 28px; }
.ann-title { margin: 0; font-size: 24px; }
.ann-compact .ann-title { font-size: 20px; }
.ann-title a { color: var(--ink); text-decoration: none; }
.ann-title a:hover { color: var(--green); }
.ann-body { font-size: 18px; color: var(--ink); max-width: 760px; }
.ann-body p { margin: 0 0 10px; }
.ann-body p:last-child { margin-bottom: 0; }
.ann-body a { word-break: break-all; }
.ann-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
:target.ann { outline: 3px solid #9CC2B5; outline-offset: 2px; }

/* skrytá záložka (vidí ju len superadmin) */
.tabs a.tab-hidden { opacity: .6; border-bottom-style: dashed; }
.tab-off { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: #EFEDE7; color: var(--ink-2); border-radius: 6px; padding: 1px 6px; margin-left: 4px; vertical-align: 2px; }

/* galéria – triedenie a dni */
.select-inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.select-inline select { min-height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; font: inherit; font-weight: 400; background: #fff; color: var(--ink); max-width: 100%; }
.select-inline select:focus { outline: 3px solid #9CC2B5; outline-offset: 1px; border-color: var(--green); }
.photo-day { grid-column: 1 / -1; font-size: 17px; font-family: inherit; font-weight: 700; margin: 14px 0 2px; color: var(--ink-2); }
.photo-day:first-child { margin-top: 0; }
@media (max-width: 600px) { .select-inline { width: 100%; } .select-inline select { flex: 1; } }
