:root {
  color-scheme: light;
  --ink: #17123f;
  --ink-soft: #58536f;
  --paper: #faf9ff;
  --surface: rgba(255, 255, 255, .94);
  --surface-soft: #f1effa;
  --line: #dedbea;
  --coral: #ff5c64;
  --coral-dark: #db3948;
  --mint: #45dac2;
  --mint-dark: #087f75;
  --sun: #ffcf58;
  --yes: #168a72;
  --maybe: #be7707;
  --no: #c94453;
  --shadow: 0 22px 70px rgba(28, 20, 72, .13);
  --radius: 26px;
  font-family: Inter, ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); overflow-x: hidden; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: radial-gradient(circle at 15% 7%, #ece9ff 0, transparent 27rem), radial-gradient(circle at 92% 45%, #dffbf6 0, transparent 28rem), var(--paper); overflow-x: hidden; }
body.dialog-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.ambient { position: fixed; z-index: -1; width: 21rem; height: 21rem; border-radius: 50%; filter: blur(64px); opacity: .27; pointer-events: none; }
.ambient-one { top: 8rem; left: -10rem; background: #a794ff; }
.ambient-two { right: -9rem; bottom: 6rem; background: #55e8d1; }

.app-header { position: sticky; z-index: 40; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 74px; padding: max(10px, env(safe-area-inset-top)) clamp(18px, 4vw, 52px) 10px; border-bottom: 1px solid rgba(23, 18, 63, .08); background: rgba(250, 249, 255, .8); backdrop-filter: blur(22px) saturate(150%); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 13px; box-shadow: 0 8px 22px rgba(23, 18, 63, .18); }
.brand span { display: grid; line-height: 1.03; }
.brand b { font-size: 1.05rem; letter-spacing: -.02em; }
.brand small { margin-top: 4px; color: var(--ink-soft); font-weight: 700; font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.icon-button, .account-button { min-height: 42px; border: 1px solid rgba(23, 18, 63, .13); border-radius: 999px; background: rgba(255,255,255,.72); font-weight: 800; text-decoration: none; }
.icon-button { display: grid; width: 42px; place-items: center; cursor: pointer; }
.account-button { display: inline-flex; align-items: center; padding: 0 17px; }

main { min-height: calc(100vh - 74px); }
.center-view { display: grid; min-height: calc(100vh - 74px); padding: 32px 18px; place-items: center; text-align: center; }
.center-view > * { max-width: 650px; }
.loader { width: 42px; height: 42px; margin: 0 auto 17px; border: 4px solid #ded9f5; border-top-color: var(--coral); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.center-view h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -.04em; }
.login-card { width: min(100%, 620px); padding: clamp(28px, 6vw, 58px); border: 1px solid rgba(23,18,63,.1); border-radius: 34px; background: var(--surface); box-shadow: var(--shadow); }
.login-card > img { width: 92px; height: 92px; margin-bottom: 18px; border-radius: 26px; box-shadow: 0 20px 50px rgba(23,18,63,.24); }
.login-card h1 { margin: 8px 0 14px; font-size: clamp(2.1rem, 7vw, 4.4rem); line-height: .98; }
.login-card h1 em, .hero-panel h1 em { color: var(--coral); font-style: normal; }
.login-card > p:not(.eyebrow) { max-width: 500px; margin: 0 auto 24px; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.65; }
.quiet-link { display: block; margin-top: 19px; color: var(--ink-soft); font-weight: 750; }

.app-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 74px); }
.sidebar { position: sticky; top: 74px; align-self: start; height: calc(100vh - 74px); padding: 28px 18px; border-right: 1px solid rgba(23,18,63,.09); background: rgba(248,247,253,.72); overflow-y: auto; }
.profile-line { display: flex; align-items: center; gap: 12px; padding: 0 8px 23px; }
.profile-line > div { min-width: 0; display: grid; }
.profile-line strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-line small { margin-top: 3px; color: var(--ink-soft); font-size: .73rem; }
.avatar { display: grid; flex: 0 0 42px; height: 42px; place-items: center; border-radius: 15px; background: linear-gradient(145deg, var(--coral), #ff918c); color: white; font-weight: 900; box-shadow: 0 9px 22px rgba(255,92,100,.25); }
.sidebar nav { display: grid; gap: 5px; }
.nav-button, .group-nav-button { display: flex; width: 100%; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 14px; background: transparent; text-align: left; font-weight: 800; cursor: pointer; }
.nav-button span { display: grid; width: 25px; place-items: center; font-size: 1.2rem; }
.nav-button:hover, .nav-button.is-active, .group-nav-button:hover, .group-nav-button.is-active { background: #eae7f7; }
.sidebar-groups { margin-top: 30px; }
.sidebar-groups > p { padding: 0 12px; color: #89849c; font-weight: 900; font-size: .67rem; letter-spacing: .12em; text-transform: uppercase; }
.group-nav-button { margin-top: 3px; color: var(--ink-soft); }
.group-nav-button::before { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); content: ""; }

.content-shell { width: 100%; min-width: 0; max-width: 1220px; margin: 0 auto; padding: clamp(24px, 5vw, 64px); }
.page-view { animation: enter .24s ease both; }
@keyframes enter { from { transform: translateY(6px); opacity: 0; } }
.eyebrow { margin: 0 0 10px; color: var(--mint-dark); font-size: .69rem; font-weight: 950; letter-spacing: .16em; text-transform: uppercase; }
.hero-panel, .group-hero { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; overflow: hidden; border-radius: 34px; }
.hero-panel { min-height: 310px; padding: clamp(30px, 6vw, 66px); color: white; background: linear-gradient(130deg, #17123f 0%, #332671 62%, #5142a0 100%); box-shadow: var(--shadow); }
.hero-panel::after { position: absolute; right: -45px; bottom: -86px; width: 310px; height: 310px; border: 58px solid rgba(69,218,194,.21); border-radius: 50%; content: ""; }
.hero-panel > * { position: relative; z-index: 1; }
.hero-panel .eyebrow { color: var(--mint); }
.hero-panel h1 { max-width: 650px; margin: 0; font-size: clamp(2.8rem, 7vw, 6rem); line-height: .87; letter-spacing: -.075em; }
.hero-panel p:not(.eyebrow) { max-width: 520px; margin: 22px 0 0; color: #d9d5f3; font-size: 1.05rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero-panel .hero-actions { justify-content: flex-end; }
.primary-button, .secondary-button, .small-button, .back-button, .segmented-button, .danger-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 20px; border: 0; border-radius: 15px; font-weight: 900; text-decoration: none; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease; }
.primary-button { color: white; background: linear-gradient(135deg, var(--coral), var(--coral-dark)); box-shadow: 0 12px 26px rgba(219,57,72,.23); }
.secondary-button { border: 1px solid var(--line); background: white; }
.hero-panel .secondary-button { border-color: rgba(255,255,255,.23); color: white; background: rgba(255,255,255,.1); }
.small-button { min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.danger-button { color: #a22e3a; background: #fff0f1; }
.primary-button:hover, .secondary-button:hover, .small-button:hover { transform: translateY(-1px); }
.primary-button:disabled, .secondary-button:disabled, .small-button:disabled { transform: none; opacity: .46; cursor: not-allowed; }
.full-button { width: 100%; margin-top: 14px; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 52px 0 20px; }
.section-heading h2 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.35rem); letter-spacing: -.045em; }
.count-pill, .role-pill, .status-pill { display: inline-flex; min-height: 29px; align-items: center; padding: 0 11px; border-radius: 999px; background: #eae7f7; color: var(--ink-soft); font-size: .75rem; font-weight: 850; }
.group-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.group-card, .event-card { position: relative; overflow: hidden; border: 1px solid rgba(23,18,63,.1); border-radius: var(--radius); background: var(--surface); box-shadow: 0 10px 32px rgba(23,18,63,.06); }
.group-card { display: grid; min-height: 210px; padding: 24px; cursor: pointer; }
.group-card:focus-visible, .event-card:focus-visible { outline: 3px solid #6556ae; outline-offset: 3px; }
.group-card::after { position: absolute; right: -32px; bottom: -51px; width: 145px; height: 145px; border: 27px solid var(--card-accent, #ece8ff); border-radius: 50%; content: ""; opacity: .72; }
.group-card.accent-0 { --card-accent: #e8e2ff; }
.group-card.accent-1 { --card-accent: #dcf8f2; }
.group-card.accent-2 { --card-accent: #fff0cb; }
.group-card.accent-3 { --card-accent: #ffe2e6; }
.group-card > * { position: relative; z-index: 1; }
.group-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.group-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 15px; background: var(--card-accent, #ece8ff); font-size: 1.3rem; }
.group-card h3, .event-card h3 { margin: auto 0 8px; font-size: 1.45rem; letter-spacing: -.035em; }
.group-card p, .event-card p { margin: 0; color: var(--ink-soft); line-height: 1.45; }
.group-card-meta { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: .78rem; font-weight: 800; }
.empty-state { display: grid; min-height: 290px; padding: 38px; place-items: center; align-content: center; border: 2px dashed var(--line); border-radius: var(--radius); text-align: center; }
.empty-state > span { font-size: 2.5rem; }
.empty-state h3 { margin: 12px 0 4px; font-size: 1.4rem; }
.empty-state p { max-width: 450px; margin: 0 0 20px; color: var(--ink-soft); line-height: 1.5; }
.empty-state > div { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.empty-state.compact { min-height: 230px; }

.back-button { min-height: 40px; margin: 0 0 24px; padding: 0; background: transparent; color: var(--ink-soft); }
.group-hero { padding: clamp(26px, 5vw, 48px); border: 1px solid rgba(23,18,63,.1); background: rgba(255,255,255,.8); }
.group-hero h1, .event-header h1 { margin: 0 0 8px; font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: .94; letter-spacing: -.065em; overflow-wrap: anywhere; }
.group-hero p:not(.eyebrow), .event-header p:not(.eyebrow) { margin: 0; color: var(--ink-soft); }
.tab-list { display: flex; gap: 6px; margin: 28px 0 18px; padding: 5px; border: 1px solid var(--line); border-radius: 16px; background: #eeecf7; overflow-x: auto; }
.tab { flex: 0 1 150px; min-height: 42px; border: 0; border-radius: 12px; background: transparent; font-weight: 900; cursor: pointer; white-space: nowrap; }
.tab.is-active { background: white; box-shadow: 0 4px 14px rgba(23,18,63,.08); }
.event-list { display: grid; gap: 13px; }
.event-card { display: grid; grid-template-columns: 72px minmax(0,1fr) auto; align-items: center; gap: 18px; padding: 19px; cursor: pointer; }
.date-tile { display: grid; width: 66px; height: 70px; place-items: center; align-content: center; border-radius: 18px; background: #ece9fa; line-height: 1; }
.date-tile b { font-size: 1.6rem; }
.date-tile small { margin-top: 4px; color: var(--ink-soft); font-size: .66rem; font-weight: 900; text-transform: uppercase; }
.event-card h3 { margin: 0 0 4px; }
.event-card-right { display: grid; justify-items: end; gap: 8px; }
.status-pill.open { color: var(--mint-dark); background: #ddf8f2; }
.status-pill.final { color: #704d00; background: #fff0bd; }
.member-list, .activity-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.member-row, .activity-row { display: flex; align-items: center; gap: 13px; min-height: 68px; padding: 12px 17px; border-bottom: 1px solid #ebe9f1; }
.member-row:last-child, .activity-row:last-child { border-bottom: 0; }
.member-row > div, .activity-row > div { min-width: 0; flex: 1; }
.member-row strong, .activity-row strong { display: block; }
.member-row small, .activity-row small { color: var(--ink-soft); }
.member-role-select { width: auto; min-width: 118px; min-height: 39px; padding: 0 32px 0 11px; }

.event-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; margin-bottom: 28px; }
.event-header > div:first-child { min-width: 0; }
.location-line { margin-top: 10px !important; font-weight: 800; }
.panel { margin-top: 18px; padding: clamp(20px, 4vw, 32px); border: 1px solid rgba(23,18,63,.1); border-radius: 30px; background: var(--surface); box-shadow: 0 10px 36px rgba(23,18,63,.055); }
.panel .section-heading { margin: 0 0 20px; }
.slot-list { display: grid; gap: 12px; }
.slot-card { position: relative; display: grid; grid-template-columns: minmax(150px,.9fr) minmax(260px,1.1fr); gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 21px; background: #fbfaff; }
.slot-card.is-best { border-color: #e2ad1d; box-shadow: inset 0 0 0 1px #f9d46c; }
.slot-card.is-confirmed { border-color: var(--mint-dark); background: #f0fffb; }
.best-badge { display: inline-flex; align-items: center; min-height: 25px; width: max-content; padding: 0 9px; border-radius: 999px; color: #6b4800; background: var(--sun); font-size: .68rem; font-weight: 950; }
.slot-date { margin: 8px 0 4px; font-size: 1.15rem; font-weight: 950; }
.slot-totals { color: var(--ink-soft); font-size: .82rem; line-height: 1.5; }
.response-controls { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; align-content: start; }
.segmented-button { min-height: 43px; padding: 0 9px; border: 1px solid var(--line); border-radius: 13px; background: white; font-size: .82rem; }
.segmented-button[data-value="yes"].is-selected { border-color: var(--yes); color: white; background: var(--yes); }
.segmented-button[data-value="maybe"].is-selected { border-color: var(--maybe); color: white; background: var(--maybe); }
.segmented-button[data-value="no"].is-selected { border-color: var(--no); color: white; background: var(--no); }
.guest-control { display: flex; align-items: center; justify-content: space-between; gap: 9px; grid-column: 1 / -1; margin-top: 5px; color: var(--ink-soft); font-size: .8rem; font-weight: 800; }
.guest-control input { width: 80px; min-height: 39px; }
.finalize-button { grid-column: 1 / -1; margin-top: 3px; }
.final-summary { display: grid; gap: 12px; padding: 19px; border-radius: 19px; background: linear-gradient(135deg,#18123f,#40337d); color: white; }
.final-summary strong { font-size: 1.16rem; }
.final-summary small { color: #d9d4f3; }
.task-list { display: grid; gap: 8px; }
.task-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 55px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 15px; }
.task-row.is-done .task-text { text-decoration: line-through; opacity: .58; }
.task-check { width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; }
.task-row.is-done .task-check { border-color: var(--mint-dark); color: white; background: var(--mint-dark); }
.task-text { min-width: 0; }
.task-text strong { display: block; overflow-wrap: anywhere; }
.task-text small { color: var(--ink-soft); }
.task-delete { width: 35px; height: 35px; border: 0; border-radius: 10px; color: #a22e3a; background: transparent; cursor: pointer; }
.empty-copy { color: var(--ink-soft); line-height: 1.5; }

dialog { width: min(calc(100% - 28px), 540px); max-height: min(90vh, 830px); padding: 0; border: 0; border-radius: 30px; background: transparent; box-shadow: var(--shadow); overflow: auto; }
dialog::backdrop { background: rgba(13,9,38,.57); backdrop-filter: blur(8px); }
.dialog-card { position: relative; display: grid; gap: 17px; margin: 0; padding: clamp(25px,5vw,39px); background: white; }
.dialog-card h2 { margin: -4px 36px 2px 0; font-size: clamp(1.7rem,6vw,2.6rem); line-height: 1; letter-spacing: -.05em; }
.dialog-card > p:not(.eyebrow) { margin: 0; color: var(--ink-soft); line-height: 1.55; }
.dialog-close { position: absolute; z-index: 2; top: 17px; right: 17px; display: grid; width: 37px; height: 37px; place-items: center; border: 0; border-radius: 50%; background: #efedf5; font-size: 1.5rem; cursor: pointer; }
.wide-dialog { width: 100%; }
dialog:has(.wide-dialog) { width: min(calc(100% - 28px), 740px); }
.dialog-card label { display: grid; gap: 7px; color: var(--ink-soft); font-size: .82rem; font-weight: 850; }
.dialog-card label > span small { font-weight: 600; }
input, textarea, select { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #cbc7dc; border-radius: 13px; outline: 0; background: white; color: var(--ink); }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: #6556ae; box-shadow: 0 0 0 4px rgba(101,86,174,.12); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
fieldset { min-width: 0; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 17px; }
legend { padding: 0 6px; font-size: .82rem; font-weight: 900; }
.slot-inputs { display: grid; gap: 10px; margin-bottom: 12px; }
.slot-input-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; align-items: end; gap: 8px; }
.remove-slot { display: grid; width: 43px; height: 48px; place-items: center; border: 0; border-radius: 12px; color: #a22e3a; background: #fff0f1; cursor: pointer; }
.invite-code { display: block; padding: 19px; border: 2px dashed #bbb4d7; border-radius: 17px; background: #f7f5fd; text-align: center; font-size: clamp(1.8rem,9vw,3.3rem); font-weight: 950; letter-spacing: .13em; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.dialog-card > small { color: var(--ink-soft); line-height: 1.45; }

.toast { position: fixed; z-index: 100; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 32px); transform: translateX(-50%); padding: 13px 18px; border-radius: 14px; background: var(--ink); color: white; box-shadow: 0 15px 40px rgba(23,18,63,.3); font-weight: 800; text-align: center; }
.toast.is-error { background: #a6303c; }
.mobile-nav { display: none; }

@media (max-width: 880px) {
  .app-layout { display: block; }
  .sidebar { display: none; }
  .content-shell { padding: 22px 18px calc(98px + env(safe-area-inset-bottom)); }
  .mobile-nav { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: max(10px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3,1fr); min-height: 64px; padding: 5px; border: 1px solid rgba(255,255,255,.28); border-radius: 23px; background: rgba(23,18,63,.9); box-shadow: 0 14px 38px rgba(23,18,63,.28); backdrop-filter: blur(19px); }
  .mobile-nav button { display: grid; place-items: center; align-content: center; gap: 1px; border: 0; border-radius: 17px; color: #c8c3e3; background: transparent; font-size: .65rem; font-weight: 850; }
  .mobile-nav button span { font-size: 1.3rem; line-height: 1; }
  .mobile-nav button.is-active { color: white; background: rgba(255,255,255,.13); }
  .hero-panel { min-height: 370px; align-items: flex-start; flex-direction: column; }
  .hero-panel .hero-actions { justify-content: flex-start; }
  .group-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .app-header { min-height: 65px; padding-inline: 14px; }
  .brand img { width: 39px; height: 39px; border-radius: 12px; }
  .brand b { font-size: .96rem; }
  .account-button { min-width: 0; max-width: min(42vw, 160px); min-height: 39px; padding: 0 13px; overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
  .icon-button { width: 39px; min-height: 39px; }
  main { min-height: calc(100vh - 65px); }
  .content-shell { padding: 16px 13px calc(93px + env(safe-area-inset-bottom)); }
  .hero-panel { min-height: 355px; padding: 28px 23px; border-radius: 27px; }
  .hero-panel h1 { font-size: clamp(2.85rem, 16vw, 4.25rem); }
  .hero-panel p:not(.eyebrow) { margin-top: 17px; font-size: .93rem; }
  .hero-panel .hero-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .hero-panel .primary-button, .hero-panel .secondary-button { min-width: 0; padding: 0 10px; font-size: .77rem; }
  .section-heading { margin-top: 37px; }
  .section-heading h2 { font-size: 1.8rem; }
  .group-card { min-height: 180px; padding: 20px; border-radius: 22px; }
  .group-hero, .event-header { align-items: flex-start; flex-direction: column; }
  .group-hero { padding: 26px 21px; border-radius: 25px; }
  .group-hero h1, .event-header h1 { font-size: 2.55rem; }
  .group-hero .hero-actions { width: 100%; }
  .group-hero .hero-actions > * { flex: 1; padding: 0 9px; font-size: .8rem; }
  .tab-list { margin-top: 19px; }
  .tab { flex-basis: 120px; }
  .event-card { grid-template-columns: 58px minmax(0,1fr); gap: 13px; padding: 14px; }
  .date-tile { width: 56px; height: 61px; border-radius: 15px; }
  .event-card-right { grid-column: 2; justify-items: start; }
  .member-row { flex-wrap: wrap; }
  .member-role-select { margin-left: 54px; }
  .event-header { margin-bottom: 18px; }
  .event-header .hero-actions { width: 100%; }
  .panel { padding: 18px 14px; border-radius: 23px; }
  .panel .section-heading { align-items: flex-start; }
  .slot-card { grid-template-columns: 1fr; gap: 13px; padding: 14px; border-radius: 17px; }
  .response-controls { gap: 5px; }
  .segmented-button { padding: 0 4px; font-size: .73rem; }
  .form-grid { grid-template-columns: 1fr; }
  .slot-input-row { grid-template-columns: 1fr auto; }
  .slot-input-row label:nth-child(2) { grid-column: 1; }
  .slot-input-row .remove-slot { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
  .dialog-actions { grid-template-columns: 1fr; }
  dialog { width: calc(100% - 18px); max-height: calc(100vh - 18px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); border-radius: 24px; }
  .dialog-card { padding: 25px 20px; }
  .invite-code { letter-spacing: .09em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
