/* Fotoklub Hustopeče – vzhled webu */
:root {
  --bg: #0f0f10;
  --bg-2: #17171a;
  --bg-3: #212125;
  --line: #2c2c31;
  --text: #ece8e1;
  --muted: #9b968e;
  --accent: #e0b25a;
  --accent-2: #f3cf86;
  --danger: #e2665b;
  --ok: #7cc49a;
  --radius: 10px;
  --wrap: 1240px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: .5rem 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.eyebrow { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; font-weight: 600; }
.eyebrow a { color: var(--muted); }
.eyebrow a:hover { color: var(--text); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(15,15,16,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--text); }
.brand-mark svg { width: 34px; height: 34px; color: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-small { font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.brand-big { font-family: var(--serif); font-size: 1.35rem; margin-top: 3px; }
.main-nav { display: flex; align-items: center; flex: 1; gap: 1.5rem; }
.main-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; flex: 1; }
.main-nav ul a { color: var(--muted); padding: .45rem .7rem; border-radius: 6px; font-weight: 500; font-size: .95rem; }
.main-nav ul a:hover { color: var(--text); background: var(--bg-2); }
.main-nav ul a[aria-current] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.user-nav { display: flex; align-items: center; gap: .8rem; }
.login-link { color: var(--muted); font-size: .9rem; border: 1px solid var(--line); padding: .45rem .9rem; border-radius: 999px; }
.login-link:hover { border-color: var(--accent); color: var(--text); }
.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: .5rem; cursor: pointer; padding: .25rem .4rem; border-radius: 999px; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { background: var(--bg-2); }
.user-menu summary img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.user-name { font-size: .9rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown { position: absolute; right: 0; top: calc(100% + 8px); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem; min-width: 220px; box-shadow: 0 18px 40px rgba(0,0,0,.5); display: flex; flex-direction: column; }
.user-dropdown a, .user-dropdown button { color: var(--text); padding: .5rem .75rem; border-radius: 6px; font: inherit; font-size: .92rem; text-align: left; background: none; border: 0; cursor: pointer; width: 100%; }
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--bg-3); }
.dd-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); padding: .4rem .75rem .1rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; transition: .2s; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: 600 .92rem/1 var(--sans); padding: .8rem 1.25rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; color: var(--text); background: var(--bg-3); }
.btn-accent { background: var(--accent); color: #1a1408; }
.btn-accent:hover { background: var(--accent-2); color: #1a1408; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }
.btn-danger { background: transparent; border-color: rgba(226,102,91,.5); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: .5rem .9rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: wait; }
.link-arrow { font-weight: 600; font-size: .92rem; }

/* ---------- flash ---------- */
.flashes { margin-top: 1rem; display: grid; gap: .5rem; }
.flash { position: relative; padding: .85rem 2.5rem .85rem 1rem; border-radius: var(--radius); background: var(--bg-2); border-left: 3px solid var(--ok); font-size: .95rem; }
.flash-error { border-left-color: var(--danger); }
.flash-info { border-left-color: var(--accent); }
.flash a { text-decoration: underline; }
.flash-x { position: absolute; right: .5rem; top: .45rem; background: none; border: 0; color: var(--muted); font-size: 1.3rem; cursor: pointer; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; background: #0a0a0a var(--hero, none) center/cover no-repeat; overflow: hidden; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,15,16,.15) 0%, rgba(15,15,16,.35) 45%, rgba(15,15,16,.96) 100%), linear-gradient(90deg, rgba(15,15,16,.6), transparent 70%); }
.hero-inner { position: relative; padding-top: 6rem; padding-bottom: clamp(3rem, 8vh, 5.5rem); }
.hero-title { font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 300; margin-bottom: .2em; max-width: 12ch; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #d6d1c8; max-width: 40ch; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-credit { position: absolute; right: clamp(16px, 4vw, 40px); bottom: 1.2rem; font-size: .78rem; color: rgba(255,255,255,.55); }
.hero-credit:hover { color: #fff; }

/* ---------- sections ---------- */
.section { padding-top: clamp(3rem, 7vw, 5rem); }
.section-tight { padding-top: 1.5rem; padding-bottom: 1rem; }
.section-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-head .section-title, .section-head .page-title { margin-bottom: .2rem; }
.page-head { padding-top: clamp(2rem, 5vw, 3.5rem); }
.page-title { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 400; }
.page-narrow { max-width: 760px; padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: 2rem; }
.page-narrow.wide { max-width: 980px; }
.intro-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.prose { font-size: 1.05rem; color: #d9d4cc; max-width: 68ch; }
.prose strong { color: var(--text); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.meeting-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 1.8rem; position: sticky; top: 90px; }
.meeting-card.inline { position: static; margin-top: 2rem; }
.meeting-text { font-family: var(--serif); font-size: 1.35rem; line-height: 1.35; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.empty { color: var(--muted); padding: 2rem 0; }
.empty-big { text-align: center; padding: 4rem 1rem; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(14px, 2vw, 24px); }
.cards-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { display: flex; flex-direction: column; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--bg-2); border-radius: var(--radius); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .3s; }
.card-media:hover img { transform: scale(1.04); }
.card-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .85rem; }
.card-count { position: absolute; right: .6rem; bottom: .6rem; background: rgba(0,0,0,.6); color: #fff; font-size: .75rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; backdrop-filter: blur(4px); }
.card-count::before { content: "◫ "; opacity: .7; }
.card-album .card-media { box-shadow: 6px -6px 0 -1px var(--bg-3), 6px -6px 0 0 var(--line); margin: 6px 6px 0 0; }
.badge { position: absolute; left: .6rem; top: .6rem; font-size: .7rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; background: rgba(15,15,16,.78); color: var(--accent-2); backdrop-filter: blur(4px); }
.badge-lock::before, .badge-inline::before { content: "🔒︎ "; font-size: .85em; }
.badge-inline { color: var(--accent-2); font-weight: 600; }
.tag { font-size: .72rem; border: 1px solid var(--line); border-radius: 999px; padding: .05rem .5rem; color: var(--muted); }
.card-body { padding: .8rem .1rem 0; }
.card-title { font-size: 1.2rem; margin-bottom: .25rem; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent-2); }
.card-meta { display: flex; justify-content: space-between; gap: .6rem; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.card-meta a { color: var(--muted); }
.card-meta a:hover { color: var(--text); }

.chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 1rem; }
.chips a { border: 1px solid var(--line); color: var(--muted); padding: .35rem .85rem; border-radius: 999px; font-size: .88rem; }
.chips a[aria-current] { background: var(--text); color: var(--bg); border-color: var(--text); }

.pagination { display: flex; justify-content: center; gap: .35rem; flex-wrap: wrap; margin: 2.5rem 0 1rem; }
.pagination a, .pagination span { min-width: 2.4rem; text-align: center; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.pagination [aria-current] { background: var(--accent); color: #1a1408; border-color: var(--accent); }
.pagination .gap { border: 0; }

/* ---------- post / album detail ---------- */
.post { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: 2rem; }
.post-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.post-head .page-title { margin-bottom: .6rem; }
.post-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.post-desc { margin-bottom: 1.5rem; }
.post-albums { font-size: .92rem; margin-bottom: 1.5rem; }
.author-chip { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); font-weight: 500; }
.author-chip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }

.avatar-ph { display: inline-grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #3a3326, #26262b); color: var(--accent-2); font-weight: 600; flex-shrink: 0; }
.avatar-ph.sm { width: 32px; height: 32px; font-size: .72rem; }
.avatar-ph.lg { width: 112px; height: 112px; font-size: 1.8rem; font-family: var(--serif); }
.avatar-ph.xl { width: 140px; height: 140px; font-size: 2.4rem; font-family: var(--serif); }

/* justified grid – zachovává poměr stran a pořadí zleva doprava */
.jgrid { display: flex; flex-wrap: wrap; gap: 6px; }
.jgrid-item { position: relative; display: block; background: var(--bg-2); overflow: hidden; border-radius: 3px; }
.jgrid-item i { display: block; }
.jgrid-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.jgrid-item:hover img { transform: scale(1.03); }
.jgrid-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .75rem .6rem; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; font-size: .82rem; line-height: 1.3; opacity: 0; transition: opacity .25s; display: flex; flex-direction: column; }
.jgrid-cap small { color: rgba(255,255,255,.75); }
.jgrid-item:hover .jgrid-cap, .jgrid-item:focus .jgrid-cap { opacity: 1; }
.jgrid-filler { flex-grow: 1000000; }

.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin: 1rem 0 1.5rem; }
.tab { background: none; border: 0; color: var(--muted); font: 600 .95rem var(--sans); padding: .7rem 1rem; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- members ---------- */
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2rem 1.2rem; }
.member { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--text); gap: .3rem; }
.member-avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; transition: transform .3s; }
.member:hover .member-avatar, .member:hover .avatar-ph { transform: scale(1.05); }
.member .avatar-ph { transition: transform .3s; }
.member-name { font-family: var(--serif); font-size: 1.1rem; margin-top: .5rem; }
.member-meta { font-size: .82rem; color: var(--muted); }
.profile-head { display: flex; gap: clamp(1.5rem, 4vw, 3rem); align-items: flex-start; padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: 1.5rem; }
.profile-avatar { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.profile-links { display: flex; gap: 1.1rem; flex-wrap: wrap; font-weight: 500; }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.4rem; margin-top: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; }
.span-2 { grid-column: span 2; }
.field { display: flex; flex-direction: column; gap: .4rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: .85rem; font-weight: 600; color: #cfc9bf; padding: 0; margin-bottom: .4rem; }
.field.box { border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.4rem 1.4rem; }
.field.box legend { padding: 0 .4rem; margin-left: -.4rem; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=url], input[type=tel], input[type=search], input[type=number], input[type=time], input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; font-size: .98rem; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: .7rem .85rem; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224,178,90,.18); }
input[type=date] { color-scheme: dark; }
textarea { resize: vertical; min-height: 2.8rem; }
input[type=file] { font: inherit; font-size: .9rem; color: var(--muted); }
.field-error, .form-error { color: var(--danger); font-size: .85rem; }
.form-error { background: rgba(226,102,91,.1); padding: .7rem 1rem; border-radius: 8px; }
.form-actions { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 35%); padding: 1.5rem 0 1rem; z-index: 5; }
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; flex-wrap: wrap; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: .5rem 1rem; border-radius: 999px; font-size: .9rem; color: var(--muted); }
.seg input:checked + span { background: var(--text); color: var(--bg); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.check-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.check { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; font-size: .95rem; }
.check-list .check { border: 1px solid var(--line); border-radius: 999px; padding: .45rem .9rem; }
.check-list .check:has(input:checked) { border-color: var(--accent); background: rgba(224,178,90,.08); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; }
.inline-filter { margin-top: 1rem; }
.inline-filter select { width: auto; margin-left: .5rem; }
.inline-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.inline-row input { max-width: 260px; }
.avatar-row { display: flex; gap: 1.5rem; align-items: center; }
.danger-zone { margin-top: 2.5rem; border: 1px solid rgba(226,102,91,.3); border-radius: 14px; padding: 1.3rem 1.5rem; display: grid; gap: .7rem; justify-items: start; }
.danger-zone h3 { font-size: 1.15rem; margin: 0; }
.danger-zone p { margin: 0; }
.danger-zone select { width: auto; margin-left: .4rem; }

/* dropzone */
.dropzone { position: relative; border: 1.5px dashed #47454a; border-radius: 14px; background: var(--bg-2); transition: border-color .2s, background .2s; }
.dropzone.is-over { border-color: var(--accent); background: rgba(224,178,90,.06); }
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dz-label { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 2.2rem 1rem; text-align: center; cursor: pointer; color: var(--text); }
.dz-label small { color: var(--muted); font-size: .8rem; }
.dz-label u { color: var(--accent-2); text-underline-offset: 3px; }
.dz-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; padding: 0 1rem; }
.dz-list:not(:empty) { padding-bottom: 1rem; }
.dz-item { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--bg-3); }
.dz-item img { width: 100%; height: 100%; object-fit: cover; }
.dz-item .dz-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; font-size: 15px; line-height: 1; }
.dz-item .dz-state { position: absolute; inset: auto 0 0 0; height: 4px; background: rgba(0,0,0,.5); }
.dz-item .dz-state span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.dz-item.done .dz-state span { background: var(--ok); width: 100%; }
.dz-item.fail { outline: 2px solid var(--danger); }
.dz-item.fail::after { content: attr(data-error); position: absolute; inset: 0; background: rgba(40,10,10,.85); color: #fff; font-size: .7rem; padding: .4rem; display: flex; align-items: center; text-align: center; }
.dz-item:first-child::before { content: "náhled"; position: absolute; left: 4px; top: 4px; background: var(--accent); color: #1a1408; font-size: .65rem; font-weight: 700; padding: .1rem .4rem; border-radius: 4px; z-index: 1; }
.upload-progress .bar { height: 6px; background: var(--bg-3); border-radius: 99px; overflow: hidden; }
.upload-progress .bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.up-status { font-size: .9rem; color: var(--muted); margin-top: .5rem; }

/* editace fotek */
.photo-edit-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.pe { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; transition: opacity .2s, border-color .2s; }
.pe.dragging { opacity: .35; }
.pe.drop-target { border-color: var(--accent); }
.pe:has(.pe-del input:checked) { opacity: .45; border-color: var(--danger); }
.pe-img { position: relative; aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; background: var(--bg-3); cursor: grab; }
.pe-img img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pe input[type=text], .pe textarea { font-size: .85rem; padding: .45rem .6rem; }
.pe-cover { position: absolute; top: 6px; left: 6px; cursor: pointer; }
.pe-cover input { position: absolute; opacity: 0; }
.pe-cover span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.6); color: rgba(255,255,255,.55); font-size: 15px; }
.pe-cover input:checked + span { background: var(--accent); color: #1a1408; }
.pe-cover input:focus-visible + span { outline: 2px solid #fff; }
.pe-handle { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.6); color: #fff; border-radius: 6px; padding: 0 6px; font-size: 18px; }
.pe-del { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; cursor: pointer; }

.cover-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.cover-pick label { position: relative; aspect-ratio: 1; cursor: pointer; border-radius: 6px; overflow: hidden; border: 2px solid transparent; background: var(--bg-2); }
.cover-pick input { position: absolute; opacity: 0; }
.cover-pick img { width: 100%; height: 100%; object-fit: cover; }
.cover-pick label:has(input:checked) { border-color: var(--accent); }
.cp-auto { display: grid; place-items: center; height: 100%; font-size: .8rem; color: var(--muted); text-align: center; }

.pick-list { display: grid; gap: 6px; max-height: 55vh; overflow: auto; }
.pick { display: flex; align-items: center; gap: .8rem; padding: .5rem; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; }
.pick:has(input:checked) { border-color: var(--accent); background: rgba(224,178,90,.07); }
.pick img, .pick-ph { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; background: var(--bg-3); flex-shrink: 0; }
.pick span { display: flex; flex-direction: column; line-height: 1.3; }
.pick small { color: var(--muted); }

.dialog { background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem; width: min(560px, 92vw); }
.dialog::backdrop { background: rgba(0,0,0,.7); }
.dialog h2 { font-size: 1.4rem; }
.dialog .form-actions { margin-top: 1rem; }

/* tabulky */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; padding: .8rem; border-bottom: 1px solid var(--line); }
.table td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--bg-2); }
.table a { color: var(--text); }
.t-thumb img { width: 64px; height: 46px; object-fit: cover; border-radius: 4px; }
.t-avatar img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.t-actions { text-align: right; }

/* auth */
.auth { display: grid; place-items: center; padding: clamp(3rem, 10vh, 7rem) 1rem; }
.auth-card { width: min(420px, 100%); display: grid; gap: 1.1rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 2.2rem; }
.auth-card .page-title { font-size: 2.2rem; margin-bottom: 0; }
.auth-card .eyebrow { margin-bottom: 0; }

/* footer */
.site-footer { margin-top: 5rem; border-top: 1px solid var(--line); padding: 3rem 0 1.5rem; font-size: .92rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-brand { font-family: var(--serif); font-size: 1.3rem; margin-bottom: .4rem; }
.site-footer h4 { font-family: var(--sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); font-weight: 600; }
.footer-bottom { margin-top: 2.5rem; font-size: .8rem; }

/* ---------- lightbox / prezentace ---------- */
.lb { position: fixed; inset: 0; z-index: 1000; background: #050505; display: flex; flex-direction: column; color: #fff; user-select: none; }
.lb[hidden] { display: none; }
.lb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 64px 72px 0; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; opacity: 0; transition: opacity .45s ease; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lb-img.on { opacity: 1; }
.lb-spinner { position: absolute; width: 34px; height: 34px; border: 2px solid rgba(255,255,255,.15); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; opacity: 0; transition: opacity .2s; }
.lb.loading .lb-spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.lb-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: .5rem; padding: 12px 16px; z-index: 2; background: linear-gradient(rgba(0,0,0,.6), transparent); transition: opacity .4s; }
.lb-counter { font-size: .85rem; color: rgba(255,255,255,.7); margin-right: auto; font-variant-numeric: tabular-nums; }
.lb-btn { background: rgba(255,255,255,.08); border: 0; color: #fff; height: 40px; min-width: 40px; padding: 0 .8rem; border-radius: 999px; cursor: pointer; font: 600 .88rem var(--sans); display: inline-flex; align-items: center; gap: .4rem; }
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-btn.on { background: var(--accent); color: #1a1408; }
.lb-select { background: rgba(255,255,255,.08); color: #fff; border: 0; height: 40px; border-radius: 999px; padding: 0 .8rem; font: 600 .85rem var(--sans); width: auto; cursor: pointer; }
.lb-select option { color: #000; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 96px; background: none; border: 0; color: rgba(255,255,255,.6); font-size: 44px; cursor: pointer; z-index: 2; transition: color .2s, opacity .4s; }
.lb-nav:hover { color: #fff; }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-caption { padding: 14px 24px 20px; text-align: center; min-height: 86px; transition: opacity .4s; }
.lb-caption h3 { font-size: 1.25rem; margin: 0 0 .15rem; color: #fff; }
.lb-caption p { margin: 0 auto .25rem; max-width: 70ch; color: rgba(255,255,255,.75); font-size: .92rem; }
.lb-meta { font-size: .85rem; color: rgba(255,255,255,.6); }
.lb-meta a { color: var(--accent-2); }
.lb-progress { height: 2px; background: rgba(255,255,255,.08); }
.lb-progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.lb.playing .lb-progress span { animation: lbprog linear forwards; }
@keyframes lbprog { from { width: 0; } to { width: 100%; } }
.lb.idle .lb-top, .lb.idle .lb-nav, .lb.idle .lb-caption { opacity: 0; }
.lb.idle { cursor: none; }
.lb-strip[hidden] { display: none; }
.lb-strip { display: flex; gap: 4px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: thin; transition: opacity .4s; }
.lb.idle .lb-strip { opacity: 0; }
.lb-strip img { height: 52px; width: auto; opacity: .45; cursor: pointer; border-radius: 2px; flex-shrink: 0; transition: opacity .2s; }
.lb-strip img.cur { opacity: 1; outline: 2px solid var(--accent); }
.lb-strip img:hover { opacity: .85; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 1rem clamp(16px, 4vw, 40px) 1.5rem; gap: 1rem; }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; }
  .main-nav ul a { display: block; padding: .7rem .2rem; font-size: 1.05rem; }
  .main-nav ul a[aria-current] { box-shadow: none; color: var(--accent-2); }
  .user-nav { flex-wrap: wrap; }
  .user-dropdown { position: static; box-shadow: none; margin-top: .5rem; }
}
@media (max-width: 960px) {
  .intro-grid, .cal-layout, .join-steps, .contact-grid { grid-template-columns: 1fr; }
  .meeting-card { position: static; }
  .footer-inner { grid-template-columns: 1fr; }
  .join-card.wide { grid-column: auto; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .profile-head { flex-direction: column; }
  .lb-stage { padding: 60px 0 0; }
  .lb-nav { display: none; }
  .lb-btn .lbl { display: none; }
  .jgrid-item { flex-basis: calc(var(--r) * 150px) !important; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
  .table .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ===================== v2 ===================== */
.brand img { width: 52px; height: 52px; object-fit: contain; display: block; }
.header-inner { min-height: 76px; gap: 1.5rem; }
.main-nav ul { gap: 0; }
.main-nav ul a { padding: .45rem .55rem; font-size: .92rem; }
.nav-members a { color: var(--accent-2) !important; }
.footer-logo { width: 96px; height: auto; margin-bottom: .8rem; opacity: .9; }
.fg { color: var(--text); font-weight: 600; }
.hero-logo { width: clamp(150px, 20vw, 230px); height: auto; margin-bottom: 1.4rem; filter: drop-shadow(0 6px 30px rgba(0,0,0,.45)); }
.h-small { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); font-weight: 600; margin: 1.6rem 0 .8rem; }
.center { text-align: center; }
.linklike { background: none; border: 0; color: var(--accent-2); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
code { background: var(--bg-3); padding: .15rem .4rem; border-radius: 4px; font-size: .85em; word-break: break-all; }
.field-inline { flex-direction: row; align-items: center; gap: .8rem; }
.field-inline > span { margin: 0; }
.field-inline select { width: auto; }
.meeting-place { font-size: 1rem; margin-top: -.4rem; }
.badge-exh { left: auto; right: .6rem; top: .6rem; color: #9fd0ff; }

/* foto měsíce na úvodu + vítězové */
.winners { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.winner { margin: 0; }
.winner img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--bg-2); }
.winner figcaption { font-size: .88rem; margin-top: .5rem; color: #d6d1c8; }
.winner .rank { font-family: var(--serif); font-size: 1.3rem; color: var(--accent); margin-right: .2rem; }
.winner .votes { color: var(--muted); font-size: .8rem; white-space: nowrap; }

/* album – autor, výběr */
.jgrid-author { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.66); color: #fff; font-size: .72rem; font-weight: 600; padding: .15rem .5rem; border-radius: 4px; backdrop-filter: blur(3px); z-index: 1; }
.jgrid-item.is-selected { box-shadow: 0 0 0 3px #3d8bff, 0 0 22px 4px rgba(61,139,255,.65); z-index: 1; }
.jgrid-item.is-selected::after { content: "✓"; position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%; background: #3d8bff; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.jgrid-item.is-rejected img { filter: grayscale(.8) brightness(.6); }
.rejected-title { margin-top: 3rem; color: var(--muted); }
.tracker { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.3rem 1.2rem; margin-bottom: 1.5rem; }
.tracker .h-small { margin-top: .2rem; }
.tracker-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tracker-list li { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.tracker-list .dot { width: 8px; height: 8px; border-radius: 50%; background: #55525a; }
.tracker-list li.done { border-color: rgba(124,196,154,.55); background: rgba(124,196,154,.12); color: #c9f0d8; }
.tracker-list li.done .dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.tracker-list small { color: var(--ok); font-weight: 700; }
.sel-bar { position: sticky; top: 84px; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; background: rgba(23,32,52,.92); border: 1px solid rgba(61,139,255,.45); border-radius: 14px; padding: .8rem 1.2rem; margin-bottom: 1.2rem; backdrop-filter: blur(8px); }
.sel-total { font-family: var(--serif); font-size: 1.8rem; color: #8fbaff; }
.sel-authors { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; flex: 1; }
.sel-authors li { font-size: .82rem; background: rgba(61,139,255,.15); border-radius: 999px; padding: .15rem .6rem; }
.sel-authors b { color: #8fbaff; }
.sel-actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.album-upload { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.lb-sel { display: inline-flex; gap: .4rem; margin-right: .4rem; }
.lb-btn.on-blue { background: #3d8bff; color: #fff; }
.lb-btn.on-red { background: var(--danger); color: #fff; }
.lb-img.sel-glow { box-shadow: 0 0 0 3px #3d8bff, 0 0 40px 8px rgba(61,139,255,.6); }
.lb-strip img.t-sel { outline: 2px solid #3d8bff; opacity: .9; }
.lb-strip img.t-rej { filter: grayscale(1); opacity: .25; }

/* Přidej se */
.join-hero { position: relative; min-height: min(70vh, 620px); display: flex; align-items: flex-end; background: #0a0a0a var(--hero, none) center/cover no-repeat; }
.join-hero-inner { position: relative; padding-bottom: clamp(3rem, 8vh, 5rem); padding-top: 5rem; }
.join-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 2rem; }
.join-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, border-color .3s; }
.join-card:hover { transform: translateY(-3px); border-color: rgba(224,178,90,.5); }
.join-card.wide { grid-column: span 2; flex-direction: row; }
.join-img { aspect-ratio: 4/3; background: var(--bg-3) center/cover no-repeat; }
.join-card.wide .join-img { aspect-ratio: auto; flex: 1.3; min-height: 260px; }
.join-body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.join-num { font-family: var(--serif); color: var(--accent); font-size: 1rem; }
.join-body h3 { font-size: 1.45rem; margin: .2rem 0 .5rem; }
.join-body p { color: #cfc9bf; margin: 0; }
.join-steps { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: 1rem; }
.steps li { counter-increment: s; position: relative; padding-left: 3.2rem; color: #d9d4cc; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-family: var(--serif); }
.steps b { color: var(--text); }
.fee { background: rgba(224,178,90,.1); border-left: 3px solid var(--accent); padding: .8rem 1rem; border-radius: 6px; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; margin-top: 1rem; }
.contact-links { margin-top: 1rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pro členy – informace a kalendář */
.notices { display: grid; gap: 12px; }
.notice { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.4rem; }
.notice.pinned { border-color: rgba(224,178,90,.5); }
.notice header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.notice h3 { font-size: 1.25rem; margin: 0 0 .4rem; }
.notice .prose { font-size: .98rem; }
.notice-actions { display: flex; gap: .5rem; }
.cal-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; margin-top: 1rem; }
.cal-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.cal-head .section-title { margin: 0; min-width: 11ch; text-align: center; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cal-dow { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: .5rem; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.cal-day { min-height: 104px; padding: .35rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.other { background: rgba(255,255,255,.015); }
.cal-day.other .cal-num { color: #55525a; }
.cal-day.today .cal-num { background: var(--accent); color: #1a1408; }
.cal-num { align-self: flex-start; font-size: .8rem; font-weight: 600; color: var(--muted); width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; }
.cal-num:hover { background: var(--bg-3); color: var(--text); }
.cal-ev { font-size: .74rem; line-height: 1.3; padding: .2rem .4rem; border-radius: 4px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid; background: rgba(255,255,255,.06); }
.t-schuze { border-color: var(--accent) !important; } .cal-ev.t-schuze { background: rgba(224,178,90,.16); }
.t-vylet { border-color: #6cc68d !important; } .cal-ev.t-vylet { background: rgba(108,198,141,.15); }
.t-vystava { border-color: #79a8ff !important; } .cal-ev.t-vystava { background: rgba(121,168,255,.15); }
.t-jine { border-color: #b08ad8 !important; } .cal-ev.t-jine { background: rgba(176,138,216,.15); }
.legend { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: .8rem; }
.lg { font-size: .8rem; border-left: 3px solid; padding-left: .4rem; }
.ev-type { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; border-left: 3px solid; padding: .05rem .45rem; margin-bottom: .3rem; color: #d9d4cc; }
.ev-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ev-list a { display: flex; flex-direction: column; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 10px; color: var(--text); }
.ev-list a:hover { border-color: var(--accent); }
.ev-list small { color: var(--muted); }
.ev-meta { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1.2rem; margin: 1.2rem 0 1.5rem; }
.ev-meta dt { color: var(--muted); font-size: .85rem; }
.ev-meta dd { margin: 0; font-weight: 500; }
.seg { flex-wrap: wrap; border-radius: 22px; }

/* Foto měsíce */
.pm-intro { max-width: 70ch; }
.pm-round { border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem clamp(1rem, 3vw, 2rem) 2rem; margin-top: 1.5rem; background: linear-gradient(180deg, var(--bg-2), transparent 70%); }
.pm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.pm-info { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; margin: 1rem 0; color: #d9d4cc; }
.pm-info p { flex: 1; min-width: 260px; margin: 0; }
.countdown-box { display: flex; flex-direction: column; background: var(--bg); border: 1px solid rgba(224,178,90,.45); border-radius: 12px; padding: .7rem 1.1rem; }
.countdown-box strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.pm-mine { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 1.5rem; }
.pm-entry { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: grid; gap: 6px; }
.pm-entry img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.pm-entry input { font-size: .85rem; padding: .45rem .6rem; }
.pm-entry-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.vote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 1rem; }
.vote-card { background: var(--bg-2); border: 2px solid transparent; border-radius: 12px; padding: 6px; display: flex; flex-direction: column; gap: 6px; transition: border-color .2s, background .2s; }
.vote-card.voted { border-color: var(--accent); background: rgba(224,178,90,.08); }
.vote-card.own { opacity: .65; }
.vote-img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.vote-title { font-size: .85rem; color: #d6d1c8; padding: 0 .3rem; }
.vote-check { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .5rem; border-radius: 8px; background: var(--bg-3); cursor: pointer; font-weight: 600; font-size: .9rem; }
.vote-card.voted .vote-check { background: var(--accent); color: #1a1408; }
.vote-check input:disabled + span { opacity: .4; }
.vote-own { text-align: center; font-size: .82rem; color: var(--muted); padding: .5rem; }
.vote-bar { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; padding: 1rem 1.2rem; background: rgba(15,15,16,.92); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(8px); }
.pm-month { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.pm-winner-names { color: #d9d4cc; }
.pm-all { margin-top: 1.4rem; }
.pm-all summary { cursor: pointer; color: var(--accent-2); font-weight: 600; }
.pm-all-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 1rem; }
.pm-all-grid figure { margin: 0; }
.pm-all-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.pm-all-grid figcaption { font-size: .78rem; color: var(--muted); margin-top: .3rem; }
.pm-all-grid figcaption b { color: var(--accent-2); margin-right: .25rem; }
.pm-all-grid .is-winner img { outline: 2px solid var(--accent); }

/* Fotokritika */
.card-comments::before { content: "💬 "; opacity: 1; }
.critique-photo { margin: 0 0 1.5rem; display: flex; justify-content: center; background: #080808; border-radius: 12px; padding: 1rem; }
.critique-photo img { max-height: 78vh; width: auto; border-radius: 4px; cursor: zoom-in; }
.comments { max-width: 820px; margin-top: 2rem; }
.comment { display: flex; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.c-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.c-body { flex: 1; min-width: 0; }
.c-body .prose { font-size: .98rem; }
.c-body .prose p { margin-bottom: .4rem; }
.c-actions { display: flex; gap: 1rem; align-items: center; }
.comment-form { margin-top: 1.5rem; }
.blocks-edit { display: grid; gap: 12px; }
@media (max-width: 760px) {
  .join-grid { grid-template-columns: 1fr; }
  .join-card.wide { flex-direction: column; }
  .join-card.wide .join-img { aspect-ratio: 4/3; min-height: 0; }
  .calendar { font-size: .8rem; }
  .cal-day { min-height: 64px; }
  .cal-ev b { display: none; }
  .sel-bar { top: 76px; }
}
/* import + odebírání kalendáře */
.import-steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 14px; }
.import-steps > li { border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.4rem; background: var(--bg-2); }
.import-steps > li.ok { border-color: rgba(124,196,154,.45); }
.import-steps > li.ok h2::after { content: " ✓"; color: var(--ok); }
.import-steps h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.imp-log { list-style: none; padding: 0; margin: .6rem 0 0; color: var(--muted); max-height: 220px; overflow: auto; }
.subscribe { margin-top: 1.6rem; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; background: var(--bg-2); }
.subscribe .h-small { margin-top: 0; }
.subscribe details { margin-top: .8rem; }
.subscribe summary { cursor: pointer; color: var(--accent-2); }
.copy-row { display: flex; gap: .4rem; margin: .5rem 0; }
.copy-row input { font-size: .78rem; padding: .45rem .55rem; }
/* foto měsíce – přehled pro admina */
.pm-admin { margin: 1rem 0 1.5rem; border: 1px dashed rgba(224,178,90,.55); border-radius: 12px; padding: .8rem 1.1rem; background: rgba(224,178,90,.05); }
.pm-admin summary { cursor: pointer; font-weight: 600; color: var(--accent-2); }
.pm-admin-author { margin-top: 1rem; }
.pm-admin-author h3 { font-family: var(--sans); font-size: .95rem; font-weight: 600; margin: 0 0 .5rem; }
.pm-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pm-admin-grid figure { margin: 0; }
.pm-admin-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.pm-admin-grid figcaption { font-size: .76rem; margin-top: .3rem; line-height: 1.3; }
.pm-admin-grid .linklike { font-size: .78rem; color: var(--danger); }
/* správa členů – hromadné úpravy, stav */
.bulk-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .8rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); position: sticky; top: 84px; z-index: 5; }
.bulk-bar select, .bulk-bar input[type=text] { width: auto; padding: .45rem .7rem; font-size: .9rem; }
.bulk-delete { display: inline-flex; gap: .5rem; flex-wrap: wrap; }
.t-check { width: 36px; }
.row-inactive td { opacity: .55; }
.st-on { color: var(--ok); font-size: .85rem; }
.st-off { color: var(--muted); font-size: .85rem; }
/* nahrávání – název a popis u každé fotky */
.dz-list:has(.with-meta) { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.dz-item.with-meta { aspect-ratio: auto; background: var(--bg); border: 1px solid var(--line); padding: 6px; display: flex; flex-direction: column; gap: 5px; overflow: visible; }
.dz-thumb { position: relative; aspect-ratio: 4/3; border-radius: 5px; overflow: hidden; background: var(--bg-3); }
.dz-item:not(.with-meta) .dz-thumb { aspect-ratio: auto; height: 100%; }
.dz-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dz-item.with-meta input, .dz-item.with-meta textarea { font-size: .82rem; padding: .4rem .55rem; }
.dz-item.with-meta textarea { min-height: 2.4rem; }
.dz-item.with-meta:first-child::before { z-index: 2; }
.dz-item.with-meta.fail::after { inset: 6px 6px auto 6px; aspect-ratio: 4/3; border-radius: 5px; }
.dz-item.done input, .dz-item.done textarea { opacity: .6; }
.pm-entry textarea { font-size: .85rem; padding: .45rem .6rem; }
/* album: autoři, výběr, uzávěrka, oprávnění */
.author-group { margin-bottom: 2rem; scroll-margin-top: 150px; }
.author-head { display: flex; align-items: baseline; gap: .7rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; margin: 0 0 .7rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.author-head a { color: var(--text); }
.author-head .muted { font-family: var(--sans); font-size: .82rem; }
.jgrid-late { position: absolute; left: 6px; top: 6px; z-index: 2; background: #b4532a; color: #fff; font-size: .68rem; font-weight: 700; padding: .12rem .45rem; border-radius: 4px; text-transform: uppercase; letter-spacing: .04em; }
.late-chip { background: #b4532a; color: #fff; font-size: .75em; font-weight: 700; padding: .05rem .4rem; border-radius: 4px; }
.deadline-box { border: 1px solid rgba(224,178,90,.45); background: rgba(224,178,90,.07); border-radius: 12px; padding: .7rem 1rem; margin-bottom: 1.2rem; font-size: .95rem; }
.deadline-box.past { border-color: rgba(180,83,42,.6); background: rgba(180,83,42,.1); }
.sel-authors li { background: rgba(255,255,255,.05); color: var(--muted); border: 1px solid transparent; }
.sel-authors li a { color: inherit; }
.sel-authors li.has-sel { background: rgba(61,139,255,.22); border-color: rgba(61,139,255,.6); color: #dbe8ff; }
.sel-authors li.has-sel b { color: #8fbaff; }
.tracker-list li.late { border-color: rgba(180,83,42,.6); background: rgba(180,83,42,.12); color: #f3c9b5; }
.tracker-list li.late .dot { background: #e07a4a; box-shadow: 0 0 8px #e07a4a; }
.perm-tag { display: inline-block; margin-left: .35rem; font-size: .7rem; padding: .05rem .45rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
/* doklady, pozvánky */
.doc-upload { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.4rem; margin: 0 0 1.5rem; }
.danger-zone.neutral { border-color: var(--line); }
form.inline { display: inline; }
.chips small { opacity: .7; }
.subscribe .btn { white-space: normal; line-height: 1.3; text-align: center; }

.reset-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.reset-row p { margin: 0; flex: 1; min-width: 220px; }
input[type=time], input[type=datetime-local] { color-scheme: dark; }

/* ===================== hlavička (menu webu + menu člena) ===================== */
.header-inner { gap: 1.2rem; }
.main-nav { flex: 1; }
.user-nav { margin-left: auto; }
.login-link { display: inline-flex; align-items: center; gap: .45rem; }
.dd-me, .dd-new { display: none; }
.nav-toggle span { transition: transform .2s, opacity .2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .header-inner { gap: .6rem; min-height: 64px; }
  .brand img { width: 46px; height: 46px; }
  .nav-toggle { display: block; margin-left: 0; order: 3; }
  .user-nav { order: 2; gap: .4rem; }
  .main-nav { display: none; position: fixed; left: 0; right: 0; top: 64px; bottom: 0; background: rgba(15,15,16,.98); padding: 1rem 20px 2rem; overflow-y: auto; z-index: 60; border-top: 1px solid var(--line); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: .9rem .2rem; font-size: 1.15rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav ul a[aria-current] { box-shadow: none; color: var(--accent-2); }
  .nav-new, .user-name { display: none; }
  .user-menu summary { padding: 0; }
  .user-menu summary img, .user-menu summary .avatar-ph { width: 38px; height: 38px; font-size: .82rem; }
  .user-menu[open] summary .avatar-ph, .user-menu[open] summary img { box-shadow: 0 0 0 2px var(--accent); }
  .user-dropdown { position: fixed; left: 0; right: 0; top: 64px; bottom: 0; min-width: 0; border-radius: 0; border: 0; border-top: 1px solid var(--line); background: rgba(15,15,16,.98); padding: 1rem 20px 2rem; overflow-y: auto; box-shadow: none; z-index: 60; }
  .user-dropdown a, .user-dropdown button { padding: .85rem .2rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .user-dropdown hr { display: none; }
  .dd-me { display: block; font-family: var(--serif); font-size: 1.4rem; padding: .2rem .2rem .8rem; }
  .dd-new { display: block; color: var(--accent-2) !important; font-weight: 600; }
  .dd-label { padding: 1.2rem .2rem .3rem; }
  .login-link span { display: none; }
  .login-link { padding: .5rem; border-radius: 50%; }
}

/* ===================== rozložení na menších obrazovkách ===================== */
@media (max-width: 960px) {
  .intro-grid, .cal-layout, .join-steps, .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .meeting-card { position: static; }
  .cal-layout aside { order: 0; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero { background-image: var(--hero-m, var(--hero)); min-height: 70vh; }
  .wrap { padding: 0 16px; }
  .page-title { font-size: 2rem; }
  .section-head { align-items: flex-start; }
  .post-head { align-items: flex-start; }
  .post-actions { width: 100%; }
  .post-actions .btn { flex: 1 1 auto; }
  .sel-bar { position: static; }
  .bulk-bar { position: static; }
  .pm-info { gap: .8rem; }
  .countdown-box { width: 100%; }
  .vote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .vote-bar { flex-direction: column; align-items: stretch; text-align: center; }
  .pm-admin-grid, .pm-all-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .winners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards, .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-title { font-size: 1rem; }
  .card-meta { font-size: .78rem; }
  .members { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem .6rem; }
  .member-avatar, .members .avatar-ph.lg { width: 84px; height: 84px; }
  .calendar .cal-day { min-height: 58px; padding: 2px; }
  .cal-ev { font-size: .62rem; padding: .1rem .2rem; border-left-width: 2px; }
  .cal-dow { padding: .35rem .2rem; font-size: .62rem; }
  .table-wrap { margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .lb-top { gap: .3rem; padding: 8px; flex-wrap: wrap; }
  .lb-btn { height: 36px; min-width: 36px; padding: 0 .55rem; }
  .lb-select { height: 36px; }
  .lb-sel .lb-btn { font-size: .78rem; }
  .lb-caption { padding: 10px 14px 12px; min-height: 0; }
  .lb-strip { display: none; }
  .profile-head { padding-top: 1.5rem; }
  .dz-list:has(.with-meta) { grid-template-columns: 1fr 1fr; }
  .join-hero { min-height: 60vh; }
  .form-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 420px) {
  .cards, .cards-4 { grid-template-columns: 1fr; }
  .members { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  /* hlavička má backdrop-filter → panely pozicujeme vůči ní, ne vůči oknu */
  .user-menu { position: static; }
  .main-nav, .user-dropdown { position: absolute; top: 100%; bottom: auto; height: calc(100vh - 64px); height: calc(100dvh - 64px); }
  body:has(.main-nav.open), body:has(.user-menu[open]) { overflow: hidden; }
}
@media (max-width: 760px) {
  .hero-credit { display: none; }
  .hero-inner { padding-bottom: 2.5rem; }
}
@media (max-width: 1180px) {
  .main-nav, .user-dropdown { background: var(--bg); margin-top: 0; }
}
.bulk-delete[hidden] { display: none; }

/* ---------- Log událostí ---------- */
.log-filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.log-filters select, .log-filters input[type=search] { width: auto; min-width: 11rem; }
.log-filters input[type=search] { flex: 1 1 14rem; }
.log-total { margin-left: auto; }
.log-table td { vertical-align: top; }
.log-day td { background: var(--bg-2); font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.log-time { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); }
.log-who { white-space: nowrap; }
.log-details { color: var(--muted); max-width: 32rem; overflow-wrap: anywhere; }
.log-ip { font-size: .8rem; white-space: nowrap; }
.log-cat { display: inline-block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; padding: .12rem .45rem; border-radius: 99px; margin-right: .35rem; border: 1px solid var(--line); color: var(--muted); }
.log-cat.lg-auth { color: #8fb8ff; border-color: rgba(143,184,255,.35); }
.log-cat.lg-content { color: #7dd8a4; border-color: rgba(125,216,164,.35); }
.log-cat.lg-docs { color: #e7c37a; border-color: rgba(231,195,122,.35); }
.log-cat.lg-admin { color: #f19a8e; border-color: rgba(241,154,142,.35); }
.log-cat.lg-system { color: #c4a6f2; border-color: rgba(196,166,242,.35); }
.log-cnt { color: var(--text); font-weight: 600; }
@media (max-width: 760px) {
  .log-filters select, .log-filters input[type=search] { flex: 1 1 100%; min-width: 0; }
  .log-total { margin-left: 0; }
  .log-table thead { display: none; }
  .log-table, .log-table tbody, .log-table tr, .log-table td { display: block; width: 100%; }
  .log-table tr:not(.log-day) { display: grid; grid-template-columns: auto 1fr; gap: .15rem .7rem; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
  .log-table tr:not(.log-day) td { padding: 0; border: 0; }
  .log-table .log-time { grid-row: 1; }
  .log-table .log-who { grid-row: 1; white-space: normal; font-weight: 600; }
  .log-table tr:not(.log-day) td:nth-child(3), .log-table .log-details, .log-table .log-ip { grid-column: 1 / -1; }
  .log-table .log-details:empty { display: none; }
  .log-table .log-day td { padding: .5rem .8rem; }
}

/* ---------- Zablokované účty ---------- */
.lock-box p { margin: 0 0 .5rem; } .lock-box p:last-child { margin: 0; }
.lock-box a { color: inherit; text-decoration: underline; }
.lock-alert { border: 1px solid rgba(241,110,96,.5); background: rgba(241,110,96,.08); border-radius: 14px; padding: 1.1rem 1.2rem; }
.lock-alert h2 { margin: 0 0 .4rem; font-size: 1.15rem; color: #f19a8e; }
.lock-row { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between; padding: .6rem 0; border-top: 1px solid var(--line); }
.st-lock { display: inline-block; font-size: .72rem; padding: .1rem .45rem; border-radius: 99px; background: rgba(241,110,96,.18); color: #f19a8e; }
.badge-alert { display: inline-block; min-width: 1.3em; padding: 0 .35em; border-radius: 99px; background: #e0574a; color: #fff; font-size: .72rem; text-align: center; font-weight: 700; }
.log-cat.lg-security { color: #ff8a7a; border-color: rgba(255,138,122,.5); background: rgba(255,138,122,.1); }
.log-table tr.log-alert td { background: rgba(241,110,96,.07); }
.user-menu summary.has-alert { position: relative; }
.user-menu summary.has-alert::after { content: ""; position: absolute; top: 2px; left: 26px; width: 10px; height: 10px; border-radius: 50%; background: #e0574a; border: 2px solid var(--bg); }

/* ---------- Odkazy pro nastavení hesla ---------- */
.reset-links { border: 1px solid rgba(224,180,90,.45); background: rgba(224,180,90,.07); border-radius: 12px; padding: .9rem 1rem; margin: .4rem 0 1rem; }
.reset-links > p { margin: 0 0 .6rem; font-size: .9rem; }
.reset-link-row { display: grid; gap: .35rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.log-cat.lg-mail { color: #7fd0e0; border-color: rgba(127,208,224,.4); }

/* ---------- Kontakt: sociální sítě ---------- */
.social-card { margin-top: 1.2rem; }
.social-links { display: grid; gap: .6rem; }
.social-link { display: flex; align-items: center; gap: .85rem; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; transition: border-color .2s, background .2s; }
.social-link:hover { border-color: var(--accent); background: rgba(255,255,255,.03); }
.social-link svg { width: 30px; height: 30px; flex: none; }
.social-link.fb svg { color: #1877f2; }
.social-link.ig svg { color: #e4405f; }
.social-link span { display: grid; line-height: 1.25; min-width: 0; }
.social-link small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.block-photo-row { display: flex; gap: .7rem; align-items: center; }
.block-photo-row img { width: 74px; height: 52px; object-fit: cover; border-radius: 8px; flex: none; }
.block-photo-row select { flex: 1; min-width: 0; }
.block-photo > label.small { display: block; margin-top: .4rem; }

/* ---------- Aktuality ---------- */
.news-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.news-item { display: grid; grid-template-rows: auto 1fr; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.news-item.lead { grid-column: 1 / -1; grid-template-columns: 1.35fr 1fr; grid-template-rows: none; }
.news-media { display: block; aspect-ratio: 16 / 10; background: var(--bg-3); overflow: hidden; }
.news-item.lead .news-media { aspect-ratio: auto; min-height: 320px; }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-item:hover .news-media img { transform: scale(1.03); }
.news-noimg { display: grid; place-items: center; height: 100%; font-family: var(--serif); font-size: 4rem; color: var(--line); }
.news-body { padding: 1.2rem 1.3rem 1.1rem; display: flex; flex-direction: column; }
.news-item.lead .news-body { padding: 2rem; justify-content: center; }
.news-body .eyebrow { margin-bottom: .4rem; }
.news-title { font-size: 1.45rem; margin: 0 0 .5rem; }
.news-item.lead .news-title { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.news-title a { color: var(--text); }
.news-title a:hover { color: var(--accent-2); }
.news-excerpt { color: #cfcac2; margin: 0 0 1rem; }
.news-meta { margin: auto 0 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--muted); font-size: .9rem; }

.news-article { max-width: 820px; padding-top: 2.2rem; padding-bottom: 3rem; }
.news-head { margin-bottom: 1.8rem; }
.news-head .page-title { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .4rem; }
.news-head .post-actions { display: flex; gap: .5rem; margin-top: .8rem; }
.news-head .post-actions form { margin: 0; }
.btn-danger-text { color: var(--danger) !important; }

/* formátovaný obsah (zobrazení i editor) */
.rich { font-size: 1.07rem; line-height: 1.75; color: #ddd8d0; }
.rich > :first-child { margin-top: 0; }
.rich p { margin: 0 0 1.05em; }
.rich h2 { font-size: 1.75rem; margin: 1.6em 0 .5em; color: var(--text); }
.rich h3 { font-size: 1.3rem; margin: 1.4em 0 .4em; color: var(--text); }
.rich strong { color: var(--text); }
.rich a { text-decoration: underline; text-underline-offset: 3px; }
.rich ul, .rich ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.rich li { margin: .2em 0; }
.rich blockquote { margin: 1.4em 0; padding: .3em 0 .3em 1.2em; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: 1.2rem; color: var(--text); }
.rich hr { margin: 2em auto; width: 40%; }
.rich .al-center, .rich [style*="text-align: center"] { text-align: center; }
.rich .al-right { text-align: right; }
.rich figure { margin: 1.6em 0; }
.rich figure img, .rich figure video { width: 100%; height: auto; border-radius: 10px; background: #000; }
.rich figcaption { color: var(--muted); font-size: .88rem; margin-top: .5rem; text-align: center; }
.embed-box { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.embed-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* editor */
.editor { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.ed-toolbar { position: sticky; top: 64px; z-index: 5; display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; padding: .45rem; border-bottom: 1px solid var(--line); background: var(--bg-2); border-radius: 12px 12px 0 0; }
.ed-toolbar button { background: transparent; color: var(--text); border: 1px solid transparent; border-radius: 7px; padding: .3rem .55rem; font: 600 .86rem var(--sans); cursor: pointer; white-space: nowrap; }
.ed-toolbar button:hover { background: var(--bg-3); border-color: var(--line); }
.ed-toolbar button.on { background: rgba(224,178,90,.18); border-color: rgba(224,178,90,.5); color: var(--accent-2); }
.ed-toolbar select { width: auto; padding: .3rem .5rem; font-size: .86rem; }
.ed-sep { width: 1px; height: 22px; background: var(--line); margin: 0 .2rem; }
.ed-area { min-height: 340px; padding: 1.1rem 1.3rem; outline: none; }
.ed-area:empty::before, .ed-area > p:only-child:has(> br:only-child)::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; position: absolute; }
.ed-area figure { position: relative; outline: 2px solid transparent; border-radius: 10px; }
.ed-area figure:hover { outline-color: rgba(224,178,90,.5); }
.ed-area .embed-box iframe { pointer-events: none; }
.ed-status { margin: 0; padding: .4rem 1rem .6rem; min-height: 1.6em; }

@media (max-width: 860px) {
  .news-list { grid-template-columns: 1fr; }
  .news-item.lead { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .news-item.lead .news-media { min-height: 0; aspect-ratio: 16 / 10; }
  .news-item.lead .news-body { padding: 1.3rem; }
  .ed-toolbar { top: 56px; }
  .ed-area { padding: .9rem; min-height: 260px; }
}
.rich figure img { width: auto; max-width: 100%; max-height: 82vh; margin: 0 auto; }
.ed-area figure img { max-height: 420px; }

/* ---------- Aktuality na úvodní stránce ---------- */
.news-list.news-home { grid-template-columns: repeat(3, 1fr); }
.news-home .news-title { font-size: 1.25rem; }
@media (max-width: 960px) { .news-list.news-home { grid-template-columns: 1fr 1fr; } .news-home .news-item:nth-child(3) { display: none; } }
@media (max-width: 640px) { .news-list.news-home { grid-template-columns: 1fr; } .news-home .news-item:nth-child(3) { display: grid; } }

/* ---------- Patička: sítě pod sebou ---------- */
.footer-social { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-social a { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; }
.footer-social a:hover span { color: var(--accent-2); }
.footer-social .si { width: 22px; height: 22px; flex: none; }
.si-facebook { color: #1877f2; }
.si-instagram { color: #e4405f; }
.si-mail { color: var(--muted); }

/* ---------- Vyhledávání v galerii ---------- */
.gallery-head { align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; }
.search-box { position: relative; display: flex; align-items: center; min-width: min(100%, 340px); }
.search-box svg { position: absolute; left: .85rem; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-box input[type=search] { padding-left: 2.5rem; padding-right: 2.3rem; border-radius: 99px; }
.search-box input[type=search]::-webkit-search-cancel-button { display: none; }
.search-clear { position: absolute; right: .55rem; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); font-size: 1.2rem; text-decoration: none; }
.search-clear:hover { background: var(--bg-3); color: var(--text); }
.search-info { color: var(--muted); margin: 0 0 1.2rem; }
@media (max-width: 760px) { .search-box { width: 100%; } }
.log-ip { line-height: 1.35; }
.log-ip > span { display: block; }
.log-geo { color: var(--text); font-size: .85rem; white-space: nowrap; }
.log-geo .flag { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 1.05rem; }
@media (max-width: 760px) { .log-table .log-ip { display: flex !important; gap: .6rem; font-size: .8rem; } }

/* ---------- Dvoufázové ověření ---------- */
.code-input { font-size: 1.5rem !important; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.tfa-steps { padding-left: 1.3rem; display: grid; gap: 1.3rem; margin: 1.5rem 0; }
.tfa-steps li::marker { color: var(--accent); font-weight: 700; }
.tfa-qr { margin: .9rem 0 .5rem; }
.tfa-qr svg { display: block; width: 210px; height: 210px; border-radius: 10px; }
.tfa-key code { font-size: 1.05rem; letter-spacing: .08em; background: var(--bg-2); padding: .35rem .6rem; border-radius: 8px; border: 1px solid var(--line); word-break: break-all; }
.tfa-confirm { display: flex; gap: .6rem; align-items: center; margin-top: .6rem; max-width: 22rem; }
.tfa-confirm .code-input { font-size: 1.2rem !important; }
.backup-codes { border: 1px solid rgba(224,178,90,.5); background: rgba(224,178,90,.08); border-radius: 12px; padding: 1rem 1.2rem; margin: 1rem 0 1.5rem; }
.backup-codes ul { columns: 2; list-style: none; padding: 0; margin: .8rem 0; }
.backup-codes code { font-size: 1.05rem; letter-spacing: .06em; }
.sec-box p { margin: 0 0 .6rem; }
@media print { .site-header, .site-footer, .tfa-steps, form, .btn { display: none !important; } .backup-codes { border: 1px solid #000; color: #000; } }
