:root {
  --bg-top: #040b15;
  --bg-mid: #07111f;
  --bg-bottom: #0d1930;
  --surface: rgba(12, 22, 40, 0.78);
  --surface-strong: rgba(7, 14, 28, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.05);
  --surface-soft-2: rgba(255, 255, 255, 0.085);
  --surface-border: rgba(255, 255, 255, 0.1);
  --surface-border-strong: rgba(196, 212, 255, 0.22);
  --text: #eef4ff;
  --text-muted: #b7c5e5;
  --text-soft: #90a0c4;
  --accent: #7c8fff;
  --accent-strong: #9d79d8;
  --accent-soft: rgba(124, 143, 255, 0.14);
  --success: #78d8a2;
  --success-soft: rgba(120, 216, 162, 0.14);
  --warn: #ffcf76;
  --warn-soft: rgba(255, 207, 118, 0.14);
  --danger: #ff7d88;
  --danger-soft: rgba(255, 125, 136, 0.14);
  --shadow-lg: 0 32px 88px rgba(3, 8, 20, 0.46);
  --shadow-md: 0 20px 46px rgba(3, 8, 20, 0.28);
  --shadow-soft: 0 14px 32px rgba(3, 8, 20, 0.18);
  --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;
}

body {
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  color-scheme: dark;
  background:
    radial-gradient(1100px 760px at 12% -8%, rgba(124, 143, 255, 0.22), transparent 60%),
    radial-gradient(940px 680px at 100% 8%, rgba(157, 121, 216, 0.14), transparent 58%),
    radial-gradient(820px 560px at 50% 118%, rgba(76, 126, 255, 0.09), transparent 60%),
    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(circle at 16% 22%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1.8px),
    radial-gradient(circle at 74% 16%, rgba(201, 211, 255, 0.16) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 42% 56%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1.7px),
    radial-gradient(circle at 84% 74%, rgba(181, 194, 255, 0.14) 0 1.2px, transparent 1.8px);
  background-size: 280px 220px, 360px 300px, 320px 260px, 420px 320px;
  opacity: 0.68;
  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 22% 18%, rgba(255, 255, 255, 0.045), transparent 70%),
    radial-gradient(700px 240px at 82% 22%, rgba(186, 168, 255, 0.08), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 34%);
  opacity: 0.9;
}

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

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

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(139, 196, 255, 0.95);
  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: 17px 20px 15px;
  backdrop-filter: blur(22px) saturate(128%);
  background: linear-gradient(180deg, rgba(5, 12, 25, 0.88), rgba(6, 13, 26, 0.62));
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-top: 0;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 16px 40px rgba(3, 8, 20, 0.2);
}

.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: #9eafd8;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-copy {
  margin: 5px 0 0;
  color: #9eafd2;
  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(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 0 15px;
  background: rgba(243, 247, 255, 0.97);
  color: #10213d;
  font-size: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.form-input[readonly] {
  background: rgba(233, 239, 255, 0.86);
  color: rgba(16, 33, 61, 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: #fdfdff;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(83, 96, 186, 0.28);
}

.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(124, 143, 255, 0.12);
  border-color: rgba(139, 196, 255, 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: 68px;
  padding: 4px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.012);
  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: 68px;
  padding: 8px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid rgba(255, 255, 255, 0.055);
  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: #cedbfd;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.auth-status {
  margin: 0;
  color: #aab9d8;
  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 20px 22px;
  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(12, 21, 39, 0.92), rgba(7, 13, 25, 0.9));
  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(124, 143, 255, 0.2), transparent 58%),
    radial-gradient(720px 380px at 92% 10%, rgba(157, 121, 216, 0.14), transparent 62%),
    linear-gradient(180deg, rgba(5, 10, 21, 0.12), rgba(4, 8, 16, 0.32));
  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(139, 196, 255, 0.14);
}

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;
  backdrop-filter: blur(24px) saturate(140%);
  background:
    linear-gradient(180deg, rgba(10, 18, 35, 0.96), rgba(7, 13, 26, 0.94)),
    radial-gradient(640px 240px at 12% 0%, rgba(124, 143, 255, 0.12), 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(171, 155, 255, 0.16);
}

body[data-active-mode="saved"] .side-sheet-body {
  border-color: rgba(139, 196, 255, 0.16);
}

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: #7c8db3;
  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(255, 255, 255, 0.015);
  color: #93a5cb;
}

.mode-tab.is-active {
  color: #f5f8ff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(124, 143, 255, 0.082)),
    rgba(255, 255, 255, 0.022);
  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: #aab7d8;
  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(157, 121, 216, 0.16);
  border-color: rgba(190, 165, 255, 0.18);
}

body[data-active-mode="saved"] .workspace-shell-badge {
  background: rgba(124, 143, 255, 0.16);
  border-color: rgba(139, 196, 255, 0.2);
}

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: #97aad0;
  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(157, 121, 216, 0.08), transparent 72%);
  border-color: rgba(188, 170, 255, 0.12);
}

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(124, 143, 255, 0.1), transparent 72%);
  border-color: rgba(139, 196, 255, 0.12);
}

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(124, 143, 255, 0.12);
  border: 1px solid rgba(139, 196, 255, 0.16);
  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(124, 143, 255, 0.08), transparent 70%);
  border: 1px solid rgba(255, 255, 255, 0.075);
  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(157, 121, 216, 0.06), 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: #9db2dd;
  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(139, 196, 255, 0.7) rgba(255, 255, 255, 0.08);
}

.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(139, 196, 255, 0.95), rgba(124, 143, 255, 0.7));
  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;
}

.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(157, 121, 216, 0.96), rgba(139, 196, 255, 0.84));
  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(139, 196, 255, 0.42);
  background: linear-gradient(180deg, rgba(124, 143, 255, 0.15), rgba(157, 121, 216, 0.08));
  box-shadow: inset 0 0 0 1px rgba(139, 196, 255, 0.18), 0 16px 34px rgba(16, 24, 52, 0.18);
}

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-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(124, 143, 255, 0.18);
  border: 1px solid rgba(139, 196, 255, 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(124, 143, 255, 0.16);
  border: 1px solid rgba(139, 196, 255, 0.22);
  color: #ebf2ff;
}

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

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

.restaurant-delete-button,
.info-window-delete {
  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;
}

.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-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(124, 143, 255, 0.16), rgba(124, 143, 255, 0.1));
  border-color: rgba(139, 196, 255, 0.24);
  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(124, 143, 255, 0.08), 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(139, 196, 255, 0.7) rgba(255, 255, 255, 0.08);
}

.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(139, 196, 255, 0.95), rgba(124, 143, 255, 0.7));
  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(139, 196, 255, 0.28);
  background: linear-gradient(180deg, rgba(124, 143, 255, 0.15), rgba(157, 121, 216, 0.06));
  box-shadow: inset 0 0 0 1px rgba(139, 196, 255, 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-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(14, 24, 44, 0.96), rgba(8, 16, 30, 0.98)),
    radial-gradient(260px 120px at 0% 0%, rgba(124, 143, 255, 0.16), 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(255, 255, 255, 0.08);
  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(124, 143, 255, 0.12), 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;
}

.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);
  background: rgba(5, 13, 27, 0.56);
  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: #0d1730;
  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: rgba(5, 13, 27, 0.92);
  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(5, 11, 23, 0.56);
  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);
  background: linear-gradient(180deg, rgba(14, 24, 44, 0.98), rgba(8, 16, 30, 0.98));
  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;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  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(8, 17, 33, 0.95);
  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(255, 255, 255, 0.98), rgba(247, 248, 255, 0.98));
  color: #1a2440;
  box-shadow: 0 18px 44px rgba(35, 42, 78, 0.18);
  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(124, 143, 255, 0.14);
  color: #4d5fcd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.info-window-title {
  display: block;
  color: #16203a;
  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(157, 121, 216, 0.16);
  color: #784db4;
}

.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(92, 133, 255, 0.12);
  color: #3952be;
  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: 1fr;
    align-items: stretch;
  }

  .topbar-utility {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .community-workspace {
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.78fr);
  }
}

@media (max-width: 900px) {
  .topbar {
    padding: 14px 14px 12px;
  }

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

  .community-workspace {
    display: block;
    padding: 10px 12px 0;
  }

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

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

  .side-sheet-handle {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
    pointer-events: auto;
  }

  .side-sheet-body {
    height: min(70dvh, 660px);
    border-radius: 28px 28px 22px 22px;
    pointer-events: auto;
    transition: transform 0.24s ease;
  }

  body.sheet-collapsed .side-sheet-body {
    transform: translateY(calc(100% - 188px));
  }

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

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

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

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

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

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

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

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

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

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

@media (max-width: 520px) {
  .topbar {
    gap: 12px;
  }

  .topbar-utility {
    gap: 10px;
  }

  .community-auth-block {
    padding: 9px;
    border-radius: 16px;
  }

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

  .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 (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
