@charset "UTF-8";

@font-face {
  font-family: "SUIT Variable";
  src: url("/assets/fonts/SUIT-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jua";
  src: url("/assets/fonts/Jua-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Shared identity: white, electric blue, and quiet pale surfaces. */
:root {
  font-family: "SUIT Variable", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: #10203F;
  background: #FFFFFF;
  color-scheme: light;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --paper: #FFFFFF;
  --surface: #F7F9FF;
  --surface-raised: #F0F4FF;
  --ink: #10203F;
  --muted: #52617F;
  --accent: #0000FF;
  --line: #D8E2F5;
  --brand: #0000FF;
  --primary: #0000FF;
  --primary-hover: #E7EEFF;
  --orange: var(--primary);
  --orange-hover: var(--primary-hover);
  --focus: #0000FF;
  --danger: #A91E43;
  --radius: 20px;
  --radius-control: 14px;
  --radius-dialog: 22px;
  --space: 8px;
  --font-rounded: "Jua", "SUIT Variable", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; font-size: 15px; line-height: 1.65; font-weight: 400; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { color: inherit; border: 0; background: none; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { outline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); }
input, textarea, select { min-width: 0; }
input::placeholder, textarea::placeholder { color: #5D6B87; opacity: 1; }
input[type=search]::-webkit-search-cancel-button { cursor: pointer; }
input[type=checkbox] { accent-color: var(--primary); }
select option { background: var(--surface-raised); color: var(--ink); }
svg { display: block; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
.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; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 12px 18px; background: var(--ink); color: var(--paper); z-index: 100; transform: translateY(-160%); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.page-width { width: 100%; max-width: 1248px; padding-inline: 40px; margin-inline: auto; }

/* Navigation and a compact introduction keep the map close to the first fold. */
.site-header { height: 88px; border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 48px; }
.brand { font-family: var(--font-rounded); display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: 36px; font-weight: 400; letter-spacing: .3px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; flex: none; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-period { display: none; }
.main-nav { display: flex; align-self: stretch; gap: 32px; }
.nav-button { position: relative; padding: 0 2px; color: var(--muted); font-size: 15px; font-weight: 600; white-space: nowrap; min-height: 48px; }
.nav-button:hover, .nav-button.is-active { color: var(--ink); }
.nav-button.is-active::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; background: var(--primary); border-radius: 3px 3px 0 0; }
.nav-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-left: 4px; padding-inline: 4px; color: var(--accent); background: var(--surface-raised); border: 0; border-radius: 8px; font-size: 12px; }
.user-control { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.user-avatar { display: grid; place-items: center; width: 36px; height: 36px; background: var(--surface-raised); border: 1px solid var(--line); color: var(--accent); border-radius: 50%; font-size: 23px; line-height: 1; }
.user-picker { display: flex; flex-direction: column; gap: 4px; }
.user-picker label { font-size: 11px; color: var(--muted); font-weight: 500; }
.user-picker select { max-width: 112px; padding: 0 12px 0 0; border: 0; background: transparent; color: var(--ink); font-size: 16px; font-weight: 600; min-height: 28px; }
.session-controls { display: flex; align-items: center; gap: 10px; margin-left: auto; min-width: 0; font-size: 13px; }
.session-controls:empty, .session-controls:has(#session-name:empty):has(#login-link[hidden]):has(#logout-button[hidden]) { display: none; }
.session-controls #session-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-controls .button-secondary { font-size: 12px; white-space: nowrap; }
.hero { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px 0; }
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; margin: 0 0 8px; color: var(--muted); }
.little-spark { color: var(--accent); font-size: 15px; display: none; }
.hero h1 { font-size: 40px; letter-spacing: -.8px; line-height: 1.35; margin: 0; font-weight: 650; }
.hero h1 span { color: var(--accent); }
.hero-description { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 8px 0 0; letter-spacing: 0; }
.hero-knot { display: none; width: 112px; height: 112px; object-fit: contain; margin-left: auto; flex: none; }
.button-primary, .button-secondary, .button-danger { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; padding: 12px 20px; border: 1px solid transparent; border-radius: var(--radius-control); font-size: 15px; font-weight: 600; line-height: 1.5; transition: background .16s, border-color .16s; }
.button-primary { color: var(--brand); background: #FFFFFF; border-color: var(--brand); }
.button-primary:hover:not(:disabled) { background: var(--surface-raised); border-color: var(--brand); }
.button-secondary { background: var(--surface-raised); color: var(--ink); border-color: var(--line); }
.button-secondary:hover:not(:disabled) { background: #E7EEFF; border-color: #9AAFE0; }
.button-danger { color: var(--danger); background: #FFF1F4; border-color: #E8B6C3; }
.button-danger:hover:not(:disabled) { background: #FFE6EC; border-color: #CF7B92; }
.button-primary:disabled, .button-secondary:disabled, .button-danger:disabled, .card-action:disabled, .map-locate-button:disabled { background: #EEF1F7; border-color: var(--line); color: #5D6B87; opacity: 1; }
.refresh-button:disabled { color: #5D6B87; }
.hero-cta { flex: none; white-space: nowrap; min-height: 48px; }
.hero-cta .icon { width: 17px; height: 17px; }
.hero-cta .cta-arrow { margin-left: 8px; }

/* Discovery controls. */
.meetups-section { padding-top: 6px; scroll-margin-top: 24px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.section-eyebrow { font-size: 11px; font-weight: 550; color: var(--muted); margin: 0 0 7px; }
.section-heading .section-eyebrow { display: none; }
.section-heading h2 { margin: 0; font-size: 24px; line-height: 1.4; letter-spacing: -.35px; font-weight: 600; }
.search-field { display: flex; align-items: center; gap: 10px; width: 320px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); color: var(--muted); min-height: 48px; }
.search-field .icon { width: 18px; height: 18px; }
.search-field input { width: 100%; padding: 0; border: 0; background: none; color: var(--ink); font-size: 16px; outline: none; line-height: 1.5; }
.search-field:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.search-field kbd { font: 14px monospace; padding: 0 4px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; display: none; }
.filter-bar { margin-top: 16px; padding-bottom: 24px; }
.category-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--muted); white-space: nowrap; font-size: 14px; font-weight: 500; transition: background .16s, color .16s, border-color .16s; }
.filter-chip .icon { width: 16px; height: 16px; }
.filter-chip .all-icon { font-size: 16px; line-height: 1; display: none; }
.filter-chip.is-active { background: #E7EEFF; color: var(--brand); border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.filter-chip:hover:not(.is-active) { background: var(--surface-raised); border-color: #9AAFE0; color: var(--ink); }
.results-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0 16px; }
.result-count { color: var(--muted); font-size: 14px; margin: 0; }
.result-count strong { color: var(--ink); font-weight: 650; }
.results-tools { display: flex; margin-left: auto; align-items: center; gap: 12px; }
.results-tools select { background: transparent; border: 0; color: var(--muted); font-size: 16px; padding: 8px; min-height: 44px; }
.toolbar-divider { width: 1px; height: 15px; background: var(--line); }
.refresh-button { padding: 10px; color: var(--muted); border-radius: 12px; font-size: 13px; min-width: 44px; min-height: 44px; }
.refresh-button .icon { width: 17px; height: 17px; }
.refresh-button:hover { color: var(--accent); background: var(--surface-raised); }

/* Light application map chrome; the map provider's tiles, controls, and attribution stay native. */
.map-panel { border: 1px solid var(--line); background: var(--surface); border-radius: 20px; overflow: hidden; }
.map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.map-region-picker { display: flex; align-items: center; gap: 8px; min-width: 0; }
.map-region-picker > .icon { width: 18px; height: 18px; color: var(--accent); }
.map-region-picker select { padding: 4px 6px 4px 0; border: 0; background: transparent; color: var(--ink); font-size: 16px; font-weight: 600; min-height: 44px; }
.map-area-label { padding-left: 7px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.map-scope-toggle { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; cursor: pointer; min-height: 44px; }
.map-scope-toggle input { width: 16px; height: 16px; margin: 0; }
.map-locate-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; background: var(--surface-raised); font-size: 13px; font-weight: 500; white-space: nowrap; }
.map-locate-button:hover { border-color: #9AAFE0; background: #E7EEFF; }
.map-locate-button .icon { width: 17px; height: 17px; color: var(--accent); }
.map-canvas-wrap, .create-map-wrap { position: relative; isolation: isolate; }
.meetup-map { width: 100%; height: 435px; background: var(--surface-raised); color: var(--ink); color-scheme: light; }
.create-map { width: 100%; height: 240px; background: var(--surface-raised); color: var(--ink); color-scheme: light; }
.map-legend { position: absolute; left: 14px; bottom: 47px; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 8px 12px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; pointer-events: none; }
.map-legend > span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; white-space: nowrap; }
.map-legend-dot { display: inline-block; width: 8px; height: 8px; background: #0000FF; border-radius: 50%; }
.map-legend-dot.is-full { background: #5365A6; }
.map-legend-dot.is-started { background: #52627B; }
.map-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); }
.map-footer p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.map-footer > span { color: var(--accent); font-size: 12px; font-weight: 600; white-space: nowrap; }
.map-pin { appearance: none; -webkit-appearance: none; display: block; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; pointer-events: auto; }
.map-pin-core { display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto; background: var(--primary); color: #FFFFFF; border: 3px solid #FFFFFF; border-radius: 50% 50% 50% 5px; transform: rotate(-45deg); box-shadow: 0 0 0 1px #52617F; font-size: 12px; font-weight: 750; }
.map-pin.status-full .map-pin-core { background: #5365A6; }
.map-pin.status-started .map-pin-core { background: #52627B; }
.map-pin.status-cancelled .map-pin-core { background: #626877; }
.map-pin:hover .map-pin-core { border-color: #0000FF; }
.map-pin:focus-visible { outline: none; }
.map-pin:focus-visible .map-pin-core { outline: 3px solid var(--brand); outline-offset: 3px; box-shadow: 0 0 0 7px #FFFFFF; }
.map-pin-group .map-pin-core { transform: none; border-radius: 50%; font-size: 13px; }
.map-pin-selected { cursor: grab; }
.map-pin-selected:active { cursor: grabbing; }
.meetup-map.is-unavailable, .create-map.is-unavailable { position: relative; display: grid; place-items: center; background: var(--surface-raised); color: var(--muted); color-scheme: light; }
/* Without a map only its notice is shown, so the meetup list moves up. */
.meetup-map.is-unavailable { height: auto; min-height: 140px; }
/* Only phones fold the map (see the 520px query). */
.map-toggle-button { display: none; }
.map-unavailable-message { max-width: 540px; padding: 32px; margin: auto; color: var(--muted); font-size: 14px; line-height: 1.9; text-align: center; }
.map-canvas-wrap:has(.is-unavailable) .map-legend, .create-map-wrap:has(.is-unavailable) .map-center-crosshair { display: none; }
.map-overlap-popup { width: 235px; max-width: calc(100vw - 110px); padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); font-family: "SUIT Variable", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; }
.map-overlap-heading { display: block; margin-bottom: 12px; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.6; }
.map-overlap-list { display: grid; gap: 8px; max-height: 235px; overflow-y: auto; overscroll-behavior: contain; }
.map-overlap-choice { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface-raised); font-family: inherit; font-size: 14px; line-height: 1.65; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.map-overlap-choice::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: #0000FF; }
.map-overlap-choice.status-full::before { background: #5365A6; }
.map-overlap-choice.status-started::before, .map-overlap-choice.status-cancelled::before { background: #52627B; }
.map-overlap-choice:hover { background: #E7EEFF; border-color: #9AAFE0; }
.field-label { color: var(--ink); font-size: 14px; font-weight: 600; }
.create-map-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.map-center-crosshair { position: absolute; z-index: 2; top: 50%; left: 50%; width: 18px; height: 18px; transform: translate(-50%,-50%); border: 2px solid #0000FF; border-radius: 50%; outline: 2px solid #FFFFFF; pointer-events: none; }
.map-center-crosshair::before, .map-center-crosshair::after { content: ""; position: absolute; background: #0000FF; }
.map-center-crosshair::before { width: 2px; height: 24px; top: -5px; left: 6px; }
.map-center-crosshair::after { width: 24px; height: 2px; left: -5px; top: 6px; }
.map-picker-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.map-picker-tools p { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 0; }
.map-picker-tools .button-secondary { flex: none; min-height: 44px; padding: 10px 12px; font-size: 13px; }
.map-picker-tools .icon { width: 16px; height: 16px; }

/* Activity cards use blue and neutral tones; labels carry the category meaning. */
.meetup-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.card { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; transition: border-color .16s; }
.card:hover { border-color: #9AAFE0; }
.card-cover, .detail-cover { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #F0F4FF; color: var(--accent); }
.card-cover { height: 104px; border-bottom: 1px solid var(--line); }
.meetup-cover-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.has-custom-cover .category-label, .has-custom-cover .card-status { z-index: 1; background: #FFFFFF; border: 1px solid var(--line); }
.create-cover-preview-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); height: 160px; }
#create-cover-preview { display: block; width: 100%; height: 100%; object-fit: cover; }
.create-cover-default { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 100%; color: var(--muted); font-size: 14px; }
.create-cover-default .icon { width: 36px; height: 36px; color: var(--brand); }
.create-cover-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.create-cover-tools p { margin: 0; color: var(--muted); font-size: 13px; }
.create-cover-tools .button-secondary { min-height: 44px; }
#create-cover-file { max-width: 100%; font-size: 14px; }
#create-cover-file::file-selector-button { min-height: 36px; margin-right: 12px; padding: 6px 12px; color: var(--ink); background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; font: inherit; cursor: pointer; }
.category-coffee { background: #F0F4FF; color: var(--accent); }
.category-walk { background: #F0F4FF; color: var(--accent); }
.category-food { background: #F0F4FF; color: var(--accent); }
.category-game { background: #F0F4FF; color: var(--accent); }
.category-study { background: #F0F4FF; color: var(--accent); }
.category-social { background: #F0F4FF; color: var(--accent); }
.category-label, .card-status { position: absolute; top: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #F7F9FF; font-size: 11px; line-height: 1.5; font-weight: 500; }
.category-label { left: 16px; }
.category-label .icon { width: 12px; height: 12px; display: none; }
.card-status { right: 16px; color: #173FC4; }
.card-status.status-full { color: #465C91; border-style: solid; }
.card-status.status-started, .card-status.status-cancelled { color: var(--muted); border-color: #D8E2F5; background: #EDF1F8; }
.cover-illustration { position: relative; display: grid; place-items: center; width: 72px; height: 72px; margin-top: 16px; }
.cover-illustration .icon { width: 38px; height: 38px; stroke-width: 1.25; }
.cover-caption { position: absolute; bottom: 12px; left: 0; right: 0; color: inherit; text-align: center; font-size: 7px; letter-spacing: 1.8px; font-weight: 600; opacity: .75; display: none; }
.card-content { padding: 20px; min-width: 0; }
.card-title { margin: 0 0 8px; overflow: hidden; color: var(--ink); font-size: 18px; font-weight: 600; line-height: 1.5; letter-spacing: -.3px; text-overflow: ellipsis; white-space: nowrap; }
.card-title-button { padding: 0; max-width: 100%; font: inherit; color: inherit; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: top; min-height: 32px; }
.card-title-button:hover { color: var(--accent); }
.card-meta { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 4px 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.card-meta .icon { width: 14px; height: 14px; color: #0000FF; }
.card-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta time { color: #324666; }
.card-bottom { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.card-people { display: flex; align-items: center; gap: 8px; min-width: 0; }
.avatars { display: flex; padding-left: 0; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; margin-left: -6px; border: 2px solid var(--surface); border-radius: 50%; background: #E8EEFF; color: #2448A8; font-size: 9px; font-weight: 650; }
.avatar:first-child { margin-left: 0; }
.avatar.avatar-minji { background: #E8EEFF; color: #2448A8; }
.avatar.avatar-jiho { background: #EFEAFF; color: #5C459D; }
.avatar.avatar-sua { background: #E6F4FF; color: #245978; }
.avatar.avatar-doyoon { background: #ECF0FA; color: #415B8E; }
.avatar.avatar-guest { background: #EEF1F7; color: #52617F; }
.card-participants { color: var(--muted); font-size: 12px; white-space: nowrap; }
.card-participants strong { color: var(--ink); font-weight: 650; }
.card-action { display: inline-flex; align-items: center; justify-content: center; gap: 4px; margin-left: auto; padding: 10px 12px; border: 1px solid #CCD9F5; border-radius: 12px; background: #F0F4FF; color: var(--accent); font-size: 13px; font-weight: 500; white-space: nowrap; min-height: 44px; }
.card-action .icon { width: 12px; height: 12px; }
.card-action:hover { background: #E7EEFF; border-color: #9AAFE0; }
.progress-track { display: block; width: 100%; height: 2px; margin-top: 16px; border: 0; border-radius: 3px; background: #D8E2F5; color: var(--accent); overflow: hidden; }
progress.progress-track { appearance: none; -webkit-appearance: none; }
progress.progress-track::-webkit-progress-bar { background: #D8E2F5; border-radius: 3px; }
progress.progress-track::-webkit-progress-value { background: #0000FF; border-radius: 3px; }
progress.progress-track::-moz-progress-bar { background: #0000FF; border-radius: 3px; }
.progress-fill { height: 100%; background: #0000FF; border-radius: 3px; max-width: 100%; }

/* Empty/loading states and quiet application status. */
.state-panel { padding: 48px 24px; border: 1px dashed #BAC9E6; border-radius: 20px; background: var(--surface); color: var(--muted); text-align: center; }
.state-panel h2, .state-panel h3 { margin: 16px 0 10px; color: var(--ink); font-size: 20px; font-weight: 600; }
.state-panel p { margin: 0 0 22px; font-size: 14px; line-height: 1.65; }
.state-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-raised); color: var(--accent); font-size: 26px; }
.state-icon .icon { width: 25px; height: 25px; }
.loading-state { border: 0; background: transparent; padding: 65px 20px; }
.loading-state p { margin: 18px 0 0; }
.loading-spinner { display: block; width: 25px; height: 25px; margin: auto; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.demo-notice { display: flex; align-items: flex-start; gap: 12px; margin: 32px 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.demo-notice p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.demo-label { padding: 2px 6px; border: 1px solid #D8E2F5; border-radius: 6px; background: var(--surface-raised); color: var(--accent); font-size: 11px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line); }
.footer-links { font-size: 13px; color: var(--muted, #52617F); }
.footer-links a { color: inherit; }
.footer-signoff { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 12px; }
.footer-app-icon { display: block; width: 22px; height: 22px; flex: none; object-fit: contain; }
.connection-label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.connection-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #0000FF; }
.connection-label.is-error::before, .connection-label[data-state=offline]::before { background: var(--danger); }

/* Shared dialogs and forms. */
.app-dialog { width: calc(100% - 32px); max-width: 550px; max-height: calc(100dvh - 48px); padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-dialog); background: var(--surface); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 16px 48px rgba(16, 32, 63, .12); }
.app-dialog::backdrop { background: #10203F66; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dialog-heading h2 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.6px; line-height: 1.4; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 12px; border: 1px solid transparent; border-radius: 14px; color: var(--muted); }
.icon-button:hover { color: var(--ink); border-color: var(--line); background: var(--surface-raised); }
.icon-button .icon { width: 20px; height: 20px; }
.dialog-intro { margin: 12px 0 24px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.form-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin-bottom: 24px; }
.form-field > label { color: var(--ink); font-size: 14px; font-weight: 600; }
.required-dot { color: var(--accent); margin-left: 2px; }
.optional-label { color: var(--muted); margin-left: 5px; font-size: 12px; font-weight: 400; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.65; min-height: 48px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent); }
.form-field textarea { resize: vertical; min-height: 92px; max-height: 260px; }
.form-field small { margin-top: -1px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 35px; }
.input-suffix > span { position: absolute; right: 13px; top: 15px; color: var(--muted); font-size: 14px; pointer-events: none; }
.input-suffix input::-webkit-outer-spin-button, .input-suffix input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input-suffix input[type=number] { appearance: textfield; -moz-appearance: textfield; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-footer p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.form-footer .button-primary { white-space: nowrap; }
.error-message { margin: 16px 0; padding: 12px 16px; border: 1px solid #E8B6C3; border-radius: 14px; background: #FFF1F4; color: var(--danger); font-size: 14px; line-height: 1.65; }
.error-message:empty { display: none; }
.notice { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-raised); color: var(--muted); font-size: 14px; line-height: 1.65; }
.notice.error { background: #FFF1F4; color: var(--danger); border-color: #E8B6C3; }
.detail-dialog { padding: 0; max-width: 560px; }
.detail-close { position: absolute; right: 15px; top: 15px; z-index: 5; color: var(--ink); background: var(--surface); border-color: #D8E2F5; }
.detail-cover { height: 136px; border-bottom: 1px solid var(--line); }
.detail-cover .cover-illustration { width: 96px; height: 96px; }
.detail-cover .cover-illustration .icon { width: 48px; height: 48px; }
.detail-cover .category-label { left: 25px; top: 21px; }
.detail-cover .card-status { left: 25px; right: auto; top: auto; bottom: 20px; }
.detail-body, .detail-main { padding: 24px 32px 32px; }
.detail-eyebrow { margin: 0 0 9px; color: var(--accent); font-size: 12px; font-weight: 550; }
.detail-title { margin: 0 0 24px; color: var(--ink); font-size: 28px; font-weight: 600; line-height: 1.4; letter-spacing: -.6px; overflow-wrap: anywhere; }
.detail-meta { display: grid; gap: 12px; margin: 9px 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.detail-meta p { display: flex; align-items: flex-start; gap: 9px; margin: 0; }
.detail-meta .icon { width: 17px; height: 17px; margin-top: 3px; color: var(--accent); }
.detail-meta span { min-width: 0; overflow-wrap: anywhere; }
.detail-meta small { color: var(--muted); font-size: 12px; }
.detail-meta .refresh-button { color: var(--accent); padding: 2px 5px; }
.detail-description { margin: 24px 0; padding: 24px 0; border-block: 1px solid var(--line); color: #324666; font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.detail-description h3, .detail-members h3 { margin: 0 0 12px; color: var(--ink); font-size: 15px; font-weight: 600; }
.detail-description p { margin: 0; white-space: pre-wrap; }
.detail-members h3 span { margin-left: 4px; padding: 2px 6px; border-radius: 4px; background: var(--surface-raised); color: var(--accent); font-size: 11px; }
.member-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.member-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-raised); color: #324666; font-size: 13px; min-height: 44px; }
.member-chip .avatar { width: 24px; height: 24px; margin: 0; border: 0; font-size: 10px; }
.member-chip small { color: var(--muted); font-size: 11px; }
.member-chip.is-me { background: #F0F4FF; border-color: #A6B8E8; color: var(--accent); }
.detail-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.detail-actions > button { width: 100%; min-height: 48px; }
.detail-actions .notice { margin: 0 0 4px; padding: 16px; }
.confirm-dialog { max-width: 380px; padding: 32px; text-align: center; }
.confirm-icon { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 18px; border: 1px solid #CCD9F5; border-radius: 14px; background: var(--surface-raised); color: var(--accent); }
.confirm-icon .icon { width: 25px; height: 25px; }
.confirm-dialog h2 { margin: 0 0 12px; font-size: 24px; font-weight: 600; letter-spacing: -.6px; }
.confirm-dialog p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.confirm-actions { display: flex; gap: 12px; margin-top: 24px; }
.confirm-actions button { flex: 1; }
.toast { position: fixed; z-index: 30; bottom: 28px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 16px 20px; border: 1px solid #9AAFE0; border-radius: 16px; background: #F0F4FF; color: var(--ink); font-size: 14px; line-height: 1.65; box-shadow: 0 4px 20px rgba(16, 32, 63, .10); }
.toast.error { background: #FFF1F4; color: var(--danger); border-color: #CF7B92; }

/* Chat keeps the conversation scrollable within the dialog. */
.chat-dialog { max-width: 640px; max-height: calc(100dvh - 36px); padding: 0; overflow: hidden; }
.chat-dialog[open] { display: flex; flex-direction: column; }
.chat-dialog > header, .chat-session-controls, .chat-dialog > .chat-member-list, .chat-toolbar, .chat-join-panel, .chat-error, .chat-form, .chat-footer { flex-shrink: 0; }
.chat-heading { display: flex; justify-content: space-between; gap: 16px; padding: 24px 24px 16px; }
.chat-heading-copy { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chat-heading-copy > div { min-width: 0; }
.chat-heading-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid #D8E2F5; border-radius: 14px; color: var(--accent); background: var(--surface-raised); }
.chat-heading-icon .icon { width: 22px; height: 22px; }
.chat-heading h2 { margin: 0; color: var(--ink); font-size: 22px; font-weight: 600; line-height: 1.4; letter-spacing: -.35px; overflow-wrap: anywhere; }
.chat-heading p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.chat-session-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 0 24px 16px; color: var(--muted); font-size: 13px; }
.chat-session-controls strong { color: var(--accent); }
.chat-session-controls label { display: flex; align-items: center; gap: 8px; }
.chat-session-controls select { padding: 6px 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); color: var(--ink); font-size: 16px; min-height: 40px; }
.chat-member-list { gap: 8px; max-height: 128px; margin: 0; padding: 0 24px 16px; overflow: auto; }
.chat-member-list:empty { display: none; }
.chat-member-list .member-chip { font-size: 13px; }
.chat-member-list .member-chip small { font-size: 11px; }
.chat-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px; border-block: 1px solid var(--line); background: var(--surface-raised); }
.chat-toolbar p { min-width: 0; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.chat-refresh { display: flex; align-items: center; gap: 5px; flex: none; padding: 3px 0; color: var(--accent); font-size: 13px; white-space: nowrap; min-height: 44px; }
.chat-refresh .icon { width: 15px; height: 15px; }
.chat-refresh:hover { color: var(--ink); }
.chat-conversation { position: relative; height: 340px; max-height: 43dvh; min-height: 140px; flex: 1 1 auto; background: #FFFFFF; overflow: hidden; }
.chat-messages { display: flex; flex-direction: column; gap: 24px; height: 100%; padding: 24px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #B3C2E0 transparent; }
.chat-message { display: flex; flex-direction: column; align-items: flex-start; align-self: flex-start; gap: 8px; max-width: 85%; min-width: 0; }
.chat-message.is-mine { align-items: flex-end; align-self: flex-end; }
.chat-message-meta { display: flex; align-items: center; gap: 7px; max-width: 100%; color: var(--muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.chat-message-meta .avatar { width: 22px; height: 22px; margin: 0; border: 0; font-size: 10px; }
.chat-message-meta strong { font-weight: 600; }
.chat-bubble { max-width: 100%; padding: 12px 16px; border: 1px solid #D8E2F5; border-radius: 8px 18px 18px 18px; background: var(--surface-raised); color: var(--ink); font-size: 15px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message.is-mine .chat-bubble { background: #E7EEFF; color: var(--ink); border-color: #BACAF0; border-radius: 18px 8px 18px 18px; }
.chat-time { color: var(--muted); font-size: 12px; line-height: 1.4; }
.chat-message p { margin: 0; }
.chat-empty { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 11px; padding: 28px; text-align: center; pointer-events: none; }
.chat-empty-icon { display: grid; place-items: center; width: 47px; height: 47px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-raised); color: var(--accent); }
.chat-empty-icon .icon { width: 23px; height: 23px; }
.chat-empty h3 { margin: 0; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.5; }
.chat-empty p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.chat-join-panel { padding: 19px 24px; border-top: 1px solid var(--line); background: var(--surface); text-align: center; }
.chat-join-panel p { margin: 0 0 13px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.chat-error { margin: 12px 24px 0; }
.chat-form { padding: 16px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-composer { display: flex; align-items: flex-end; gap: 8px; }
.chat-composer textarea { flex: 1; min-width: 0; min-height: 64px; max-height: 125px; padding: 12px 16px; border: 1px solid #BCCCEB; border-radius: 14px; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.65; resize: none; }
.chat-composer .button-primary { align-self: stretch; flex: none; gap: 6px; min-height: 48px; padding: 12px 16px; }
.chat-composer .button-primary .icon { width: 17px; height: 17px; }
.chat-footer { display: flex; align-items: flex-start; gap: 16px; padding: 0 24px 24px; }
.chat-room-note { flex: 1; min-width: 0; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.chat-leave { flex: none; margin-top: 1px; padding: 10px 0; border-bottom: 0; color: var(--danger); font-size: 13px; line-height: 1.7; white-space: nowrap; min-height: 44px; }
.chat-leave:hover { color: #861332; border-color: #A91E43; }

@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 1440px) { .meetup-map { height: 475px; } }
@media (max-width: 1050px) {
  .page-width { padding-inline: 32px; }
  .header-inner { gap: 32px; }
  .main-nav { gap: 26px; }
  .hero-knot { width: 90px; height: 90px; }
  .hero h1 { font-size: 38px; }
  .meetup-grid { gap: 24px 16px; }
  .card-content { padding: 20px 16px; }
  .card-title { font-size: 18px; }
  .card-participants { font-size: 12px; }
  .card-action { padding: 10px 12px; }
  .card-people { gap: 8px; }
  .avatars .avatar { width: 23px; height: 23px; }
}
@media (max-width: 800px) {
  .page-width { padding-inline: 24px; }
  .header-inner { gap: 26px; }
  .main-nav { gap: 21px; }
  .nav-button { font-size: 14px; }
  .hero { gap: 24px; padding: 24px 0; }
  .hero-knot { display: none; }
  .hero h1 { font-size: 36px; }
  .hero-description { max-width: 360px; font-size: 14px; }
  .hero-cta { padding-inline: 16px; font-size: 14px; }
  .hero-cta .cta-arrow { display: none; }
  .section-heading h2 { font-size: 24px; }
  .search-field { width: 260px; }
  .category-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; margin-bottom: -5px; scrollbar-width: none; }
  .category-filters::-webkit-scrollbar { display: none; }
  .filter-chip { flex: none; padding: 10px 14px; font-size: 14px; }
  .map-toolbar { padding: 12px 16px; gap: 12px; }
  .map-area-label { display: none; }
  .map-scope-toggle { font-size: 12px; }
  .meetup-map { height: 405px; }
  .map-footer { padding: 11px 14px; }
  .map-footer p, .map-footer > span { font-size: 12px; }
  .meetup-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .card-content { padding: 20px; }
  .user-control { gap: 7px; }
  .user-avatar { width: 32px; height: 32px; }
}
@media (max-width: 520px) {
  .page-width { padding-inline: 16px; }
  .brand { font-size: 32px; gap: 8px; }
  .brand-mark { width: 36px; height: 36px; }
  .user-control { gap: 7px; }
  .user-picker label { font-size: 11px; }
  .user-picker select { max-width: 100px; font-size: 16px; }
  .session-controls { font-size: 11px; gap: 7px; }
  .session-controls #session-name { max-width: 70px; }
  .session-controls .button-secondary { padding: 8px; font-size: 11px; }
  .session-controls .refresh-button { padding: 5px; font-size: 11px; }
  /* On phones the meetup cards should start within the first screen. */
  .hero { flex-wrap: wrap; gap: 12px; padding: 16px 0; }
  .hero h1 { font-size: 32px; letter-spacing: -.6px; }
  .hero .eyebrow { font-size: 12px; margin-bottom: 8px; }
  .hero-description { display: none; }
  .hero-cta { min-height: 48px; padding: 12px 16px; }
  .hero-cta .cta-arrow { display: block; margin-left: 8px; }
  .meetups-section { padding-top: 0; }
  .section-heading { display: block; }
  .section-heading .heading-copy { display: none; }
  .search-field { width: 100%; margin: 0; padding: 12px 16px; }
  .search-field input { font-size: 16px; }
  .search-field input::placeholder { font-size: 14px; }
  .search-field kbd { display: none; }
  .filter-bar { margin-top: 16px; margin-right: -16px; padding-bottom: 24px; }
  .category-filters { padding-right: 16px; gap: 8px; }
  .filter-chip { min-height: 44px; }
  .map-panel { border-radius: 18px; }
  .map-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 8px; padding: 12px; }
  .map-region-picker { gap: 5px; }
  .map-region-picker select { padding-right: 4px; font-size: 16px; }
  .map-region-picker > .icon { width: 16px; height: 16px; }
  .map-area-label { display: none; }
  .map-scope-toggle { grid-row: 2; grid-column: 1; gap: 6px; margin-left: 0; font-size: 12px; }
  .map-toggle-button { grid-row: 2; grid-column: 2; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; background: var(--surface-raised); font-size: 13px; font-weight: 500; white-space: nowrap; }
  .map-toggle-button .icon { width: 15px; height: 15px; }
  .map-panel.is-map-collapsed .map-canvas-wrap, .map-panel.is-map-collapsed .map-footer, .map-panel.is-map-collapsed .map-scope-toggle { display: none; }
  .map-panel.is-map-collapsed .map-toggle-button { grid-column: 1/-1; }
  .map-scope-toggle input { width: 15px; height: 15px; }
  .map-locate-button { grid-column: 2; grid-row: 1; min-height: 44px; padding: 10px 12px; }
  .map-locate-button .icon { width: 15px; height: 15px; }
  .meetup-map { height: 240px; }
  .map-legend { left: 8px; bottom: 48px; gap: 8px; padding: 8px; border-radius: 10px; }
  .map-legend > span { font-size: 10px; gap: 5px; }
  .map-legend-dot { width: 7px; height: 7px; }
  .map-footer { display: block; padding: 12px; }
  .map-footer p { font-size: 12px; line-height: 1.65; }
  .map-footer > span { display: block; font-size: 12px; margin-top: 8px; }
  .map-footer > span:empty { display: none; }
  .map-unavailable-message { padding: 25px; font-size: 13px; }
  .results-toolbar { margin: 24px 0 15px; gap: 10px; }
  .result-count { font-size: 13px; }
  .results-tools select { font-size: 16px; }
  .results-tools { gap: 6px; }
  .meetup-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .card { display: grid; grid-template-columns: 88px minmax(0,1fr); border-radius: 18px; }
  .card-cover { height: 100%; min-height: 176px; border-bottom: 0; border-right: 1px solid var(--line); }
  .card .cover-illustration { width: 65px; height: 70px; margin-top: 0; }
  .card .cover-illustration .icon { width: 35px; height: 35px; }
  .card .cover-caption { display: none; }
  .category-label, .card-status { left: 6px; right: auto; max-width: calc(100% - 12px); padding: 4px 6px; font-size: 11px; }
  .category-label { top: 11px; }
  .category-label .icon { display: none; }
  .card-status { top: auto; bottom: 11px; }
  .card-content { padding: 16px; }
  .card-title { margin-bottom: 8px; font-size: 17px; line-height: 1.5; letter-spacing: -.2px; white-space: normal; }
  .card-title-button { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; line-height: 1.5; }
  .card-meta { gap: 6px; margin: 4px 0; font-size: 12px; line-height: 1.65; }
  .card-meta .icon { width: 12px; height: 12px; }
  .card-bottom { gap: 8px; min-height: 44px; margin-top: 12px; padding-top: 12px; }
  .card-people { gap: 6px; }
  .avatars .avatar { width: 21px; height: 21px; margin-left: -7px; font-size: 8px; }
  .avatars .avatar:first-child { margin-left: 0; }
  .card-participants { font-size: 11px; }
  .card-action { gap: 4px; min-height: 44px; padding: 10px; border-radius: 12px; font-size: 12px; }
  .card-action .icon { width: 10px; height: 10px; }
  .progress-track { height: 2px; margin-top: 12px; }
  .demo-notice { display: block; margin-top: 24px; padding: 13px; }
  .demo-label { display: inline-block; margin-bottom: 7px; font-size: 10px; }
  .demo-notice p { font-size: 11px; line-height: 1.8; }
  .site-footer { flex-wrap: wrap; gap: 13px; padding-top: 19px; padding-bottom: 25px; }
  .footer-signoff, .connection-label { font-size: 11px; }
  .footer-app-icon { width: 20px; height: 20px; }
  .app-dialog { max-height: calc(100dvh - 24px); padding: 24px; border-radius: 20px; }
  .dialog-heading h2 { font-size: 24px; }
  .dialog-intro { font-size: 14px; margin-bottom: 24px; }
  .form-field { margin-bottom: 24px; }
  .form-field input, .form-field select, .form-field textarea { padding: 12px; font-size: 16px; }
  .form-field input::placeholder, .form-field textarea::placeholder { font-size: 14px; }
  .form-row { gap: 12px; }
  .input-suffix > span { top: 14px; }
  .form-footer { flex-direction: column; align-items: stretch; gap: 12px; }
  .form-footer p { max-width: none; }
  .form-footer .button-primary { width: 100%; padding: 12px 16px; font-size: 15px; }
  .create-map { height: 215px; }
  .map-picker-tools { display: block; }
  .map-picker-tools p { margin: 0 0 8px; font-size: 12px; line-height: 1.65; }
  .detail-dialog { padding: 0; }
  .detail-cover { height: 120px; }
  .detail-body, .detail-main { padding: 24px; }
  .detail-title { font-size: 24px; }
  .detail-cover .category-label, .detail-cover .card-status { left: 21px; font-size: 11px; }
  .detail-cover .card-status { bottom: 17px; }
  .detail-cover .category-label .icon { display: block; }
  .confirm-dialog { padding: 24px; }
  .toast { bottom: 16px; padding: 12px 16px; font-size: 14px; }
  .state-panel { padding: 44px 15px; }
  .state-panel p { font-size: 14px; }
  .chat-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 0; }
  .chat-heading { gap: 12px; padding: 24px 16px 16px; }
  .chat-heading-copy { gap: 10px; }
  .chat-heading-icon { width: 36px; height: 36px; border-radius: 10px; }
  .chat-heading-icon .icon { width: 20px; height: 20px; }
  .chat-heading h2 { font-size: 20px; }
  .chat-heading p { font-size: 14px; line-height: 1.65; }
  .chat-session-controls { padding: 0 16px 16px; }
  .chat-member-list { max-height: 112px; padding: 0 16px 16px; gap: 8px; }
  .chat-toolbar { padding: 8px 16px; gap: 8px; }
  .chat-conversation { height: 300px; max-height: 40dvh; min-height: 125px; }
  .chat-messages { gap: 24px; padding: 24px 16px; }
  .chat-message { max-width: 90%; }
  .chat-bubble { padding: 12px 14px; }
  .chat-empty { padding: 20px; }
  .chat-empty h3 { font-size: 15px; }
  .chat-join-panel { padding: 16px 17px; }
  .chat-error { margin: 11px 17px 0; }
  .chat-form { padding: 16px; }
  .chat-composer { gap: 8px; }
  .chat-composer textarea { min-height: 72px; padding: 12px; font-size: 16px; }
  .chat-composer textarea::placeholder { font-size: 14px; }
  .chat-composer .button-primary { flex-direction: column; min-width: 64px; gap: 4px; padding: 12px; font-size: 14px; }
  .chat-footer { flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 16px 16px; }
  .chat-leave { align-self: flex-end; }
}
@media (max-width: 359px) {
  .page-width { padding-inline: 16px; }
  .hero h1 { font-size: 32px; }
  .hero-description { font-size: 14px; }
  .filter-bar { margin-right: -16px; }
  .category-filters { padding-right: 16px; }
  .map-area-label { display: none; }
  .meetup-map { height: 330px; }
  .map-legend { gap: 8px; }
  .card { grid-template-columns: 80px minmax(0,1fr); }
  .card-content { padding-inline: 12px; }
  .card-people { gap: 3px; }
  .avatars .avatar:nth-child(n+3) { display: none; }
  .card-action { width: 100%; margin-left: 0; padding-inline: 12px; }
  .card-action .icon { display: none; }
  .category-label, .card-status { left: 5px; max-width: calc(100% - 10px); padding-inline: 5px; }
  .app-dialog { padding: 20px; }
  .form-row { grid-template-columns: minmax(0,1fr); gap: 0; }
  .results-toolbar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .results-tools { align-self: flex-end; }
  .detail-dialog, .chat-dialog { padding: 0; }
  .create-map { height: 200px; }
}
@media (max-height: 620px) {
  .chat-dialog { overflow-y: auto; }
  .chat-conversation { min-height: 150px; flex-shrink: 0; }
  .chat-heading { padding-top: 15px; }
  .chat-member-list { max-height: 49px; }
  .chat-footer { padding-bottom: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Rounded blue outlines are the interface's main typographic voice.
   Reading text, money, input values and conversation content stay solid. */
.brand > span:last-child, .hero h1, .hero h1 span,
.section-heading h2, .dialog-heading h2, .detail-title, .card-title,
.state-panel h2, .state-panel h3, .confirm-dialog h2, .chat-heading h2,
.detail-description h3, .detail-members h3, .chat-empty h3,
.profile-heading h1, .profile-identity h2, .profile-about h3, .profile-photo-editor strong,
.participation-heading h2, .participation-heading h3,
.participation-card > h2, .participation-card > h3, .ballot-member-list legend,
.checkout-brand > span, .checkout-card h1, .checkout-policy h2,
.main-nav .nav-button, .filter-chip, .category-label,
.button-primary, .button-secondary, .card-action, .map-locate-button,
.field-label, .form-field > label, .checkout-action {
  font-family: var(--font-rounded);
  font-weight: 400;
  color: #0000FF;
  letter-spacing: .1px;
}
@supports (-webkit-text-stroke: 1px #0000FF) {
  .brand > span:last-child, .hero h1, .hero h1 span,
  .section-heading h2, .dialog-heading h2, .detail-title, .card-title,
  .state-panel h2, .state-panel h3, .confirm-dialog h2, .chat-heading h2,
  .detail-description h3, .detail-members h3, .chat-empty h3,
  .profile-heading h1, .profile-identity h2, .profile-about h3, .profile-photo-editor strong,
  .participation-heading h2, .participation-heading h3,
  .participation-card > h2, .participation-card > h3, .ballot-member-list legend,
  .checkout-brand > span, .checkout-card h1, .checkout-policy h2,
  .main-nav .nav-button, .filter-chip, .category-label,
  .button-primary, .button-secondary, .card-action, .map-locate-button,
  .field-label, .form-field > label, .checkout-action {
    -webkit-text-stroke: .8px #0000FF;
    -webkit-text-fill-color: transparent;
  }
  .brand > span:last-child, .hero h1, .hero h1 span,
  .profile-heading h1, .checkout-brand > span, .checkout-card h1 {
    -webkit-text-stroke-width: 1.1px;
  }
}
.main-nav .nav-button, .filter-chip, .category-label,
.button-primary, .button-secondary, .card-action, .map-locate-button,
.field-label, .form-field > label, .detail-description h3, .detail-members h3, .chat-empty h3,
.map-picker-tools .button-secondary {
  font-size: 18px;
  line-height: 1.55;
}
.card-title { font-size: 21px; line-height: 1.55; }
.nav-count, .optional-label, .required-dot, .detail-members h3 span {
  font-family: "SUIT Variable", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  -webkit-text-stroke: 0;
  -webkit-text-fill-color: currentColor;
}
.button-primary:disabled, .button-secondary:disabled, .card-action:disabled,
.map-locate-button:disabled, .checkout-action:disabled {
  -webkit-text-stroke-color: #5D6B87;
}
.session-controls .button-secondary {
  font-family: inherit;
  -webkit-text-stroke: 0;
  -webkit-text-fill-color: currentColor;
}
.nav-button:hover, .nav-button.is-active { color: var(--brand); }
.card-title-button { padding: 1px; }
.category-label { padding: 3px 10px; border-radius: 10px; background: #FFFFFF; }
.card-status { top: 17px; }
.card .cover-illustration { margin-top: 24px; }
.card-cover { height: 112px; }
.card-action { padding-inline: 12px; }
.card-bottom { flex-wrap: wrap; }
@media (max-width: 520px) {
  .card { display: block; }
  .card-cover { min-height: 0; height: 100px; border-right: 0; border-bottom: 1px solid var(--line); }
  .category-label { left: 12px; top: 12px; max-width: calc(100% - 90px); padding: 3px 10px; font-size: 18px; }
  .card-status { left: auto; right: 12px; top: 17px; bottom: auto; max-width: 80px; }
  .card .cover-illustration { width: 60px; height: 60px; margin-top: 26px; }
  .card .cover-illustration .icon { width: 32px; height: 32px; }
  .card-title { font-size: 21px; }
  .card-action { width: auto; margin-left: auto; font-size: 18px; }
  .card-action .icon { display: block; width: 14px; height: 14px; }
  .detail-cover .category-label { font-size: 18px; }
  .detail-cover .card-status { font-size: 11px; }
  .form-footer .button-primary, .chat-composer .button-primary { font-size: 18px; }
}
@media (max-width: 359px) {
  .hero-cta { width: 100%; }
  .card-bottom { row-gap: 8px; }
  .card-action { flex: 1 1 100%; margin-left: 0; }
  .category-label { max-width: calc(100% - 84px); }
}
@media (max-width: 380px) {
  .user-control > .user-avatar { display: none; }
}
/* Compact utility labels are deliberately solid at their smaller size. */
.session-controls .button-secondary, .optional-label, .nav-count {
  font-weight: 400;
}
