@font-face {
  font-family: Manrope;
  src: url('/juntadas-ui/assets/manrope-latin-v1.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url('/juntadas-ui/assets/dm-sans-latin-v1.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #050505;
  --surface: #13161b;
  --raised: #1c2027;
  --control: #232832;
  --ink: #f7f7f4;
  --color-ink: #111318;
  --muted: #b7bdc8;
  --line: #ffffff25;
  --blue: #a1c3f6;
  --lilac: #c8b6ff;
  --coral: #ffad94;
  --lime: #d8ed8d;
  --sage: #8cdacb;
  --yellow: #f3dc82;
  --pink: #f3b8d0;
  --display: Manrope, sans-serif;
  --body: "DM Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--black); color: var(--ink); font: 15px/1.45 var(--body); }
button, input, select, textarea { color: inherit; font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
h1, h2, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }
h1, h2 { font-family: var(--display); letter-spacing: -.045em; word-spacing: .045em; }
small { font-size: 12px; }
[hidden] { display: none !important; }

.wrap { width: min(1200px, calc(100% - 28px)); margin-inline: auto; }
.mast { border-bottom: 1px solid var(--line); }
.mast-inner { min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.brand { display: inline-flex; align-items: center; gap: 5px; font: 800 clamp(19px, 5vw, 24px)/1 var(--display); letter-spacing: -.075em; white-space: nowrap; }
.brand-symbol { width: 19px; height: 19px; color: var(--blue); }
.brand-section { display: none; }
.mast nav { display: flex; align-items: center; gap: 5px; }
.mast nav .quiet, .mast nav .button { font-size: 12px; padding-inline: 8px; white-space: nowrap; }
.mast nav .button svg { display: none; width: 15px; height: 15px; }

.button, .icon-button, .quiet, .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  min-height: 44px;
  line-height: 1.16;
}
.button { padding: 11px 16px; border-radius: 12px; font-weight: 800; }
.button svg { flex: none; }
.primary { background: var(--blue); color: var(--color-ink); }
.primary:hover:enabled, a.primary:hover { background: #c4d9fc; }
.primary:disabled { opacity: .65; }
.secondary { background: var(--control); color: var(--ink); }
.secondary:hover { background: #333b48; }
.quiet { padding: 8px 6px; background: transparent; font-size: 14px; font-weight: 800; }
.quiet:hover { color: var(--blue); }
.icon-button { width: 44px; padding: 0; border-radius: 13px; flex: none; background: var(--control); }
.icon-button:hover { background: #333b48; }

#main { padding-bottom: max(38px, env(safe-area-inset-bottom)); }
.breadcrumb { display: flex; align-items: center; gap: 8px; min-height: 47px; font-size: 13px; color: var(--muted); }
.breadcrumb button { background: none; border: 0; color: var(--blue); padding: 8px 0; min-height: 44px; font-weight: 800; }
.breadcrumb button:hover { text-decoration: underline; text-underline-offset: 3px; }
.dashboard-top, .dashboard-bottom { display: grid; gap: 10px; }
.dashboard-bottom { margin-top: 10px; }

.hero {
  --accent: var(--coral);
  --hero-bg: #24171a;
  background: var(--hero-bg);
  color: var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(27%, 122px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 228px;
  border-radius: 20px;
  border: 1px solid var(--line);
}
.hero.cumple { --accent: var(--pink); --hero-bg: #271822; }
.hero.previa { --accent: var(--lilac); --hero-bg: #221a36; }
.hero.escapada { --accent: var(--sage); --hero-bg: #122726; }
.hero.otro { --accent: var(--blue); --hero-bg: #192437; }
.hero-content { position: relative; z-index: 1; padding: 18px 0 18px 16px; align-self: center; min-width: 0; }
.hero-labels { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.category { display: inline-flex; background: var(--accent); color: var(--color-ink); border-radius: 999px; padding: 4px 9px; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.private { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #e0dce1; }
.private svg { width: 14px; height: 14px; }
.hero h1 { font-size: clamp(31px, 9vw, 48px); line-height: .99; font-weight: 800; letter-spacing: -.053em; margin: 11px 0 10px; overflow-wrap: anywhere; text-wrap: balance; }
.description { max-width: 37ch; color: #e3dce3; font-size: 14px; margin-bottom: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.details { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; font-weight: 650; }
.details span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.details svg { width: 16px; height: 16px; flex: none; color: var(--accent); }
.hero-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.hero-actions .button { padding-inline: 10px; font-size: 12px; }
.hero-actions svg { width: 15px; height: 15px; }
.hero-edit { border: 1px solid #ffffff65; background: #ffffff0a; }
.hero-edit:hover { background: #ffffff25; }

.location-banner {
  display: grid;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.location-info { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.location-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--sage); background: #213333; }
.location-info h2 { color: var(--sage); font-size: 13px; font-weight: 800; }
.location-address { font-size: 18px; line-height: 1.24; font-weight: 800; overflow-wrap: anywhere; }
.location-updated { margin-top: 5px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.location-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.location-actions:empty { display: none; }
.location-actions .button { min-height: 44px; padding-inline: 14px; }
.location-maps { color: var(--color-ink); background: var(--sage); }
.location-maps:hover { background: #b3e9de; color: var(--color-ink); }
.address-field { display: grid; min-width: 0; gap: 5px; }
.address-status { color: var(--muted); font-size: 13px; }
.address-options { list-style: none; display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.address-options li + li { border-top: 1px solid var(--line); }
.address-options button { display: block; width: 100%; min-height: 44px; padding: 8px 10px; text-align: left; background: transparent; border: 0; overflow-wrap: anywhere; }
.address-options button:hover { background: var(--raised); }

.cover-art { position: relative; display: grid; place-items: center; min-width: 0; }
.cover-art::before {
  content: "";
  position: absolute;
  inset: -35% -90%;
  z-index: -1;
  background: repeating-radial-gradient(ellipse, transparent 0 15px, color-mix(in srgb, var(--accent) 28%, transparent) 16px 17px, transparent 18px 29px);
  mask-image: radial-gradient(ellipse, black, transparent 65%);
}
.ticket {
  width: 79%;
  max-width: 220px;
  aspect-ratio: .79;
  transform: translate(-8%, -10%) rotate(10deg);
  background: var(--accent);
  color: var(--color-ink);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  box-shadow: 5px 7px #0006;
  position: relative;
  padding: 8px 5px;
}
.ticket::before { content: ""; position: absolute; inset: 4px; border: 1px solid currentColor; opacity: .45; pointer-events: none; }
.ticket-type { font-size: 8px; letter-spacing: .08em; margin-top: 4px; text-transform: uppercase; text-align: center; font-weight: 900; }
.ticket-edge { width: 85%; height: 5px; background: radial-gradient(circle, currentColor 1px, transparent 1.4px) 0 center/7px 6px repeat-x; opacity: .64; }
.ticket img { width: 110%; height: 100%; object-fit: contain; filter: drop-shadow(2px 5px 0 #0002); transform: rotate(-17deg); }
.ticket-mark { font: 800 clamp(33px, 10vw, 77px)/1 var(--display); }

.panel { background: var(--surface); border: 1px solid var(--line); padding: 15px; border-radius: 18px; min-width: 0; display: flex; flex-direction: column; }
.panel-heading { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-bottom: 13px; }
.panel-heading h2 { font-size: 22px; font-weight: 800; line-height: 1.1; }
.panel-heading p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.section-icon { width: 41px; height: 41px; border-radius: 12px; display: grid; place-items: center; color: var(--color-ink); }
.section-icon.people { background: var(--lilac); }
.section-icon.tasks { background: var(--coral); }
.section-icon.expenses { background: var(--yellow); }
.section-icon.chat { background: var(--blue); }

.people-list li, .item-list li { display: grid; align-items: center; gap: 8px; min-height: 44px; padding-block: 4px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.people-list li { grid-template-columns: auto minmax(0, 1fr) auto; }
.people-list li:last-child, .item-list li:last-child { border-bottom: 0; }
.people-list strong, .item-list strong, .item-list b { font-size: 14px; }
.people-list small, .expense-row small, .plan-option small { color: var(--muted); }
.people-list small { font-weight: 400; }
.avatar { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: var(--lilac); color: var(--color-ink); font-weight: 850; font-size: 13px; flex: none; }
.avatar[data-tone="1"] { background: var(--pink); }
.avatar[data-tone="2"] { background: var(--blue); }
.avatar[data-tone="3"] { background: var(--yellow); }
.avatar.mine { background: var(--sage); }
.status, .pill { border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.status.yes, .pill[aria-pressed="true"] { background: var(--sage); color: var(--color-ink); }
.status.pending, .pill { background: var(--control); color: #e5e8ee; }
.status.no { background: #47242d; color: #ffd3dd; }
.pill:hover:enabled { box-shadow: inset 0 0 0 1px currentColor; }
.rsvp { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 8px; }
.rsvp span { display: block; font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.rsvp div { display: flex; flex-wrap: wrap; gap: 5px; }
.rsvp .pill { flex: 1; }
.item-list { min-width: 0; }
.checklist-list .task-row { grid-template-columns: 44px minmax(0, 1fr); gap: 6px; padding-block: 4px; }
.task-detail { display: grid; justify-items: start; gap: 3px; min-width: 0; }
.item-trigger { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 46px; padding: 7px 5px; border: 0; border-radius: 9px; background: transparent; text-align: left; overflow-wrap: anywhere; }
.item-trigger:hover { background: var(--raised); }
.item-trigger > span:first-child { flex: 1; min-width: 0; }
.row-note { display: inline-flex; color: var(--blue); flex: none; }
.row-note svg { width: 16px; height: 16px; }
.item-note-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.checklist-shuffle { align-self: flex-start; padding-inline: 0; color: var(--blue); }
.checklist-shuffle svg { width: 16px; height: 16px; }
.panel-actions { display: grid; gap: 8px; margin-top: auto; padding-top: 10px; }
.checklist-add, .expense-add { width: 100%; min-height: 48px; color: var(--color-ink); }
.checklist-add { background: var(--sage); }
.checklist-add:hover { background: #a9e6d9; }
.expense-add { background: var(--yellow); }
.expense-add:hover { background: #fce99f; }
.expense-switch { display: flex; gap: 2px; padding: 2px; border-radius: 12px; background: var(--control); }
.expense-switch button { display: grid; place-items: center; width: 44px; min-height: 44px; border: 0; border-radius: 10px; padding: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 800; }
.expense-switch button:hover { color: var(--ink); }
.expense-switch button[aria-pressed="true"] { color: var(--color-ink); background: var(--yellow); }
.expense-people li { grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; padding-block: 8px; }
.expense-person { display: grid; gap: 3px; }
.expense-person small { color: var(--muted); }
.expense-person .recovers { color: var(--sage); }
.expense-person .owes { color: var(--coral); }
.expense-info { background: transparent; color: var(--muted); }
.expense-info:hover { color: var(--ink); }
.person-expense-detail li, .person-expense-total { grid-template-columns: minmax(0, 1fr) auto; }
.person-expense-total { display: grid; align-items: center; gap: 8px; padding: 12px; border-radius: 10px; background: var(--raised); }
.person-expense-total b { color: var(--yellow); }
.item-delete { margin-top: 12px; }
.item-delete > summary { display: flex; width: 100%; min-height: 44px; color: var(--coral); cursor: pointer; list-style: none; }
.item-delete > summary::-webkit-details-marker { display: none; }
.item-delete form { margin-top: 12px; }
.item-delete .danger { color: #200d08; background: var(--coral); }
.item-delete .danger:hover { background: #ffc0ad; }
.expense-row { grid-template-columns: minmax(0, 1fr); }
.expense-row small, .plan-option small { display: block; }
.expense-row b { white-space: nowrap; }

.checkbox { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--color-ink); padding: 0; position: relative; isolation: isolate; }
.checkbox::before { content: ""; position: absolute; width: 22px; height: 22px; border: 1px solid #8594a6; border-radius: 6px; z-index: -1; }
.checkbox[aria-pressed="true"] { color: var(--ink); }
.checkbox[aria-pressed="true"]::before { background: #333b48; border-color: #7a8696; }
.task-paid .checkbox[aria-pressed="true"] { color: var(--color-ink); }
.task-paid .checkbox[aria-pressed="true"]::before { background: var(--sage); border-color: var(--sage); }
.checkbox:disabled { opacity: .5; }
.checkbox svg, .panel-link svg, .remove svg { width: 16px; height: 16px; }
.done { text-decoration: line-through; color: var(--muted); }
.task-person { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 36px; padding: 3px 8px; border: 0; border-radius: 14px; background: var(--control); color: var(--muted); font-size: 12px; font-weight: 750; text-align: left; overflow-wrap: anywhere; }
.task-person .avatar { width: 23px; height: 23px; font-size: 11px; }
.panel-link { align-self: flex-start; margin-top: auto; padding-inline: 0; color: var(--blue); }
.panel-link:hover { text-decoration: underline; }
.remove { border: 0; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: transparent; color: var(--muted); border-radius: 8px; }
.remove:hover { background: #47242d; color: #ffd3dd; }

.messages { max-height: 280px; overflow: auto; padding-bottom: 7px; min-height: 66px; }
.message { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 7px; }
.message > div { background: var(--raised); border-radius: 3px 11px 11px 11px; padding: 7px 9px; min-width: 0; overflow-wrap: anywhere; }
.message strong { font-size: 12px; color: var(--blue); }
.message p { font-size: 14px; white-space: pre-wrap; }
.chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; margin-top: auto; }
.chat-form input { min-width: 0; }
.send { background: var(--blue); color: var(--color-ink); }
.send:hover { background: #c4d9fc; }
.empty, .loading { color: var(--muted); font-size: 14px; padding: 7px 0 10px; }
.loading { margin-top: 22px; }

dialog {
  width: 100%;
  max-width: none;
  max-height: calc(100dvh - 24px);
  inset: auto 0 0;
  margin: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding: 16px;
  border: 1px solid #ffffff36;
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: var(--surface);
  color: var(--ink);
  padding: 16px 16px calc(32px + env(safe-area-inset-bottom));
  box-shadow: 0 -18px 80px #0008;
}
body:has(dialog[open]) { overflow: hidden; }
dialog::backdrop { background: #000b; backdrop-filter: blur(5px); }
.dialog-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 11px; }
.dialog-top h2 { font-size: 26px; line-height: 1.08; padding-top: 5px; }
.dialog-status { padding-top: 10px; color: var(--coral); font-size: 14px; font-weight: 750; }
.dialog-status:empty { display: none; }
.expense-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.expense-history-link { color: var(--muted); min-height: 44px; }
.expense-history-link:hover { color: var(--ink); }
.expense-history-list { display: grid; list-style: none; overflow-wrap: anywhere; }
.expense-history-list:empty { display: none; }
.expense-history-list li { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); }
.expense-history-list span { font-size: 14px; }
.expense-history-list time { color: var(--muted); font-size: 13px; }
.delete-plan-link { color: var(--coral); margin-top: 12px; min-height: 44px; }
.delete-plan-form p { overflow-wrap: anywhere; }
.delete-plan-form .danger { color: #200d08; background: var(--coral); }
.delete-plan-form .danger:hover { background: #ffc0ad; }

.stack { display: grid; gap: 12px; }
.stack > p, .stack small { color: var(--muted); }
.currency-note { font-size: 13px; }
dialog:not(.wizard) form.stack > .button.primary:last-child { margin-top: 10px; }
.person-picker { padding: 0; border: 0; }
.person-picker legend { padding: 0; margin-bottom: 6px; }
.person-options { display: grid; max-height: min(225px, 35dvh); overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.person-option { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 47px; padding: 7px 9px; cursor: pointer; overflow-wrap: anywhere; }
.person-option + .person-option { border-top: 1px solid var(--line); }
.person-option:has(input:checked) { background: var(--raised); }
.person-option:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: -2px; }
.person-option input { grid-column: 3; grid-row: 1; width: 17px; height: 17px; min-height: 0; margin: 0; padding: 0; accent-color: var(--blue); }
.person-option .avatar { width: 27px; height: 27px; }
.person-option .avatar, .person-option > span:last-child { grid-row: 1; }
.person-option small { display: block; font-weight: 500; }
.person-placeholder { background: var(--control); color: var(--muted); }
.cost-note strong { color: var(--ink); }
label { font-weight: 750; font-size: 14px; display: grid; gap: 4px; min-width: 0; }
input, select, textarea { border: 1px solid #ffffff35; background: #0c0e12; caret-color: var(--blue); padding: 9px 10px; min-height: 45px; border-radius: 10px; display: block; width: 100%; min-width: 0; font-size: 16px; }
input::placeholder, textarea::placeholder { color: #a0a7b4; }
textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.tick { display: flex; align-items: center; gap: 8px; font-weight: 650; min-height: 44px; }
.tick input { width: 19px; height: 19px; min-height: 0; flex: none; accent-color: var(--blue); }
.share-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.share-actions .button { text-align: center; padding-inline: 8px; }
.email-form { border-top: 1px solid var(--line); padding-top: 10px; }
#invite-result:empty { display: none; }
.plan-option { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; text-align: left; padding: 9px 11px; gap: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--raised); overflow-wrap: anywhere; }
.plan-option:hover { background: var(--control); }
.plan-option svg { flex: none; }
fieldset { border: 1px solid var(--line); border-radius: 9px; display: grid; gap: 3px; min-width: 0; }
legend { font-weight: 750; font-size: 13px; }
.settlement-form { gap: 18px; }
.settlement-summary { background: var(--raised); padding: 4px 12px; border: 1px solid var(--line); border-radius: 12px; }
.settlement-summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 0; font-weight: 750; }
.settlement-summary > div + div { border-top: 1px solid var(--line); }
.settlement-summary strong { font: 800 clamp(16px, 4.4vw, 21px)/1 var(--display); text-align: right; white-space: nowrap; }
.settlement-summary > p { color: var(--muted); padding-bottom: 8px; font-size: 13px; overflow-wrap: anywhere; }
.settlement-people { display: grid; gap: 0; padding: 0; border: 0; }
.settlement-people legend { padding: 0; margin-bottom: 6px; font-size: 14px; }
.settlement-scope { color: var(--muted); font-size: 13px; margin-block: 0 7px; }
.settlement-person { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px; padding: 8px 2px; cursor: pointer; }
.settlement-person + .settlement-person { border-top: 1px solid var(--line); }
.settlement-person:has(input:disabled) { cursor: default; }
.settlement-person input { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 3px 0 0; accent-color: var(--blue); }
.settlement-person-body { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.settlement-person-body > strong { font-size: 16px; line-height: 1.25; }
.settlement-person-share { color: var(--sage); }
.settlement-person-paid { color: var(--coral); }
.settlement-payments { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.settlement-payments h3 { font: 800 17px/1.2 var(--display); margin: 0 0 6px; }
.settlement-payments #split-result { color: var(--muted); }
.settlement-share { display: grid; gap: 4px; text-align: center; }
.settlement-share .button { min-height: 48px; }
.settlement-share .quiet { color: var(--blue); }
.settlement-share-status { min-height: 1em; color: var(--muted); font-size: 13px; }
.settlement-share-status:empty { display: none; }
.settlement-balanced { color: var(--sage); font-weight: 750; }
.transfers li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 6px 0; align-items: start; overflow-wrap: anywhere; }
.transfers li + li { border-top: 1px solid var(--line); }
.transfers strong { color: var(--ink); white-space: nowrap; }
.invite-preview { margin: 16px auto 0; max-width: 820px; }
.invite-preview .hero-content { grid-column: 1/-1; padding-right: 16px; z-index: 2; }
.invite-preview .hero-content h1 { max-width: 12ch; }
.invite-preview .cover-art { grid-column: 2; grid-row: 1; align-self: start; padding-top: 29px; opacity: .9; }
.join-form { max-width: 420px; margin-top: 14px; }
.join-form .form-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.join-form .button { padding-inline: 8px; text-align: center; }
.unavailable { margin-top: 22px; }
.unavailable .button { margin-top: 12px; align-self: start; }
.toast { position: fixed; z-index: 3; bottom: max(14px, env(safe-area-inset-bottom)); right: 14px; max-width: calc(100% - 28px); background: var(--blue); color: var(--color-ink); padding: 10px 13px; border-radius: 11px; box-shadow: 0 6px 20px #0007; }
.toast:empty { visibility: hidden; }

@media (min-width: 360px) {
  .mast nav .button svg { display: block; }
}

@media (min-width: 540px) {
  .wrap { width: min(1200px, calc(100% - 48px)); }
  .mast-inner { min-height: 72px; gap: 14px; }
  .brand { font-size: 26px; gap: 7px; }
  .brand-symbol { width: 24px; height: 24px; }
  .brand-section { display: inline; font: 750 13px/1 var(--body); letter-spacing: 0; border-left: 1px solid var(--line); margin-left: 5px; padding-left: 12px; color: var(--muted); }
  .mast nav { gap: 8px; }
  .mast nav .quiet, .mast nav .button { font-size: 14px; padding-inline: 13px; }
  .dashboard-top, .dashboard-bottom { gap: 14px; }
  .dashboard-bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
  #chat { grid-column: 1/-1; }
  .hero { grid-template-columns: minmax(0, 1fr) 32%; min-height: 280px; }
  .hero-content { padding: 24px 0 24px 24px; }
  .hero h1 { font-size: clamp(44px, 7vw, 73px); }
  .description { font-size: 15px; }
  .hero-actions .button { padding-inline: 13px; font-size: 14px; }
  .ticket { padding: 13px 8px; transform: translateX(-8%) rotate(10deg); }
  .ticket::before { inset: 7px; }
  .ticket-type { font-size: 12px; }
  .ticket-mark { font-size: clamp(65px, 11vw, 140px); }
  .panel { padding: 17px; }
  dialog { width: min(465px, calc(100% - 38px)); max-height: calc(100dvh - 36px); inset: 0; margin: auto; border-bottom: 1px solid #ffffff36; border-radius: 23px; padding: 22px; box-shadow: 0 18px 80px #0009; }
  .invite-preview { margin-top: 32px; }
  .invite-preview .hero-content { grid-column: 1; padding-right: 0; }
  .invite-preview .cover-art { align-self: stretch; padding-top: 0; opacity: 1; }
  .rsvp .pill { flex: 0 0 auto; padding-inline: 14px; }
}

@media (min-width: 870px) {
  .mast-inner { min-height: 80px; }
  .dashboard-top { grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr); }
  .people-panel { grid-column: 2; grid-row: 1 / span 3; }
  .location-banner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 16px 20px; }
  .location-actions { justify-content: flex-end; }
  .people-list { overflow: auto; max-height: 320px; }
  .rsvp { margin-top: auto; }
  .dashboard-bottom { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-bottom .panel { min-height: 215px; }
  #chat { grid-column: auto; }
  .hero-content { padding: 29px 0 29px 30px; }
  .hero h1 { font-size: clamp(45px, 5.4vw, 74px); }
  .hero-actions { margin-top: 19px; }
}

.my-plans-account { display: grid; gap: 3px; padding-bottom: 8px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.my-plans-account p { color: var(--muted); }
.my-plans-account strong { color: var(--ink); }
.my-plans-account .quiet, .my-plan-entry .quiet { justify-self: start; padding-inline: 0; color: var(--blue); }
.my-plan-entry { display: grid; gap: 2px; }
