/* StagePort: sociální vrstva (příspěvky, lajky, komentáře, zmínky, upozornění, toasty). Tokeny z app.css. */
.post-card { padding: 18px 20px 12px; }
.post-head .muted a { color: var(--muted); }
.post-head .muted a:hover { color: var(--accent-ink); }
.post-body { font-size: 14px; }
.mention { color: var(--accent-ink); font-weight: 600; background: var(--accent-soft); border-radius: 5px; padding: 0 4px; }
.mention:hover { color: var(--orange); }
.post-stats { display: flex; justify-content: space-between; align-items: center; min-height: 22px; padding: 2px 2px 6px; }
.post-stats [data-like-count] { display: inline-flex; gap: 4px; align-items: center; }
.post-stats [data-like-count] .ico { color: #fff; background: var(--orange); border-radius: 50%; padding: 2px; width: 17px; height: 17px; }
.post-stats [hidden], [data-like-count][hidden] { display: none !important; }
.post-actions { display: flex; gap: 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 0; align-items: center; }
.post-actions form { flex: 1; display: flex; }
.post-actions > .act, .post-actions form .act { flex: 1; justify-content: center; }
.act { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 0; background: none; border-radius: 8px; color: var(--muted); font: 600 13px/1 var(--font); cursor: pointer; transition: background .15s, color .15s; }
.act:hover { background: var(--surface-2); color: var(--text); }
.act.is-on { color: var(--accent-ink); }
.act.is-on .ico { fill: var(--orange); stroke: var(--accent-ink); }
.act.pop .ico { animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.45); } }
.act-sm { padding: 2px 6px; font-size: 12px; gap: 4px; }
.act-sm span { display: none; }
.act-sm b { font-weight: 700; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; }
.linkish:hover { color: var(--accent-ink); text-decoration: underline; }

/* Komentáře */
.comments { padding-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.comments-more { align-self: flex-start; }
.comments-list { display: flex; flex-direction: column; gap: 8px; }
.comments-list:empty { display: none; }
.cmt { display: flex; gap: 8px; align-items: flex-start; }
.cmt-main { min-width: 0; flex: 1; }
.cmt-bubble { display: inline-block; max-width: 100%; background: var(--surface-2); border-radius: 14px; padding: 7px 12px; font-size: 13px; }
.cmt-bubble a { color: var(--text); }
.cmt-bubble .mention { color: var(--accent-ink); }
.cmt-body p { margin: 0; }
.cmt-meta { display: flex; gap: 10px; align-items: center; padding: 2px 10px; font-size: 12px; }
.cmt-meta form { display: inline; }
.cmt-form { display: flex; gap: 8px; align-items: flex-start; }
.cmt-input { flex: 1; display: flex; align-items: flex-end; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; padding: 3px 4px 3px 12px; position: relative; }
.cmt-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245, 159, 0, .15); }
.cmt-input textarea { border: 0; background: transparent; padding: 6px 0; min-height: 32px; resize: none; box-shadow: none !important; font-size: 13px; }
.cmt-as { width: auto; border: 0; background: transparent; font-size: 12px; color: var(--muted); padding: 6px 2px; max-width: 120px; }
.is-fresh { animation: fresh 1.2s ease; }
@keyframes fresh { from { background: var(--accent-soft); } }
.is-gone { opacity: 0; transform: scale(.98); transition: .25s; }

/* Editor příspěvku */
.composer { gap: 12px; }
.composer-top { align-items: flex-start; }
.composer-field { flex: 1; position: relative; }
.composer-field textarea { border: 0; background: var(--surface-2); border-radius: 14px; padding: 12px 14px; min-height: 52px; resize: none; }
.composer-bar { gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.composer-as { width: auto; padding: 6px 10px; font-size: 13px; }
.composer-preview { position: relative; display: inline-block; }
.composer-preview[hidden] { display: none; }
.composer-preview img { max-height: 220px; border-radius: 10px; }
.composer-preview .btn { position: absolute; top: 6px; right: 6px; background: rgba(255, 255, 255, .9); }

/* @zmínky */
.mention-wrap { position: relative; }
.mention-pop { position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 80; width: 290px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 5px; display: flex; flex-direction: column; }
.composer-field .mention-pop { top: calc(100% + 6px); bottom: auto; }
.mention-item { display: flex; gap: 9px; align-items: center; padding: 6px 8px; border: 0; background: none; border-radius: 8px; text-align: left; cursor: pointer; font: 13px var(--font); color: var(--text); }
.mention-item img, .mention-item .ssug-ph { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mention-item > span:not(.ssug-ph) { display: flex; flex-direction: column; min-width: 0; }
.mention-item small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mention-item.is-active, .mention-item:hover { background: var(--accent-soft); }
.thread-input { flex: 1; display: flex; }
.thread-input textarea { flex: 1; }

/* Načítání a toasty */
.loader { display: flex; justify-content: center; gap: 6px; padding: 18px; }
.loader[hidden] { display: none; }
.loader span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: dots 1s infinite ease-in-out; }
.loader span:nth-child(2) { animation-delay: .15s; }
.loader span:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--dark); color: #fff; padding: 10px 18px; border-radius: 10px; box-shadow: var(--shadow); font-size: 13px; animation: toastIn .2s ease; transition: .4s; }
.toast.is-bad { background: #b91c1c; }
.toast.is-out { opacity: 0; transform: translateY(8px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* Hlavička: zprávy a upozornění */
.hdrop { position: relative; }
.hdrop > summary { list-style: none; cursor: pointer; }
.hdrop > summary::-webkit-details-marker { display: none; }
.dot[hidden] { display: none; }
.hdrop-pop { position: absolute; right: -60px; top: calc(100% + 10px); width: 380px; max-width: calc(100vw - 20px); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; z-index: 80; }
.hdrop-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 8px; }
.hdrop-body { max-height: 420px; overflow-y: auto; padding: 0 6px 6px; }
.hdrop-foot { text-align: center; padding: 10px; border-top: 1px solid var(--line); font-weight: 600; font-size: 13px; }
.notif { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 10px; color: var(--text); font-size: 13px; }
.notif:hover { background: var(--surface-2); color: var(--text); }
.notif.is-new { background: var(--accent-soft); }
.notif-av { position: relative; flex-shrink: 0; }
.notif-av .conv-ico { width: 38px; height: 38px; }
.notif-ico { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--orange); box-shadow: 0 0 0 2px var(--surface); }
.notif-like { background: var(--orange); }
.notif-follow { background: #2563eb; }
.notif-invite { background: #16a34a; }
.notif-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif-ex { color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notif-empty { padding: 20px 10px; }
.notif-page .notif { padding: 12px; }

/* Sledování lidí, stránka člověka, diskuze u článku */
.plist-follow li { display: flex; align-items: center; gap: 8px; }
.plist-follow li > a { flex: 1; min-width: 0; }
.plist-follow form { flex-shrink: 0; }
.phead-cover-user { height: 200px; background: linear-gradient(135deg, #1b1814 0%, #3a2608 55%, #ff8a00 140%); }
.article-social { margin: 0 0 40px; }
.article-cover + .wrap .article-social { padding: 22px 34px; }
.article-social h2 { margin-top: 18px; }

/* Tým akce: řádky ve formuláři, profil vs. text, pozvánky */
.crew-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.crew-row-edit, .crew-add { display: grid; grid-template-columns: 170px minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.crew-add { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
/* v produkci je tým v užším sloupci: role + tlačítko pod polem názvu */
#tym .crew-add { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
#tym .crew-add .suggest { grid-column: 1 / -1; order: -1; }
.crew-row-edit input, .crew-row-edit select, .crew-add input, .crew-add select { padding: 8px 10px; font-size: 13px; }
.crew-row-edit [data-crew-email][hidden], .crew-add [data-crew-email][hidden] { display: block; visibility: hidden; }
.suggest-state { display: block; min-height: 16px; margin-top: 3px; color: var(--muted); }
.suggest-state.is-linked { color: var(--ok); font-weight: 600; }
.suggest-state .ico { width: 12px; height: 12px; }
.crew-h { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 0 6px; }
.crew-h:first-child, .card-head + .crew-h { margin-top: 0; }
.crew-text-av .avatar-initials, .crew-plain-av { background: var(--surface-2) !important; color: var(--muted) !important; border: 1px dashed var(--line-2); }
.crew-plain { color: var(--text); }
.crew-plain > span:last-child { display: flex; flex-direction: column; }
.invite-card h1 { margin-bottom: 4px; }
.invite-as { text-align: center; background: var(--accent-soft); border-radius: 10px; padding: 10px 14px; margin: 6px 0 18px; }
.pick { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 400; color: var(--text); }
.pick > span:last-child { display: flex; flex-direction: column; }
.pick:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.stack:has([data-pick-new]:not(:checked)) .pick-new { display: none; }

/* Mapa ČR v katalogu a výběr polohy profilu (public/js/map.js) */
.map-card { padding: 0; overflow: hidden; margin-bottom: 14px; }
.map-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; flex-wrap: wrap; }
.map-head > strong { display: inline-flex; gap: 6px; align-items: center; }
.map-head .btn { margin-left: auto; }
.map-legend { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); }
.lg { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-left: 6px; }
.lg-artist, .map-artist { background: #ff8a00; }
.lg-service, .map-service { background: #1b1814; }
.lg-venue, .map-venue { background: #7c3aed; }
.catalog-map { height: 380px; border-top: 1px solid var(--line); background: #eef0f2; z-index: 0; }
.catalog-map[hidden] { display: none; }
.map-tiles { filter: grayscale(1) contrast(.85) brightness(1.08); }
.geo-map { height: 280px; border-radius: 10px; border: 1px solid var(--line); margin: 6px 0 2px; z-index: 0; }
.map-bubble { display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font: 800 13px/1 var(--font-head);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 4px 12px rgba(0, 0, 0, .3); opacity: .92; transition: transform .15s; cursor: pointer; }
.map-bubble:hover { transform: scale(1.1); opacity: 1; }
.map-bubble.map-artist { background: linear-gradient(135deg, #ffb000, #ff7a00); color: #1d1204; }
.map-bubble.is-active { box-shadow: 0 0 0 4px #ffb000, 0 4px 14px rgba(0, 0, 0, .35); }
.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-popup-content { margin: 12px; font: 13px/1.4 var(--font); }
.map-pop-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-family: var(--font-head); }
.map-pop-head span { background: var(--accent-soft); color: var(--accent-ink); border-radius: 999px; padding: 1px 9px; font-weight: 700; font-size: 12px; }
.map-item { display: flex; gap: 8px; align-items: center; padding: 5px 4px; border-radius: 8px; color: var(--text) !important; }
.map-item:hover { background: var(--surface-2); }
.map-item img, .map-ph { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.map-ph { display: flex; align-items: center; justify-content: center; color: #fff; font: 800 11px/1 var(--font-head); }
.map-ph.map-artist { color: #1d1204; }
.map-item > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.map-item small { color: var(--muted); }
.map-more { margin: 4px 4px 8px; color: var(--muted); font-size: 12px; }
.map-pop .btn { margin-top: 8px; color: #1d1204 !important; }
.city-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); border: 1px solid #fcd9a8; border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 13px; margin: 0 0 10px; }
.city-chip .chip-x { color: var(--accent-ink); font-size: 16.5px; text-decoration: none; }

@media (max-width: 960px) {
    .crew-row-edit, .crew-add { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .crew-row-edit .suggest, .crew-add .suggest { grid-column: span 2; order: -1; }
}
@media (max-width: 640px) {
    .catalog-map { height: 280px; }
    .map-legend { display: none; }
    .post-card { padding: 14px 12px 8px; }
    .post-actions .act span { display: none; }
    .hdrop-pop { position: fixed; left: 10px; right: 10px; top: 64px; width: auto; }
    .article-cover + .wrap .article-social { padding: 16px; }
}

/* Přepínač obsahu ČR / SR v hlavičce (_site_switch.html.twig); jazyk = doména, odkazy v patičce */
.sitesw { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; border: 1px solid var(--dark-line); }
.sitesw a { padding: 5px 10px; border-radius: 999px; color: var(--on-dark-muted); font: 700 12px/1 var(--font); }
.sitesw a:hover { color: #fff; }
.sitesw a.is-active { background: var(--orange); color: var(--dark); }
.footer-copy { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-domains { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-domains a { color: var(--on-dark-muted); }
.footer-domains a:hover, .footer-domains a.is-active { color: var(--orange); }

/* Okna chatu dole na stránce (dock, app.js): víc konverzací vedle sebe, nejnovější vpravo */
.dock { position: fixed; right: 16px; bottom: 0; z-index: 85; display: flex; flex-direction: row-reverse; align-items: flex-end; gap: 12px; pointer-events: none; }
.dockwin { pointer-events: auto; width: 332px; height: 460px; max-height: calc(100vh - 90px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; box-shadow: 0 -6px 30px rgba(23, 19, 14, .18); overflow: hidden; animation: dock-in .22s ease-out; }
.dockwin.is-min { height: auto; }
.dockwin.is-min .thread { display: none; }
.dockwin-head { display: flex; align-items: center; gap: 2px; padding: 6px 6px 6px 10px; background: var(--dark); color: #fff; }
.dockwin-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: none; border: 0; color: inherit; cursor: pointer; padding: 2px 0; text-align: left; font: inherit; }
.dockwin-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.dockwin-title .conv-ico { width: 28px; height: 28px; }
.dockwin-btn { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--on-dark-muted); font-size: 18.5px; line-height: 1; cursor: pointer; }
.dockwin-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.dockwin .thread-msgs { padding: 12px; }
.dockwin .thread-form { padding: 8px 10px; }
.dockwin .msg { max-width: 92%; }
@keyframes dock-in { from { transform: translateY(24px); opacity: 0; } }
@media (max-width: 760px) {
    .dock { left: 0; right: 0; bottom: 64px; }
    .dockwin { width: 100%; border-radius: 14px 14px 0 0; height: min(70vh, 520px); }
}
/* panel „Zprávy“ v chat vrstvě (ikona zpráv v hlavičce) */
.dock-list .dockwin-title .ico { color: var(--orange); }
.dock-list-body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 0; }
.dockwin.is-min .dock-list-body, .dockwin.is-min .dock-list-foot { display: none; }
.dock-list-foot { display: block; padding: 10px; text-align: center; font-weight: 600; font-size: 13px; border-top: 1px solid var(--line); }

/* Formulář stránky a registrace (manage/_page_basics.html.twig): pole podle zvoleného druhu, bez JS.
   data-show-group: page (cokoli kromě „jen osobní profil“), artist, service, place (prostor i studio), notpro */
form:has([data-group="none"]:checked) [data-show-group="page"],
form:not(:has([data-group="artist"]:checked)) [data-show-group="artist"],
form:not(:has([data-group="service"]:checked)) [data-show-group="service"],
form:not(:has([data-group="venue"]:checked, [data-group="studio"]:checked, [data-group="rehearsal"]:checked)) [data-show-group="place"],
form:has([data-group="service"]:checked) [data-show-group="notpro"],
form:not(:has([data-group="service"]:checked, [data-group="venue"]:checked, [data-group="studio"]:checked, [data-group="rehearsal"]:checked)) [data-show-group="team"] { display: none; }
.page-basics { display: grid; gap: 14px; }
.pick-list { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pick-list legend { width: 100%; font-weight: 600; margin-bottom: 8px; padding: 0; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; }
.pick span { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 13px; }
.pick input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.pick input:focus-visible + span { box-shadow: 0 0 0 3px rgba(245, 159, 0, .3); }
.pick-list .err { width: 100%; }
/* registrace se stránkou: širší karta, kroky */
.auth-card.auth-card-wide { max-width: 640px; }
.auth-step { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 10px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.auth-step .ico { color: var(--orange); }
.auth-card .kind-picker { margin-bottom: 4px; }
/* registrace: pole stránky jako samostatný podblok, patička s odesláním oddělená od polí */
.auth-card .page-basics { margin-top: 10px; padding: 18px; gap: 20px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.auth-card .page-basics .grid-2 { row-gap: 14px; }
.auth-card .pick-list legend { margin-bottom: 10px; }
.auth-submit { display: grid; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.auth-submit .check { margin: 0; }
.auth-submit .auth-alt { margin: 4px 0 0; }
/* seznam mých stránek (nastavení profilu) */
.page-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius-sm); color: var(--text); }
.page-row > span { flex: 1; display: grid; }
.page-row:hover { background: var(--surface-2); }

/* Sdílení jako na Facebooku: počet u příspěvku, karta sdíleného obsahu, nabídka „Sdílet“, dialogy (app.js) */
.post-stats { justify-content: flex-start; gap: 12px; }
.post-stats > [data-like-count] { margin-right: auto; }
.post-who { display: block; }
.shared-verb { font-weight: 400; }
.shared { display: block; margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); overflow: hidden; }
.shared-post { padding: 12px 14px; }
.shared-head { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.shared-head > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.shared-head a { color: var(--text); }
.shared-head a.muted { color: var(--muted); }
.shared-body { font-size: 13px; }
.shared-body > :last-child { margin-bottom: 0; }
.shared-img { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: 8px; margin-top: 8px; }
.shared-post .erow { margin-top: 8px; border-color: var(--line); }
.shared-link { display: flex; gap: 14px; align-items: center; padding: 12px; }
.shared-link:hover { background: var(--surface-2); color: var(--text); border-color: var(--line-2); }
.shared-thumb { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: var(--surface-2); }
.shared-thumb.is-poster { width: 60px; height: 84px; }
.shared-date { width: 60px; height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line-2); background: var(--surface); line-height: 1.05; }
.shared-date b { font: 900 22.5px/1 var(--font-head); }
.shared-date small { text-transform: uppercase; font-size: 11px; color: var(--accent-ink); font-weight: 700; }
.shared-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.shared-main strong { font-size: 14px; line-height: 1.3; }
.shared-kicker { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-ink); }
.shared-clamp { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.shared-gone { display: flex; gap: 12px; align-items: center; padding: 14px; background: var(--surface-2); border-style: dashed; color: var(--muted); }
.shared-gone > span { display: flex; flex-direction: column; }
.shared-gone strong { color: var(--text-2); }

.share-menu { position: absolute; z-index: 150; width: 290px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; animation: toastIn .15s ease; }
.share-menu-head { display: none; }
.share-item { display: flex; gap: 12px; align-items: center; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 10px; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.share-item:hover, .share-item:focus-visible { background: var(--surface-2); outline: none; }
.share-item-ico { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--accent-soft); color: var(--accent-ink); }
.share-item-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.share-item-main strong { font-size: 13px; font-weight: 600; }
.share-item-main small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-back { position: fixed; inset: 0; z-index: 149; background: rgba(14, 12, 10, .45); }
.share-menu.is-sheet { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; border-radius: 18px 18px 0 0; padding: 8px 10px calc(14px + env(safe-area-inset-bottom)); animation: sheetIn .2s ease; }
.share-menu.is-sheet .share-menu-head { display: block; text-align: center; font-weight: 700; padding: 6px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.share-menu.is-sheet .share-menu-head::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 0 auto 8px; }
.share-menu.is-sheet .share-item { padding: 11px 8px; }
@keyframes sheetIn { from { transform: translateY(100%); } }

.share-dlg { padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); overflow: auto; }
.share-dlg form { display: flex; flex-direction: column; gap: 12px; padding: 0 20px 18px; }
.share-dlg-head { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 2; background: var(--surface); margin: 0 -20px; padding: 14px 20px 12px; border-bottom: 1px solid var(--line); }
.share-dlg-head h3 { margin: 0; flex: 1; font-size: 16px; }
.share-as { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.share-as strong { color: var(--text); }
.share-as select { width: auto; flex: 1; padding: 6px 10px; }
.share-dlg textarea { border: 0; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; resize: none; min-height: 44px; }
.share-dlg .mention-wrap { position: relative; }
.share-preview { pointer-events: none; }
.share-preview > .shared { margin-top: 0; }
.share-preview.is-compact .shared-body { max-height: 66px; overflow: hidden; }
.share-preview.is-compact .shared-img { max-height: 140px; }
.share-dlg .dialog-bar { margin-top: 0; }
.share-search { padding: 9px 12px; }
.share-targets { display: flex; flex-direction: column; gap: 2px; max-height: 240px; overflow: auto; margin: 0 -6px; }
.share-label { margin: 0 6px 2px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.share-targets > p.muted { margin: 4px 6px; }
.share-target { display: flex; gap: 10px; align-items: center; width: 100%; padding: 7px 6px; border: 0; background: none; border-radius: 10px; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.share-target:hover { background: var(--surface-2); }
.share-target.is-on { background: var(--accent-soft); }
.share-target-main { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.share-target-main strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-target-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: transparent; flex-shrink: 0; }
.share-target.is-on .share-target-check { background: var(--orange); border-color: var(--orange); color: #fff; }
.share-target-check .ico { width: 13px; height: 13px; }
@media (max-width: 640px) {
    .share-dlg { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
    .share-dlg form { padding: 0 14px 14px; }
    .share-dlg-head { margin: 0 -14px; padding: 12px 14px 10px; }
    .shared-thumb { width: 72px; height: 56px; }
}
.notif-share { background: #0891b2; }

/* sdílení na Instagram: grafika příspěvku / story, stažení, popisek */
.share-ig-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 999px; margin-bottom: 12px; }
.share-ig-tabs button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font: 600 13px/1.2 var(--font); color: var(--text-2); cursor: pointer; }
.share-ig-tabs button.is-on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.share-ig-preview { display: grid; place-items: center; background: var(--dark); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.share-ig-preview img { display: block; width: 100%; max-width: 340px; aspect-ratio: 1; object-fit: contain; border-radius: 6px; }
.share-ig.is-story .share-ig-preview img { max-width: 210px; aspect-ratio: 9 / 16; }
.share-ig-bar { flex-wrap: wrap; }
.share-ig textarea { font-size: 13px; resize: none; }
.share-dlg-body { display: flex; flex-direction: column; padding: 0 20px 18px; }
.share-dlg-body .share-dlg-head { margin-bottom: 12px; }

/* popisek názvu stránky podle zvoleného druhu (_page_basics.html.twig) */
.page-name-l { display: none; }
form:not(:has(input[name$="kind"][value]:checked:not([value=""]))) .page-name-l[data-kind-label=""] { display: inline; }
form:has(input[name$="kind"][value="band"]:checked) .page-name-l[data-kind-label="band"],
form:has(input[name$="kind"][value="solo"]:checked) .page-name-l[data-kind-label="solo"],
form:has(input[name$="kind"][value="dj"]:checked) .page-name-l[data-kind-label="dj"],
form:has(input[name$="kind"][value="pro"]:checked) .page-name-l[data-kind-label="pro"],
form:has(input[name$="kind"][value="club"]:checked) .page-name-l[data-kind-label="club"],
form:has(input[name$="kind"][value="hall"]:checked) .page-name-l[data-kind-label="hall"],
form:has(input[name$="kind"][value="festival"]:checked) .page-name-l[data-kind-label="festival"],
form:has(input[name$="kind"][value="studio"]:checked) .page-name-l[data-kind-label="studio"],
form:has(input[name$="kind"][value="rehearsal_shared"]:checked) .page-name-l[data-kind-label="rehearsal_shared"],
form:has(input[name$="kind"][value="rehearsal_private"]:checked) .page-name-l[data-kind-label="rehearsal_private"] { display: inline; }

/* žánry a odbornosti: jen pilulky, bez rámečku obecné karty .pick */
.pick-list .pick, .pick-list .pick:has(input:checked) { padding: 0; border: 0; background: none; gap: 0; }
.pick-list .pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pick-list .pick span:hover { border-color: var(--accent); }
.pick-list .pick > span:last-child { flex-direction: row; } /* ikona a text oboru vedle sebe */

/* registrace: nepovinné osobní specializace sbalené */
.auth-more { margin-top: 4px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.auth-more > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; list-style: none; }
.auth-more > summary::-webkit-details-marker { display: none; }
.auth-more > summary .ico { color: var(--orange); }
.auth-more[open] > summary { margin-bottom: 12px; }
.auth-more .pick-list + .pick-list { margin-top: 14px; }
/* registrace: nadpis sekce s odstupem od polí, rozbalovací bloky pod sebou */
.auth-step { margin-bottom: 14px; }
.auth-more + .auth-more { margin-top: 10px; }
.auth-more .team-picks { margin-bottom: 0; }

/* Odstupy ve formulářích (platí všude, social.css se načítá jako poslední): skupiny voleb, pole a mřížky */
fieldset.pick-list, fieldset.team-picks { margin: 0 0 18px; }
fieldset.pick-list > legend, fieldset.team-picks > legend { margin-bottom: 10px; }
.auth-more fieldset.team-picks { margin-bottom: 0; }
form .grid-2 + fieldset, form .field + fieldset { margin-top: 4px; }

/* Smajlíky: tlačítko u pole (textarea[data-emoji], app.js) a paleta pod ním */
.emoji-wrap { position: relative; }
.emoji-toggle { flex: none; border: 0; background: none; font-size: 19px; line-height: 1; padding: 6px; border-radius: 8px; cursor: pointer; filter: grayscale(1); opacity: .65; transition: opacity .15s, filter .15s, background .15s; }
.emoji-toggle:hover, .emoji-toggle[aria-expanded="true"] { filter: none; opacity: 1; background: var(--surface-2); }
.composer-field .emoji-toggle, .share-dlg .emoji-toggle { position: absolute; right: 6px; bottom: 6px; }
.composer-field textarea, .share-dlg textarea[data-emoji] { padding-right: 44px; }
.emoji-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 45; width: min(330px, calc(100vw - 24px)); max-height: 290px; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 4px 10px 10px; }
.emoji-group-t { display: block; margin: 8px 2px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); }
.emoji-item { border: 0; background: none; font-size: 22px; line-height: 1; padding: 6px 0; border-radius: 8px; cursor: pointer; }
.emoji-item:hover, .emoji-item:focus-visible { background: var(--surface-2); }
