/* Společenství (výbor): shromáždění, per rollam, oznámení, dokumenty. Doplňuje app.css, nic v něm nepřepisuje. */

.spol .ph h1 em { font-style: normal; color: #ffd08a; }
.spol .ph .eyebrow .live { letter-spacing: 0.14em; }
.spol .tag svg, .vsum .tag svg { width: 13px; height: 13px; stroke-width: 2.2; }
.spol svg.flip { transform: scaleX(-1); }
.spol .card-h .acts { align-items: center; }

/* ---------- program shromáždění ---------- */
.agenda { list-style: none; margin: 0; padding: 0; }
.agenda > li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 0; }
.agenda > li + li { border-top: 1px solid var(--line); }
.ag-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 600; background: rgba(255, 240, 220, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 240, 220, 0.14); }
.agenda li.next .ag-n { color: var(--amber-ink); background: linear-gradient(160deg, var(--amber-hi), var(--amber)); box-shadow: 0 0 0 4px rgba(244, 184, 96, 0.18); }
.agenda li.s-prijato .ag-n { color: #0f2a1c; background: linear-gradient(160deg, #c2f2d6, var(--ok)); box-shadow: none; }
.agenda li.s-neprijato .ag-n { color: #3a0e05; background: linear-gradient(160deg, #ffc2b3, #ff9a82); box-shadow: none; }
.agenda li.s-projednano .ag-n { color: var(--mu); background: rgba(255, 240, 220, 0.2); }
.ag-b { min-width: 0; padding-top: 6px; }
.ag-b > b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.ag-b > p { margin: 4px 0 0; font-size: 13px; color: var(--mu); }
.ag-b > small { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 12px; color: var(--mu2); }
.ag-b > small svg { width: 13px; height: 13px; }
.ag-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-top: 3px; }
.ag-res { margin-top: 10px; max-width: 520px; }
.ag-res .stackbar { height: 12px; border-radius: 6px; }
.ag-res .stackbar .mark50 { top: -3px; bottom: -3px; }
.ag-res .legend { margin-top: 7px; font-size: 12px; gap: 12px; }
.ag-res > p { margin: 5px 0 0; font-size: 12.5px; color: var(--mu2); }
.spol .card > .bar { margin: -4px 0 6px; height: 6px; }

.spol .note { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 4px; padding: 11px 14px; border-radius: 14px; font-size: 13px; line-height: 1.45; }
.spol .note svg { width: 16px; height: 16px; margin-top: 1px; }
.spol .note.warn { color: var(--warn); background: var(--warn-bg); }

/* ---------- kvórum a mřížka jednotek ---------- */
.spol .quorum.low span { color: var(--ink); }
.q-note { display: flex; gap: 9px; align-items: flex-start; margin: 12px 0 16px; font-size: 13px; color: var(--mu); line-height: 1.45; }
.q-note svg { width: 16px; height: 16px; margin-top: 1px; color: var(--amber-hi); }
.q-note b { color: var(--ink); font-weight: 600; }
.ent + .ent { margin-top: 12px; }
.ent-h { display: flex; justify-content: space-between; align-items: baseline; margin: 0 2px 6px; font-size: 12px; }
.ent-h b { font-weight: 600; color: var(--mu); letter-spacing: 0.04em; }
.ent-h small { color: var(--mu2); }
.spol .att { position: relative; display: grid; place-items: center; padding: 0; font-variant-numeric: tabular-nums; }
.spol span.att { cursor: default; }
.spol span.att:hover { transform: none; }
.spol .att.cf { color: var(--amber-ink); background: linear-gradient(160deg, rgba(255, 220, 160, 0.9), rgba(244, 184, 96, 0.85)); }
.spol .att.pm::after { content: ''; position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--amber-hi); box-shadow: 0 0 0 1.5px rgba(46, 28, 12, 0.6); }
.spol .att.p.pm::after, .spol .att.cf.pm::after { background: #3b2208; box-shadow: none; }
.spol .att.busy { opacity: 0.6; }
.spol .att.v-pro { color: #0f2a1c; background: linear-gradient(160deg, #c2f2d6, var(--ok)); }
.spol .att.v-proti { color: #3a0e05; background: linear-gradient(160deg, #ffc2b3, #f07a5f); }
.spol .att.v-zdrzel { color: #2e1a07; background: rgba(255, 240, 220, 0.55); }
.spol .att.ch-l { box-shadow: inset 0 0 0 2px rgba(46, 28, 12, 0.55); }
.spol .legend i.lg-cf { background: linear-gradient(160deg, rgba(255, 220, 160, 0.9), rgba(244, 184, 96, 0.85)); }
.spol .legend i.lg-p { background: var(--ok); }
.spol .legend i.lg-c { background: transparent; box-shadow: inset 0 0 0 1.5px var(--amber); }
.spol .legend i.lg-no { background: rgba(255, 240, 220, 0.14); }
.spol .legend i.lg-pm { width: 6px; height: 6px; border-radius: 50%; background: var(--amber-hi); margin: 0 2px; }
.spol .legend i.lg-l { background: rgba(255, 240, 220, 0.14); box-shadow: inset 0 0 0 2px rgba(255, 240, 220, 0.5); }
.spol .ent + .legend, .spol .attgrid + .legend { margin-top: 14px; }

/* plné moci, minulá shromáždění */
.proxies > li { padding: 7px 0; }
.proxies b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proxies small { display: flex !important; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proxies small svg { width: 13px; height: 13px; flex: none; color: var(--amber-hi); }
.proxies .r { font-size: 12.5px; color: var(--mu2); font-weight: 500; }
.past-a { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.spol .timeline b { display: block; font-weight: 600; }
.spol .timeline .btn { margin-top: 8px; }

/* ---------- živé shromáždění ---------- */
.live-q { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 30px; align-items: center; padding: 22px 26px; margin-bottom: 18px; }
.lq-num b { display: block; margin: 6px 0 4px; font-size: 54px; font-weight: 500; line-height: 1; letter-spacing: -0.035em; transition: color 0.3s; }
.live-q.ok .lq-num b { color: var(--ok); }
.lq-num small { display: block; font-size: 13px; color: var(--mu2); white-space: nowrap; }
.spol .quorum.big { height: 64px; border-radius: 20px; }
.lq-bar p { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0 0; font-size: 14px; color: var(--mu); }
.lq-bar p b { color: var(--ink); font-weight: 600; }
.lq-bar p svg { margin-top: 1px; color: var(--warn); }
.live-q.ok .lq-bar p svg { color: var(--ok); }
.lq-act { display: grid; gap: 7px; justify-items: center; text-align: center; }
.lq-act small { font-size: 12px; color: var(--mu2); }

/* okno hlasování o bodu */
.vsum { margin: 4px 0 0; padding: 14px 16px 12px; border-radius: 18px; background: rgba(255, 240, 220, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 240, 220, 0.1); }
.vs-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.vs-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.vs-big b { font-size: 32px; font-weight: 500; line-height: 1; }
.vs-big span { font-size: 13px; color: var(--mu); }
.vs-note { margin: 8px 0 0; font-size: 12.5px; color: var(--mu2); }
.vquick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 14px 0 4px; }
.vquick > span { font-size: 12.5px; color: var(--mu2); margin-right: 2px; }
.vquick .vfind { margin-left: auto; width: 220px; }
.vquick .vfind input { min-height: 34px; height: 34px; padding: 6px 12px 6px 38px; border-radius: 999px; font-size: 13px; }
.vlist { max-height: min(42vh, 420px); overflow-y: auto; margin-right: -8px; padding-right: 8px; overscroll-behavior: contain; }
.vgroup h4 { position: sticky; top: 0; z-index: 1; margin: 0; padding: 10px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mu2); background: rgb(52, 32, 14); }
.vote-row[hidden] { display: none; }
.vote-row .vu { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.vote-row .vu b { flex: none; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 62px; }
.vote-row .vu span { flex: 1; min-width: 0; font-size: 13px; color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vote-row .vu em { font-style: normal; color: var(--mu2); }
.vote-row .vu small { flex: none; font-size: 12px; color: var(--mu2); }
.vote-row.changed .vu b { color: var(--amber-hi); }

/* ---------- per rollam ---------- */
.poll-q { margin: 2px 0 10px !important; font-size: 22px !important; line-height: 1.32; letter-spacing: -0.015em; }
.poll-d { margin: 0 0 18px; max-width: 62em; font-size: 14px; color: var(--mu); }
.pnums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.pnums > div { padding: 12px 14px; border-radius: 16px; background: rgba(255, 240, 220, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 240, 220, 0.1); }
.pnums b { display: block; font-size: 28px; font-weight: 500; line-height: 1.15; white-space: nowrap; }
.pnums b small { font-size: 14px; color: var(--mu2); font-weight: 400; }
.pnums > div > small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--mu2); }
.chan { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 14px; font-size: 12.5px; color: var(--mu); }
.chan span { display: inline-flex; align-items: center; gap: 6px; }
.chan svg { width: 15px; height: 15px; color: var(--mu2); }
.cd { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.ring { width: 112px; height: 112px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--amber) var(--p), rgba(255, 240, 220, 0.14) 0); box-shadow: 0 10px 30px -14px rgba(240, 160, 60, 0.7); }
.ring > div { width: 92px; height: 92px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: rgb(56, 34, 15); }
.ring b { font-size: 38px; font-weight: 500; line-height: 1; }
.ring small { font-size: 12px; color: var(--mu2); }
.cd-t b { display: block; font-family: var(--display); font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.cd-t small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--mu2); }
.side-acts { display: grid; gap: 8px; }
.side-acts .btn { width: 100%; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.rules li { display: flex; gap: 11px; font-size: 13.5px; line-height: 1.45; color: var(--mu); }
.rules li svg { width: 16px; height: 16px; margin-top: 2px; color: var(--amber-hi); }
.rules b { color: var(--ink); font-weight: 600; }
.law { margin: 14px 0 0; font-size: 11.5px; color: var(--mu3); letter-spacing: 0.02em; }
.recent > li { padding: 8px 0; }
.recent .r { font-size: 12px; font-weight: 500; }
.stackbar.mini { height: 8px; border-radius: 4px; margin-top: 8px; max-width: 420px; }
.stackbar.mini .mark50 { top: -3px; bottom: -3px; width: 2px; }
.polls-done > li { align-items: flex-start; padding: 12px 0; }
.pd-r { display: grid; justify-items: end; gap: 4px; text-align: right; }
.pd-r small { font-size: 12px; color: var(--mu2); }
.poll-empty { display: grid; justify-items: start; gap: 10px; padding: 28px; }
.poll-empty h2 { font-size: 24px !important; }
.poll-empty p { margin: 0 0 6px; max-width: 46em; color: var(--mu); }
.pu-meta { margin: 0 0 16px; color: var(--mu2); font-size: 13px; }
.pu-vote { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; background: rgba(255, 240, 220, 0.07); font-size: 13.5px; color: var(--mu); }
.pu-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pu-btns .btn.pro { color: #0f2a1c; background: linear-gradient(160deg, #c2f2d6, var(--ok)); }
.pu-btns .btn.proti { color: #3a0e05; background: linear-gradient(160deg, #ffc2b3, #f07a5f); }
.pu-btns .btn.zdrzel { color: #2e1a07; background: rgba(255, 240, 220, 0.6); }
.tabs-scroll { max-width: 100%; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.tabs-scroll .tabs { flex-wrap: nowrap; margin: 0; }
.tabs-scroll .tabs a { flex: none; white-space: nowrap; }

/* ---------- oznámení ---------- */
.ann-form .chips button { height: 30px; font-size: 12.5px; }
.ann-form .checks svg { width: 15px; height: 15px; color: var(--mu); }
.ann-form .checks input { width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; border-radius: 4px; background: none; box-shadow: none; flex: none; }
.ann-form .checks label { white-space: nowrap; }
.ann-form .checks label:has(input:checked) { background: rgba(244, 184, 96, 0.22); box-shadow: inset 0 0 0 1px rgba(244, 184, 96, 0.5); }
.ann-form .checks label:has(input:checked) svg { color: var(--amber-hi); }
.ann-form .fld.err .checks label { box-shadow: inset 0 0 0 1px var(--bad); }
.ann-form .foot { margin-top: 4px; }
.pinrow { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 240, 220, 0.07); cursor: pointer; }
.pinrow input { width: 18px; height: 18px; accent-color: var(--amber); flex: none; }
.pinrow b { display: block; font-size: 13.5px; font-weight: 600; }
.pinrow small { display: block; font-size: 12px; color: var(--mu2); }
.ann-list > li { align-items: flex-start; padding: 14px 0; }
.ann-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ann-h b { display: inline; }
.ann-body { margin: 3px 0 5px; font-size: 13px; line-height: 1.45; color: var(--mu); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ann-r { width: 168px; flex: none; display: grid; gap: 7px; justify-items: end; text-align: right; }
.ann-r .reads b { display: inline; font-size: 18px; font-weight: 600; }
.ann-r .reads small { display: inline; margin-left: 5px; }
.ann-r .bar { width: 100%; height: 5px; }

/* ---------- dokumenty ---------- */
.doc-search { width: 240px; flex: none; }
.doc-search input { min-height: 38px; height: 38px; padding: 8px 14px 8px 40px; border-radius: 999px; }
.doc-t { display: flex; align-items: center; gap: 12px; }
.doc-t .ic { width: 36px; height: 36px; border-radius: 11px; }
.doc-t b { font-weight: 600; }
.doc-t .tag { height: 20px; font-size: 11px; vertical-align: 1px; }
.spol .tbl.docs tr[hidden] { display: none; }
.vis-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vis-split > div { padding: 14px; border-radius: 16px; background: rgba(255, 240, 220, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 240, 220, 0.1); }
.vis-split .ic { width: 32px; height: 32px; border-radius: 10px; margin-bottom: 10px; }
.vis-split b { display: block; font-size: 28px; font-weight: 500; line-height: 1; }
.vis-split small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--mu2); }
.drop { position: relative; display: grid; justify-items: center; gap: 4px; padding: 22px 18px; border-radius: 18px; text-align: center; border: 1.5px dashed rgba(255, 240, 220, 0.3); background: rgba(255, 240, 220, 0.05); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.drop:hover, .drop:focus-within { border-color: var(--amber); background: rgba(255, 240, 220, 0.08); }
.drop svg { width: 26px; height: 26px; margin-bottom: 4px; color: var(--amber-hi); }
.drop b { font-size: 14px; font-weight: 600; }
.drop small { font-size: 12px; color: var(--mu2); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop.has { border-style: solid; border-color: rgba(143, 227, 180, 0.7); }
.drop.has svg { color: var(--ok); }

/* ---------- menší okna ---------- */
/* sloupce .flow se na úzkém displeji rozpustí a karty se seřadí podle důležitosti */
.spol .o1 { order: 1; } .spol .o2 { order: 2; } .spol .o3 { order: 3; } .spol .o4 { order: 4; } .spol .o5 { order: 5; }
.spol .grid > .c12 { order: 9; }
@media (min-width: 1101px) { .spol .side-sticky { position: sticky; top: calc(22px + var(--top-h) + 20px); } }
@media (max-width: 1240px) and (min-width: 1101px) {
  .live-q { grid-template-columns: auto minmax(0, 1fr); }
  .lq-act { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; align-items: center; gap: 12px; }
}
@media (max-width: 1100px) {
  .spol .stack.flow { display: contents; }
  .spol .stack.flow > * { grid-column: 1 / -1; }
  .live-q { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px; }
  .lq-act { justify-items: stretch; }
  .lq-num b { font-size: 46px; }
  .spol .attgrid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
  .spol .att { height: 30px; font-size: 10px; border-radius: 7px; }
}
@media (max-width: 640px) {
  .spol .attgrid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
  .spol .att { height: 34px; font-size: 11px; }
  .agenda > li { grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
  .ag-n { width: 30px; height: 30px; font-size: 13px; }
  .ag-b { padding-top: 4px; }
  .ag-r { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; padding-top: 0; }
  .spol .card-h { flex-wrap: wrap; }
  .past .t { flex-basis: calc(100% - 52px); }
  .past > li { flex-wrap: wrap; }
  .past-a { width: 100%; justify-content: flex-start; padding-left: 51px; }
  .pnums { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pnums > div:last-child { grid-column: 1 / -1; }
  .pnums b { font-size: 24px; }
  .poll-q { font-size: 19px !important; }
  .ring { width: 96px; height: 96px; }
  .ring > div { width: 78px; height: 78px; }
  .ring b { font-size: 32px; }
  .polls-done > li { flex-wrap: wrap; }
  .polls-done .t { flex-basis: calc(100% - 52px); }
  .pd-r { width: 100%; grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; padding-left: 51px; }
  .ann-list > li { flex-wrap: wrap; }
  .ann-list .t { flex-basis: calc(100% - 52px); }
  .ann-r { width: 100%; padding-left: 51px; grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start; text-align: left; }
  .ann-r .btn { grid-column: 1 / -1; }
  .doc-search { width: 100%; }
  .spol .tbl.docs, .spol .tbl.docs tbody { display: block; }
  .spol .tbl.docs thead { display: none; }
  .spol .tbl.docs tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .spol .tbl.docs tr:last-child { border-bottom: 0; }
  .spol .tbl.docs td { padding: 0; border: 0; }
  .spol .tbl.docs td:first-child { width: 100%; }
  .spol .tbl.docs .d-date { padding-left: 48px; font-size: 12.5px; color: var(--mu2); }
  .spol .tbl.docs .d-open { margin-left: auto; }
  .vquick .vfind { width: 100%; margin-left: 0; }
  .vote-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .vote-row .seg3 { justify-self: start; }
  .vote-row .vu small { display: none; }
  .vs-big b { font-size: 26px; }
  .vlist { max-height: none; overflow: visible; margin-right: 0; padding-right: 0; }
  .vgroup h4 { top: -24px; }
  .foot.vfoot { position: sticky; bottom: -24px; z-index: 2; margin: 12px -24px -24px; padding: 14px 24px 18px; background: linear-gradient(180deg, rgba(46, 28, 12, 0), rgb(46, 28, 12) 30%); }
}
