* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f2f5f8;
  color: #1b2a41;
}

header {
  background: linear-gradient(135deg, #0f81b3 0%, #143d59 100%);
  color: #ffffff;
  padding: 22px 30px;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px rgba(15, 61, 89, 0.15);
  flex-wrap: wrap;
}

header .brand {
  display: flex;
  gap: 18px;
  align-items: center;
  flex: 1;
}

header .brand img {
  height: 100%;
  max-height: 104px;
  width: auto;
}

:is(body[data-page="index"], body[data-page="live"]) header,
body[data-page="poslanec"] header,
body[data-page^="kontrolor"] header {
  min-height: 88px;
  padding-top: 14px;
  padding-bottom: 14px;
}

:is(body[data-page="index"], body[data-page="live"]) header .brand,
body[data-page="poslanec"] header .brand,
body[data-page^="kontrolor"] header .brand {
  gap: 14px;
}

:is(body[data-page="index"], body[data-page="live"]) header .brand img,
body[data-page="poslanec"] header .brand img {
  max-height: 72px;
}

:is(body[data-page="index"], body[data-page="live"]) header .brand h1,
body[data-page="poslanec"] header .brand h1,
body[data-page^="kontrolor"] header .brand h1 {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.2;
}

.installed-app-header-title {
  display: none;
}

.header-language {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.header-language select {
  flex: 0 0 72px;
  width: 72px;
  min-width: 72px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #1b2a41;
  font-weight: 700;
  min-height: 44px;
}

:is(body[data-page="index"], body[data-page="live"]) .header-language {
  flex-wrap: nowrap;
  justify-content: flex-end;
}

:is(body[data-page="index"], body[data-page="live"]) .header-language #install-app-button {
  flex: 0 0 auto;
  width: auto;
  white-space: nowrap;
  padding: 8px 12px;
  font-size: 0.9rem;
  min-height: 44px;
}

:is(body[data-page="index"], body[data-page="live"]) .install-app-status {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 20;
  width: max-content;
  max-width: 90vw;
  padding: 6px 9px;
  border-radius: 6px;
  background: #143d59;
  color: #ffffff;
  text-align: right;
}

.header-login {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.header-user-name {
  color: #ffffff;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.header-user-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.webmail-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: 8px;
  border-radius: 999px;
  background: #d94644;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

/* Header notification bell (poslanec-*.html) */
.notification-bell-wrap {
  position: relative;
}

.notification-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.notification-bell:hover {
  background: rgba(255, 255, 255, 0.28);
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d94644;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  border: 2px solid #143d59;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-width: min(90vw, 340px);
  max-height: 420px;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(13, 31, 57, 0.25);
  padding: 8px;
  z-index: 50;
  color: #1b2a41;
}

.notification-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}

.notification-item:hover,
.notification-item:focus-visible {
  background: #f3f8fb;
}

.notification-item:focus-visible {
  outline: 2px solid #0b6e96;
  outline-offset: -2px;
}

.notification-item.unread {
  background: #eff9ff;
}

.notification-item-icon {
  flex: none;
  font-size: 1.3rem;
  line-height: 1.3;
}

.notification-item-body {
  min-width: 0;
}

.notification-item-title {
  margin: 0;
  font-weight: 700;
  color: #143d59;
}

.notification-item.unread .notification-item-title::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-radius: 50%;
  background: #0b6e96;
  vertical-align: middle;
}

.notification-item-text {
  margin: 2px 0 0;
  color: #37505f;
  overflow-wrap: anywhere;
}

.notification-item-time {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: #7c8b92;
}

.notification-item-actions {
  margin-top: 8px;
}

.notification-empty {
  padding: 16px;
  text-align: center;
  color: #577a92;
}

.header-login form,
.header-login-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.header-login input {
  width: 140px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #1b2a41;
  min-height: 44px;
}

.header-login button {
  padding: 10px 16px;
  border-radius: 10px;
  min-height: 44px;
}

.header-login button.small {
  padding: 8px 12px;
  font-size: 0.9rem;
  min-height: 44px;
}

.header-login .button-link.small {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.header-login .button-link.small.hidden {
  display: none;
}

.install-app-status {
  flex-basis: 100%;
  text-align: right;
  font-size: 0.8rem;
}

.install-app-status:empty {
  display: none;
}

.header-login-form.hidden,
.hidden {
  display: none;
}

main {
  max-width: 1140px;
  margin: 24px auto;
  padding: 0 18px;
  flex: 1 0 auto;
  width: 100%;
}

.site-footer {
  text-align: center;
  padding: 24px 18px 32px;
  color: #577a92;
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: stretch;
}

@media (max-width: 920px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
}

.home-content {
  display: grid;
  gap: 20px;
}


.home-hero {
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #e3f4ff);
  box-shadow: 0 24px 40px rgba(20, 61, 89, 0.08);
  margin-bottom: 22px;
}

.home-hero .eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: #0b6e96;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.home-hero h2 {
  font-size: clamp(2rem, 2.4vw, 2.6rem);
  margin-bottom: 14px;
  color: #143d59;
}

.home-hero p {
  margin: 0 0 20px;
  color: #33475b;
  line-height: 1.75;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 12px;
}

.admin-login-card {
  background: #f8fbff;
  border: 1px solid rgba(11, 110, 150, 0.14);
}

.admin-login-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0b6e96, #143d59);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 26px;
  margin-bottom: 16px;
}

.history-panel {
  grid-column: 1 / -1;
}

.card.live-panel {
  position: relative;
  background: linear-gradient(135deg, #d7ecf9 0%, #b9def2 100%);
  color: #0c3a55;
  overflow: hidden;
  padding: 28px;
  min-height: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.live-panel:hover,
.admin-login-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 36px rgba(13, 31, 57, 0.14);
}

.history-panel {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.history-panel .live-hero {
  margin: 0;
  flex-shrink: 0;
}

.history-panel .live-panel-text {
  flex: 1;
  min-width: 220px;
}

.history-panel .live-panel-header {
  margin-bottom: 6px;
}

.history-panel p {
  margin: 0;
}

.history-panel .button-link {
  flex-shrink: 0;
}

.live-panel h2,
.live-panel p,
.live-panel .live-list li {
  color: #0c3a55;
}

.card.live-panel.history-panel {
  background: linear-gradient(135deg, #faf0dc 0%, #f0d9a8 100%);
}

.history-panel h2,
.history-panel p {
  color: #5c3e10;
}

.history-panel .signal-ring {
  background: radial-gradient(circle at center, rgba(146, 64, 14, 0.18) 0%, transparent 55%);
}

.history-panel .signal-icon {
  background: rgba(146, 64, 14, 0.16);
}

.live-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.live-panel-header h2 {
  margin: 0;
  font-size: 1.4rem;
}

.home-meeting-countdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px 0;
  text-align: center;
}

.home-meeting-countdown-label {
  flex-basis: 100%;
  font-weight: 700;
}

.home-meeting-countdown > span:not(.home-meeting-countdown-label) {
  min-width: 76px;
  padding: 8px 10px;
  border: 1px solid rgba(11, 110, 150, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.42);
}

.home-meeting-countdown strong {
  display: block;
  font-size: 1.2rem;
}

.home-meeting-countdown-started {
  margin: 0;
  font-weight: 700;
}

.live-hero {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 20px auto;
}

.signal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(11, 110, 150, 0.18) 0%, transparent 55%);
}

.signal-icon {
  position: absolute;
  inset: 22px;
  background: rgba(11, 110, 150, 0.16);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 34px;
}

.live-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.live-list {
  margin: 20px 0 0;
  padding-left: 18px;
  list-style: disc;
}

.live-list li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 30px rgba(13, 31, 57, 0.08);
  padding: 20px;
  margin-bottom: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-link.block {
  display: flex;
  width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  background: #0b6e96;
  color: #ffffff;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

button:hover,
.button-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(11, 110, 150, 0.18);
}

.blink-cta {
  animation: queue-flag-blink 2.2s ease-in-out infinite;
}

.blink-cta:hover {
  animation: none;
}

button.secondary,
.button-link.secondary {
  background: #577a92;
}

button.danger {
  background: #d94644;
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px;
  margin-top: 10px;
  margin-bottom: 16px;
  background: #f8fafc;
  min-height: 44px;
}

.admin-login-card h3,
.admin-login-card h2 {
  margin-top: 0;
}

.admin-login-card p {
  margin: 0 0 16px;
  color: #4d5f72;
}

h1,
h2,
h3 {
  margin: 0 0 16px 0;
}

ul {
  padding-left: 18px;
  margin: 0;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.status-pill {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #1f2937;
  font-size: 0.95rem;
}

.status-open {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-closed {
  background: #fee2e2;
  color: #b91c1c;
}

.status-ended {
  background: #fef3c7;
  color: #b45309;
  font-weight: 700;
}

.status-approved {
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
}

.status-next {
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 700;
}

.agenda-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}

.status-rejected {
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 700;
}

.status-returned {
  background: #fef3c7;
  color: #b45309;
  font-weight: 700;
}

.highlight {
  border: 2px solid #0b6e96;
  background: #eff9ff;
}

/* live.html - video embed (YouTube/Facebook Live) shown above the agenda for
   the currently running session, when the admin has set one */
.live-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin-bottom: 18px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.live-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

section .panel {
  margin-top: 18px;
}

.panel {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 30px rgba(13, 31, 57, 0.08);
  padding: 20px;
}

/* Poslanec dashboard - big top-level OZ / Komisie / Ostatné groupings */
.dashboard-section {
  border-top: 5px solid transparent;
}

.dashboard-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 1.4rem;
  color: #143d59;
}

.dashboard-section-oz {
  border-top-color: #0b6e96;
}

.dashboard-section-komisie {
  border-top-color: #b45309;
}

.dashboard-section-other {
  border-top-color: #94a3b8;
}

.dashboard-section-other .dashboard-section-title {
  font-size: 1.15rem;
  color: #577a92;
}

/* Admin main-page menu - each big admin section is its own subpage now,
   linked from here as a clickable card instead of an in-page collapsible */
.admin-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

#poslanec-dashboard > .card {
  margin-top: 24px;
}

.admin-meeting-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.admin-meeting-button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 16px 20px;
  border: 1px solid #dce8f0;
  border-left: 4px solid #0b6e96;
  border-radius: 14px;
  background: linear-gradient(110deg, #f3f9fc, #ffffff 75%);
  box-shadow: 0 5px 14px rgba(13, 31, 57, 0.045);
  color: #143d59;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.admin-meeting-button:nth-child(n + 3) {
  border-left-color: #786bb2;
  background: linear-gradient(110deg, #f7f6fc, #ffffff 75%);
}

.admin-meeting-button > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  background: rgba(11, 110, 150, 0.1);
  font-size: 1.3rem;
}

.admin-meeting-button:nth-child(n + 3) > span {
  background: rgba(120, 107, 178, 0.12);
}

.admin-meeting-button:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 110, 150, 0.35);
  box-shadow: 0 9px 20px rgba(13, 31, 57, 0.1);
}

.commission-meeting-overview {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid #dce8f0;
  border-radius: 14px;
  background: #f8fbfd;
}

.commission-meeting-overview h2 {
  margin: 0 0 12px;
  color: #143d59;
  font-size: 1.15rem;
}

.upcoming-meeting-stages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.upcoming-meeting-stage {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e2eaf0;
  border-radius: 12px;
  background: #fff;
}

.upcoming-meeting-stage h3 {
  margin: 0 0 12px;
  color: #315d75;
  font-size: 0.98rem;
}

.scheduled-meetings-title {
  margin: 24px 0 12px;
  color: #143d59;
  font-size: 1.1rem;
}

.upcoming-meeting-stage .my-votes-row {
  align-items: center;
  gap: 12px;
}

@media (max-width: 680px) {
  .admin-meeting-buttons {
    grid-template-columns: 1fr;
  }

  .upcoming-meeting-stages {
    grid-template-columns: 1fr;
  }
}

.admin-menu-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid rgba(11, 110, 150, 0.14);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.admin-menu-card {
  position: relative;
}

/* Number of unprocessed items on an admin menu tile (e.g. new proposals) */
.admin-menu-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #d94644;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(217, 70, 68, 0.4);
}

.admin-menu-badge.hidden {
  display: none;
}

.admin-menu-card.has-pending {
  border-color: rgba(217, 70, 68, 0.45);
}

.admin-menu-card:hover {
  border-color: rgba(11, 110, 150, 0.3);
  box-shadow: 0 8px 20px rgba(11, 110, 150, 0.14);
  transform: translateY(-2px);
}

.admin-menu-icon {
  font-size: 1.8rem;
}

.admin-menu-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #143d59;
}

.admin-menu-desc {
  font-size: 0.85rem;
  color: #577a92;
  line-height: 1.4;
}

/* Section header with a leading icon, in the same visual language as the
   admin-menu-card tiles above (icon size, title color/weight) - used for
   plain (non-link) card sections like poslanec-navrhy.html's "Podať návrh" /
   "Moje návrhy", so the whole app reads as one consistent style */
.card-icon-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.card-icon-header .card-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.card-icon-header h2 {
  margin: 0;
  color: #143d59;
}

.card-header-row .card-icon-header {
  margin-bottom: 0;
}

/* poslanec-komisie.html overview - each commission as its own tile in the
   admin-menu-grid, wider than a plain menu card since it also carries
   member/chair/schedule info, with its "Hlasovanie"/"Správa komisie" actions
   attached at the bottom instead of a page-wide menu disconnected from which
   commission they act on */
.commission-tile-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.commission-tile {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.commission-tile .agenda-item-header h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Chair of the commission, highlighted above the member list */
.commission-chair {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff9ff 0%, #d7ecf9 100%);
  border: 1px solid rgba(11, 110, 150, 0.22);
  border-left: 4px solid #0b6e96;
}

.commission-chair .commission-chair-photo {
  width: 52px;
  height: 52px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(20, 61, 89, 0.18);
}

.commission-chair-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.commission-chair-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0b6e96;
}

.commission-chair-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #143d59;
}

.commission-tile-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 6px;
}

.commission-tile-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  background: #0b6e96;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.commission-tile-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(11, 110, 150, 0.18);
}

.commission-tile-action.secondary {
  background: #577a92;
}

details.collapsible summary {
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 700;
  color: #143d59;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 12px;
  transition: background 0.15s ease;
}

details.collapsible summary:hover {
  background: rgba(11, 110, 150, 0.06);
}

details.collapsible summary::-webkit-details-marker {
  display: none;
}

details.collapsible summary::after {
  content: '▾';
  color: #0b6e96;
  background: rgba(11, 110, 150, 0.14);
  font-size: 1.3rem;
  line-height: 1;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

details.collapsible summary:hover::after {
  background: rgba(11, 110, 150, 0.26);
}

details.collapsible[open] summary::after {
  transform: rotate(180deg);
}

.collapsible-body {
  margin-top: 18px;
}

.panel-hint {
  color: #4d5f72;
  margin: 0 0 18px;
  line-height: 1.6;
}

.field-hint {
  color: #577a92;
  font-size: 0.85rem;
  margin: -8px 0 4px;
  line-height: 1.4;
}

.councillor-row {
  border: 1px solid rgba(11, 110, 150, 0.14);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.commission-admin-row {
  padding: 18px;
  border-color: #dce8f0;
  background: linear-gradient(145deg, #ffffff, #f8fbfd);
  box-shadow: 0 5px 16px rgba(13, 31, 57, 0.045);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.commission-admin-row:hover {
  border-color: rgba(11, 110, 150, 0.3);
  box-shadow: 0 8px 22px rgba(13, 31, 57, 0.08);
}

.commission-admin-row .councillor-row-view {
  align-items: flex-start;
}

.commission-admin-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 1.05rem;
}

.commission-admin-stats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.commission-admin-stats .status-pill {
  padding: 4px 9px;
  background: #eaf3f8;
  color: #315d75;
  font-size: 0.78rem;
}

.commission-admin-chair {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(220px, 1fr);
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f0f7fa;
}

.commission-admin-chair label {
  margin: 0;
  color: #315d75;
  font-weight: 700;
}

.commission-admin-chair select {
  margin: 0;
}

.commission-admin-row > .commission-admin-history {
  margin-top: 0;
  background: #fff;
}

@media (max-width: 600px) {
  .commission-admin-chair {
    grid-template-columns: 1fr;
  }
}

.councillor-row-view {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.councillor-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #e2e8f0;
}

.councillor-photo.placeholder {
  display: grid;
  place-items: center;
  font-size: 26px;
  color: #577a92;
}

.councillor-info {
  flex: 1;
  min-width: 140px;
}

.councillor-name {
  margin: 0;
  font-weight: 700;
  color: #143d59;
}

.councillor-username {
  margin: 4px 0 0;
  color: #577a92;
  font-size: 0.9rem;
}

.councillor-email {
  margin: 4px 0 0;
  color: #577a92;
  font-size: 0.9rem;
}

.councillor-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.councillor-actions button {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.9rem;
}

.external-members-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(11, 110, 150, 0.25);
}

.external-member-row {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(11, 110, 150, 0.14);
}

.external-member-row:last-of-type {
  border-bottom: none;
}

.external-member-row button {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.9rem;
}

.external-member-form {
  margin-top: 12px;
}

.councillor-edit-form,
.councillor-reset-password-form,
.councillor-stats-panel {
  margin-top: 14px;
  border-top: 1px dashed rgba(11, 110, 150, 0.25);
  padding-top: 14px;
}

.councillor-stats-panel .my-votes-table {
  max-height: 420px;
  overflow-y: auto;
}

.councillor-edit-actions {
  display: flex;
  gap: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 16px;
  color: #33475b;
  font-weight: 400;
}

.checkbox-label input[type='checkbox'] {
  width: auto;
  min-height: auto;
  margin: 0;
}

.attendance-hint {
  margin: 10px 0 0;
  color: #577a92;
  font-size: 0.9rem;
  font-style: italic;
}

.vote-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 4px;
}

.vote-btn {
  flex: 1;
  min-width: 120px;
  background: #f1f5f9;
  color: #33475b;
  font-weight: 700;
  font-size: 1.05rem;
  border: 2px solid #dbe3ea;
  box-shadow: none;
}

.vote-btn:hover {
  box-shadow: 0 10px 18px rgba(11, 110, 150, 0.12);
}

.vote-yes:hover {
  border-color: #16a34a;
  color: #15803d;
}

.vote-no:hover {
  border-color: #dc2626;
  color: #b91c1c;
}

.vote-abstain:hover {
  border-color: #d97706;
  color: #b45309;
}

.vote-chart {
  margin: 14px 0 4px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.vote-chart-status {
  margin: 0 0 12px;
  font-weight: 700;
  color: #1b2a41;
}

.vote-chart-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.vote-chart-row:last-child {
  margin-bottom: 0;
}

.vote-chart-label {
  width: 88px;
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #33475b;
}

.vote-chart-track {
  flex: 1;
  height: 18px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.vote-chart-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}

.vote-chart-bar-yes {
  background: #16a34a;
}

.vote-chart-bar-no {
  background: #dc2626;
}

.vote-chart-bar-abstain {
  background: #d97706;
}

.vote-chart-bar-novote {
  background: #94a3b8;
}

.vote-chart-count {
  width: 24px;
  flex-shrink: 0;
  text-align: right;
  font-weight: 700;
  color: #1b2a41;
}

.session-record-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.history-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.history-card-info h3 {
  margin: 0 0 4px;
}

.history-card-info p {
  margin: 0;
  color: #577a92;
  font-size: 0.9rem;
}

.history-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.history-card-body {
  margin-top: 16px;
}

.attendance-panel {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(11, 110, 150, 0.14);
  border-radius: 14px;
  background: #f8fbff;
}

.attendance-panel h3 {
  margin: 0 0 12px;
}

.attendance-presentation-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.attendance-presentation-controls .field-hint {
  margin: 0;
}

.attendance-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.attendance-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(11, 110, 150, 0.14);
  cursor: pointer;
}

.attendance-row .councillor-photo.small {
  width: 32px;
  height: 32px;
  font-size: 16px;
}

.attendance-name {
  font-weight: 600;
  color: #143d59;
}

.attendance-row input[type='checkbox'] {
  width: auto;
  min-height: auto;
  margin: 0;
}

.commission-admin-history {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid #dce8f0;
  border-radius: 12px;
  background: #f7fafc;
}

.commission-admin-history > summary {
  color: #143d59;
  font-weight: 700;
  cursor: pointer;
}

.commission-admin-history-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.commission-admin-history-list > details {
  margin: 0;
}

.new-agenda-panel {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(11, 110, 150, 0.14);
  border-radius: 14px;
  background: #f8fbff;
}

.new-agenda-panel h3 {
  margin: 0 0 12px;
}

.new-agenda-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.bulk-agenda-panel {
  margin-top: 16px;
}

.live-video-panel {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(11, 110, 150, 0.14);
  border-radius: 14px;
  background: #f8fbff;
}

.live-video-panel h3 {
  margin: 0 0 8px;
}

.live-video-form-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.agenda-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.agenda-item-header h3 {
  margin: 0;
}

.agenda-reorder {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.guest-request-form {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.guest-request-form.hidden {
  display: none;
}

.guest-request-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.guest-requests-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guest-request-card {
  border-left: 4px solid #0b6e96;
  padding: 14px 16px;
}

.agenda-reorder button {
  min-height: 32px;
  min-width: 32px;
  padding: 4px 8px;
}

.drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  min-width: 24px;
  padding: 4px 6px;
  color: #577a92;
  font-size: 1.1rem;
  line-height: 1;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.drag-handle:active {
  cursor: grabbing;
}

.card.dragging {
  opacity: 0.5;
}

.card.drag-over {
  border: 2px dashed #0b6e96;
}

details.agenda-collapsible {
  padding: 0;
}

details.agenda-collapsible summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-radius: 18px;
  transition: background 0.15s ease;
}

details.agenda-collapsible summary:hover {
  background: rgba(11, 110, 150, 0.06);
}

details.agenda-collapsible summary::-webkit-details-marker {
  display: none;
}

details.agenda-collapsible summary::after {
  content: '▾';
  margin-left: auto;
  color: #0b6e96;
  background: rgba(11, 110, 150, 0.14);
  font-size: 1.2rem;
  line-height: 1;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

details.agenda-collapsible summary:hover::after {
  background: rgba(11, 110, 150, 0.26);
}

details.agenda-collapsible[open] summary::after {
  transform: rotate(180deg);
}

details.agenda-collapsible .collapsible-body {
  padding: 0 20px 20px;
}

.agenda-summary-heading {
  font-weight: 700;
  color: #143d59;
}

.agenda-summary-meta {
  color: #577a92;
  font-size: 0.9rem;
  font-weight: 400;
}

.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-header-row h4 {
  margin: 0 0 12px;
}

.resolution-badge {
  flex-shrink: 0;
  background: #0b6e96;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.voting-countdown {
  font-weight: 700;
  color: #0b6e96;
}

.start-voting-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.start-voting-form .field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.start-voting-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #577a92;
}

.seconds-input {
  width: 90px;
  margin: 0;
}

.start-voting-form button {
  margin: 0;
}

.agenda-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.current-agenda-focus {
  position: relative;
}

.current-agenda-focus > .card {
  padding-top: 54px;
}

.speech-request-button {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid #cfe0e9;
  border-radius: 50%;
  background: #eef7fb;
  color: #145a78;
  font-size: 1.15rem;
  box-shadow: 0 3px 10px rgba(13, 31, 57, 0.1);
}

.speech-request-button:hover:not(:disabled) {
  background: #dceff7;
  transform: translateY(-1px);
}

.speech-request-button.is-pending {
  background: #fff7e6;
  border-color: #f3d28b;
}

.speech-request-button.is-approved {
  background: #e5f7ed;
  border-color: #8bd1a6;
}

.speech-request-button:disabled {
  cursor: default;
  opacity: 1;
}

.speaker-requests-panel {
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid #dce8f0;
  border-radius: 12px;
  background: #f8fbfd;
}

.speaker-requests-panel h4 {
  margin: 0 0 10px;
  color: #143d59;
}

.speaker-requests-panel ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 24px;
}

.speaker-requests-panel li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #fff;
}

.speaker-requests-panel li > div {
  display: grid;
  gap: 2px;
}

.speaker-requests-panel li > div span {
  color: #577a92;
  font-size: 0.84rem;
}

.speaker-request-approved {
  outline: 1px solid #8bd1a6;
  background: #f0fbf4 !important;
}

@media (max-width: 520px) {
  .speaker-requests-panel li {
    align-items: flex-start;
    flex-direction: column;
  }
}

.commission-attendance-summary {
  margin: 14px 0;
  padding: 10px 14px;
  background: #f8fbff;
  border: 1px solid rgba(11, 110, 150, 0.14);
  border-radius: 10px;
  color: #143d59;
  font-size: 0.9rem;
  line-height: 1.5;
}

.commission-attendance-summary strong {
  color: #0b6e96;
}

.sub-items {
  margin-top: 16px;
  padding-left: 16px;
  border-left: 3px solid #d9e2ec;
}

.sub-item-card {
  box-shadow: none;
  border: 1px solid #d9e2ec;
}

.new-subitem-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #d9e2ec;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  margin-right: 8px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  animation: badge-live-pulse 1.6s ease-in-out infinite;
}

@keyframes badge-live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 70, 68, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(217, 70, 68, 0); }
}

.queue-flag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.queue-flag-voting {
  background: #fee2e2;
  color: #b91c1c;
  animation: queue-flag-blink 2s ease-in-out infinite;
}

.queue-flag-next {
  background: #fef3c7;
  color: #b45309;
  animation: queue-flag-blink 2.6s ease-in-out infinite;
}

@keyframes queue-flag-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.stat-tile {
  flex: 1;
  min-width: 140px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 18px 30px rgba(13, 31, 57, 0.08);
  padding: 16px 20px;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: #0b6e96;
}

.stat-label {
  display: block;
  margin-top: 4px;
  color: #577a92;
  font-size: 0.9rem;
}

.year-group {
  margin-bottom: 14px;
}

.year-group summary {
  cursor: pointer;
  font-weight: 700;
  color: #143d59;
  padding: 10px 12px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 12px;
  transition: background 0.15s ease;
}

.year-group summary:hover {
  background: rgba(11, 110, 150, 0.06);
}

.year-group summary::-webkit-details-marker {
  display: none;
}

.year-group summary::after {
  content: '▾';
  color: #0b6e96;
  background: rgba(11, 110, 150, 0.14);
  font-size: 1.2rem;
  line-height: 1;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.year-group summary:hover::after {
  background: rgba(11, 110, 150, 0.26);
}

.year-group[open] summary::after {
  transform: rotate(180deg);
}

.year-group-body {
  margin-top: 10px;
}

.vote-names-block {
  margin-top: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.vote-names-line {
  margin: 4px 0;
  font-size: 0.92rem;
  color: #33475b;
}

.admin-vote-result {
  margin: 10px 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: #ffffff;
  color: #143d59;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  z-index: 1000;
  box-shadow: 0 8px 20px rgba(13, 31, 57, 0.18);
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button:focus-visible,
.button-link:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #ffd166;
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .home-grid {
    grid-template-columns: 1fr;
  }

  .live-buttons {
    grid-template-columns: 1fr;
  }

  .history-panel {
    flex-direction: column;
    text-align: center;
  }

  .history-panel .live-panel-header {
    justify-content: center;
  }

  .history-panel .button-link {
    width: 100%;
  }
}

@media (max-width: 720px) and (display-mode: standalone) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  header {
    padding: 18px 14px;
  }

  :is(body[data-page="index"], body[data-page="live"]) header,
  body[data-page="poslanec"] header {
    gap: 12px;
  }

  :is(body[data-page="index"], body[data-page="live"]) header .brand,
  body[data-page="poslanec"] header .brand {
    flex-basis: 100%;
  }

  :is(body[data-page="index"], body[data-page="live"]) .header-language,
  body[data-page="poslanec"] .header-language,
  body[data-page^="kontrolor"] .header-language {
    flex-basis: 100%;
    justify-content: flex-start;
  }

  :is(body[data-page="index"], body[data-page="live"]) .header-login,
  body[data-page="poslanec"] .header-login,
  body[data-page^="kontrolor"] .header-login {
    flex-basis: 100%;
    justify-content: flex-start;
  }

  :is(body[data-page="index"], body[data-page="live"]).is-installed-app header {
    gap: 8px;
  }

  :is(body[data-page="index"], body[data-page="live"]).is-installed-app .header-language {
    flex-basis: auto;
  }

  :is(body[data-page="index"], body[data-page="live"]).is-installed-app .header-login {
    flex: 1 1 auto;
    gap: 6px;
  }

  :is(body[data-page="index"], body[data-page="live"]).is-installed-app .header-login button.small,
  :is(body[data-page="index"], body[data-page="live"]).is-installed-app .header-login .button-link.small {
    min-height: 40px;
    padding: 6px 8px;
    font-size: 0.78rem;
  }

  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]).is-installed-app header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 10px;
    padding: 10px;
  }

  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]).is-installed-app header .brand {
    grid-column: 1;
    grid-row: 1;
    flex: initial;
    min-width: 0;
    gap: 8px;
  }

  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]).is-installed-app header .brand img {
    display: block;
    width: 40px;
    max-height: 42px;
    flex: 0 0 40px;
    object-fit: contain;
  }

  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]).is-installed-app .header-language {
    grid-column: 2;
    grid-row: 1;
    flex: initial;
    justify-content: center;
  }

  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]).is-installed-app .header-language select {
    flex: 0 0 58px;
    width: 58px;
    min-width: 58px;
    min-height: 36px;
    padding: 5px 6px;
    font-size: 0.8rem;
  }

  body[data-page^="poslanec-"].is-installed-app header .brand > div > h1:not(.installed-app-header-title),
  body[data-page^="poslanec-"].is-installed-app header .brand > div > p {
    display: none;
  }

  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]).is-installed-app .installed-app-header-title {
    display: block;
    margin: 0;
    font-size: clamp(0.78rem, 3.5vw, 0.95rem);
    line-height: 1.2;
  }

  :is(body[data-page="poslanec"], body[data-page^="kontrolor"]).is-installed-app header .brand h1 {
    font-size: clamp(0.78rem, 3.5vw, 0.95rem);
    line-height: 1.2;
  }

  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]).is-installed-app .header-login {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: max-content max-content max-content minmax(0, 1fr) 44px;
    grid-template-rows: auto auto;
    align-items: center;
    justify-content: stretch;
    gap: 4px;
    width: 100%;
    min-width: 0;
  }

  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]).is-installed-app .header-user-photo:not(.hidden) {
    display: block;
    grid-column: 1;
    grid-row: 1;
    width: 36px;
    height: 36px;
    border-width: 2px;
  }

  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]).is-installed-app .header-user-name:not(.hidden) {
    display: block;
    grid-column: 2 / 5;
    grid-row: 1;
    min-width: 0;
    padding: 4px 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.86rem;
  }

  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]).is-installed-app .notification-bell-wrap {
    grid-column: 5;
    grid-row: 1;
    justify-self: end;
  }

  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]).is-installed-app .notification-bell {
    width: 40px;
    height: 40px;
    min-height: 40px;
  }

  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]).is-installed-app .notification-dropdown {
    right: 0;
    width: min(340px, calc(100vw - 20px));
    max-width: none;
    max-height: min(60vh, 420px);
  }

  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]).is-installed-app .header-login #webmail-link {
    grid-column: 1;
    grid-row: 2;
  }

  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]).is-installed-app .header-login #settings-toggle {
    grid-column: 2;
    grid-row: 2;
  }

  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]).is-installed-app .header-login #logout-button {
    grid-column: 3;
    grid-row: 2;
  }

  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]).is-installed-app .header-login button.small,
  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]).is-installed-app .header-login .button-link.small {
    min-width: 0;
    min-height: 36px;
    padding: 5px 6px;
    font-size: clamp(0.66rem, 2.8vw, 0.76rem);
    white-space: nowrap;
  }

  .header-login form,
  .header-login-form {
    width: 100%;
  }

  .header-login input {
    width: 100%;
  }
}

@media (max-width: 720px) {
  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]) header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 10px;
    padding: 10px;
  }

  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]) header .brand {
    grid-column: 1;
    grid-row: 1;
    flex: initial;
    min-width: 0;
    gap: 8px;
  }

  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]) header .brand img {
    display: block;
    width: 40px;
    max-height: 42px;
    flex: 0 0 40px;
    object-fit: contain;
  }

  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]) .header-language {
    grid-column: 2;
    grid-row: 1;
    flex: initial;
    justify-content: center;
  }

  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]) .header-language select {
    flex: 0 0 58px;
    width: 58px;
    min-width: 58px;
    min-height: 36px;
    padding: 5px 6px;
    font-size: 0.8rem;
  }

  body[data-page^="poslanec-"] header .brand > div > h1:not(.installed-app-header-title),
  body[data-page^="poslanec-"] header .brand > div > p {
    display: none;
  }

  :is(body[data-page^="poslanec-"], body[data-page^="kontrolor"]) .installed-app-header-title {
    display: block;
    margin: 0;
    font-size: clamp(0.78rem, 3.5vw, 0.95rem);
    line-height: 1.2;
  }

  :is(body[data-page="poslanec"], body[data-page^="kontrolor"]) header .brand h1 {
    font-size: clamp(0.78rem, 3.5vw, 0.95rem);
    line-height: 1.2;
  }

  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]) .header-login {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: max-content max-content max-content minmax(0, 1fr) 44px;
    grid-template-rows: auto auto;
    align-items: center;
    justify-content: stretch;
    gap: 4px;
    width: 100%;
    min-width: 0;
  }

  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]) .header-user-photo:not(.hidden) {
    display: block;
    grid-column: 1;
    grid-row: 1;
    width: 36px;
    height: 36px;
    border-width: 2px;
  }

  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]) .header-user-name:not(.hidden) {
    display: block;
    grid-column: 2 / 5;
    grid-row: 1;
    min-width: 0;
    padding: 4px 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.86rem;
  }

  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]) .notification-bell-wrap {
    grid-column: 5;
    grid-row: 1;
    justify-self: end;
  }

  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]) .notification-bell {
    width: 40px;
    height: 40px;
    min-height: 40px;
  }

  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]) .notification-dropdown {
    right: 0;
    width: min(340px, calc(100vw - 20px));
    max-width: none;
    max-height: min(60vh, 420px);
  }

  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]) .header-login #webmail-link {
    grid-column: 1;
    grid-row: 2;
  }

  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]) .header-login #settings-toggle {
    grid-column: 2;
    grid-row: 2;
  }

  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]) .header-login #logout-button {
    grid-column: 3;
    grid-row: 2;
  }

  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]) .header-login button.small,
  :is(body[data-page^="poslanec"], body[data-page^="kontrolor"]) .header-login .button-link.small {
    min-width: 0;
    min-height: 36px;
    padding: 5px 6px;
    font-size: clamp(0.66rem, 2.8vw, 0.76rem);
    white-space: nowrap;
  }
}

/* Next meeting banner */
.next-meeting-banner {
  background: linear-gradient(135deg, #eff9ff 0%, #d7ecf9 100%);
  border: 1px solid rgba(11, 110, 150, 0.2);
}

.next-meeting-title {
  margin: 0 0 4px;
  color: #143d59;
}

.next-meeting-banner p {
  margin: 4px 0 0;
  color: #33475b;
}

.meeting-program {
  margin-top: 10px;
}

.meeting-program-body {
  margin-top: 10px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid rgba(11, 110, 150, 0.2);
  border-radius: 10px;
}

.meeting-program-list,
.meeting-program-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.meeting-program-list > li {
  padding: 6px 0;
  color: #143d59;
}

.meeting-program-list > li + li {
  border-top: 1px solid rgba(11, 110, 150, 0.12);
}

.meeting-program-sublist {
  margin-top: 4px;
  padding-left: 22px;
}

.meeting-program-sublist > li {
  padding: 2px 0;
  color: #33475b;
}

.meeting-program-number {
  display: inline-block;
  min-width: 1.8em;
  font-weight: 700;
}

.next-meeting-banner .meeting-program-body p {
  margin: 0;
}

.next-meeting-item + .next-meeting-item {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(11, 110, 150, 0.25);
}

/* Contacts directory */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(11, 110, 150, 0.14);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.contact-card:hover {
  border-color: rgba(11, 110, 150, 0.3);
  box-shadow: 0 4px 14px rgba(11, 110, 150, 0.12);
  transform: translateY(-1px);
}

.contact-card .councillor-photo {
  width: 52px;
  height: 52px;
  border: 2px solid rgba(11, 110, 150, 0.1);
}

.contact-card .councillor-photo.placeholder {
  font-size: 24px;
}

.contact-card .councillor-info {
  min-width: 0;
}

.contact-card .councillor-name {
  overflow-wrap: break-word;
}

.contact-card .councillor-email {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-wrap: anywhere;
}

.contact-card .councillor-email a {
  color: #0b6e96;
  text-decoration: none;
}

.contact-card .contact-select {
  flex: none;
  width: 20px;
  height: 20px;
  min-height: auto;
  margin: 0;
}

.contact-card .councillor-email a:hover {
  text-decoration: underline;
}

/* Public councillor statistics (index.html) */
.public-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 16px;
  align-items: stretch;
}

.public-stats-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0 14px;
  max-width: 720px;
  margin: 18px 0;
}

.public-stats-controls label {
  margin-bottom: 0;
  font-weight: 600;
}

.public-stats-controls input,
.public-stats-controls select {
  margin-top: 6px;
  margin-bottom: 12px;
}

.public-stats-controls .field-hint {
  grid-column: 1 / -1;
  margin: 0;
}

.public-stats-card {
  margin: 0;
  padding: 18px;
  border: 1px solid #e2eaf0;
  box-shadow: 0 8px 18px rgba(13, 31, 57, 0.06);
}

.public-stats-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  margin-bottom: 12px;
}

.public-stats-card .councillor-info {
  min-width: 0;
}

.public-stats-attendance {
  margin: 4px 0 0;
  color: #577a92;
  font-size: 0.85rem;
}

.public-stats-attendance strong {
  color: #0b6e96;
  font-size: 1rem;
}

.public-stats-attendance-track {
  height: 7px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef3;
}

.public-stats-attendance-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0b6e96, #38a3c4);
  transition: width 0.25s ease;
}

.public-stats-card .stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 0;
}

.public-stats-card .stat-tile {
  min-width: 0;
  padding: 10px 6px;
  border: 1px solid #edf2f6;
  border-radius: 10px;
  background: #f8fbfd;
  box-shadow: none;
}

.public-stats-card .stat-value {
  font-size: 1.25rem;
}

.public-stats-card .stat-label {
  font-size: 0.75rem;
  line-height: 1.25;
}

.public-stats-empty {
  padding: 18px;
  border-radius: 12px;
  background: #f8fbfd;
  color: #577a92;
  text-align: center;
}

@media (max-width: 520px) {
  .public-stats-controls {
    grid-template-columns: 1fr;
  }

  .public-stats-controls .field-hint {
    grid-column: auto;
  }
}

/* My votes / attendance */
.attendance-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 14px 0;
}

.my-votes-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.my-votes-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
}

.my-votes-row-main {
  flex: 1;
  min-width: 0;
}

.my-votes-item-title {
  margin: 0;
  font-weight: 700;
  color: #143d59;
}

.upcoming-oz-session-meta {
  margin: 4px 0 0;
  color: #577a92;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Attachments */
.attachment-block,
.attachment-section {
  margin-top: 14px;
}

.attachment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
  background: #f8fafc;
}

.attachment-item a {
  color: #0b6e96;
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}

.attachment-item a:hover {
  text-decoration: underline;
}

.attachment-item button {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.attachment-upload-form {
  border-top: 1px dashed rgba(11, 110, 150, 0.25);
  padding-top: 12px;
}

/* Discussion / comments */
details.comments-section {
  margin-top: 14px;
  border-top: 1px dashed rgba(11, 110, 150, 0.25);
  padding-top: 10px;
}

details.comments-section summary {
  cursor: pointer;
  font-weight: 700;
  color: #143d59;
  list-style: none;
}

details.comments-section summary::-webkit-details-marker {
  display: none;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  background: #f8fafc;
}

.comment-meta {
  margin: 0 0 4px;
  color: #577a92;
  font-size: 0.85rem;
}

.comment-text {
  margin: 0;
  white-space: pre-wrap;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.comment-form textarea {
  margin-bottom: 10px;
}

/* Proposals / interpellations */
.proposal-card .card-header-row {
  align-items: flex-start;
}

.proposal-response {
  margin-top: 12px;
  padding: 10px 12px;
  background: #f0f7fb;
  border: 1px solid #d7e9f2;
  border-radius: 10px;
}

.proposal-response p {
  margin: 0;
}

.proposal-response p + p {
  margin-top: 4px;
}

.proposal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.proposal-forward-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.proposal-attachment {
  margin: 8px 0 0;
}

.proposal-attachment a {
  color: #0b6e96;
  font-weight: 600;
}

.proposal-resubmit-form,
.proposal-return-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

/* komisia-sprava-navrhy.html - proposals grouped by status */
.proposal-status-section {
  margin-top: 20px;
}

.proposal-status-section:first-child {
  margin-top: 0;
}

.proposal-status-section h3 {
  margin-bottom: 12px;
  color: #143d59;
}

.proposal-scheduled-info {
  margin: 8px 0 0;
  color: #0b6e96;
}
/* ---- Admin agenda item: grouped panels ---- */
.agenda-description {
  margin: 0 0 10px;
  color: #33475b;
}

.agenda-panel {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid rgba(11, 110, 150, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
}

.agenda-panel-title {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #577a92;
}

.agenda-panel .start-voting-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin: 0;
}

.agenda-panel .start-voting-form .field-group {
  margin: 0;
}

.agenda-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(11, 110, 150, 0.2);
}

.agenda-options .checkbox-label {
  margin: 0;
}

.agenda-actions-split {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.agenda-actions-main {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attachment-upload-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.attachment-upload-inline input[type="file"] {
  flex: 1 1 220px;
  min-width: 0;
  margin: 0;
}

.agenda-panel .field-hint {
  margin: 6px 0 0;
}

/* ---- Sale / lease of municipal property ---- */
.status-pill.status-property {
  background: #fff1d6;
  color: #8a5a00;
}

.property-resolution {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff8e8;
  border: 1px solid #f0d9a8;
  border-left: 4px solid #c98a12;
}

.property-resolution-label {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9a6a0c;
}

.property-resolution-text {
  margin: 0;
  line-height: 1.5;
  color: #33475b;
}

.property-resolution-actions {
  margin-top: 10px;
}

.property-dialog {
  width: min(920px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: none;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(20, 61, 89, 0.35);
}

.property-dialog::backdrop {
  background: rgba(20, 61, 89, 0.45);
}

.property-form {
  padding: 20px 22px;
}

.property-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.property-dialog-header h2 {
  margin: 0 0 4px;
}

.property-form > .field-hint,
.property-dialog-header .field-hint {
  margin: 4px 0 0;
}

.property-ohoz select[name="specialReasonCode"] {
  white-space: normal;
  text-overflow: ellipsis;
}

.property-ohoz .field-hint {
  margin: 4px 0 0;
}

.property-parcels select[name="register"] {
  min-width: 88px;
}

.property-parcels input[name="number"] {
  min-width: 110px;
}

.property-parcels input[name="landType"] {
  min-width: 170px;
}

.property-form fieldset {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(11, 110, 150, 0.18);
  border-radius: 12px;
}

.property-form legend {
  padding: 0 6px;
  font-weight: 800;
  color: #143d59;
}

.property-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  font-weight: 600;
  color: #33475b;
}

.property-form input,
.property-form select,
.property-form textarea {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 14px;
}

.property-method-hint {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #eff9ff;
  color: #0b6e96;
  font-size: 0.88rem;
}

.property-parcels-wrap {
  overflow-x: auto;
  margin: 10px 0 8px;
}

.property-parcels {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.property-parcels th {
  text-align: left;
  font-size: 0.78rem;
  color: #577a92;
  padding: 0 4px 4px;
}

.property-parcels td {
  padding: 3px 4px;
}

.property-parcels td:last-child {
  width: 1%;
}

.property-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fdecec;
  color: #a32f2d;
  font-weight: 600;
}

.property-error.hidden,
.property-form .hidden {
  display: none;
}

/* ---- Pridať do kalendára / odber kalendára ---- */
.next-meeting-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
}

.my-votes-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
}

.calendar-add {
  position: relative;
  display: inline-block;
}

.calendar-add > summary {
  list-style: none;
}

.calendar-add > summary::-webkit-details-marker {
  display: none;
}

.calendar-add-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(11, 110, 150, 0.35);
  background: #ffffff;
  color: #0b6e96;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
}

.calendar-add-button:hover,
.calendar-add[open] > .calendar-add-button {
  background: #eff9ff;
}

.calendar-add-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  padding: 6px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(11, 110, 150, 0.2);
  box-shadow: 0 14px 30px rgba(20, 61, 89, 0.2);
}

.my-votes-row-actions .calendar-add-menu {
  left: auto;
  right: 0;
}

.calendar-add-menu > a,
.calendar-add-menu > button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 9px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #143d59;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
}

.calendar-add-menu > a:hover,
.calendar-add-menu > button:hover {
  background: #eff9ff;
  transform: none;
}

.calendar-add-menu > .calendar-add-feed {
  margin-top: 4px;
  border-top: 1px solid rgba(11, 110, 150, 0.15);
  border-radius: 0 0 8px 8px;
  color: #0b6e96;
}

.calendar-add-menu-wide {
  min-width: min(420px, calc(100vw - 48px));
  padding: 10px 12px;
}

.calendar-add-menu-wide .field-hint {
  margin: 0 0 8px;
}

.calendar-feed-panel {
  margin-top: 18px;
}

.calendar-feed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.calendar-feed-url-label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
}

.calendar-feed-url-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.calendar-feed-url-row input {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 0.85rem;
}
.upcoming-calendar-card .my-votes-row {
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}

.upcoming-calendar-card .my-votes-row-main p {
  margin: 0;
  line-height: 1.45;
}

.upcoming-calendar-card .my-votes-row-main .field-hint {
  margin-top: 2px;
}

/* Phones: meeting name on its own line, calendar button underneath */
@media (max-width: 640px) {
  .upcoming-calendar-card .my-votes-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
  }

  .upcoming-calendar-card .my-votes-row-actions {
    justify-content: flex-start;
  }

  .upcoming-calendar-card .my-votes-row-actions .calendar-add-menu {
    left: 0;
    right: auto;
    max-width: calc(100vw - 64px);
  }

  .upcoming-calendar-card .card-icon-header h2 {
    font-size: 1.3rem;
  }

  .upcoming-calendar-card .next-meeting-actions button {
    width: 100%;
    font-size: 0.9rem;
  }
}
/* "Pridať do kalendára" dialog opened from a new-term notification */
.calendar-dialog {
  width: min(460px, calc(100vw - 32px));
  box-sizing: border-box;
  max-width: calc(100vw - 32px);
  padding: 20px 18px;
  border: none;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(20, 61, 89, 0.35);
}
.calendar-dialog::backdrop { background: rgba(20, 61, 89, 0.45); }
.calendar-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.calendar-dialog-header h2 { margin: 0; font-size: 1.2rem; }
.calendar-dialog-title { margin: 14px 0 2px; font-weight: 700; }
.calendar-dialog-actions { display: grid; gap: 8px; margin: 16px 0 8px; }
.calendar-dialog-actions > a, .calendar-dialog-actions > button { width: 100%; margin: 0; text-align: center; justify-content: center; box-sizing: border-box; }
.calendar-dialog .link-button { background: none; border: none; padding: 0; margin: 0; color: #1f6fa8; text-decoration: underline; cursor: pointer; font: inherit; width: auto; min-height: 0; box-shadow: none; }
/* "Prezentácia poslanca" - OZ, commission and municipal event check-in in one list */
.presentation-list { display: grid; gap: 10px; }
.presentation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
}
.presentation-row.is-open { border-color: #0f81b3; background: #eff9ff; box-shadow: 0 0 0 2px rgba(15, 129, 179, 0.15); }
.presentation-row-main { flex: 1; min-width: 0; }
.presentation-row-main p { margin: 0; line-height: 1.45; }
.presentation-row-title { font-weight: 700; color: #143d59; }
.presentation-row-status { flex: 0 0 auto; }
.presentation-row-status button { margin: 0; }
@media (max-width: 640px) {
  .presentation-row { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px; }
  .presentation-row-status button { width: 100%; }
  .presentation-card .card-icon-header h2 { font-size: 1.3rem; }
}.presentation-pending { background: #eef2f6; color: #4a5d73; border: 1px solid #d5dee8; font-weight: 600; }
/* Councillor: current item hidden until the vote starts */
.agenda-waiting {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 26px 18px;
  border: 2px dashed #b9d3e3;
  border-radius: 16px;
  background: #f6fbfe;
  text-align: center;
}
.agenda-waiting p { margin: 0; }
.agenda-waiting-pulse { font-size: 2rem; animation: agenda-waiting-pulse 1.8s ease-in-out infinite; }
.agenda-waiting-title { font-size: 1.15rem; font-weight: 700; color: #143d59; }
.agenda-waiting-current { margin-top: 6px !important; font-weight: 600; color: #0b6e96; }
.agenda-waiting button { margin-top: 8px; }
@keyframes agenda-waiting-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.92); } }
@media (prefers-reduced-motion: reduce) { .agenda-waiting-pulse { animation: none; } }
/* Councillor voting card - design B (countdown ring + vote tiles) */
.vote-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 2px solid #0b6e96;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(20, 61, 89, 0.1);
}
.vote-card p { margin: 0; }
.vote-card-head { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 14px; align-items: center; }
.vote-card-meta { font-size: 0.85rem; color: #5b6b7d; }
.vote-card-majority { font-weight: 700; color: #33475b; }
.vote-card-majority.is-qualified { color: #9a5b00; }
.vote-card-title { margin: 2px 0 0; font-size: 1.15rem; line-height: 1.3; color: #143d59; text-wrap: balance; }
.vote-ring { position: relative; width: 78px; height: 78px; }
.vote-ring svg { width: 78px; height: 78px; transform: rotate(-90deg); }
.vote-ring-bg { fill: none; stroke: #e2ebf1; stroke-width: 7; }
.vote-ring-fg { fill: none; stroke: #e02424; stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.vote-ring-value { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.45rem; font-weight: 800; color: #1b2a41; font-variant-numeric: tabular-nums; }
.vote-ring.is-done { display: grid; place-items: center; border-radius: 50%; font-size: 2rem; font-weight: 800; color: #fff; }
.vote-ring.is-approved { background: #16a34a; }
.vote-ring.is-rejected { background: #dc2626; }
.vote-card-draft { padding: 12px 14px; border: 1px solid #dce8f0; border-radius: 12px; background: #f6fafc; line-height: 1.5; white-space: pre-line; }
.vote-card-draft-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: #0b6e96; margin-bottom: 4px !important; }
.vote-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vote-tile {
  display: grid; justify-items: center; gap: 6px; margin: 0; min-width: 0; min-height: 0;
  padding: 14px 4px 12px; border-radius: 16px; border: 2px solid transparent; box-shadow: none;
  font-weight: 800; font-size: 0.98rem; cursor: default; text-align: center;
}
button.vote-tile { cursor: pointer; }
button.vote-tile:hover, button.vote-tile:focus-visible { transform: translateY(-1px); }
.vote-tile-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; color: #fff; }
.vote-tile.is-yes { background: #e7f6ec; color: #15803d; } .vote-tile.is-yes .vote-tile-icon { background: #16a34a; }
.vote-tile.is-no { background: #fdecec; color: #b91c1c; } .vote-tile.is-no .vote-tile-icon { background: #dc2626; }
.vote-tile.is-abstain { background: #eef2f6; color: #475569; } .vote-tile.is-abstain .vote-tile-icon { background: #64748b; }
.vote-tile.is-chosen { border-color: currentColor; }
.vote-tile.is-dimmed, .vote-tile.is-idle { opacity: 0.45; }
.vote-tile-mine { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.vote-card-tally { display: grid; gap: 6px; }
.vote-tally-bar { display: flex; height: 10px; border-radius: 10px; overflow: hidden; background: #e2ebf1; }
.vote-tally-bar i { display: block; height: 100%; transition: width 0.4s ease; }
.vote-tally-bar .is-yes { background: #16a34a; } .vote-tally-bar .is-no { background: #dc2626; } .vote-tally-bar .is-abstain { background: #94a3b8; }
.vote-card-tally-text { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.86rem; color: #5b6b7d; }
.vote-card-tally-text > span:first-child { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #33475b; }
.vote-card-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #eef3f7; }
.vote-card-tabs button { flex: 1; margin: 0; min-height: 36px; padding: 6px; border: none; border-radius: 9px; background: transparent; color: #5b6b7d; box-shadow: none; font-weight: 600; font-size: 0.9rem; }
.vote-card-tabs button.is-on { background: #ffffff; color: #143d59; box-shadow: 0 1px 4px rgba(20, 61, 89, 0.14); }
.vote-card-description { color: #33475b; line-height: 1.55; }
@media (prefers-reduced-motion: reduce) { .vote-ring-fg, .vote-tally-bar i { transition: none; } }
@media (max-width: 420px) {
  .vote-card { padding: 14px; }
  .vote-card-head { grid-template-columns: 68px minmax(0, 1fr); gap: 12px; }
  .vote-ring, .vote-ring svg { width: 68px; height: 68px; }
  .vote-tile-icon { width: 40px; height: 40px; }
}

/* Admin: návrh uznesenia */
.resolution-draft-panel > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.resolution-draft-panel > summary::-webkit-details-marker { display: none; }
.resolution-draft-text { white-space: pre-line; margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: #f6fafc; border: 1px solid #dce8f0; line-height: 1.5; }
.resolution-draft-form { display: grid; gap: 8px; margin-top: 8px; }
.resolution-draft-form textarea { width: 100%; min-height: 96px; resize: vertical; }
.resolution-draft-form button { justify-self: start; }
.resolution-draft-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.resolution-draft-head .agenda-panel-title { margin: 0; }
.resolution-draft-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.resolution-draft-text.is-auto { color: #5b6b78; font-style: italic; }
.resolution-draft-form .field-hint { margin: 0; }
.resolution-draft-form.hidden, .resolution-draft-text.hidden, .resolution-draft-edit.hidden { display: none; }
.resolution-draft-panel { display: grid; gap: 10px; }
.resolution-draft-panel > .agenda-panel-title { margin: 0; }
.resolution-type-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.resolution-type-chip { background: #fff; color: #143d59; border: 1px solid #c9dae6; border-radius: 999px; padding: 6px 12px; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.resolution-type-chip:hover { border-color: #0b6e96; }
.resolution-type-chip.is-on { background: #0b6e96; border-color: #0b6e96; color: #fff; }
.resolution-type-chip:focus-visible { outline: 2px solid #0b6e96; outline-offset: 2px; }
.resolution-options-form { display: grid; gap: 6px; }
.resolution-options-form label { margin: 0; }
.resolution-options-form textarea { width: 100%; resize: vertical; }
.resolution-options-form .checkbox-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.resolution-options-form > button { justify-self: start; }
.resolution-task-fields { display: grid; gap: 6px; padding: 10px 12px; border: 1px dashed #c9dae6; border-radius: 10px; background: #fbfdfe; }
.resolution-task-fields.hidden, .resolution-options-save.hidden { display: none; }
.resolution-task-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.resolution-task-grid input { width: 100%; box-sizing: border-box; }
.resolution-inline-row { display: flex; gap: 8px; flex-wrap: wrap; }
.resolution-inline-row input { flex: 1 1 200px; }
.resolution-wording-label { margin: 0; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.vote-card-draft-type { color: #143d59; }
@media (max-width: 640px) { .resolution-task-grid { grid-template-columns: 1fr; } }
/* Floor (slovo) panel and faktická poznámka */
.floor-panel { display: grid; gap: 8px; width: 100%; max-width: 460px; margin: 10px auto 0; text-align: left; }
.current-agenda-focus > .floor-panel { margin: 0 0 12px; max-width: none; }
.floor-current { padding: 10px 12px; border: 1px solid #c9dae6; border-radius: 12px; background: #f6fafc; }
.floor-current.is-me { border-color: #8bd1a6; background: #f0fbf4; display: grid; gap: 8px; }
.floor-current p { margin: 0; }
.floor-current-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: #0b6e96; }
.floor-current-name { font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.floor-timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 0.85rem; padding: 2px 8px; border-radius: 999px; background: #e3eef5; color: #143d59; white-space: nowrap; }
.floor-timer.is-over { background: #fde4e4; color: #b42318; }
.floor-finish { background: #1f8a4c; border-color: #1f8a4c; color: #fff; font-weight: 700; justify-self: start; }
.floor-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.floor-factual-button { background: #c98a12; border-color: #c98a12; color: #fff; font-weight: 700; }
.floor-pill-factual { background: #fff4dc; color: #8a5a00; border: 1px solid #f0d9a8; }
.speaker-request-factual { border-left: 4px solid #c98a12; }
.speaker-request-factual-label { display: block; font-size: 0.82rem; color: #8a5a00; }
/* Meeting recording (admin bar, indicator, archive player) */
.recording-bar { display: grid; gap: 8px; margin: 12px 0; padding: 12px 14px; border: 1px solid #c9dae6; border-radius: 12px; background: #f6fafc; }
.recording-bar.is-recording { border-color: #f1b4b4; background: #fff5f5; }
.recording-bar.is-break, .recording-bar.is-paused { border-color: #f0d9a8; background: #fffaf0; }
.recording-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.material-new-form { display: grid; gap: 6px; }
.material-new-form button[type="submit"] { justify-self: start; margin-top: 6px; }
.material-files { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 4px; }
.material-files li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; overflow-wrap: anywhere; }
.material-file-add { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.material-file-add label { cursor: pointer; }
.material-edit-form { display: grid; gap: 6px; margin: 8px 0; }
.material-edit-form.hidden { display: none; }
.material-edit-form button { justify-self: start; }
.material-routing { display: grid; gap: 12px; margin: 12px 0; padding: 12px; border: 1px solid #c9dae6; border-radius: 10px; background: #f6fafc; }
.material-forward-form { display: grid; gap: 6px; }
.material-forward-form .field-hint, .material-oz .field-hint { margin: 0; }
.material-routing-row { display: flex; flex-wrap: wrap; gap: 8px; }
.material-routing-row select { flex: 1 1 240px; min-width: 0; }
.material-oz { display: grid; gap: 6px; justify-items: start; padding-top: 12px; border-top: 1px solid #dfe9f0; }
.session-note { margin: 6px 0 0; padding: 6px 10px; border-radius: 8px; background: #fff4dc; border: 1px solid #f0d9a8; color: #6b4600; font-size: 0.9rem; }
.official-doc-link { background: #1d7a46; border-color: #1d7a46; color: #fff; }
.official-docs-panel { display: grid; gap: 12px; margin-top: 12px; padding: 14px; border: 1px solid #c9dae6; border-radius: 10px; background: #f6fafc; }
.official-docs-panel.hidden { display: none; }
.official-docs-panel > .field-hint { margin: 0; }
.official-doc-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-bottom: 10px; border-bottom: 1px solid #dfe9f0; }
.official-doc-info { display: grid; gap: 2px; min-width: 0; }
.official-doc-info .field-hint { margin: 0; overflow-wrap: anywhere; }
.official-doc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.official-doc-upload { cursor: pointer; }
.session-note-form { display: grid; gap: 6px; }
.session-note-form button { justify-self: start; }
.recording-status .field-hint { margin: 0; }
.recording-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.recording-start-button { background: #c62828; border-color: #c62828; color: #fff; font-weight: 700; }
.recording-timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.05rem; }
.recording-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #d32f2f; animation: recording-blink 1.2s ease-in-out infinite; }
@keyframes recording-blink { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .recording-dot { animation: none; } }
.recording-level { display: inline-block; width: 90px; height: 8px; border-radius: 999px; background: #e3e9ee; overflow: hidden; }
.recording-level > span { display: block; height: 100%; width: 0; background: #2e7d32; transition: width 0.1s linear; }
.recording-mic { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 0.85rem; }
.recording-mic select { max-width: 220px; }
.recording-error { margin: 0; color: #b42318; font-weight: 600; }
.recording-indicator { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 8px; padding: 4px 10px; border-radius: 999px; background: #fdecec; color: #b42318; font-weight: 700; font-size: 0.85rem; }
.recording-indicator.is-break { background: #fff4dc; color: #8a5a00; }
.recording-playback { margin: 0 0 12px; padding: 12px 14px; border: 1px solid #dce8f0; border-radius: 12px; background: #f6fafc; }
.recording-playback-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.recording-playback-head h4 { margin: 0; }
.recording-playback-items { margin: 10px 0 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.recording-playback-items li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.recording-player-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; gap: 6px; padding: 10px max(16px, env(safe-area-inset-left, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid #c9dae6; box-shadow: 0 -6px 20px rgba(20, 61, 89, 0.12); }
.recording-player-bar.hidden { display: none; }
.recording-player-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.recording-player-bar audio { width: 100%; }.recording-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; max-width: min(520px, calc(100% - 32px)); padding: 10px 16px; border-radius: 12px; background: #143d59; color: #fff; font-weight: 600; box-shadow: 0 8px 24px rgba(20, 61, 89, 0.25); }
.recording-toast.is-error { background: #b42318; }
.recording-toast.hidden { display: none; }
/* Pozvánka na zasadnutie (admin modal) */
.invitation-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0; }
.invitation-row .field-hint { margin: 0; }
.invitation-dialog { box-sizing: border-box; width: min(720px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 20px; border: 1px solid #c9dae6; border-radius: 14px; box-shadow: 0 20px 50px rgba(20, 61, 89, 0.25); }
.invitation-dialog::backdrop { background: rgba(10, 30, 45, 0.45); }
.invitation-dialog form { display: grid; gap: 8px; }
.invitation-dialog h2 { margin: 0 0 4px; font-size: 1.2rem; }
.invitation-dialog label { margin: 0; }
.invitation-dialog input[type="text"], .invitation-dialog input[type="email"], .invitation-dialog input[type="password"], .invitation-dialog textarea { width: 100%; box-sizing: border-box; }
.invitation-dialog textarea[name="text"] { font-family: inherit; line-height: 1.45; resize: vertical; }
.invitation-recipients { display: grid; gap: 4px; margin: 4px 0; padding: 10px 12px; border: 1px solid #dce8f0; border-radius: 10px; }
.invitation-recipients legend { font-weight: 700; padding: 0 4px; }
.invitation-recipients .checkbox-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-weight: 600; }
.invitation-recipients .field-hint { margin: 0; font-weight: 400; }
.invitation-warning { margin: 0; padding: 8px 10px; border-radius: 8px; background: #fff4dc; border: 1px solid #f0d9a8; color: #6b4600; }
.invitation-error { margin: 0; color: #b42318; font-weight: 600; }
.invitation-error.hidden { display: none; }
.invitation-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.link-button { background: none; border: none; padding: 0; color: #0b6e96; text-decoration: underline; cursor: pointer; font: inherit; }
/* Discussion card (item being discussed, no vote now) - design C */
.discussion-card { position: relative; overflow: hidden; }
.discussion-progress { height: 4px; margin: -2px 0 4px; border-radius: 999px; background: #e3eaf0; overflow: hidden; }
.discussion-progress > span { display: block; height: 100%; background: #0b6e96; border-radius: 999px; }
.discussion-hero { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 6px 4px 2px; }
.discussion-hero .field-hint { margin: 0; max-width: 34ch; }
.discussion-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; background: #e2f1f7; box-shadow: inset 0 0 0 4px #cfe6f0; }
.discussion-icon.is-waiting { animation: agenda-waiting-pulse 2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .discussion-icon.is-waiting { animation: none; } }
.discussion-eyebrow { margin: 4px 0 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #0b6e96; }
.discussion-title { margin: 0; font-size: 1.3rem; line-height: 1.25; color: #143d59; text-wrap: balance; }
.discussion-section-label { margin: 4px 0 0; font-weight: 700; color: #143d59; border-bottom: 1px solid #dce6ee; padding-bottom: 6px; }
.discussion-card .floor-panel.is-tiles { max-width: none; margin: 4px 0 0; }
.floor-tiles { display: grid; gap: 8px; }
.floor-tiles.is-two { grid-template-columns: 1fr 1fr; }
.floor-tile { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 84px; padding: 12px 8px; border-radius: 14px; border: 1px solid #c9dae6; background: #fff; color: #143d59; font-weight: 700; font-size: 0.95rem; cursor: pointer; text-align: center; }
.floor-tile small { font-weight: 400; font-size: 0.75rem; color: #6a7b88; }
.floor-tile-icon { font-size: 1.5rem; line-height: 1; }
.floor-tile.is-primary { background: #0b6e96; border-color: #0b6e96; color: #fff; }
.floor-tile.is-primary small { color: #d5ecf5; }
.floor-tile.is-factual { background: #c98a12; border-color: #c98a12; color: #fff; }
.floor-tile.is-factual small { color: #fff4dc; }
.floor-tile:disabled { opacity: 0.6; cursor: default; }
.floor-tile:focus-visible { outline: 3px solid #143d59; outline-offset: 2px; }
.discussion-program { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.discussion-program li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; padding: 5px 6px; border-radius: 8px; color: #4a5a66; }
.discussion-program li.is-done { color: #8a99a5; }
.discussion-program li.is-current { background: #e2f1f7; color: #143d59; font-weight: 700; }
.discussion-program-mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; background: #eef2f5; color: #6a7b88; }
.discussion-program li.is-done .discussion-program-mark { background: #e4f4ea; color: #1f7a45; }
.discussion-program li.is-current .discussion-program-mark { background: #0b6e96; color: #fff; }
.session-compact-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 10px; }
.session-compact-head > div { display: grid; gap: 2px; }
.session-compact-head strong { color: #143d59; }
.session-compact-head .field-hint { margin: 0; }.discussion-program-more { margin: 4px 6px; }
.invitation-steps { display: flex; gap: 6px; margin: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #8a99a5; }
.invitation-steps span { padding: 3px 10px; border-radius: 999px; background: #eef2f5; }
.invitation-steps span.is-on { background: #0b6e96; color: #fff; }
.invitation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.invitation-grid > div { display: grid; gap: 4px; }
.invitation-grid input, .invitation-grid select { width: 100%; box-sizing: border-box; }
@media (max-width: 520px) { .invitation-grid { grid-template-columns: 1fr; } }
.invitation-hu-row { display: grid; gap: 3px; padding: 6px 0; border-top: 1px solid #eef2f5; }
.invitation-hu-row:first-of-type { border-top: none; }
.invitation-hu-row.is-sub { padding-left: 18px; }
.invitation-hu-row label { font-size: 0.85rem; color: #4a5a66; font-weight: 400; }
.invitation-hu-row input { width: 100%; box-sizing: border-box; }
/* Councillor dashboard - one-row app bar, situation card, grouped tiles */
body[data-page="poslanec"] header.app-bar { min-height: 0; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); flex-wrap: nowrap; gap: 10px; background: #143d59; }
body[data-page="poslanec"] header.app-bar .brand { flex: 1 1 auto; flex-basis: auto; gap: 10px; min-width: 0; }
body[data-page="poslanec"] header.app-bar .brand img.app-bar-mark { width: 38px; height: 38px; max-height: none; border-radius: 9px; }
body[data-page="poslanec"] header.app-bar .app-bar-title { margin: 0; font-size: 1.1rem; line-height: 1.1; color: #fff; }
body[data-page="poslanec"] header.app-bar .app-bar-title small { display: block; font-size: 0.75rem; font-weight: 400; opacity: 0.75; }
body[data-page="poslanec"] header.app-bar .header-login { flex: 0 0 auto; flex-basis: auto; flex-wrap: nowrap; gap: 8px; justify-content: flex-end; }
.profile-wrap { position: relative; }
.profile-toggle { width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.55); background: linear-gradient(135deg, #8fb3c9, #5d7a8f); color: #fff; font-weight: 700; font-size: 0.9rem; display: grid; place-items: center; position: relative; cursor: pointer; overflow: visible; }
.profile-toggle.hidden { display: none; }
.profile-toggle .header-user-photo { width: 100%; height: 100%; border: none; border-radius: 50%; }
.profile-toggle .header-user-photo.hidden, .profile-initials.hidden { display: none; }
.profile-dot { position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; border-radius: 50%; background: #e5484d; border: 2px solid #143d59; }
.profile-dot.hidden { display: none; }
.profile-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: min(260px, calc(100vw - 32px)); display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: #fff; color: #1d2b36; box-shadow: 0 14px 34px rgba(10, 30, 45, 0.22); border: 1px solid #dce6ee; }
.profile-menu[hidden] { display: none; }
.profile-menu .header-user-name { font-weight: 700; color: #143d59; padding-bottom: 6px; border-bottom: 1px solid #eef2f5; }
body[data-page="poslanec"] .profile-menu .header-language { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-basis: auto; }
.profile-menu .header-language label { margin: 0; font-size: 0.9rem; }
.profile-menu .button-link, .profile-menu button { width: 100%; justify-content: center; text-align: center; }
.profile-menu .button-link.hidden, .profile-menu button.hidden { display: none; }

.dash-greeting { display: grid; gap: 2px; margin: 4px 2px 12px; }
.dash-greeting:empty { display: none; }
.dash-greeting strong { font-size: 1.35rem; color: #143d59; }
.dash-greeting span { color: #6a7b88; font-size: 0.92rem; }

.dash-hero { margin-bottom: 14px; }
.dash-hero-card { border-radius: 18px; padding: 16px; background: #fff; box-shadow: 0 8px 22px rgba(20, 61, 89, 0.10); display: grid; gap: 8px; }
.dash-hero-card h2 { margin: 0; font-size: 1.2rem; line-height: 1.25; color: #143d59; text-wrap: balance; }
.dash-hero-eyebrow { margin: 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #0b6e96; }
.dash-hero-meta { margin: 0; color: #5a6b78; font-size: 0.92rem; }
.dash-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.dash-hero-card.is-upcoming { grid-template-columns: 64px 1fr; column-gap: 14px; align-items: start; }
.dash-hero-card.is-upcoming .dash-hero-actions { grid-column: 1 / -1; }
.dash-hero-main { display: grid; gap: 3px; }
.dash-hero-date { border-radius: 14px; background: #f3f8fb; border: 1px solid #dce6ee; display: grid; justify-items: center; align-content: center; padding: 8px 0; }
.dash-hero-date b { font-size: 1.7rem; line-height: 1; color: #143d59; }
.dash-hero-date span { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #0b6e96; }
.dash-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dash-chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 7px 13px; font-size: 0.88rem; font-weight: 600; border: 1px solid #c9dae6; background: #fff; color: #143d59; text-decoration: none; }
.dash-chip.is-solid { background: #0b6e96; border-color: #0b6e96; color: #fff; }
.dash-chip.is-muted { color: #6a7b88; font-weight: 400; border-style: dashed; }
.dash-hero-pill { justify-self: start; display: inline-flex; border-radius: 999px; padding: 4px 11px; font-size: 0.85rem; font-weight: 600; background: #eef2f5; color: #4a5a66; }
.dash-hero-pill.is-ok { background: #e4f4ea; color: #1f7a45; }
.dash-hero-today { display: inline-flex; border-radius: 999px; padding: 3px 11px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: #fff4dc; color: #8a5a00; }
.dash-hero-cta { display: block; text-align: center; border-radius: 12px; padding: 12px; font-weight: 700; font-size: 1rem; text-decoration: none; border: none; cursor: pointer; background: #0b6e96; color: #fff; width: 100%; }
.dash-hero-card.is-today { border: 2px solid #f0d9a8; }
.dash-hero-card.is-live { color: #fff; background: linear-gradient(160deg, #0b6e96, #143d59); box-shadow: 0 12px 26px rgba(11, 110, 150, 0.30); }
.dash-hero-card.is-live h2 { color: #fff; }
.dash-hero-card.is-live .dash-hero-meta { color: rgba(255, 255, 255, 0.85); }
.dash-hero-card.is-live .dash-hero-pill.is-ok { background: rgba(255, 255, 255, 0.16); color: #fff; }
.dash-hero-card.is-live .dash-hero-cta { background: #fff; color: #143d59; }
.dash-hero-card.is-live .dash-hero-cta.is-vote { background: #ffd166; color: #3b2a00; }
.dash-hero-live { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(255, 255, 255, 0.16); }
.dash-hero-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff6b6b; animation: recording-blink 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .dash-hero-live::before { animation: none; } }
.dash-hero-progress { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.22); overflow: hidden; }
.dash-hero-progress > span { display: block; height: 100%; background: #fff; border-radius: 999px; }
.dash-hero-card.is-empty h2 { font-size: 1.05rem; }

.dash-schedule { margin-bottom: 14px; }
.dash-schedule-title { margin: 4px 0 8px; font-size: 1rem; color: #143d59; }
.dash-schedule .presentation-card { margin-top: 14px; }

.dash-menu { display: grid; gap: 8px; }
.dash-group-title { margin: 6px 2px 0; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #6a7b88; }
.dash-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dash-tile { position: relative; display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 92px; padding: 12px 6px; border-radius: 16px; background: #fff; border: 1px solid #dce6ee; box-shadow: 0 3px 10px rgba(20, 61, 89, 0.05); color: #143d59; font-weight: 600; font-size: 0.9rem; text-align: center; text-decoration: none; line-height: 1.2; }
.dash-tile:hover { border-color: #0b6e96; }
.dash-tile:focus-visible { outline: 3px solid #0b6e96; outline-offset: 2px; }
.dash-tile-icon { font-size: 1.7rem; line-height: 1; }
.badge-count { position: absolute; top: 8px; right: 8px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #e5484d; color: #fff; font-size: 0.75rem; font-weight: 700; display: grid; place-items: center; }
.badge-count.hidden { display: none; }
@media (min-width: 900px) { .dash-tiles { grid-template-columns: repeat(3, minmax(0, 220px)); } }/* The old poslanec header used a grid on phones / installed app; the app bar is one flex row */
body[data-page="poslanec"] header.app-bar { display: flex; align-items: center; justify-content: space-between; }
body[data-page="poslanec"] header.app-bar .brand { grid-column: auto; grid-row: auto; flex-basis: auto; }
body[data-page="poslanec"] header.app-bar .header-login { display: flex; grid-column: auto; grid-row: auto; grid-template-columns: none; }
body[data-page="poslanec"] header.app-bar .notification-bell-wrap { grid-column: auto; grid-row: auto; }
body[data-page="poslanec"] header.app-bar .profile-menu > * { grid-column: auto !important; grid-row: auto !important; min-width: 0; }
body[data-page="poslanec"] header.app-bar .profile-menu .button-link.small,
body[data-page="poslanec"] header.app-bar .profile-menu button.small { min-height: 42px; padding: 8px 12px; font-size: 0.92rem; white-space: normal; }body[data-page="poslanec"] header.app-bar .brand > div { min-width: 0; }
body[data-page="poslanec"] header.app-bar .app-bar-title { white-space: nowrap; }
body[data-page="poslanec"] header.app-bar .header-login button.profile-toggle { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; }
/* --- Admin: app installation overview --- */
.app-devices-summary { margin: 12px 0 8px; }
.app-devices-table-wrap { overflow-x: auto; }
.app-devices-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.app-devices-table th, .app-devices-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid #e3e8ee; }
.app-devices-table thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: #5b6b7a; }
.app-devices-table tbody th { font-weight: 600; }
.app-devices-table small { font-weight: 400; color: #5b6b7a; }
.app-device-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.85rem; white-space: nowrap; background: #eef1f4; color: #3c4a57; }
.app-device-pill.is-installed { background: #e3f4e8; color: #1f6b3a; }
.app-device-pill.is-browser { background: #fff3dc; color: #8a5a00; }
.app-device-pill.is-warning { background: #fde8e8; color: #9b1c1c; }
.app-device-where { display: block; font-size: 0.82rem; color: #5b6b7a; margin-top: 3px; }
.app-device-seen { white-space: nowrap; font-variant-numeric: tabular-nums; }
.app-device-detail { margin-top: 4px; font-weight: 400; font-size: 0.82rem; color: #5b6b7a; }
.app-device-detail summary { cursor: pointer; }
.app-device-detail ul { margin: 4px 0 0; padding-left: 18px; }
@media (max-width: 560px) {
  .app-devices-table thead { display: none; }
  .app-devices-table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid #e3e8ee; }
  .app-devices-table th, .app-devices-table td { border: 0; padding: 0; }
  .app-devices-table tbody th { grid-column: 1 / -1; }
}
/* --- Materiál na rokovanie OZ (návrh uznesenia + dôvodová správa) --- */
.material-panel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.material-panel .agenda-panel-title .status-pill { margin-left: 6px; font-size: 0.75rem; }
.material-open-button { display: flex; align-items: center; gap: 12px; width: 100%; margin: 10px 0; padding: 12px 14px; text-align: left; background: #f3f8fc; color: #143d59; border: 1px solid #c9dae6; border-radius: 12px; cursor: pointer; font: inherit; }
.material-open-button:hover, .material-open-button:focus-visible { background: #e6f0f8; border-color: #8fb3cf; }
.material-open-button b { display: block; font-size: 1rem; }
.material-open-button small { display: block; color: #4b6275; font-size: 0.82rem; margin-top: 2px; }
.material-open-icon { font-size: 1.6rem; line-height: 1; }
.vote-card-draft .material-open-button { margin-bottom: 0; background: #fff; }
.material-dialog { width: min(780px, calc(100% - 24px)); }
.material-dialog .material-actions { position: sticky; bottom: -20px; margin: 12px -20px -20px; padding: 12px 20px; background: #fff; border-top: 1px solid #e3e8ee; }
.material-eyebrow { margin: 0; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: #4b6275; }
.material-title { margin: 2px 0 6px; font-size: 1.25rem; color: #143d59; text-wrap: balance; }
.material-document { display: grid; gap: 12px; }
.material-meta { display: grid; gap: 4px; margin: 0; padding: 10px 12px; background: #f6f8fa; border-radius: 10px; }
.material-meta div { display: grid; grid-template-columns: 120px 1fr; gap: 8px; }
.material-meta dt { color: #4b6275; font-size: 0.88rem; }
.material-meta dd { margin: 0; }
.material-resolution { padding: 12px 14px; border: 1px solid #d9c9a0; border-left: 4px solid #b9a16a; border-radius: 10px; background: #fffdf7; }
.material-resolution h4, .material-section h4 { margin: 0 0 6px; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: #143d59; }
.material-resolution-lead { margin: 0 0 6px; font-weight: 700; }
.material-resolution-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.material-resolution-lines li { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.material-resolution-lines li p { margin: 2px 0 0; white-space: pre-wrap; }
.material-resolution-text { margin: 0; white-space: pre-wrap; }
.material-letter { font-weight: 700; min-width: 1.4em; color: #143d59; }
.material-deadline { color: #4b6275; font-size: 0.88rem; }
.material-majority { margin: 10px 0 0; font-size: 0.82rem; color: #4b6275; }
.material-text { margin: 0; white-space: pre-wrap; line-height: 1.55; }
.material-form h2 { text-wrap: balance; }
.material-form textarea { font-family: inherit; line-height: 1.45; resize: vertical; }
.material-resolution-fieldset { display: grid; gap: 8px; }
.material-lines { display: grid; gap: 10px; }
.material-line { display: grid; gap: 6px; padding: 10px; border: 1px solid #dde5ec; border-radius: 10px; background: #fafcfd; }
.material-line-head { display: flex; align-items: center; gap: 8px; }
.material-line-head select { flex: 1; min-width: 0; }
.material-line-tools { display: flex; gap: 4px; }
.material-task-fields { display: grid; grid-template-columns: 1fr 160px; gap: 8px; }
.material-task-fields.hidden { display: none; }
.material-task-fields > div { display: grid; gap: 4px; }
.material-task-fields input { width: 100%; box-sizing: border-box; }
.material-preview-label { margin: 4px 0 0; font-size: 0.85rem; color: #4b6275; }
.material-resolution-preview { margin: 0; padding: 10px 12px; white-space: pre-wrap; background: #fffdf7; border: 1px dashed #d9c9a0; border-radius: 8px; }
.material-resolution-preview.is-empty { color: #8a6d00; }
.material-optional summary { cursor: pointer; font-weight: 600; margin: 4px 0; }
.material-optional { display: grid; gap: 6px; }
@media (max-width: 520px) {
  .material-task-fields { grid-template-columns: 1fr; }
  .material-meta div { grid-template-columns: 1fr; gap: 0; }
  .material-line-head { flex-wrap: wrap; }
}
/* --- AI návrh dôvodovej správy --- */
.material-ai-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.material-ai-box { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid #d8cdf0; border-radius: 10px; background: #f8f5ff; }
.material-ai-box.hidden, .material-ai-key.hidden, .material-ai-sources.hidden { display: none; }
.material-ai-key { display: grid; gap: 6px; }
.material-ai-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.material-ai-status { margin: 0; font-size: 0.9rem; color: #3c4a57; }
.material-ai-status:empty { display: none; }
.material-ai-status.is-done { color: #1f6b3a; }
.material-ai-status.is-warning { color: #8a5a00; }
.material-ai-status.is-error { color: #9b1c1c; }
.material-ai-sources ul { margin: 2px 0 0; padding-left: 18px; font-size: 0.88rem; }