:root {
  --bg-top: #05263a;
  --bg-mid: #07334a;
  --bg-bottom: #061b2b;
  --surface: rgba(7, 38, 55, 0.8);
  --surface-strong: rgba(4, 26, 42, 0.95);
  --surface-soft: rgba(255, 255, 255, 0.05);
  --surface-soft-2: rgba(255, 255, 255, 0.085);
  --surface-border: rgba(150, 235, 244, 0.15);
  --surface-border-strong: rgba(150, 235, 244, 0.28);
  --text: #f3fcff;
  --text-muted: #b6d7e3;
  --text-soft: #8fb9c8;
  --accent: #44d3e8;
  --accent-strong: #3d9ee8;
  --accent-soft: rgba(68, 211, 232, 0.15);
  --success: #70e2bc;
  --success-soft: rgba(112, 226, 188, 0.15);
  --warn: #ffd47d;
  --warn-soft: rgba(255, 212, 125, 0.15);
  --danger: #ff8d82;
  --danger-soft: rgba(255, 141, 130, 0.15);
  --shadow-lg: 0 32px 88px rgba(0, 16, 27, 0.48);
  --shadow-md: 0 20px 46px rgba(0, 16, 27, 0.3);
  --shadow-soft: 0 14px 32px rgba(0, 16, 27, 0.2);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --content-max: 1800px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  overscroll-behavior: none;
}

html {
  background: var(--bg-bottom);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  color-scheme: dark;
  background:
    radial-gradient(980px 620px at 8% -10%, rgba(65, 211, 232, 0.28), transparent 62%),
    radial-gradient(760px 540px at 92% -6%, rgba(255, 210, 111, 0.18), transparent 58%),
    radial-gradient(920px 540px at 74% 112%, rgba(59, 160, 225, 0.16), transparent 62%),
    linear-gradient(180deg, var(--bg-top), var(--bg-mid), var(--bg-bottom));
  -webkit-tap-highlight-color: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(ellipse at 20% 18%, transparent 0 46%, rgba(199, 249, 255, 0.16) 48% 49%, transparent 51%),
    radial-gradient(ellipse at 72% 32%, transparent 0 43%, rgba(154, 237, 245, 0.12) 45% 46%, transparent 48%),
    radial-gradient(ellipse at 46% 78%, transparent 0 45%, rgba(255, 231, 165, 0.08) 47% 48%, transparent 50%);
  background-size: 340px 190px, 420px 230px, 520px 280px;
  opacity: 0.58;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.2) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.2) 70%, transparent 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(760px 280px at 18% 16%, rgba(213, 252, 255, 0.075), transparent 70%),
    radial-gradient(700px 240px at 84% 20%, rgba(255, 223, 144, 0.07), transparent 68%),
    linear-gradient(180deg, rgba(217, 249, 255, 0.035), transparent 38%);
  opacity: 0.9;
}

body.register-sheet-open {
  overflow: hidden;
}

a,
button,
input,
select,
textarea {
  font: inherit;
}

button,
input,
select,
textarea {
  outline: none;
}

button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(125, 235, 244, 0.96);
  outline-offset: 2px;
}

[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;
}

.community-app {
  width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(220px, max-content) minmax(420px, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: min(100%, calc(var(--content-max) + 40px));
  margin: 0 auto;
  padding: calc(17px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 15px max(20px, env(safe-area-inset-left));
  -webkit-backdrop-filter: blur(22px) saturate(128%);
  backdrop-filter: blur(22px) saturate(128%);
  background: linear-gradient(180deg, rgba(5, 38, 55, 0.9), rgba(4, 28, 44, 0.68));
  border: 1px solid rgba(161, 238, 245, 0.08);
  border-top: 0;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 16px 40px rgba(0, 17, 29, 0.24);
}

.brand-block {
  min-width: 0;
}

.brand-block h1 {
  margin: 0;
  font-size: clamp(1.18rem, 0.98rem + 0.68vw, 1.58rem);
  letter-spacing: -0.04em;
}

.brand-kicker {
  margin: 0 0 5px;
  color: #8fe5ec;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-copy {
  margin: 5px 0 0;
  color: #a9ccda;
  font-size: 0.84rem;
  line-height: 1.45;
}

.topbar-search,
.flow-search-form,
.inline-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-search {
  min-width: 0;
}

.topbar-search input,
.flow-search-form input,
.inline-form input,
.form-input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid rgba(129, 222, 234, 0.2);
  border-radius: 16px;
  padding: 0 15px;
  background: rgba(242, 253, 255, 0.97);
  color: #0a3447;
  font-size: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.form-input[readonly] {
  background: rgba(224, 244, 247, 0.9);
  color: rgba(10, 52, 71, 0.82);
  cursor: default;
}

.topbar-search button,
.flow-search-form button,
.inline-form button,
.community-auth-actions button,
.selection-button,
#registration-toggle-btn,
.action-button,
.toolbar-button {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    opacity 0.18s ease,
    box-shadow 0.18s ease;
}

.topbar-search button,
.flow-search-form button,
.community-auth-actions button,
.selection-button,
#registration-toggle-btn,
.action-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #03283c;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(16, 152, 185, 0.3);
}

.topbar-search button:hover,
.flow-search-form button:hover,
.community-auth-actions button:hover,
.selection-button:hover,
#registration-toggle-btn:hover,
.action-button:hover {
  transform: translateY(-1px);
}

.topbar-search button[disabled],
.flow-search-form button[disabled],
.inline-form button[disabled],
.community-auth-actions button[disabled],
.selection-button[disabled],
#registration-toggle-btn[disabled],
.action-button[disabled],
.toolbar-button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.toolbar-button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #e6eefc;
  font-size: 0.82rem;
  font-weight: 700;
}

#reset-flow-btn,
#results-new-search-btn,
#search-btn {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.toolbar-button.secondary {
  background: rgba(68, 211, 232, 0.12);
  border-color: rgba(125, 235, 244, 0.24);
  color: #ecf3ff;
}

.toolbar-button.ghost,
.community-auth-actions button.secondary {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.085);
  color: #aebddd;
  box-shadow: none;
}

.toolbar-button:hover,
.community-auth-actions button.secondary:hover {
  background: rgba(255, 255, 255, 0.085);
}

.utility-button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

#reset-flow-btn.utility-button.toolbar-button.ghost {
  background: rgba(255, 255, 255, 0.026);
  border-color: rgba(255, 255, 255, 0.06);
  color: #9dafd2;
}

#reset-flow-btn.utility-button.toolbar-button.ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.09);
  color: #c2d0eb;
}

.topbar-utility {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.topbar-mode-tabs {
  --visible-mode-tab-count: 3;
  display: grid;
  grid-template-columns: repeat(var(--visible-mode-tab-count), minmax(0, 1fr));
  grid-auto-flow: column;
  gap: 0;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 72px;
  padding: 4px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(183, 247, 251, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(2, 30, 46, 0.18);
  border: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.018),
    inset 0 0 0 1px rgba(255, 255, 255, 0.018);
  justify-self: stretch;
  overflow: hidden;
}

.community-auth-block {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(332px, 100%);
  max-width: 100%;
  min-width: 0;
  flex: 0 1 332px;
  min-height: 72px;
  padding: 8px 10px;
  border-radius: 20px;
  background: rgba(166, 238, 244, 0.04);
  border: 1px solid rgba(150, 235, 244, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.community-auth-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.auth-label {
  display: inline-block;
  color: #cceff4;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.auth-status {
  margin: 0;
  color: #a9ceda;
  font-size: 0.79rem;
  line-height: 1.28;
}

.community-auth-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 0 0 auto;
}

.community-auth-actions button {
  min-height: 38px;
  border-radius: 11px;
  padding: 0 13px;
  font-size: 0.8rem;
  box-shadow: none;
}

.community-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(390px, 0.98fr);
  gap: 18px;
  align-items: stretch;
  width: 100%;
  max-width: min(100%, calc(var(--content-max) + 40px));
  margin: 0 auto;
  padding: 18px max(20px, env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  transition: grid-template-columns 0.32s ease, gap 0.32s ease;
}

@media (min-width: 901px) {
  body[data-active-mode="explore"] .community-workspace {
    grid-template-columns: minmax(0, 1.58fr) minmax(400px, 0.98fr);
  }

  body[data-active-mode="saved"] .community-workspace {
    grid-template-columns: minmax(0, 1.42fr) minmax(430px, 1.14fr);
  }

  body[data-active-mode="admin"] .community-workspace {
    grid-template-columns: minmax(0, 1.5fr) minmax(400px, 1.02fr);
  }
}

.map-stage,
.side-sheet {
  min-width: 0;
  min-height: 0;
}

.map-stage-frame,
.side-sheet-body {
  position: relative;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(8, 45, 62, 0.94), rgba(4, 25, 41, 0.94));
  box-shadow: var(--shadow-lg);
  transition:
    border-color 0.32s ease,
    box-shadow 0.32s ease,
    background 0.32s ease,
    filter 0.32s ease,
    transform 0.32s ease;
}

.map-stage-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(980px 460px at 14% 0%, rgba(68, 211, 232, 0.2), transparent 58%),
    radial-gradient(720px 380px at 92% 10%, rgba(255, 214, 125, 0.11), transparent 62%),
    linear-gradient(180deg, rgba(3, 41, 57, 0.08), rgba(2, 20, 34, 0.3));
  opacity: 0.22;
  transition: opacity 0.32s ease, background 0.32s ease;
}

body[data-active-mode="explore"] .map-stage-frame {
  filter: saturate(0.94) brightness(0.92);
}

body[data-active-mode="explore"] .map-stage-frame::after {
  opacity: 0.34;
}

body[data-active-mode="saved"] .map-stage-frame {
  filter: saturate(1.04) brightness(0.98);
  border-color: rgba(125, 235, 244, 0.18);
}

body[data-active-mode="saved"] .map-stage-frame::after {
  opacity: 0.14;
}

body[data-active-mode="admin"] .map-stage-frame {
  filter: saturate(0.9) brightness(0.9);
}

body[data-active-mode="admin"] .map-stage-frame::after {
  opacity: 0.26;
}

.map-stage-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 680px;
}

.side-sheet {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.side-sheet-handle {
  display: none;
}

.side-sheet-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 16px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 18px;
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  background:
    linear-gradient(180deg, rgba(5, 36, 52, 0.97), rgba(3, 24, 39, 0.96)),
    radial-gradient(640px 240px at 12% 0%, rgba(68, 211, 232, 0.14), transparent 65%);
}

.side-sheet-body::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-xl) - 1px);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  opacity: 0.72;
}

.side-sheet-body > * {
  position: relative;
  z-index: 1;
}

body[data-active-mode="explore"] .side-sheet-body {
  border-color: rgba(117, 226, 235, 0.18);
}

body[data-active-mode="saved"] .side-sheet-body {
  border-color: rgba(125, 235, 244, 0.2);
}

body[data-active-mode="admin"] .side-sheet-body {
  border-color: rgba(255, 255, 255, 0.1);
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mode-tab {
  min-height: 60px;
  position: relative;
  border: 0;
  border-radius: 16px;
  padding: 0 18px;
  background: transparent;
  color: #82aebd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.mode-tab-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  font-size: 1rem;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
}

.mode-tab:hover {
  background: rgba(157, 235, 241, 0.035);
  color: #aadce5;
}

.mode-tab.is-active {
  color: #f5f8ff;
  background:
    linear-gradient(180deg, rgba(205, 251, 255, 0.075), rgba(68, 211, 232, 0.1)),
    rgba(19, 94, 113, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 4px 14px rgba(24, 35, 77, 0.04);
}

.mode-tab-badge {
  min-width: auto;
  min-height: auto;
  padding: 0 0 0 1px;
  border-radius: 0;
  background: transparent;
  color: #8b9dc3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.mode-tab-badge::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.3;
}

.mode-tab.is-active .mode-tab-badge {
  color: #dbe6fb;
}

.workspace-shell-header {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.workspace-shell-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workspace-shell-kicker {
  margin: 0;
  color: #9bcdd7;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.workspace-shell-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #eff4ff;
  font-size: 0.75rem;
  font-weight: 800;
}

body[data-active-mode="explore"] .workspace-shell-badge {
  background: rgba(255, 207, 108, 0.13);
  border-color: rgba(255, 220, 145, 0.2);
}

body[data-active-mode="saved"] .workspace-shell-badge {
  background: rgba(68, 211, 232, 0.16);
  border-color: rgba(125, 235, 244, 0.22);
}

body[data-active-mode="admin"] .workspace-shell-badge {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.workspace-shell-title {
  margin: 0;
  color: #f4f7ff;
  font-size: clamp(1.18rem, 1rem + 0.42vw, 1.38rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.18;
}

.workspace-shell-summary {
  margin: 0;
  max-width: 44ch;
  color: #99c2d0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.status-banner {
  position: relative;
  min-height: 44px;
  padding: 10px 12px 10px 38px;
  border-radius: 18px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.status-banner::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.035);
}

.status-banner.is-neutral {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.status-banner.is-neutral::before {
  background: rgba(255, 255, 255, 0.42);
}

.status-banner.is-ok {
  background: linear-gradient(180deg, rgba(120, 216, 162, 0.16), rgba(120, 216, 162, 0.08));
  border-color: rgba(120, 216, 162, 0.28);
  color: #d3ffe2;
}

.status-banner.is-ok::before {
  background: #78d8a2;
}

.status-banner.is-warn {
  background: linear-gradient(180deg, rgba(255, 207, 118, 0.16), rgba(255, 207, 118, 0.08));
  border-color: rgba(255, 207, 118, 0.28);
  color: #ffe7b1;
}

.status-banner.is-warn::before {
  background: #ffcf76;
}

.status-banner.is-error {
  background: linear-gradient(180deg, rgba(255, 125, 136, 0.18), rgba(255, 125, 136, 0.08));
  border-color: rgba(255, 125, 136, 0.28);
  color: #ffd7dc;
}

.status-banner.is-error::before {
  background: #ff7d88;
}

.mode-panel-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
}

.mode-panel {
  display: none;
  height: 100%;
  min-height: 0;
}

.mode-panel.is-active {
  display: block;
  width: 100%;
  animation: panel-fade-in 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.panel-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  min-height: 0;
}

.flow-surface {
  flex: 1;
  overflow: hidden;
}

body[data-active-mode="explore"] .flow-surface {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    radial-gradient(420px 180px at 0% 0%, rgba(255, 209, 111, 0.08), transparent 72%);
  border-color: rgba(255, 221, 147, 0.13);
}

body[data-active-mode="saved"] .saved-surface {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
    radial-gradient(420px 180px at 0% 0%, rgba(68, 211, 232, 0.12), transparent 72%);
  border-color: rgba(125, 235, 244, 0.14);
}

body[data-active-mode="admin"] .admin-surface {
  border-color: rgba(255, 255, 255, 0.1);
}

.flow-progress-block {
  display: flex;
  align-items: center;
  min-height: 32px;
}

.flow-progress-label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(68, 211, 232, 0.12);
  border: 1px solid rgba(125, 235, 244, 0.18);
  color: #eef4ff;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.register-step {
  display: none;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  height: 100%;
}

.register-step.is-active {
  display: flex;
  animation: step-fade-in 0.26s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.input-intent-hint {
  margin: 0;
  min-height: 24px;
  color: #dce6fb;
  font-size: 0.82rem;
  line-height: 1.45;
}

.search-example-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.search-example-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.subtle-note {
  background: rgba(255, 255, 255, 0.04);
}

.surface {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 18px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
    radial-gradient(420px 180px at 0% 0%, rgba(68, 211, 232, 0.09), transparent 70%);
  border: 1px solid rgba(150, 235, 244, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--shadow-soft);
}

.results-surface,
.saved-surface {
  flex: 1;
}

.saved-surface {
  overflow: hidden;
  gap: 12px;
  padding: 16px;
}

.admin-surface {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    radial-gradient(360px 160px at 0% 0%, rgba(109, 214, 221, 0.07), transparent 70%);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.section-heading-inline {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.saved-surface .section-heading-inline {
  gap: 8px;
  align-items: center;
}

.saved-surface .section-heading {
  gap: 3px;
}

.section-eyebrow {
  margin: 0;
  color: #8fd6df;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2,
.register-sheet-head h2 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.section-copy,
.description {
  margin: 0;
  color: #a8b8d9;
  font-size: 0.86rem;
  line-height: 1.55;
}

.saved-surface .section-copy {
  font-size: 0.78rem;
  line-height: 1.35;
}

.step-list {
  margin: 0;
  padding-left: 18px;
  color: #dce6fb;
  font-size: 0.9rem;
  line-height: 1.7;
}

.step-list li + li {
  margin-top: 4px;
}

.result-toolbar {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

#register-step-results .result-toolbar {
  justify-content: flex-start;
}

.result-count,
.saved-count,
.toggle-status,
.selection-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #eff5ff;
  font-size: 0.78rem;
  font-weight: 800;
}

.selection-label {
  width: fit-content;
  margin-bottom: 7px;
}

.result-list,
.summary-list {
  list-style: none;
  flex: 1 1 auto;
  margin: 0;
  min-height: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 235, 244, 0.72) rgba(255, 255, 255, 0.08);
  -webkit-overflow-scrolling: touch;
}

.result-list::-webkit-scrollbar,
.summary-list::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.result-list::-webkit-scrollbar-track,
.summary-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.result-list::-webkit-scrollbar-thumb,
.summary-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(125, 235, 244, 0.95), rgba(68, 211, 232, 0.72));
  border-radius: 999px;
  border: 2px solid rgba(7, 18, 36, 0.18);
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
  padding-bottom: 18px;
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
  padding-bottom: 18px;
}

.saved-surface .summary-list {
  flex: 1 1 0;
  gap: 8px;
  padding-bottom: 14px;
}

.summary-load-more-row {
  list-style: none;
}

.summary-load-more {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(125, 235, 244, 0.22);
  border-radius: 14px;
  background: rgba(68, 211, 232, 0.1);
  color: #dfe7ff;
  font-weight: 800;
}

.result-item,
.summary-item {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
}

button.result-item,
button.summary-item {
  position: relative;
  overflow: hidden;
  padding: 14px 14px 14px 16px;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

button.result-item::before,
button.summary-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 210, 111, 0.96), rgba(68, 211, 232, 0.88));
  opacity: 0;
  transform: scaleY(0.55);
  transform-origin: center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.saved-surface button.summary-item {
  min-height: 84px;
  padding: 11px 12px 10px 15px;
}

button.result-item:hover,
button.summary-item:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 14px 30px rgba(5, 11, 25, 0.14);
}

button.result-item.selected,
button.summary-item.is-active {
  border-color: rgba(125, 235, 244, 0.42);
  background: linear-gradient(180deg, rgba(68, 211, 232, 0.16), rgba(61, 158, 232, 0.08));
  box-shadow: inset 0 0 0 1px rgba(125, 235, 244, 0.18), 0 16px 34px rgba(0, 30, 47, 0.2);
}

button.result-item.selected::before,
button.summary-item.is-active::before {
  opacity: 1;
  transform: scaleY(1);
}

button.result-item[disabled] {
  cursor: default;
  opacity: 0.95;
}

.result-disabled-note {
  color: #d6ffe6;
}

.result-existing-note {
  color: #bfeef3;
}

.result-skeleton {
  padding: 14px;
  pointer-events: none;
}

.result-skeleton-line {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.result-skeleton-line + .result-skeleton-line {
  margin-top: 10px;
}

.result-skeleton-line.is-short {
  width: 46%;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.result-name,
.summary-name {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: #f3f7ff;
  overflow-wrap: anywhere;
}

.saved-surface .summary-name {
  margin-bottom: 4px;
  font-size: 0.95rem;
  line-height: 1.33;
}

.result-address,
.result-meta,
.summary-address,
.summary-meta,
.empty-state-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.saved-surface .summary-address,
.saved-surface .summary-meta {
  font-size: 0.78rem;
  line-height: 1.4;
}

.result-meta + .result-meta {
  margin-top: 4px;
}

.result-meta-row,
.summary-top-row,
.summary-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.saved-surface .summary-top-row,
.saved-surface .summary-footer {
  gap: 6px 10px;
}

.result-badges,
.summary-badges {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.result-pill,
.summary-category,
.filter-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.result-pill.selected {
  background: rgba(68, 211, 232, 0.18);
  border: 1px solid rgba(125, 235, 244, 0.24);
  color: #e6efff;
}

.result-pill.registered {
  background: rgba(120, 216, 162, 0.14);
  border: 1px solid rgba(120, 216, 162, 0.22);
  color: #d6ffe6;
}

.summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.saved-surface .summary-card {
  gap: 8px;
}

.summary-category {
  background: rgba(68, 211, 232, 0.16);
  border: 1px solid rgba(125, 235, 244, 0.22);
  color: #ebf2ff;
}

.summary-pick-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(205, 174, 255, 0.26);
  background: linear-gradient(180deg, rgba(157, 121, 216, 0.26), rgba(157, 121, 216, 0.14));
  color: #f2eaff;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.saved-surface .summary-category {
  min-height: 22px;
  padding: 0 8px;
  font-size: 0.72rem;
}

.summary-footer {
  margin-top: 8px;
  justify-content: flex-start;
}

.saved-surface .summary-footer {
  margin-top: 5px;
}

.summary-meta-label {
  color: var(--text-soft);
  margin-right: 6px;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.summary-actions {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
}

.saved-surface .summary-actions .restaurant-delete-button {
  min-height: 34px;
  padding: 0 11px;
  font-size: 0.76rem;
}

.restaurant-delete-button,
.info-window-delete,
.recommendation-remove-button,
.info-window-remove {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff8d7d, var(--danger));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.recommendation-remove-button,
.info-window-remove {
  min-height: 34px;
  border: 1px solid rgba(125, 235, 244, 0.18);
  border-radius: 11px;
  padding: 0 10px;
  background: rgba(68, 211, 232, 0.09);
  color: #cdeff3;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.info-window-remove {
  color: #08708a;
  border-color: rgba(31, 170, 199, 0.22);
  background: rgba(31, 170, 199, 0.1);
}

.empty-state-card {
  padding: 24px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.empty-state-title {
  margin: 0 0 8px;
  font-size: 0.96rem;
  font-weight: 800;
  color: #eef4ff;
}

.filter-chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.saved-discovery-tools {
  display: grid;
  gap: 9px;
  flex: 0 0 auto;
  padding: 10px;
  border: 1px solid rgba(125, 235, 244, 0.1);
  border-radius: 17px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    radial-gradient(360px 140px at 0% 0%, rgba(157, 121, 216, 0.11), transparent 74%);
}

.recommender-quick-block {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.recommender-quick-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.recommender-quick-filter {
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.035);
  color: #b8cada;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.recommender-quick-filter strong {
  color: #eff8ff;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.recommender-quick-filter.is-featured {
  border-color: rgba(205, 174, 255, 0.18);
  background: rgba(157, 121, 216, 0.09);
}

.recommender-quick-filter.is-active {
  border-color: rgba(125, 235, 244, 0.38);
  background: linear-gradient(180deg, rgba(68, 211, 232, 0.2), rgba(61, 158, 232, 0.09));
  color: #f4fbff;
  box-shadow: inset 0 0 0 1px rgba(125, 235, 244, 0.12);
}

.recommender-quick-filter.is-featured.is-active {
  border-color: rgba(205, 174, 255, 0.42);
  background: linear-gradient(180deg, rgba(157, 121, 216, 0.3), rgba(111, 84, 164, 0.15));
  box-shadow: inset 0 0 0 1px rgba(226, 207, 255, 0.1);
}

.saved-discovery-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 7px;
}

.saved-discovery-form input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(129, 222, 234, 0.18);
  border-radius: 13px;
  padding: 0 12px;
  background: rgba(242, 253, 255, 0.96);
  color: #0a3447;
  font-size: 0.84rem;
}

.saved-discovery-form > button {
  min-height: 42px;
  border-radius: 12px;
  padding: 0 12px;
}

.saved-discovery-form > button[type="submit"] {
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #03283c;
  font-weight: 800;
  cursor: pointer;
}

.saved-filter-stack {
  display: grid;
  gap: 12px;
  flex: 0 0 auto;
  padding: 2px 0 4px;
}

.saved-filter-stack[hidden] {
  display: none;
}

.saved-filter-stack:not([hidden]) {
  animation: filter-stack-in 0.24s ease;
}

.saved-filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.saved-filter-group-category {
  gap: 7px;
}

.saved-filter-group-creator {
  gap: 9px;
}

.saved-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.saved-filter-label {
  margin: 0;
  color: #dbe6ff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.saved-filter-selection {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #eaf0ff;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-chip {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.038);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.filter-chip:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.filter-chip.is-active {
  background: linear-gradient(180deg, rgba(68, 211, 232, 0.17), rgba(68, 211, 232, 0.1));
  border-color: rgba(125, 235, 244, 0.26);
  color: #eff5ff;
}

.saved-filter-group-category .filter-chip-row {
  gap: 7px;
}

.saved-filter-group-category .filter-chip {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.8rem;
}

.filter-chip-count {
  min-width: 24px;
  padding: 0 6px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
}

.saved-filter-group-category .filter-chip-count {
  min-height: 20px;
  padding: 0 6px;
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
}

.creator-filter-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    radial-gradient(340px 140px at 0% 0%, rgba(68, 211, 232, 0.09), transparent 72%);
  border: 1px solid rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.creator-filter-search {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(244, 247, 255, 0.94);
  color: #10213d;
  font-size: 0.88rem;
}

.creator-filter-search::placeholder {
  color: rgba(16, 33, 61, 0.56);
}

.creator-filter-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: min(25vh, 220px);
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 235, 244, 0.72) rgba(255, 255, 255, 0.08);
  -webkit-overflow-scrolling: touch;
}

.creator-filter-list::-webkit-scrollbar {
  width: 8px;
}

.creator-filter-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.creator-filter-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(125, 235, 244, 0.95), rgba(68, 211, 232, 0.72));
  border-radius: 999px;
}

.creator-filter-option {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #dfe8fb;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.creator-filter-option:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.creator-filter-option.is-active {
  border-color: rgba(125, 235, 244, 0.28);
  background: linear-gradient(180deg, rgba(68, 211, 232, 0.15), rgba(61, 158, 232, 0.07));
  box-shadow: inset 0 0 0 1px rgba(125, 235, 244, 0.12);
}

.creator-filter-option-name {
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creator-featured-label {
  display: inline-flex;
  margin-left: 5px;
  color: #d7c0ff;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.creator-filter-option-count {
  color: #93a4ca;
  font-size: 0.74rem;
  font-weight: 700;
}

.creator-filter-empty {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: #9fb1d5;
  font-size: 0.8rem;
  line-height: 1.45;
}

.selection-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  position: sticky;
  bottom: 0;
  z-index: 1;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(6, 45, 61, 0.97), rgba(3, 27, 43, 0.98)),
    radial-gradient(260px 120px at 0% 0%, rgba(68, 211, 232, 0.17), transparent 70%);
  border: 1px solid var(--surface-border-strong);
  box-shadow: var(--shadow-md);
}

.selection-copy {
  min-width: 0;
  flex: 1;
}

.selection-copy strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.45;
}

.selection-copy p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.selection-button {
  flex: 0 0 auto;
}

.step-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.step-footer-split {
  justify-content: space-between;
  flex-wrap: wrap;
}

#register-step-search {
  justify-content: flex-start;
  gap: 13px;
}

#register-step-search .section-heading {
  gap: 8px;
  max-width: 34ch;
}

#register-step-search .section-heading h2 {
  font-size: clamp(1.28rem, 1.06rem + 0.56vw, 1.64rem);
  line-height: 1.16;
}

#register-step-search .section-copy {
  max-width: 33ch;
  font-size: 0.88rem;
}

#register-step-search .flow-search-form {
  gap: 10px;
  padding: 9px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(150, 235, 244, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#register-step-search .flow-search-form input {
  min-height: 56px;
  border-radius: 18px;
  padding: 0 18px;
  font-size: 1rem;
}

#register-step-search .flow-search-form button {
  min-height: 56px;
  padding: 0 24px;
  border-radius: 18px;
}

#register-step-search .search-example-list {
  gap: 8px;
}

#register-step-search .search-example-chip {
  min-height: 34px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.07);
  color: #c2d1ef;
}

#register-step-search .input-intent-hint,
#register-step-search .inline-note {
  max-width: 34ch;
}

#register-step-results .section-heading-inline,
#register-step-confirm .section-heading,
#register-step-complete .section-heading {
  max-width: 40ch;
}

#register-step-complete {
  justify-content: center;
}

.confirm-preview-card {
  padding: 15px 16px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    radial-gradient(260px 120px at 0% 0%, rgba(68, 211, 232, 0.13), transparent 70%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #eef4ff;
  font-size: 0.9rem;
  line-height: 1.6;
}

.confirm-selection-details {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.complete-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

@keyframes panel-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes step-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes filter-stack-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sheet-toggle-button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #edf3ff;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.bulk-delete-match-mode {
  flex: 0 0 190px;
  width: 190px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-block {
  min-width: 0;
}

.form-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #deebff;
  font-size: 0.82rem;
  font-weight: 700;
}

.checkbox-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #dce7fb;
  font-size: 0.84rem;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.checkbox-row small {
  color: var(--text-muted);
}

.inline-note {
  margin: 0;
  padding: 11px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dce7fb;
  font-size: 0.84rem;
  line-height: 1.5;
}

.inline-note.is-warn {
  background: var(--warn-soft);
  border-color: rgba(255, 207, 118, 0.24);
  color: #ffe7b1;
}

.confirm-selection-details summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  color: #edf4ff;
  font-size: 0.86rem;
  font-weight: 800;
}

.confirm-selection-details summary::-webkit-details-marker {
  display: none;
}

.confirm-selection-list {
  list-style: none;
  margin: 0;
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.confirm-selection-list li {
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.complete-actions .action-button,
.complete-actions .toolbar-button {
  flex: 1 1 180px;
}

.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.empty-state-actions button {
  flex: 1 1 150px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

#registration-toggle-btn[data-state="disabled"] {
  background: linear-gradient(135deg, #4bc393, #3aa7a1);
}

.debug-panel {
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.debug-output {
  margin: 0;
  padding: 14px;
  color: #c4d5f8;
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.map-floating {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-legend {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(14px) saturate(128%);
  backdrop-filter: blur(14px) saturate(128%);
  background: rgba(3, 35, 51, 0.7);
  color: #edf4ff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.map-legend > span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #9d79d8;
  box-shadow: 0 0 0 3px rgba(157, 121, 216, 0.16);
}

.home-link,
.home-link:hover {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(14px) saturate(128%);
  backdrop-filter: blur(14px) saturate(128%);
  background: rgba(3, 35, 51, 0.66);
  color: #edf4ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.service-legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
  padding: 14px 4px 2px;
  color: rgba(219, 229, 247, 0.68);
  font-size: 0.84rem;
}

.service-legal-copy {
  letter-spacing: 0.02em;
}

.service-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.service-legal-links a {
  color: #eaf1ff;
  text-decoration: none;
  font-weight: 600;
}

.service-legal-links a:hover {
  text-decoration: underline;
}

#kakao-map {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: block;
  background: #082d42;
  overscroll-behavior: contain;
}

#kakao-map,
#kakao-map * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

#kakao-map img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

body.map-dragging {
  -webkit-user-select: none;
  user-select: none;
}

.map-disabled {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  background:
    radial-gradient(520px 280px at 20% 10%, rgba(68, 211, 232, 0.16), transparent 65%),
    rgba(3, 31, 47, 0.94);
  color: #dce7fb;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.map-disabled.show {
  display: flex;
}

.overlay-backdrop {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(1, 20, 32, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.register-sheet {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: min(460px, calc(100vw - 40px));
  max-height: min(86dvh, 720px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  backdrop-filter: blur(24px) saturate(135%);
  background: linear-gradient(180deg, rgba(6, 45, 61, 0.985), rgba(3, 26, 42, 0.985));
  box-shadow: 0 28px 72px rgba(3, 9, 20, 0.45);
}

.register-sheet-grabber {
  display: none;
  width: 56px;
  height: 5px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.register-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.register-sheet-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: auto;
  min-height: 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 60;
  min-width: min(420px, calc(100vw - 28px));
  max-width: min(520px, calc(100vw - 28px));
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(3, 34, 50, 0.96);
  color: #edf4ff;
  font-size: 0.86rem;
  line-height: 1.5;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.error {
  border-color: rgba(255, 125, 136, 0.4);
}

.info-window {
  width: min(300px, calc(100vw - 60px));
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(247, 255, 255, 0.99), rgba(233, 249, 251, 0.99));
  color: #123746;
  box-shadow: 0 18px 44px rgba(0, 44, 62, 0.2);
  font-size: 12px;
  line-height: 1.55;
}

.info-window-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-window-title-group {
  min-width: 0;
}

.info-window-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(68, 211, 232, 0.18);
  color: #08708a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.info-window-title {
  display: block;
  color: #0b3446;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  word-break: keep-all;
}

.info-window-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.info-window-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.info-window-pill.privileged {
  background: rgba(255, 202, 92, 0.2);
  color: #845600;
}

.info-window-pill.subtle {
  background: rgba(34, 49, 86, 0.08);
  color: #5d6b8a;
}

.info-window-address {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(34, 49, 86, 0.06);
  color: #21304d;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  word-break: keep-all;
}

.info-window-meta-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
}

.info-window-meta-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.info-window-meta-label {
  color: #7a86a3;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
}

.info-window-meta-value {
  color: #243352;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.info-window-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.info-window-link {
  min-height: 34px;
  border-radius: 10px;
  padding: 0 12px;
  background: rgba(31, 170, 199, 0.14);
  color: #076d87;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (max-width: 1280px) {
  .topbar {
    grid-template-columns: minmax(220px, 0.72fr) minmax(420px, 1.28fr);
    align-items: center;
  }

  .topbar-utility {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  body[data-active-mode="explore"] .community-workspace,
  body[data-active-mode="saved"] .community-workspace,
  body[data-active-mode="admin"] .community-workspace {
    grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.9fr);
  }
}

@media (max-width: 900px) {
  .saved-discovery-form input {
    font-size: 16px;
  }

  .topbar {
    grid-template-columns: 1fr;
    padding: calc(14px + env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 12px max(14px, env(safe-area-inset-left));
  }

  .topbar-utility {
    grid-column: auto;
  }

  .brand-copy {
    font-size: 0.84rem;
  }

  .community-workspace {
    display: block;
    padding: 10px max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  }

  .map-stage-frame {
    min-height: calc(100vh - 128px);
    min-height: calc(100svh - 128px);
    min-height: calc(100dvh - 128px);
    border-radius: 24px;
  }

  .side-sheet {
    --mobile-sheet-height: min(70vh, 660px);
    --mobile-sheet-height: min(70svh, 660px);
    --mobile-sheet-height: min(
      70dvh,
      calc(
        var(--app-visual-viewport-height, 100dvh)
        - var(--app-topbar-height, 0px)
        - 64px
        - env(safe-area-inset-bottom)
      ),
      660px
    );
    --mobile-sheet-peek: 188px;

    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 32;
    padding: 0 max(12px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    pointer-events: none;
  }

  body.sheet-expanded .side-sheet {
    z-index: 45;
  }

  .side-sheet-handle {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
    pointer-events: none;
    transition: transform 0.24s ease;
  }

  .sheet-toggle-button {
    pointer-events: auto;
  }

  .side-sheet-body {
    height: var(--mobile-sheet-height);
    border-radius: 28px 28px 22px 22px;
    pointer-events: auto;
    transition: transform 0.24s ease;
    will-change: transform;
  }

  .saved-filter-stack:not([hidden]) {
    flex: 1 1 0;
    min-height: 104px;
    overflow: auto;
    overscroll-behavior: contain;
  }

  .saved-filter-group-category .filter-chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .saved-filter-group-category .filter-chip {
    flex: 0 0 auto;
  }

  .saved-surface .summary-list {
    flex: 1 1 0;
    min-height: 96px;
  }

  .sheet-toggle-button,
  .filter-chip,
  .recommender-quick-filter,
  .creator-filter-option,
  .creator-filter-search,
  .home-link,
  .info-window-link,
  .restaurant-delete-button,
  .recommendation-remove-button,
  .saved-filter-toggle {
    min-height: 44px;
  }

  .recommender-quick-filters {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .recommender-quick-filters::-webkit-scrollbar {
    display: none;
  }

  .recommender-quick-filter {
    flex: 1 0 112px;
  }

  body.sheet-collapsed[data-active-mode="saved"] .workspace-shell-header,
  body.sheet-collapsed[data-active-mode="saved"] .status-banner,
  body.sheet-collapsed[data-active-mode="saved"] .saved-surface > .section-heading {
    display: none;
  }

  body.sheet-collapsed[data-active-mode="saved"] .side-sheet-body {
    gap: 8px;
  }

  body.sheet-collapsed .side-sheet-handle {
    transform: translateY(calc(var(--mobile-sheet-height) - var(--mobile-sheet-peek)));
  }

  body.sheet-collapsed .side-sheet-body {
    transform: translateY(calc(var(--mobile-sheet-height) - var(--mobile-sheet-peek)));
  }

  .register-sheet {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: min(84vh, 760px);
    max-height: min(84svh, 760px);
    max-height: min(84dvh, 760px);
    padding: 14px max(14px, env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    border-radius: 28px 28px 0 0;
  }

  .register-sheet-grabber {
    display: block;
  }
}

@media (min-width: 901px) and (max-width: 1024px) {
  .brand-block {
    display: flex;
    align-items: center;
    min-height: 68px;
  }

  .brand-kicker,
  .brand-copy {
    display: none;
  }
}

@media (max-width: 720px) {
  .flow-search-form,
  .inline-form,
  .toggle-row,
  .section-heading-inline,
  .selection-action-bar,
  .form-grid,
  .community-auth-block,
  .step-footer-split {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .flow-search-form button,
  .inline-form button,
  .selection-button,
  .community-auth-actions button,
  .toolbar-button:not(.utility-button),
  .action-button,
  #registration-toggle-btn,
  .complete-actions .action-button,
  .complete-actions .toolbar-button {
    width: 100%;
  }

  .topbar-utility .utility-button {
    width: auto;
  }

  .sheet-toggle-button,
  .topbar-utility .utility-button,
  .community-auth-actions button,
  .toolbar-button:not(.utility-button),
  .filter-chip,
  .recommender-quick-filter,
  .saved-filter-group-category .filter-chip,
  .creator-filter-option,
  .creator-filter-search,
  .home-link,
  .home-link:hover,
  .info-window-link,
  .restaurant-delete-button,
  .recommendation-remove-button,
  .saved-surface .summary-actions .restaurant-delete-button {
    min-height: 44px;
  }

  .community-auth-actions {
    width: 100%;
  }

  .community-auth-actions button {
    min-height: 46px;
  }

  .section-heading-inline {
    gap: 10px;
  }

  .result-toolbar {
    justify-content: flex-start;
  }

  .mode-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-card {
    grid-template-columns: 1fr;
  }

  .summary-actions {
    justify-content: flex-end;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .filter-chip-row {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .bulk-delete-match-mode {
    width: 100%;
    flex-basis: auto;
  }

  .map-floating {
    top: 10px;
    left: 10px;
    right: 10px;
    flex-wrap: wrap;
  }

  .home-link,
  .home-link:hover {
    min-height: 44px;
    padding: 0 11px;
  }

  .map-legend {
    min-height: 44px;
  }

  .service-legal-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 10px;
  }
}

@media (max-width: 520px) {
  .topbar {
    gap: 8px;
    padding: calc(10px + env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 8px max(10px, env(safe-area-inset-left));
  }

  .brand-kicker,
  .brand-copy,
  .workspace-shell-kicker,
  .workspace-shell-summary {
    display: none;
  }

  .topbar-mode-tabs {
    min-height: 68px;
  }

  .mode-tab {
    min-height: 60px;
  }

  .topbar-utility {
    gap: 10px;
  }

  .community-auth-block {
    flex-direction: row;
    align-items: center;
    padding: 9px;
    border-radius: 16px;
  }

  .auth-label {
    display: none;
  }

  .auth-status {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .community-auth-actions {
    width: auto;
  }

  .community-auth-actions button {
    width: auto;
  }

  .surface,
  .side-sheet-body {
    padding: 14px;
  }

  .saved-discovery-tools {
    padding: 9px;
  }

  .saved-discovery-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .saved-discovery-form #saved-discovery-clear {
    grid-column: 1 / -1;
  }

  .mode-tabs {
    grid-template-columns: 1fr;
  }

  .mode-tab {
    justify-content: space-between;
  }

  .search-example-list {
    gap: 6px;
  }

  .result-item,
  .summary-item {
    border-radius: 16px;
  }

  .info-window {
    width: min(280px, calc(100vw - 44px));
    padding: 12px;
  }

  .info-window-title {
    font-size: 15px;
  }

  .info-window-meta-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px;
  }
}

@media (max-width: 900px) and (max-height: 540px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    padding-top: calc(6px + env(safe-area-inset-top));
    padding-bottom: 6px;
  }

  .brand-block,
  .community-auth-copy {
    display: none;
  }

  .topbar-mode-tabs,
  .mode-tab {
    min-height: 60px;
  }

  .topbar-utility,
  .community-auth-block,
  .community-auth-actions {
    min-height: 44px;
  }

  .topbar-utility {
    grid-column: auto;
    flex-wrap: nowrap;
  }

  .community-auth-block {
    width: auto;
    min-height: 60px;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    padding: 3px 4px;
  }

  .community-auth-actions,
  .community-auth-actions button {
    width: auto;
  }

  .community-workspace {
    padding-top: 6px;
  }

  .side-sheet {
    --mobile-sheet-height: min(56dvh, calc(var(--app-visual-viewport-height, 100dvh) - 150px), 360px);
    --mobile-sheet-peek: 132px;

    z-index: 39;
  }

  body.sheet-expanded .side-sheet {
    z-index: 39;
  }

  .side-sheet-body {
    gap: 8px;
    padding: 10px;
  }

  .workspace-shell-header {
    display: none;
  }

  .flow-surface {
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}

@supports (-webkit-touch-callout: none) {
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .result-list,
  .summary-list,
  .creator-filter-list,
  .saved-filter-stack,
  .register-sheet-body {
    -webkit-overflow-scrolling: touch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
