.app-meeting { background: var(--color-background); }
.meeting-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.meeting-stack { display: flex; flex-direction: column; gap: var(--stack-gap); padding: max(20px, env(safe-area-inset-top)) var(--page-inset) max(24px, env(safe-area-inset-bottom)); }
.meeting-header { display: flex; align-items: center; gap: 10px; padding-bottom: 7px; }
.meeting-header > div { flex: 1; min-width: 0; }
.meeting-header h2 { margin: 0; font-size: 21.5px; font-weight: 800; line-height: 29px; text-align: center; }
.meeting-header p { font-size: 11.5px; line-height: 16px; color: var(--color-text-muted); margin-top: 4px; }
.meeting-header:has(p) h2 { text-align: left; }
.event-button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 45px; padding: 11px 14px; border: 0; border-radius: 23px; font-family: var(--font-family); font-size: 14px; line-height: 20px; font-weight: 700; text-align: center; text-decoration: none; color: var(--color-text-primary); background: transparent; touch-action: manipulation; }
.event-button .form-icon { width: 22px; height: 22px; flex-basis: 22px; }
.event-button:focus-visible, .meeting-detail summary:focus-visible, .event-text-button:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; }
.event-button:active { opacity: .8; }
.event-button:disabled { opacity: .6; cursor: wait; }
.event-primary { background: linear-gradient(160deg, #b67af0, #8541d6); color: white; }
.event-secondary { background: #eee5fa; color: #8752bd; }
.event-icon-button { flex: 0 0 38px; width: 38px; min-height: 38px; padding: 8px; border-radius: 14px; background: #eee7fa; color: var(--color-text-primary); }
.event-icon-button > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.meeting-success { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 14px; border-radius: 22px; background: #dff7ee; }
.meeting-success > .form-icon { width: 28px; height: 28px; padding: 5px; flex-basis: 28px; border-radius: 50%; color: white; background: #29ba91; }
.meeting-success h2 { font-size: 16px; line-height: 22px; margin: 0; font-weight: 800; }
.meeting-success p { font-size: 12px; line-height: 18px; margin-top: 2px; color: var(--color-secondary-text); }
.meeting-cancelled { background: #ffebea; }
.meeting-cancelled > .form-icon { background: #c55a67; }
.meeting-hero { min-width: 0; }
.meeting-photo { position: relative; height: 185px; }
.meeting-photo > img { display: block; width: 100%; height: 185px; object-fit: cover; border-radius: 26px; }
.meeting-category { position: absolute; top: 14px; left: 14px; display: flex; align-items: center; gap: 7px; min-height: 30px; padding: 6px 12px; border-radius: 18px; font-size: 12px; font-weight: 700; background: #fff0e6; color: #97563c; }
.meeting-category .form-icon { width: 18px; height: 18px; flex-basis: 18px; }
.hero-favorite { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: white; color: var(--color-secondary-text); }
.hero-favorite[aria-pressed="true"] { color: var(--color-brand); background: #eee0fc; }
.meeting-intro { position: relative; padding: 15px 15px 18px; margin-top: -22px; border-radius: 26px; background: #fffafd; box-shadow: var(--shadow-card); }
.meeting-intro h1 { font-size: 25px; line-height: 34px; font-weight: 800; overflow-wrap: anywhere; }
.meeting-organizer { display: flex; align-items: center; gap: 10px; margin-top: 13px; padding-bottom: 14px; border-bottom: 1px solid #e6dcf2; }
.meeting-organizer img { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.meeting-organizer p { font-size: 13px; line-height: 19px; color: var(--color-secondary-text); }
.meeting-organizer strong { color: var(--color-text-primary); }
.meeting-meta { display: grid; grid-template-columns: 1fr 1.1fr; margin-top: 14px; }
.meeting-meta > div { display: flex; align-items: flex-start; gap: 8px; min-width: 0; font-size: 12px; line-height: 18px; }
.meeting-meta > div + div { border-left: 1px solid #ded1ec; padding-left: 12px; }
.meeting-meta .form-icon { width: 21px; height: 21px; flex-basis: 21px; color: var(--color-secondary-text); }
.meeting-meta strong { font-weight: 700; overflow-wrap: anywhere; }
.meeting-meta small { display: block; font-size: 11px; line-height: 16px; color: var(--color-secondary-text); }
.meeting-description { margin-top: 18px; font-size: 14px; line-height: 22px; color: var(--color-secondary-text); white-space: pre-wrap; overflow-wrap: anywhere; }
.meeting-poll-dates { margin-top: 12px; font-size: 12px; line-height: 18px; color: var(--color-secondary-text); }
.meeting-panel { padding: 14px; border: 1px solid white; border-radius: 24px; background: linear-gradient(130deg, #fffdfd, #f6f0ff); box-shadow: 0 6px 18px rgb(128 87 175 / 8%); min-width: 0; }
.meeting-panel h2, .meeting-section-heading h2 { font-size: 18px; font-weight: 800; line-height: 25px; margin: 0; }
.meeting-panel p { font-size: 13px; line-height: 19px; color: var(--color-secondary-text); overflow-wrap: anywhere; }
.meeting-about { position: relative; padding-right: 55px; overflow: hidden; }
.meeting-about p { margin-top: 5px; white-space: pre-wrap; }
.meeting-about img { position: absolute; right: 6px; bottom: 0; opacity: .6; pointer-events: none; }
.meeting-about p, .meeting-about h2 { position: relative; z-index: 1; }
.meeting-route { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 18px; background: #e4f6f0; margin-top: 8px; font-size: 12px; line-height: 18px; }
.meeting-route strong { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.meeting-route .form-icon { width: 19px; height: 19px; flex-basis: 19px; color: #8e4ed2; }
.route-arrow { font-size: 24px; color: #9b58de; }
.meeting-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.meeting-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; align-items: start; }
.meeting-detail { min-width: 0; border: 1px solid white; border-radius: 18px; background: #fffafd; box-shadow: 0 5px 15px rgb(128 87 175 / 9%); }
.meeting-detail summary { position: relative; display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; min-height: 76px; padding: 9px 16px 9px 8px; }
.meeting-detail summary::-webkit-details-marker { display: none; }
.meeting-detail-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 12px; background: #f0e3fc; color: #8d45d7; }
.meeting-detail-icon .form-icon { width: 24px; height: 24px; }
.meeting-detail:nth-child(3n+1) .meeting-detail-icon { background: #ffebe5; color: #ba5835; }
.meeting-detail:nth-child(3n) .meeting-detail-icon { background: #e1f6ed; color: #23a68b; }
.meeting-detail summary > span:not(.meeting-detail-icon) { flex: 1; min-width: 0; }
.meeting-detail strong { display: block; font-size: 12px; line-height: 17px; font-weight: 800; overflow-wrap: anywhere; }
.meeting-detail summary > span > span { display: block; margin-top: 3px; font-size: 11px; line-height: 15px; color: var(--color-secondary-text); overflow-wrap: anywhere; }
.meeting-detail .chevron { position: absolute; right: 8px; top: 34px; width: 5px; height: 5px; transform: rotate(-45deg); margin: 0; }
.meeting-detail[open] { grid-column: 1/-1; }
.meeting-detail > p { padding: 0 14px 14px; font-size: 14px; line-height: 21px; color: var(--color-secondary-text); overflow-wrap: anywhere; white-space: pre-wrap; }
.detail-wide { grid-column: 1/-1; }
.meeting-detail:last-child:nth-child(odd) { grid-column: 1/-1; }
.attendee-empty-copy { display: flex; align-items: flex-start; gap: 12px; }
.attendee-empty-copy h2 { font-size: 15px; line-height: 21px; }
.attendee-empty-copy p { font-size: 12px; line-height: 18px; margin-top: 4px; }
.invite-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.invite-actions .event-button { font-size: 11px; line-height: 16px; padding: 9px 7px; gap: 5px; }
.invite-actions .form-icon { width: 18px; height: 18px; flex-basis: 18px; }
.meeting-attendees { display: flex; align-items: center; gap: 15px; margin-top: 10px; }
.meeting-avatars { display: flex; align-items: center; flex-shrink: 0; }
.meeting-avatars img { object-fit: cover; border-radius: 50%; border: 2px solid white; }
.meeting-avatars img + img { margin-left: -6px; }
.attendee-extra { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 12px; font-weight: 700; background: #eee0fb; }
.meeting-attendees p { padding-left: 14px; border-left: 1px solid #ded1ec; font-size: 12px; line-height: 18px; }
.meeting-chat { display: grid; grid-template-columns: 36px minmax(0, 1fr) 116px; gap: 8px; align-items: center; padding: 12px 10px; }
.meeting-chat h2 { font-size: 12px; line-height: 16px; overflow-wrap: anywhere; }
.meeting-chat p { margin-top: 3px; font-size: 10px; line-height: 14px; }
.meeting-chat > .meeting-detail-icon { width: 36px; height: 36px; border-radius: 11px; }
.meeting-chat-copy { min-width: 0; padding-left: 8px; border-left: 1px solid #dfd0ee; }
.meeting-chat-action { min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.meeting-chat-action .event-button { min-height: 32px; padding: 6px; font-size: 10px; line-height: 14px; gap: 4px; width: 100%; }
.meeting-chat-action .event-button .form-icon { width: 15px; height: 15px; flex-basis: 15px; }
.meeting-chat-action .event-button > span { white-space: nowrap; }
.meeting-chat-action small { text-align: center; font-size: 9px; line-height: 13px; color: var(--color-secondary-text); }
.meeting-chat .chat-disabled { cursor: not-allowed; opacity: .6; }
.owner-actions { display: flex; flex-direction: column; padding-block: 4px; }
.owner-actions .event-button { justify-content: flex-start; text-align: left; padding-inline: 0; border-radius: 0; min-height: 46px; font-size: 13px; font-weight: 500; }
.owner-actions .event-button + .event-button { border-top: 1px solid #eee6f6; }
.owner-actions .form-icon { color: var(--color-secondary-text); }
.owner-actions .danger-action, .danger-action .form-icon { color: #c34950; }
.meeting-bottom-action { margin-top: 7px; font-size: 15px; }
.preview-footer { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding-top: 7px; }
.preview-footer .event-button { padding-inline: 9px; font-size: 12px; }
.local-plan-note { text-align: center; color: var(--color-text-muted); font-size: 11px; line-height: 16px; }
.rsvp-button { position: relative; flex-direction: column; gap: 2px; min-height: 60px; padding: 8px 12px; box-shadow: 0 7px 18px rgb(132 65 214 / 16%); background: linear-gradient(165deg, #bd86f2, #8841d7); }
.rsvp-button > .form-icon { position: absolute; top: 11px; left: calc(50% - 54px); width: 23px; height: 23px; }
.rsvp-button > span { display: flex; align-items: center; flex-direction: column; gap: 1px; width: 100%; }
.rsvp-button strong { font-size: 18px; line-height: 25px; padding-left: 23px; }
.rsvp-button small { font-weight: 500; font-size: 11.5px; line-height: 16px; }
.joined-banner { gap: 9px; min-height: 56px; padding: 11px 12px; border: 1px solid white; background: linear-gradient(100deg, #c9f0e5, #e3f9f3, #c9f0e5); }
.joined-banner > .form-icon { width: 29px; height: 29px; flex-basis: 29px; background: linear-gradient(145deg, #74dfbf, #0cae7f); box-shadow: 0 2px 5px rgb(18 174 133 / 14%); }
.joined-banner > div { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; flex: 1; min-width: 0; gap: 9px; }
.joined-banner h2 { font-size: 14px; line-height: 20px; }
.joined-banner p { font-size: 11px; line-height: 16px; margin: 0; border-left: 1px solid #a9dbd0; padding-left: 10px; }
.event-text-button { border: 0; background: transparent; color: #9554db; text-decoration: none; text-align: center; font-family: var(--font-family); font-weight: 700; font-size: 12px; line-height: 18px; min-height: 32px; padding: 6px; }
.cancel-rsvp { align-self: center; margin-top: -10px; }
.meeting-notice { position: sticky; bottom: 14px; z-index: 4; padding: 12px; border-radius: 16px; background: var(--color-text-primary); color: white; font-size: 13px; line-height: 19px; text-align: center; }
.meeting-dialog { width: min(calc(100% - 24px), 366px); max-height: calc(100dvh - 32px); overflow-y: auto; border: 1px solid white; border-radius: 26px; padding: 20px; color: var(--color-text-primary); background: var(--color-background); }
.meeting-dialog::backdrop { background: rgb(45 28 78 / 32%); }
.meeting-dialog h2 { font-size: 21px; line-height: 29px; margin: 0; }
.meeting-dialog header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.meeting-dialog form { display: flex; flex-direction: column; gap: 16px; }
.meeting-dialog label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.meeting-dialog input { width: 100%; min-width: 0; height: 46px; border: 1px solid #e3d5ee; border-radius: 20px; background: white; padding: 10px 12px; font-family: var(--font-family); font-size: 16px; color: var(--color-text-primary); }
.meeting-dialog p { font-size: 13px; line-height: 20px; color: var(--color-secondary-text); }
.meeting-dialog:not(:has(form)) { display: none; }
.meeting-dialog[open]:not(:has(form)) { display: flex; flex-direction: column; gap: 16px; }
.chat-error { color: #a6324c !important; }
@media (max-width: 374px) {
  .meeting-header h2 { font-size: 19px; }
  .meeting-header:has(p) { gap: 7px; }
  .meeting-header p { font-size: 10.5px; }
  .meeting-intro h1 { font-size: 23px; line-height: 31px; }
  .meeting-meta { grid-template-columns: 1fr; gap: 12px; }
  .meeting-meta > div + div { border-left: 0; padding-left: 0; }
  .meeting-detail summary { flex-direction: column; align-items: flex-start; gap: 7px; padding: 12px; }
  .meeting-detail .chevron { top: 26px; right: 12px; }
  .invite-actions { grid-template-columns: 1fr; }
  .meeting-attendees { gap: 8px; }
  .meeting-attendees p { padding-left: 8px; }
  .meeting-chat { grid-template-columns: 30px minmax(0, 1fr) 105px; gap: 6px; padding-inline: 9px; }
  .meeting-chat > .meeting-detail-icon { width: 30px; height: 34px; }
  .meeting-chat h2 { font-size: 11px; }
  .joined-banner > div { gap: 6px; }
  .joined-banner h2 { font-size: 13px; }
  .joined-banner p { font-size: 10.5px; padding-left: 7px; }
}
