/* Shared UI scale for Web/PWA and Telegram Mini App. Loaded last on purpose. */
:root{
  --ui-selected-bg:var(--volt);
  --ui-selected-fg:var(--ink);
  --ui-selected-border:var(--volt);
  --ui-chip-height:34px;
  --ui-chip-radius:999px;
  --ui-chip-font:11px;
}

/* One compact control language for filters, tabs and selectable options. */
.chip,
.event-collections button,
.event-detail-tabs button,
.media-filter-strip button,
.participant-tabs button,
.participant-party-filters button,
.participation-status-actions button,
.chat-filter-tabs button,
.community-tabs button,
.rsvp-row button,
.save-community-chat,
.event-period span,
.event-date-mode span,
.event-sport-multi span,
.format-choice-grid span,
.vibe-grid span{
  min-height:var(--ui-chip-height);
  padding:7px 11px;
  border-width:1px;
  border-radius:var(--ui-chip-radius);
  font-family:"Golos Text",Arial,sans-serif;
  font-size:var(--ui-chip-font);
  font-weight:800;
  line-height:14px;
  box-shadow:none;
}

.chip.active,
.card.selected,
.event-collections button.active,
.event-detail-tabs .active,
.media-filter-strip .active,
.participant-tabs button.active,
.participant-party-filters button.active,
.participation-status-actions button.active,
.community-tabs button.active,
.rsvp-row button.active,
.save-community-chat.active,
.event-period input:checked + span,
.event-date-mode input:checked + span,
.event-sport-multi input:checked + span,
.format-choice-grid input:checked + span,
.vibe-grid input:checked + span,
.participation-card .meeting-phase-options label:has(input:checked){
  border-color:var(--ui-selected-border);
  background:var(--ui-selected-bg);
  color:var(--ui-selected-fg);
  box-shadow:none;
}

/* Chat categories intentionally keep their own semantic colours. */
.chat-filter-tabs button.active{
  border-color:var(--filter-color);
  background:var(--filter-color);
}

/* Participation card: compact, readable and consistent with the rest. */
.event-detail .participation-card{
  padding:14px!important;
  border-radius:18px!important;
}
.participation-card>.eyebrow{margin-bottom:7px;font-size:10px;line-height:14px}
.participation-card h3{margin:14px 0 7px;font-size:13px;line-height:17px}
.participation-card .participation-status-actions,
.participation-card .participant-party-filters,
.participation-card .meeting-phase-options{display:flex;gap:6px;flex-wrap:wrap}
.participation-card .participation-status-actions button,
.participation-card .participant-party-filters button,
.participation-card .meeting-phase-options label{
  min-height:var(--ui-chip-height);
  padding:7px 11px;
  border:1px solid var(--line);
  border-radius:var(--ui-chip-radius);
  background:#fff;
  color:var(--ink);
  font-size:var(--ui-chip-font);
  font-weight:800;
  line-height:14px;
}
.participation-card .participation-status-actions button.active,
.participation-card .participant-party-filters button.active,
.participation-card .meeting-phase-options label:has(input:checked){
  border-color:var(--ui-selected-border);
  background:var(--ui-selected-bg);
  color:var(--ui-selected-fg);
}
.participation-card .form-hint{margin:11px 0 0;font-size:10px;line-height:1.4}
.participation-save{display:flex;align-items:center;gap:10px;margin-top:12px}
.participation-save .btn{
  flex:0 0 auto;
  width:auto;
  min-height:38px;
  padding:8px 15px;
  border-width:1px;
  border-radius:11px;
  background:var(--volt);
  border-color:var(--volt);
  color:var(--ink);
  font-size:12px;
  line-height:16px;
  font-weight:900;
}
.participation-save .btn:disabled{background:var(--surface);border-color:var(--line);color:var(--concrete);opacity:1}
.participation-dirty{font-size:10px;line-height:1.35}

/* Attendee block follows the same density as the status card. */
.event-attendees-card{padding:14px;border-radius:18px}
.event-participants-head{gap:10px;margin-bottom:10px}
.event-participants-head>span:nth-child(2){display:grid;gap:2px;min-width:0}
.event-participants-head strong{font-size:18px;line-height:22px}
.event-participants-head small{font-size:11px;line-height:15px}
.event-attendee-avatars .photo-avatar,
.event-participants-head>.photo-avatar{width:38px;height:38px}
.event-participants-chat{
  min-width:62px;
  min-height:44px;
  padding:5px 7px;
  border-radius:13px;
  font-size:9px;
  line-height:11px;
}
.event-participants-chat .ui-icon{width:20px;height:20px}
.event-attendees-card .participant-tabs,
.event-attendees-card .participant-party-filters{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}
.event-attendees-card .participant-tabs button,
.event-attendees-card .participant-party-filters button{flex:0 0 auto}

/* Event people screen and shared search rows. */
.event-people-screen .participant-tabs,
.event-people-screen .participant-party-filters{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}
.event-people-screen .lead{margin-bottom:14px;font-size:14px;line-height:20px}

/* Compact vertical rhythm at the start of list screens. */
.events-screen>.events-title{margin:0 0 6px;line-height:1.08}
.events-screen>.propose-event-link{min-height:28px;margin:0 0 2px;line-height:17px}
.events-screen>.my-proposals{margin:0 0 10px}
.events-screen>.my-events-filter{min-height:28px;margin:0 0 7px}
.events-screen>.event-filter-summary{margin-top:0;margin-bottom:10px}
.community-screen>.h1,
.news-screen>.h1,
.meetings-screen>.h1{margin-bottom:7px;line-height:1.1}
.community-screen>.lead,
.news-screen>.lead,
.meetings-screen>.lead{margin-bottom:14px}

/* Admin controls use the same type scale without changing semantic colours. */
.admin-screen button,
.admin-list-screen button,
.admin-compose input,
.admin-compose select,
.admin-compose textarea{font-family:"Golos Text",Arial,sans-serif}
.admin-inline-actions button{min-height:34px;padding:7px 10px;font-size:11px;line-height:14px}
.admin-add{min-height:36px;padding:8px 12px;font-size:11px}

@media(max-width:430px){
  .screen{padding-left:14px;padding-right:14px}
  .event-detail .participation-card,.event-attendees-card{margin-left:0;margin-right:0}
  .event-participants-head{align-items:center}
}

@media(min-width:900px){
  .events-screen{padding-top:28px}
  .events-screen>.events-title{font-size:38px}
}

@media(max-width:350px){
  :root{--ui-chip-font:10px}
  .chip,.participant-tabs button,.participant-party-filters button,
  .participation-status-actions button,.participation-card .meeting-phase-options label{padding-left:9px;padding-right:9px}
  .participation-save{align-items:flex-start;flex-direction:column}
}
