:root {
  --bg: #eef1f4;
  --bg-elevated: rgba(229, 240, 255, 0.42);
  --card: rgba(255, 255, 255, 0.82);
  --line: rgba(177, 198, 224, 0.5);
  --text: #17324f;
  --muted: #5e7898;
  --accent: #7cb5ff;
  --accent-strong: #2e6fcb;
  --danger: #b3261e;
  --shadow: 0 18px 38px rgba(77, 114, 160, 0.12);
  --glass-highlight: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.04));
  --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.72), inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --nav-height: 88px;
  --font-main: "SUIT Variable", "Pretendard Variable", "Apple SD Gothic Neo", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  max-width: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
}

body {
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  overflow-x: hidden;
}

#app {
  min-height: 100vh;
}

button,
input,
textarea,
select {
  font: inherit;
  min-width: 0;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  max-width: 540px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 12px 12px calc(var(--nav-height) + 18px);
}

.app-shell.app-shell--map-route {
  padding-bottom: 0;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 2px 6px 12px;
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #1474f8;
  font-size: 0.88rem;
  font-weight: 900;
}

.topbar__brand img {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  object-fit: contain;
}

.topbar__brand span {
  min-width: 0;
}

.app-shell.app-shell--topbar-hidden .topbar {
  display: none !important;
}

.app-shell.app-shell--topbar-hidden:not(.app-shell--map-route) .page-view::before {
  content: "";
  display: block;
  height: 1px;
  margin: 6px 6px 12px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1),
    rgba(170, 199, 234, 0.74),
    rgba(255, 255, 255, 0.1)
  );
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.topbar__action {
  display: none;
  min-width: 72px;
  padding-inline: 14px;
  gap: 2px;
  justify-items: center;
  padding-block: 10px;
  text-align: center;
  white-space: nowrap;
}

.topbar__action strong,
.topbar__action small {
  display: block;
}

.topbar__action small {
  color: var(--muted);
  font-size: 0.72rem;
}

.topbar h1,
.hero-card h2,
.card h2 {
  margin: 4px 0 0;
  font-size: 1.7rem;
  line-height: 1.15;
}

.topbar h1 {
  display: none;
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.page {
  display: grid;
  gap: 16px;
}

.page--map {
  gap: 0;
}

.page--auth {
  align-content: start;
}

.auth-modern-shell {
  display: grid;
  max-width: 520px;
  margin: 0 auto;
  gap: 14px;
  align-items: start;
}

.auth-modern-copy,
.auth-modern-panel {
  border: 1px solid rgba(183, 205, 232, 0.68);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 60px rgba(74, 113, 165, 0.16);
}

.auth-modern-copy {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 26px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(247, 252, 255, 0.94), rgba(231, 244, 255, 0.72)),
    radial-gradient(circle at 30% 20%, rgba(3, 199, 90, 0.14), transparent 34%);
}

.auth-modern-copy h1 {
  margin: 0;
  color: #173150;
  font-size: 1.75rem;
  line-height: 1.15;
}

.auth-modern-copy p {
  margin: 0;
  color: #607895;
  font-size: 0.98rem;
  line-height: 1.62;
}

.onboarding-tour {
  position: fixed;
  inset: 0;
  z-index: 15000;
  pointer-events: auto;
}

.onboarding-tour__scrim {
  position: absolute;
  inset: 0;
  background: rgba(21, 43, 72, 0.34);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.onboarding-tour__spotlight {
  position: absolute;
  top: var(--tour-spot-top, 18px);
  left: var(--tour-spot-left, 18px);
  width: var(--tour-spot-width, 0);
  height: var(--tour-spot-height, 0);
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  box-shadow:
    0 0 0 9999px rgba(21, 43, 72, 0.1),
    0 18px 46px rgba(21, 43, 72, 0.24),
    inset 0 0 0 1px rgba(124, 181, 255, 0.46);
  pointer-events: none;
}

.onboarding-tour[data-has-target="false"] .onboarding-tour__spotlight {
  display: none;
}

.onboarding-tour__card {
  position: absolute;
  left: 50%;
  bottom: calc(var(--nav-height) + 16px + env(safe-area-inset-bottom));
  display: grid;
  width: min(424px, calc(100vw - 28px));
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(183, 205, 232, 0.78);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  box-shadow:
    0 24px 68px rgba(21, 43, 72, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateX(-50%);
}

.onboarding-tour__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.onboarding-tour__skip {
  padding: 0;
  background: transparent;
  color: #5d7898;
  font-size: 0.78rem;
  font-weight: 800;
}

.onboarding-tour__icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 15px;
  background: linear-gradient(180deg, #eaf3ff, #f7fbff);
  border: 1px solid rgba(124, 181, 255, 0.4);
  color: #2e6fcb;
  font-size: 1.15rem;
  font-weight: 900;
}

.onboarding-tour__card h2,
.onboarding-tour__card p {
  margin: 0;
}

.onboarding-tour__card h2 {
  color: #17324f;
  font-size: 1.2rem;
  line-height: 1.24;
}

.onboarding-tour__card p {
  color: #5d7898;
  font-size: 0.94rem;
  line-height: 1.58;
}

.onboarding-tour__replay {
  color: #6f86a3;
  font-size: 0.78rem;
  line-height: 1.45;
}

.onboarding-tour-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-height) + 18px + env(safe-area-inset-bottom));
  z-index: 15100;
  width: min(360px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(183, 205, 232, 0.72);
  background: rgba(255, 255, 255, 0.95);
  color: #31516f;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 18px 46px rgba(21, 43, 72, 0.24);
  transform: translateX(-50%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.onboarding-tour-toast.is-leaving {
  opacity: 0;
  transform: translate(-50%, 6px);
}

.onboarding-tour__dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.onboarding-tour__dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(124, 181, 255, 0.34);
}

.onboarding-tour__dots span.is-active {
  width: 22px;
  background: #2e6fcb;
}

.onboarding-tour__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.onboarding-tour__back,
.onboarding-tour__next {
  min-height: 42px;
  border-radius: 14px;
}

.onboarding-tour__next {
  padding-inline: 18px;
}

@media (min-width: 768px) {
  .onboarding-tour__card {
    left: auto;
    right: 28px;
    bottom: 28px;
    transform: none;
  }

  .onboarding-tour[data-position="top"] .onboarding-tour__card,
  .onboarding-tour[data-position="left"] .onboarding-tour__card {
    top: 28px;
    bottom: auto;
  }
}

.auth-modern-points {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.auth-modern-points span {
  width: fit-content;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: #31516f;
  font-size: 0.78rem;
  font-weight: 800;
}

.auth-modern-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 26px;
}

.auth-choice-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(183, 205, 232, 0.64);
  background: rgba(255, 255, 255, 0.78);
}

.auth-choice-card--primary {
  border-color: rgba(3, 199, 90, 0.24);
  background:
    linear-gradient(180deg, rgba(246, 255, 250, 0.94), rgba(255, 255, 255, 0.8));
}

.auth-choice-card--quiet {
  background: rgba(248, 251, 255, 0.62);
}

.auth-stage {
  display: grid;
  gap: 14px;
}

.auth-stage[hidden],
.auth-choice-card[hidden] {
  display: none !important;
}

.auth-entry-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.auth-entry-actions .secondary-button {
  min-height: 44px;
  padding-inline: 10px;
}

.auth-entry-actions .secondary-button.is-active {
  border-color: rgba(46, 111, 203, 0.62);
  background: rgba(230, 241, 255, 0.96);
  color: var(--accent-strong);
}

.auth-choice-card > strong {
  color: #1d3856;
  font-size: 1rem;
}

.auth-choice-card__tag {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(3, 199, 90, 0.1);
  color: #087a3d;
  font-size: 0.78rem;
  font-weight: 900;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #4d637c;
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-remember input {
  width: 18px;
  height: 18px;
  accent-color: #03c75a;
}

.auth-login-methods {
  display: grid;
  gap: 8px;
}

.auth-login-methods small {
  color: #607895;
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-provider-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.auth-provider-button {
  display: inline-grid;
  place-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 58px;
  padding: 8px 6px;
  border-radius: 14px;
  border: 1px solid rgba(183, 205, 232, 0.72);
  background: rgba(255, 255, 255, 0.78);
  color: #1d3856;
  font-size: 0.78rem;
  font-weight: 900;
}

.auth-provider-button span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(49, 81, 111, 0.1);
  line-height: 1;
}

.auth-provider-button--naver {
  border-color: rgba(3, 169, 77, 0.42);
  color: #087a3d;
}

.auth-provider-button--naver .naver-login-logo {
  width: 32px;
  height: 32px;
}

.auth-provider-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.auth-consent-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(183, 205, 232, 0.58);
  background: rgba(255, 255, 255, 0.7);
}

.auth-consent-box > p {
  margin: 0;
  color: #6b82a0;
  font-size: 0.82rem;
  line-height: 1.55;
}

.auth-consent-box strong {
  color: #1d3856;
  font-size: 0.9rem;
}

.auth-consent-box__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  margin: 0 -6px;
  padding: 6px;
  border-radius: 12px;
  color: #526a83;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
}

.auth-consent-box__row:hover,
.auth-consent-box__row:focus-visible {
  background: rgba(3, 199, 90, 0.07);
  outline: none;
}

.auth-consent-box__row label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.auth-consent-box__row label span {
  min-width: 0;
}

.auth-consent-box__row small {
  color: #7d91aa;
  font-size: 0.74rem;
  white-space: nowrap;
}

.auth-consent-box__link {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(3, 199, 90, 0.28);
  background: rgba(3, 199, 90, 0.08);
  color: #087a3d;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.auth-consent-box input {
  width: 17px;
  height: 17px;
  accent-color: #03c75a;
}

.auth-consent-box input:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.auth-consent-box input:disabled:checked {
  opacity: 1;
}

.auth-consent-box summary {
  cursor: pointer;
  color: #6b82a0;
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-consent-box p {
  margin: 6px 0 0;
  color: #6b82a0;
  font-size: 0.82rem;
  line-height: 1.55;
}

.modal-card--legal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  width: min(680px, calc(100vw - 28px));
  max-height: min(760px, calc(100dvh - 40px));
  overflow: hidden;
}

.legal-modal__header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
}

.legal-modal__header > div {
  min-width: 0;
}

.legal-modal__header .eyebrow {
  margin: 0 0 6px;
}

.legal-modal__header h2 {
  margin: 0;
  color: #25425f;
  font-size: clamp(1.32rem, 4.8vw, 1.86rem);
  line-height: 1.18;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.legal-modal__header .auth-help {
  white-space: nowrap;
  padding-top: 2px;
  font-size: 0.84rem;
}

.legal-modal__body {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
}

.legal-modal__summary {
  margin: 0;
  color: #536d8a;
  font-size: 0.94rem;
  line-height: 1.6;
}

.legal-modal__sections {
  display: grid;
  gap: 10px;
}

.legal-modal__section {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(183, 205, 232, 0.52);
  background: rgba(248, 251, 255, 0.72);
}

.legal-modal__section h3 {
  margin: 0;
  color: #1d3856;
  font-size: 0.94rem;
}

.legal-modal__section p {
  margin: 0;
  color: #5f7896;
  font-size: 0.88rem;
  line-height: 1.62;
}

.legal-modal__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-end;
  margin-top: 0;
  padding-top: 2px;
}

.sheet-actions.legal-modal__actions {
  display: flex;
  grid-template-columns: none;
}

.legal-modal__actions > button {
  flex: 0 1 112px;
  min-width: 0;
  white-space: nowrap;
}

.legal-modal__actions [data-legal-agree]:disabled {
  border: 1px solid rgba(151, 164, 184, 0.38);
  background: #d8e0ea;
  color: #7d8b9e;
  box-shadow: none;
  cursor: not-allowed;
  filter: grayscale(0.18);
  opacity: 1;
}

.auth-card,
.auth-hero {
  display: grid;
  gap: 14px;
}

.auth-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.naver-login-button,
.naver-connect-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #03a94d;
  color: #fff;
  border-color: rgba(3, 169, 77, 0.82);
  border-radius: 14px;
  padding: 13px 16px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(3, 169, 77, 0.2);
}

.naver-login-logo {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.oauth-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(183, 205, 232, 0.54);
}

.oauth-provider-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(3, 169, 77, 0.2);
  background: rgba(246, 255, 250, 0.72);
}

.oauth-provider-card__mark {
  display: block;
  width: 38px;
  height: 38px;
}

.oauth-provider-card__body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.oauth-provider-card__body small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .auth-modern-shell {
    grid-template-columns: 1fr;
  }

  .auth-modern-copy {
    padding: 22px;
  }

  .auth-modern-copy h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 560px) {
  .page--auth {
    gap: 12px;
  }

  .auth-modern-copy {
    gap: 10px;
    padding: 18px;
  }

  .auth-modern-copy .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .auth-modern-copy h1 {
    font-size: 1.42rem;
    line-height: 1.18;
  }

  .auth-modern-copy p {
    font-size: 0.9rem;
    line-height: 1.52;
  }

  .auth-modern-points {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .auth-modern-points::-webkit-scrollbar {
    display: none;
  }

  .auth-modern-points span {
    max-width: none;
    padding: 6px 9px;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .auth-modern-panel,
  .auth-modern-copy,
  .auth-choice-card {
    border-radius: 18px;
  }

  .auth-modern-panel {
    padding: 12px;
  }

  .oauth-provider-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .oauth-provider-card .secondary-button {
    grid-column: 1 / -1;
  }
}

.settings-actions,
.settings-invites,
.member-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.member-list {
  display: grid;
  gap: 12px;
}

.member-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(181, 202, 228, 0.56);
  background: rgba(255, 255, 255, 0.56);
}

.member-card.is-pending {
  border-color: rgba(255, 181, 132, 0.7);
  background: rgba(255, 247, 236, 0.78);
}

.member-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.member-card__identity {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.member-card__identity small {
  color: var(--muted);
}

.member-card__tag {
  margin: 0;
  color: #9a6a00;
  font-size: 0.82rem;
  font-weight: 700;
}

.member-card__meta,
.member-card__controls {
  display: grid;
  gap: 8px;
}

.member-card__meta small {
  color: var(--muted);
}

.member-card__controls {
  margin-top: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.passkey-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(181, 202, 228, 0.48);
}

.passkey-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.passkey-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.passkey-list {
  display: grid;
  gap: 8px;
}

.passkey-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(181, 202, 228, 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(245, 249, 255, 0.68));
}

.passkey-card__main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.passkey-card__main strong,
.passkey-card__main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.passkey-card__main small {
  color: var(--muted);
  font-size: 0.82rem;
}

.passkey-card__delete {
  flex: 0 0 auto;
}

.page--settings {
  gap: 14px;
  padding-top: 2px;
}

.page--settings .card {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(154, 184, 222, 0.58);
  box-shadow: 0 16px 34px rgba(66, 96, 132, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.page--settings input,
.page--settings select,
.page--settings textarea {
  background-color: rgba(255, 255, 255, 0.96);
  border-color: rgba(142, 177, 221, 0.62);
  color: #23354d;
}

.page--settings .auth-help,
.page--settings .hero-subcopy,
.page--settings small {
  color: #657996;
}

.page--settings .danger-text-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(220, 82, 82, 0.34);
  background: linear-gradient(180deg, rgba(255, 112, 112, 0.94), rgba(220, 64, 64, 0.92));
  color: #fff;
  box-shadow: 0 10px 20px rgba(220, 82, 82, 0.18);
}

.page--settings .danger-text-button:hover,
.page--settings .danger-text-button:focus-visible {
  color: #fff;
  border-color: rgba(210, 54, 54, 0.48);
  transform: translateY(-1px);
}

.member-card__delete-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.member-card__delete-button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.settings-panel {
  gap: 0;
  overflow: hidden;
}

.settings-panel > .sheet-section__head,
.settings-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-bottom: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  cursor: pointer;
}

.settings-panel > .sheet-section__head strong,
.settings-panel__head strong {
  color: #405a87;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0;
}

.settings-panel__toggle,
.settings-icon-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(164, 190, 222, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.settings-panel__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-width: 18px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6d82a6;
  box-shadow: none;
}

.settings-panel__toggle svg,
.settings-icon-button svg {
  width: 16px;
  height: 16px;
}

.settings-panel__toggle svg {
  width: 100%;
  height: 100%;
}

.settings-panel__toggle svg {
  transition: transform 160ms ease;
}

.settings-panel__head:focus-visible {
  outline: 2px solid rgba(116, 159, 227, 0.62);
  outline-offset: 3px;
}

.settings-panel.is-collapsed .settings-panel__toggle svg {
  transform: rotate(-90deg);
}

.settings-panel__body {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.settings-panel__body[hidden] {
  display: none;
}

.settings-icon-button--danger {
  border-color: rgba(220, 82, 82, 0.34);
  background: rgba(255, 241, 241, 0.92);
  color: #d94a4a;
}

.settings-hero {
  gap: 16px;
  overflow: hidden;
}

.settings-hero::after {
  content: "";
  position: absolute;
  inset: auto -12% 52% auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(124, 181, 255, 0.2), transparent 68%);
  pointer-events: none;
}

.settings-hero__head,
.settings-hero__workspace {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.settings-hero__workspace {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(228, 239, 255, 0.64));
  border: 1px solid rgba(183, 205, 232, 0.58);
}

.settings-hero__workspace strong,
.settings-hero__workspace small {
  display: block;
}

.settings-hero__workspace small {
  color: var(--muted);
  text-align: right;
}

.settings-my-hub {
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(249, 252, 255, 0.88);
  border-color: rgba(182, 201, 224, 0.58);
  box-shadow: 0 14px 30px rgba(60, 92, 130, 0.1);
}

.settings-my-hub::after {
  display: none;
}

.settings-my-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.settings-my-summary__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  justify-self: end;
}

.settings-my-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #edf4fc;
  border: 1px solid rgba(177, 198, 224, 0.7);
  color: #375c8b;
  font-size: 1.05rem;
  font-weight: 900;
}

.settings-my-avatar span {
  line-height: 1;
}

.settings-my-avatar small {
  position: absolute;
  right: -5px;
  bottom: -5px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #1474f8;
  border: 2px solid #fff;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.settings-my-title {
  min-width: 0;
}

.settings-my-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.settings-my-title .eyebrow,
.settings-my-title h2,
.settings-my-title p {
  margin: 0;
}

.settings-my-title h2 {
  min-width: 0;
  color: #1d3856;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-my-title p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-my-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.settings-my-fact,
.settings-my-facts > span {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 9px 11px;
  border-radius: 15px;
  background: #f3f7fc;
  border: 1px solid rgba(183, 205, 232, 0.44);
  color: #334a65;
  font-size: 0.85rem;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-my-fact b,
.settings-my-facts > span b {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.settings-gender-fact {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e6f1ff;
  color: #1474f8;
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 900;
}

.settings-my-fact span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-my-fact--button {
  cursor: pointer;
}

.settings-my-fact--button::after {
  content: "›";
  flex: 0 0 auto;
  margin-left: auto;
  color: #7890b0;
  font-size: 1.05rem;
  line-height: 1;
}

.settings-my-open {
  width: 32px;
  height: 32px;
  min-width: 32px;
  color: #52719c;
  background: #eef5ff;
  border-color: rgba(151, 178, 212, 0.5);
}

.settings-my-logout {
  min-height: 32px;
  padding: 0 10px;
  white-space: nowrap;
  border-radius: 999px;
  color: #5d7493;
  background: #f6f9fd;
  border: 1px solid rgba(177, 198, 224, 0.64);
  box-shadow: none;
}

.settings-my-detail {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin-top: 2px;
  padding: 12px;
  border-radius: 20px;
  background: #f4f8fd;
  border: 1px solid rgba(177, 198, 224, 0.52);
}

.settings-my-detail[hidden] {
  display: none;
}

.settings-my-detail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 0 0 2px;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.settings-my-detail__head p,
.settings-my-detail__head strong {
  margin: 0;
}

.settings-my-detail__head strong {
  color: #223c5c;
  font-size: 1rem;
}

.settings-my-grid {
  display: grid;
  gap: 10px;
}

.settings-my-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(177, 198, 224, 0.5);
  box-shadow: 0 8px 18px rgba(60, 92, 130, 0.05);
}

.settings-my-card__head {
  display: grid;
  gap: 3px;
}

.settings-my-card__head strong {
  color: #223c5c;
  font-size: 0.98rem;
}

.settings-my-card__head small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.settings-compact-form {
  gap: 8px;
}

.settings-compact-form input,
.settings-compact-form select {
  min-height: 42px;
}

.settings-recommendation-form {
  gap: 10px;
}

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

.settings-recommendation-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 14px;
  border: 1px solid rgba(183, 205, 232, 0.62);
  background: rgba(255, 255, 255, 0.78);
  color: #405a87;
  font-size: 0.84rem;
  font-weight: 800;
}

.settings-recommendation-chip input {
  width: 16px;
  height: 16px;
  min-height: 0;
  flex: 0 0 auto;
  accent-color: #ffce3d;
}

.settings-recommendation-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page--settings [data-profile-settings-form] .stack-form__field:not(.profile-birthday-field) > span,
.page--settings [data-profile-settings-form] .profile-birthday-field > small,
.profile-gender-picker legend {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.profile-birthday-field {
  gap: 5px;
}

.profile-date-input {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(183, 205, 232, 0.62);
  background: #fff;
  overflow: hidden;
}

.profile-date-input > span {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  pointer-events: none;
}

.profile-date-input input[type="date"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  opacity: 0.01;
}

.profile-date-input:focus-within {
  border-color: rgba(59, 130, 246, 0.62);
  box-shadow: 0 0 0 3px rgba(84, 145, 235, 0.13);
}

.profile-gender-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.profile-gender-picker legend {
  grid-column: 1 / -1;
}

.profile-gender-picker label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 14px;
  border: 1px solid rgba(183, 205, 232, 0.62);
  background: #f6f9fd;
  color: #3d5572;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.profile-gender-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-gender-picker label:has(input:checked) {
  border-color: rgba(20, 116, 248, 0.54);
  background: #eaf3ff;
  color: #1263d6;
}

.profile-gender-picker label span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  color: #1474f8;
}

.settings-my-card .oauth-panel,
.settings-my-card .passkey-panel {
  margin-top: 2px;
  padding-top: 10px;
}

.page--settings [data-profile-settings-form] .secondary-button[type="submit"],
.page--settings [data-workspace-settings-form] .secondary-button[type="submit"],
.page--settings [data-password-set-form] .secondary-button[type="submit"],
.page--settings [data-member-save],
.page--settings [data-tag-save],
.page--settings [data-dday-submit] {
  border-color: rgba(46, 111, 203, 0.72);
  background: linear-gradient(180deg, #3f83e4, #2e6fcb);
  color: #fff;
  box-shadow: 0 10px 20px rgba(46, 111, 203, 0.2);
}

.settings-split-card {
  display: grid;
  gap: 14px;
  align-items: start;
}

.settings-guide-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
}

.settings-guide-card__copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.settings-guide-card__copy strong,
.settings-guide-card__copy p {
  margin: 0;
}

.settings-guide-card__copy strong {
  color: #294869;
  font-size: 0.98rem;
}

.settings-guide-card__copy p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.settings-pwa-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 248, 255, 0.82)),
    radial-gradient(circle at 18% 18%, rgba(3, 199, 90, 0.12), transparent 34%);
}

.settings-pwa-card:has(.settings-pwa-guide) {
  grid-template-columns: minmax(0, 1fr) auto;
}

.settings-pwa-card__copy {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.settings-pwa-card__icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  background: rgba(46, 111, 203, 0.12);
  color: var(--accent-strong);
}

.settings-pwa-card__icon svg {
  width: 20px;
  height: 20px;
}

.settings-pwa-card__copy strong,
.settings-pwa-card__copy p {
  margin: 0;
}

.settings-pwa-card__copy strong {
  color: #294869;
  font-size: 0.98rem;
}

.settings-pwa-card__copy p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.settings-pwa-guide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.settings-pwa-guide span {
  display: grid;
  gap: 6px;
  min-width: 0;
  min-height: 104px;
  padding: 10px;
  border: 1px solid rgba(183, 205, 232, 0.62);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.settings-pwa-guide b {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  justify-self: center;
  border-radius: 999px;
  background: rgba(46, 111, 203, 0.12);
  color: var(--accent-strong);
  font-size: 0.78rem;
}

.settings-pwa-guide i {
  display: grid;
  min-height: 34px;
  place-items: center;
  color: #244765;
  font-style: normal;
  font-weight: 900;
}

.settings-pwa-guide i svg {
  display: block;
  width: 24px;
  height: 24px;
}

.settings-pwa-guide small {
  display: block;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.settings-pwa-guide__detail {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(154, 184, 222, 0.5);
}

.settings-pwa-guide__detail[hidden] {
  display: none;
}

.settings-pwa-guide__detail strong,
.settings-pwa-guide__detail p {
  margin: 0;
}

.settings-pwa-guide__detail strong {
  color: #294869;
  font-size: 0.9rem;
}

.settings-pwa-guide__detail p {
  color: #657996;
  font-size: 0.82rem;
  line-height: 1.55;
}

@media (max-width: 520px) {
  .settings-guide-card,
  .settings-pwa-card {
    grid-template-columns: 1fr;
  }

  .settings-pwa-card .secondary-button {
    width: 100%;
  }

  .settings-pwa-guide {
    grid-template-columns: 1fr;
  }

  .settings-pwa-guide span {
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    text-align: left;
    min-height: 58px;
    padding: 9px 10px;
  }

  .settings-pwa-guide b {
    justify-self: start;
  }

  .settings-pwa-guide i {
    min-width: 42px;
    min-height: 32px;
  }

  .settings-pwa-guide i svg {
    width: 22px;
    height: 22px;
  }
}

.settings-split-card__section {
  display: grid;
  gap: 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.settings-split-card__section--warm {
  background: transparent;
  border-color: transparent;
}

.settings-split-card__section + .settings-split-card__section {
  padding-top: 14px;
  border-top: 1px solid rgba(183, 205, 232, 0.42);
}

.settings-result-card,
.settings-invite-result {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(244, 249, 255, 0.84);
  border: 1px solid rgba(183, 205, 232, 0.52);
}

.settings-result-card--guest {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(245, 192, 59, 0.36);
}

.settings-result-card__headline,
.settings-invite-result__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px dashed rgba(91, 145, 228, 0.58);
  color: var(--accent-strong);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  word-break: break-all;
  text-align: center;
}

.settings-result-card small,
.settings-invite-result small {
  color: var(--muted);
}

.card,
.bottom-sheet,
.modal-card {
  background: var(--card);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow), var(--glass-inset);
  position: relative;
}

.card::before,
.bottom-sheet::before,
.modal-card::before,
.bottom-nav::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: var(--glass-highlight);
  pointer-events: none;
  opacity: 0.45;
}

.card,
.bottom-sheet {
  padding: 18px;
}

.hero-card {
  overflow: hidden;
}

.hero-card::after,
.bottom-sheet::after {
  content: "";
  position: absolute;
  inset: auto -16% 56% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 62%);
  filter: blur(8px);
  pointer-events: none;
}

.hero-card--map {
  padding: 8px 8px 12px;
  display: grid;
  align-content: start;
}

.hero-copy {
  margin-bottom: 10px;
}

.hero-copy--compact {
  margin-bottom: 0;
  position: relative;
  z-index: 7;
  padding: 10px 12px 0;
}

.hero-copy__headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hero-copy__headline--compact {
  align-items: center;
}

.hero-copy__headline--solo {
  justify-content: flex-end;
}

.hero-copy__label h2 {
  margin-top: 2px;
  font-size: 1.1rem;
}

.hero-subcopy,
.hint-copy {
  margin: 8px 0 0;
  color: var(--muted);
}

.hero-help {
  position: relative;
  flex: 0 0 auto;
}

.hero-help__button {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(158, 184, 220, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(239, 246, 255, 0.68)),
    rgba(255, 255, 255, 0.72);
  color: #57769f;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 18px rgba(97, 132, 180, 0.12);
}

.hero-help__tooltip {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(250px, calc(100vw - 56px));
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(183, 205, 232, 0.6);
  background: rgba(255, 255, 255, 0.96);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  box-shadow: 0 14px 30px rgba(77, 114, 160, 0.16);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 5;
}

.hero-help__tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.map-surface {
  width: 100%;
  height: 74dvh;
  min-height: 620px;
  border-radius: 24px;
  margin-top: -86px;
  padding-top: 160px;
  background: linear-gradient(135deg, rgba(217, 101, 59, 0.1), rgba(255, 255, 255, 0.75));
  touch-action: pan-x pan-y;
}

.map-provider-host {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.map-pin {
  position: relative;
  width: var(--pin-size, 30px);
  min-width: var(--pin-size, 30px);
  height: var(--pin-size, 30px);
  padding: 0;
  box-sizing: border-box;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pin-color, #7cb5ff);
  color: var(--pin-ink, #17324f);
  border: 1.5px solid var(--pin-border-color, rgba(255, 255, 255, 0.96));
  box-shadow: 0 10px 24px rgba(48, 83, 127, 0.16);
  font-size: var(--pin-font-size, 0.74rem);
  font-weight: 800;
  opacity: 0.96;
}

.map-pin__selected-ring {
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  border: 2px solid rgba(var(--pin-border-rgb, 91, 145, 228), 0.38);
  pointer-events: none;
  animation: selected-ring-pulse 1.25s ease-out infinite;
}

.map-pin-name-overlay {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 76px;
  min-height: 24px;
  padding: 4px 9px 5px;
  border-radius: 10px 10px 10px 4px;
  border: 1px solid var(--pin-border-color, rgba(255, 255, 255, 0.92));
  background: var(--pin-color, #7cb5ff);
  color: var(--pin-ink, #17324f);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  overflow: visible;
  text-overflow: ellipsis;
  box-shadow: 0 8px 16px rgba(48, 83, 127, 0.2);
  pointer-events: auto;
  cursor: pointer;
  opacity: 0.94;
}

.map-pin-name-overlay--google {
  position: absolute;
}

.map-pin-name-overlay::before {
  content: "";
  position: absolute;
  left: 9px;
  bottom: -6px;
  width: 12px;
  height: 8px;
  background: var(--pin-border-color, rgba(255, 255, 255, 0.92));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.map-pin-name-overlay::after {
  content: "";
  position: absolute;
  left: 10px;
  bottom: -5px;
  width: 10px;
  height: 7px;
  background: var(--pin-color, #7cb5ff);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.map-pin__activity-badge,
.map-pin-name-overlay__activity-badge {
  position: absolute;
  z-index: 6;
  min-width: 10px;
  height: 10px;
  padding: 0 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  background: #e84d4d;
  color: #ffffff;
  font-size: 0.44rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(180, 39, 39, 0.2);
  pointer-events: none;
}

.map-pin__activity-badge {
  left: -2px;
  top: -2px;
}

.map-pin-name-overlay__activity-badge {
  left: -4px;
  top: -5px;
}

.map-pin-name-overlay.has-bookmark .map-pin-name-overlay__activity-badge {
  left: auto;
  right: -4px;
}

.tour-recommendation-pin {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 76px;
  min-width: 0;
  max-width: 76px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #31506d;
  box-shadow: none;
  font-size: 0.68rem;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  pointer-events: auto;
  appearance: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 0.94;
}

.tour-recommendation-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 38px;
  width: 13px;
  height: 9px;
  background: rgba(255, 255, 255, 0.96);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 2px 3px rgba(38, 69, 96, 0.22));
  transform: translateX(-50%);
  z-index: 0;
}

.tour-recommendation-pin__dot {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px 14px 14px 5px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  background: #8fb6bc;
  box-shadow: 0 8px 18px rgba(18, 65, 70, 0.2);
  z-index: 1;
}

.tour-recommendation-pin__thumb {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px 14px 14px 5px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  object-fit: cover;
  background: #dbe8e4;
  box-shadow: 0 8px 18px rgba(18, 65, 70, 0.2);
  z-index: 1;
}

.tour-recommendation-pin strong,
.tour-recommendation-pin small {
  display: block;
  max-width: 76px;
  overflow: visible;
}

.tour-recommendation-pin strong {
  padding: 2px 6px 3px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 5px 12px rgba(48, 83, 127, 0.13);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: normal;
}

.tour-recommendation-pin__title-line {
  display: block;
  white-space: nowrap;
}

.tour-recommendation-pin small {
  display: none;
}

.tour-recommendation-pin--festival {
  width: 76px;
  min-width: 0;
  max-width: 76px;
  background: transparent;
  color: #314f72;
  box-shadow: none;
}

.tour-recommendation-pin--festival::after {
  background: rgba(255, 255, 255, 0.96);
}

.tour-recommendation-pin--festival .tour-recommendation-pin__dot {
  background: #91aac6;
  box-shadow: 0 0 0 3px rgba(145, 170, 198, 0.14);
}

.tour-recommendation-pin--festival.is-active,
.tour-recommendation-pin--festival.is-soon {
  animation: festival-pin-throb 1.9s ease-in-out infinite;
}

@keyframes festival-pin-throb {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 8px 18px rgba(48, 83, 127, 0.13);
  }
  48% {
    transform: translateY(-1px) scale(1.035);
    box-shadow:
      0 10px 22px rgba(48, 83, 127, 0.16),
      0 0 0 6px rgba(145, 170, 198, 0.1);
  }
}

.festival-detail-sheet {
  display: grid;
  gap: 12px;
}

.festival-detail__header {
  align-items: flex-start;
}

.festival-detail__title-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.festival-detail__thumbnail {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  border-radius: 8px;
  object-fit: cover;
  background: linear-gradient(180deg, rgba(224, 237, 250, 0.96), rgba(199, 221, 244, 0.92));
  box-shadow: 0 10px 20px rgba(42, 82, 126, 0.14);
}

.festival-detail__title-copy {
  min-width: 0;
}

.festival-detail__title-copy span {
  display: block;
  margin-bottom: 3px;
  color: #396891;
  font-size: 0.74rem;
  font-weight: 900;
}

.festival-detail__title-copy h2 {
  margin: 0 0 5px;
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.18;
}

.festival-detail__title-copy strong {
  display: block;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.25;
}

.festival-detail__title-copy p {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.festival-detail__header-actions {
  display: flex;
  justify-content: flex-end;
  min-width: 82px;
}

.festival-detail__register-button {
  min-height: 34px;
  padding-inline: 12px;
  white-space: nowrap;
}

.festival-detail__status-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.festival-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.festival-detail__actions > * {
  flex: 1 1 96px;
  min-width: 0;
  justify-content: center;
}

.festival-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.festival-detail__info-section {
  min-width: 0;
  padding: 13px;
  border-radius: 8px;
  background: rgba(234, 243, 252, 0.74);
}

.festival-detail__info-section span {
  display: block;
  margin-bottom: 7px;
  color: #244b70;
  font-size: 0.9rem;
  font-weight: 900;
}

.festival-detail__info-section p,
.festival-detail__overview p {
  margin: 0;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.48;
  white-space: pre-line;
}

.festival-detail__overview {
  padding: 13px;
  border-radius: 8px;
  background: rgba(234, 243, 252, 0.74);
}

.festival-detail__overview h3 {
  margin: 0 0 7px;
  color: #244b70;
  font-size: 0.9rem;
}

.festival-detail__loading {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.map-pin__name-count {
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.map-pin__emoji {
  font-size: 0.92rem;
  line-height: 1;
}

.map-pin__category-icon {
  width: calc(var(--pin-size, 30px) - 8px);
  height: calc(var(--pin-size, 30px) - 8px);
  display: inline-grid;
  place-items: center;
  line-height: 1;
}

.map-pin__category-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.category-icon {
  width: 1em;
  height: 1em;
  display: block;
}

.map-pin--cluster {
  min-width: 36px;
  height: 36px;
  background: #f6fbff;
  color: var(--text);
  border-color: #7cb5ff;
}

.map-pin--draft {
  min-width: 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50% 50% 50% 10px;
  background: #2f8f6b;
  opacity: 1;
  box-shadow:
    0 0 0 6px rgba(47, 143, 107, 0.18),
    0 0 0 13px rgba(47, 143, 107, 0.08),
    0 14px 28px rgba(35, 92, 71, 0.28);
}

.map-pin--draft::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22);
}

.map-pin.is-selected {
  transform: translateY(-2px);
  opacity: 1;
  border-color: var(--pin-border-color, #fff);
}

.map-pin--place.is-selected {
  transform: translateY(-5px) scale(1.16);
  border-color: var(--pin-border-color, #17324f);
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.92),
    0 0 0 12px rgba(var(--pin-border-rgb, 91, 145, 228), 0.22),
    0 16px 30px rgba(23, 50, 79, 0.34);
  opacity: 1;
  animation: selected-pin-pulse 1.35s ease-in-out infinite;
}

.map-pin--place.is-selected::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  border: 1.5px solid rgba(var(--pin-border-rgb, 23, 50, 79), 0.48);
}

.map-pin--place.is-selected .map-pin__count {
  position: relative;
  z-index: 1;
}

.map-pin-name-overlay.is-selected {
  border-color: var(--pin-border-color, #ffffff);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.88),
    0 0 0 9px rgba(var(--pin-border-rgb, 91, 145, 228), 0.2),
    0 14px 24px rgba(23, 50, 79, 0.28);
  opacity: 1;
  transform: translateY(-3px);
  animation: selected-bubble-pulse 1.35s ease-in-out infinite;
}

.map-pin-name-overlay.is-selected::after {
  border-color: var(--pin-border-color, #ffffff);
}

.map-pin--draft.is-selected {
  transform: rotate(-45deg) translate(4px, -8px);
  border-color: #ffffff;
}

.map-pin--draft.is-selected::after {
  transform: rotate(45deg);
}

@keyframes selected-pin-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 5px rgba(255, 255, 255, 0.92),
      0 0 0 12px rgba(var(--pin-border-rgb, 91, 145, 228), 0.2),
      0 16px 30px rgba(23, 50, 79, 0.34);
  }

  50% {
    box-shadow:
      0 0 0 6px rgba(255, 255, 255, 0.96),
      0 0 0 18px rgba(var(--pin-border-rgb, 91, 145, 228), 0.06),
      0 18px 34px rgba(23, 50, 79, 0.38);
  }
}

@keyframes selected-ring-pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.78);
  }

  100% {
    opacity: 0;
    transform: scale(1.36);
  }
}

@keyframes selected-bubble-pulse {
  0%,
  100% {
    transform: translateY(-3px);
  }

  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 767px) {
  .map-pin-name-overlay {
    max-width: 68px;
    min-height: 21px;
    padding: 3px 6px 4px;
    font-size: 0.62rem;
  }

  .map-pin__name-count {
    font-size: 0.66rem;
  }
}

.searchbar,
.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.searchbar > *,
.filter-row > *,
.bottom-sheet__header > *,
.memory-card > *,
.list-item > * {
  min-width: 0;
}

.searchbar--map {
  position: sticky;
  top: 8px;
  z-index: 8;
  isolation: isolate;
  display: grid;
  gap: 8px;
  margin: 8px 12px 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(239, 245, 252, 0.28));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 18px 38px rgba(39, 71, 112, 0.12);
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  touch-action: manipulation;
}

.searchbar__row {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.searchbar__toggle {
  flex: 0 0 auto;
  min-width: 64px;
  min-height: 50px;
  padding: 8px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(233, 241, 250, 0.28));
  color: #28415f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 10px 22px rgba(39, 71, 112, 0.08);
  display: grid;
  gap: 2px;
  justify-items: center;
  align-content: center;
  white-space: nowrap;
}

.searchbar__toggle[data-provider-mode="google"] {
  color: #5d4960;
}

.searchbar__toggle-kicker {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(74, 100, 132, 0.74);
}

.searchbar__toggle strong {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.searchbar__field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 12px 0 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(244, 248, 253, 0.34));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 26px rgba(39, 71, 112, 0.08);
  overflow: hidden;
}

.searchbar__field-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-grid;
  place-items: center;
  color: rgba(63, 88, 120, 0.72);
}

.searchbar__field-icon {
  left: 14px;
  pointer-events: none;
}

.searchbar__field-icon svg {
  width: 17px;
  height: 17px;
}

.searchbar__field input {
  flex: 1 1 auto;
  width: 100%;
  min-height: 100%;
  padding: 2px 0 1px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  appearance: none;
  -webkit-appearance: none;
}

.searchbar__field input::placeholder {
  color: rgba(85, 108, 136, 0.72);
  font-weight: 600;
}

.searchbar__field input:focus {
  outline: none;
}

.searchbar__toggle:hover,
.searchbar__toggle:focus-visible,
.searchbar__field:focus-within {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(247, 250, 255, 0.42));
}

.map-search-suggestions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  width: 100%;
  max-height: min(460px, 56vh);
  overflow-y: auto;
  padding: 6px 2px 4px;
  pointer-events: auto;
}

.map-search-saved-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 2px 4px;
  scroll-snap-type: x proximity;
  max-width: 100%;
  touch-action: pan-x;
}

.map-search-saved-card {
  flex: 0 0 min(96px, 27vw);
  display: grid;
  place-items: center start;
  height: 32px;
  min-height: 32px;
  padding: 5px 8px;
  border-radius: 10px;
  text-align: left;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(183, 205, 232, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.map-search-saved-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  color: var(--text);
  font-size: 0.72rem;
  line-height: 1.2;
}

.map-search-saved-card small {
  display: none;
}

.map-search-saved-card.is-wanted {
  background: rgba(217, 101, 59, 0.14);
  border-color: rgba(217, 101, 59, 0.22);
}

.map-search-saved-card.is-visited {
  background: rgba(47, 143, 107, 0.14);
  border-color: rgba(47, 143, 107, 0.22);
}

.map-search-saved-card.is-recommended {
  background: rgba(245, 192, 59, 0.18);
  border-color: rgba(245, 192, 59, 0.26);
}

.map-search-saved-card.is-active,
.map-search-saved-card:hover,
.map-search-saved-card:focus-visible {
  border-color: rgba(28, 95, 198, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 20px rgba(77, 132, 218, 0.18);
}

.map-search-suggestions[hidden] {
  display: none !important;
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.page--map.is-searching .map-filter-row {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.page--map.is-searching .map-rail-shell,
.page--map.is-searching .map-rail-shell *,
.page--map.is-searching .map-floating-tools {
  pointer-events: none !important;
}

@media (max-width: 767px) {
  .page--map .searchbar--map {
    padding: 6px !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 26px rgba(77, 114, 160, 0.1) !important;
  }

  .page--map .searchbar__row {
    gap: 6px;
  }

  .page--map .searchbar__toggle {
    min-width: 58px;
    min-height: 46px;
    padding: 6px 10px;
    border-radius: 16px;
  }

  .page--map .searchbar__toggle-kicker {
    font-size: 0.56rem;
  }

  .page--map .searchbar__toggle strong {
    font-size: 0.8rem;
  }

  .page--map .searchbar__field {
    min-height: 46px;
    padding-left: 38px;
    border-radius: 18px;
  }

  .map-search-suggestions {
    margin-top: 4px;
    width: 100%;
    max-height: min(48vh, 320px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    gap: 6px;
    padding: 0;
  }

  .map-search-saved-card {
    flex-basis: min(88px, 25vw);
    height: 30px;
    min-height: 30px;
    padding: 5px 7px;
  }

  .map-search-suggestion {
    width: 100%;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 4px 12px;
    padding: 8px 12px;
    border-radius: 12px;
  }

  .map-search-suggestion strong,
  .map-search-suggestion small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .map-search-suggestion strong {
    font-size: 0.74rem;
    line-height: 1.2;
    color: #1f2a38;
  }

  .map-search-suggestion small {
    font-size: 0.58rem;
    line-height: 1.2;
    color: rgba(31, 42, 56, 0.74);
  }

  .page--map.is-detail-open .card--sheet-host {
    display: block !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: calc(var(--nav-height) + 4px) !important;
    top: auto !important;
    z-index: 41 !important;
    pointer-events: auto !important;
    padding: 0 8px 0 !important;
    background: transparent !important;
  }

  .page--map.is-detail-open .map-detail-frame {
    display: block !important;
    max-height: min(68dvh, 620px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y !important;
  }

  .page--map.is-detail-open .bottom-sheet {
    margin: 0 !important;
    border-radius: 28px 28px 0 0 !important;
    touch-action: pan-y !important;
  }

  .page--map.is-detail-open .bottom-sheet__handle {
    margin-top: 8px;
    margin-bottom: 12px;
  }
}

.map-search-suggestion {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 6px 14px;
  padding: 14px 16px;
  text-align: left;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(183, 205, 232, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.map-search-suggestion strong {
  font-size: 1rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1f2a38;
}

.map-search-suggestion small {
  font-size: 0.85rem;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(31, 42, 56, 0.76);
}

.map-search-suggestion.is-active,
.map-search-suggestion:hover,
.map-search-suggestion:focus-visible {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(166, 208, 255, 0.2));
  border-color: rgba(127, 177, 255, 0.52);
}

.map-search-suggestion__eyebrow {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  grid-column: 1 / -1;
}

.map-search-suggestion__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(28, 95, 198, 0.14);
  border: 1px solid rgba(41, 108, 211, 0.5);
  color: rgba(24, 88, 186, 0.94);
  font-size: 0.63rem;
  font-style: normal;
  font-weight: 800;
}

.map-search-suggestion.is-saved {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(129, 184, 255, 0.38)),
    rgba(255, 255, 255, 0.94);
  border-color: rgba(61, 126, 224, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 22px rgba(77, 132, 218, 0.2);
}

.map-search-suggestion.is-saved .map-search-suggestion__eyebrow {
  color: rgba(31, 42, 56, 0.68);
  grid-column: auto;
  justify-content: flex-start;
  white-space: nowrap;
  align-self: center;
}

.map-search-suggestion.is-saved strong {
  color: #1f2a38;
}

.map-search-suggestion.is-saved {
  grid-template-columns: auto minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.map-preview__card {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  text-align: left;
  position: relative;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(183, 205, 232, 0.68);
  box-shadow: 0 16px 30px rgba(77, 114, 160, 0.18);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
}

/* Final map-layout overrides: keep the map as the true background layer. */
.app-shell.app-shell--map-route {
  max-width: none !important;
  padding: 0 0 calc(var(--nav-height) + 10px) !important;
  min-height: 100dvh !important;
}

.app-shell.app-shell--map-route .topbar {
  display: none !important;
}

.app-shell.app-shell--map-route .page-view {
  min-height: calc(100dvh - var(--nav-height));
}

.page--map {
  display: block !important;
  min-height: calc(100dvh - var(--nav-height)) !important;
}

.page--map .hero-card--map {
  position: fixed !important;
  inset: 0 0 var(--nav-height) 0 !important;
  min-height: auto !important;
  width: auto !important;
  max-width: none !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.page--map .hero-card--map::before,
.page--map .hero-card--map::after {
  display: none !important;
}

.page--map .hero-copy--compact {
  position: fixed !important;
  top: max(10px, env(safe-area-inset-top)) !important;
  right: 12px !important;
  left: auto !important;
  z-index: 24 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.page--map .searchbar--map {
  position: fixed !important;
  top: max(14px, calc(env(safe-area-inset-top) + 6px)) !important;
  left: 12px !important;
  right: 12px !important;
  z-index: 30 !important;
  margin: 0 !important;
}

.page--map .map-rail-shell {
  position: fixed !important;
  top: 78px !important;
  left: 12px !important;
  right: 12px !important;
  z-index: 22 !important;
  margin: 0 !important;
}

.page--map .map-surface {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.page--map .map-preview {
  position: fixed !important;
  left: 12px !important;
  right: 12px !important;
  bottom: calc(var(--nav-height) + 28px) !important;
  z-index: 26 !important;
  display: grid;
  justify-items: center;
}

.page--map .map-preview[hidden] {
  display: none !important;
}

.map-preview__card--overlay {
  width: min(420px, calc(100vw - 24px));
  pointer-events: auto;
  gap: 8px;
}

.map-preview__close-button {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  background: rgba(237, 243, 251, 0.96);
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
}

.map-preview__overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.map-preview__overlay-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
}

.map-preview__overlay-detail {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
}

.map-preview__overlay-detail > strong,
.map-preview__overlay-detail > small,
.map-preview__candidates {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-preview__confirm {
  width: 58px;
  min-height: 58px;
  align-self: stretch;
  display: grid;
  place-items: center;
  gap: 1px;
  margin-top: 0;
  padding: 8px 10px;
  border-radius: 14px;
  line-height: 1.12;
  white-space: normal;
}

.map-preview__confirm span {
  display: block;
  white-space: nowrap;
}

.page--map .card--sheet-host {
  position: fixed !important;
  right: 14px !important;
  bottom: calc(var(--nav-height) + 14px) !important;
  z-index: 25 !important;
  width: min(420px, calc(100vw - 28px)) !important;
  max-height: min(72dvh, 820px) !important;
  overflow: auto !important;
  display: none !important;
  padding: 0 !important;
  transform: translateX(108%);
  opacity: 0;
  pointer-events: none;
  transition: transform 240ms ease, opacity 180ms ease;
}

.page--map.has-sheet .card--sheet-host {
  display: block !important;
}

@media (max-width: 767px) {
  .page--map .hero-copy--compact {
    top: max(12px, env(safe-area-inset-top)) !important;
  }

  .page--map .searchbar--map {
    left: 10px !important;
    right: 10px !important;
    top: max(12px, calc(env(safe-area-inset-top) + 2px)) !important;
  }

  .page--map .map-rail-shell {
    top: 66px !important;
    left: 10px !important;
    right: 10px !important;
  }

  .page--map .map-preview {
    left: 10px !important;
    right: 10px !important;
    bottom: calc(var(--nav-height) + 22px) !important;
  }

  .page--map .card--sheet-host {
    left: 0 !important;
    right: 0 !important;
    bottom: calc(var(--nav-height) + 4px) !important;
    width: auto !important;
    max-height: min(72dvh, 760px) !important;
    overflow: visible !important;
    padding: 10px 8px 0 !important;
    background: transparent !important;
  }

  .page--map:not(.is-detail-open) .card--sheet-host {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .page--map .map-rail-shell {
    top: 92px !important;
    right: auto !important;
    width: 236px !important;
    bottom: 16px !important;
    overflow: hidden !important;
  }

  .page--map .map-preview {
    left: 266px !important;
    right: 16px !important;
  }
}

/* Stabilize final map route visuals */
html,
body {
  background-attachment: fixed;
}

.app-shell.app-shell--map-route,
.app-shell.app-shell--map-route .page-view,
.app-shell.app-shell--map-route .page--map,
.app-shell.app-shell--map-route .hero-card--map,
.app-shell.app-shell--map-route .map-surface {
  background: transparent !important;
}

.app-shell.app-shell--map-route,
.app-shell.app-shell--map-route .page-view,
.app-shell.app-shell--map-route .page--map {
  overflow-x: hidden !important;
}

.app-shell.app-shell--map-route .hero-card--map {
  inset: 0 !important;
  width: auto !important;
  max-width: none !important;
  overflow: hidden !important;
}

.app-shell.app-shell--map-route .map-surface {
  background: transparent !important;
}

@media (min-width: 768px) {
  .page--map .card--sheet-host {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: min(520px, 38vw) !important;
    max-height: none !important;
    padding: 14px 14px calc(var(--nav-height) + 14px) !important;
    background: rgba(219, 231, 245, 0.28) !important;
    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
    border-left: 1px solid rgba(255, 255, 255, 0.38);
  }

  .page--map.is-detail-open .card--sheet-host {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .page--map .map-detail-frame,
  .page--map .bottom-sheet {
    min-height: 100%;
  }

  .page--map .map-preview {
    right: min(520px, 38vw) !important;
    left: 280px !important;
    bottom: calc(var(--nav-height) + 24px) !important;
  }

  .page--map.is-detail-open .searchbar--map {
    right: calc(min(520px, 38vw) + 18px) !important;
  }

  .page--map.is-detail-open .hero-copy--compact {
    right: calc(min(520px, 38vw) + 18px) !important;
  }
}

.detail-sheet__shutter,
.mobile-sheet-peek {
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 28px rgba(77, 114, 160, 0.16);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
}

.detail-sheet__shutter {
  position: fixed;
  top: 50%;
  right: min(520px, 38vw);
  transform: translateY(-50%);
  width: 28px;
  height: 108px;
  border-radius: 999px 0 0 999px;
  z-index: 27;
  display: grid;
  place-items: center;
}

.detail-sheet__shutter[hidden] {
  display: none !important;
}

.detail-sheet__shutter-grip {
  width: 6px;
  height: 56px;
  border-radius: 999px;
  background: rgba(23, 50, 79, 0.22);
}

.mobile-sheet-peek {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-height) + 2px);
  transform: translateX(-50%);
  width: min(520px, calc(100vw - 24px));
  min-height: 48px;
  padding: 8px 18px 11px;
  border-radius: 22px 22px 0 0;
  z-index: 27;
  display: grid;
  gap: 6px;
  place-items: center;
  color: var(--text);
  transform-origin: center bottom;
  transition:
    width 260ms cubic-bezier(0.22, 1, 0.36, 1),
    min-height 260ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease,
    background 220ms ease;
}

.mobile-sheet-peek:hover,
.mobile-sheet-peek:focus-visible {
  transform: translateX(-50%) translateY(-3px);
  width: min(540px, calc(100vw - 20px));
  box-shadow: 0 18px 36px rgba(77, 114, 160, 0.2);
}

.mobile-sheet-peek:active {
  transform: translateX(-50%) translateY(1px) scale(0.99);
}

.mobile-sheet-peek[hidden] {
  display: none !important;
}

.mobile-sheet-peek__grip {
  width: 32px;
  height: 4px;
  border-radius: 999px;
  background: rgba(23, 50, 79, 0.22);
}

.mobile-sheet-peek__row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.mobile-sheet-peek__icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  overflow: hidden;
  color: #5574a9;
}

.mobile-sheet-peek__icon svg {
  width: 18px;
  height: 18px;
}

.mobile-sheet-peek__title {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  color: #294869;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-sheet-peek__close {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(41, 72, 105, 0.08);
  color: #294869;
  cursor: pointer;
}

.mobile-sheet-peek__close svg {
  width: 14px;
  height: 14px;
}

.mobile-sheet-peek__close:hover,
.mobile-sheet-peek__close:focus-visible {
  background: rgba(232, 77, 77, 0.12);
  color: #bd4040;
  outline: none;
}

@media (max-width: 767px) {
  .mobile-sheet-peek {
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    bottom: calc(var(--nav-height) - 8px);
    transform: none;
    width: auto;
    max-width: none;
    min-height: 74px;
    padding: 9px 14px 13px;
    grid-template-rows: auto minmax(32px, auto);
    align-items: center;
    justify-items: stretch;
    border-color: rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.9);
    box-shadow:
      0 -8px 22px rgba(77, 114, 160, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.94);
  }

  .mobile-sheet-peek:hover,
  .mobile-sheet-peek:focus-visible {
    transform: translateY(-3px);
    width: auto;
  }

  .mobile-sheet-peek:active {
    transform: translateY(1px) scale(0.99);
  }

  .mobile-sheet-peek__grip {
    justify-self: center;
  }

  .mobile-sheet-peek__row {
    grid-template-columns: 30px minmax(0, 1fr) 32px;
    gap: 10px;
    align-self: stretch;
    justify-self: stretch;
  }

  .mobile-sheet-peek__icon {
    width: 30px;
    height: 30px;
  }

  .mobile-sheet-peek__icon svg {
    width: 22px;
    height: 22px;
  }

  .mobile-sheet-peek__title {
    align-self: center;
    font-size: 0.95rem;
    text-align: left !important;
  }

  .mobile-sheet-peek__close {
    align-self: center;
    justify-self: end;
    width: 32px;
    height: 32px;
  }

  .page--map.has-sheet:not(.is-detail-open) .map-floating-tools {
    bottom: calc(var(--nav-height) + 72px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 768px) {
  .page--map .map-rail-shell {
    overflow: visible !important;
    width: 236px !important;
  }

  .page--map .map-rail-shell .place-rail {
    overflow-y: auto;
    overflow-x: visible;
  }

  .page--map .map-rail-shell.is-collapsed {
    width: 18px !important;
    padding: 0 !important;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .page--map .map-rail-shell.is-collapsed .place-rail {
    opacity: 0 !important;
    pointer-events: none;
  }

  .page--map .map-rail-shell__handle {
    right: -18px !important;
    width: 36px !important;
    height: 104px !important;
    overflow: visible;
  }
}

@media (max-width: 767px) {
  .detail-sheet__shutter {
    display: none !important;
  }

  .page--map .card--sheet-host {
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto !important;
  }

  .page--map .map-detail-frame {
    max-height: calc(100dvh - var(--nav-height) - 14px);
    overflow-y: auto;
    overflow-x: visible;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(var(--nav-height) + max(14px, env(safe-area-inset-bottom)));
  }

  .page--map .map-detail-frame .bottom-sheet {
    padding-top: 0;
  }

  .page--map .card--sheet-host .bottom-sheet {
    position: relative !important;
    bottom: auto !important;
    min-height: auto !important;
    margin: 0 auto !important;
  }

  .page--map .map-rail-shell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
    position: fixed !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.44);
    box-shadow: 0 18px 34px rgba(77, 114, 160, 0.12);
    backdrop-filter: blur(14px) saturate(125%);
    -webkit-backdrop-filter: blur(14px) saturate(125%);
    padding-bottom: 2px;
    transition: top 180ms ease, padding 180ms ease, max-height 180ms ease;
  }

  .page--map .place-rail {
    order: 1;
    width: 100%;
    align-self: stretch;
  }

  .page--map .map-rail-shell__handle {
    order: 2;
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 26;
    width: 84px;
    height: 22px;
    transform: none;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(183, 205, 232, 0.54);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 28px rgba(77, 114, 160, 0.16);
    margin: -1px auto 0;
  }

  .page--map .map-rail-shell__grip {
    width: 42px;
    height: 4px;
  }
}

.map-preview__close {
  position: static;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(237, 243, 251, 0.96);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
}

.map-preview__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.map-preview__card--inline {
  position: relative;
  gap: 3px;
  min-width: 148px;
  max-width: min(188px, 52vw);
  padding: 8px 10px 9px;
  border-radius: 14px 14px 14px 6px;
  box-shadow: 0 10px 22px rgba(77, 114, 160, 0.16);
  transform: translateY(-8px);
}

.map-preview__card--inline::after {
  display: none;
}

.map-preview__card--inline > * {
  position: relative;
  z-index: 1;
}

.map-preview__selection {
  position: relative;
  display: grid;
  gap: 8px;
  --preview-tail-right: 24px;
  --preview-tail-width: 18px;
  --preview-tail-height: 12px;
  width: min(260px, calc(100vw - 42px));
  overflow: visible;
  transform: translateX(-102px);
}

.map-preview__selection::before {
  content: "";
  position: absolute;
  right: var(--preview-tail-right);
  bottom: -10px;
  width: var(--preview-tail-width);
  height: var(--preview-tail-height);
  border: 1px solid rgba(189, 207, 231, 0.66);
  border-top: 0;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  background: linear-gradient(180deg, rgba(252, 254, 255, 0.98), rgba(242, 248, 255, 0.95));
  z-index: 1;
  box-shadow: 0 10px 16px rgba(77, 114, 160, 0.08);
}

.map-preview__selection::after {
  content: "";
  position: absolute;
  right: calc(var(--preview-tail-right) + 3px);
  bottom: -2px;
  width: calc(var(--preview-tail-width) - 6px);
  height: 6px;
  border-radius: 999px;
  background: rgba(246, 250, 255, 0.98);
  z-index: 2;
}

.map-preview__selection > * {
  position: relative;
  z-index: 3;
}

.map-preview__selection .map-preview__card--inline {
  cursor: pointer;
  width: 100%;
  max-width: none;
}

.map-preview__recommend-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: min(238px, 34vh);
  display: grid;
  gap: 7px;
  padding: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(183, 205, 232, 0.68);
  border-radius: 18px 18px 18px 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 248, 255, 0.92));
  box-shadow: 0 14px 30px rgba(77, 114, 160, 0.18);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  animation: map-preview-recommend-rise 180ms ease-out both;
  scrollbar-width: none;
}

.map-preview__recommend-panel::-webkit-scrollbar {
  display: none;
}

.map-preview__recommend-panel--reserve {
  visibility: hidden;
  pointer-events: none;
}

.map-preview__recommend-item {
  position: relative;
  width: 100%;
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid rgba(195, 212, 235, 0.82);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

@media (max-width: 767px) {
  .map-preview__selection--naver {
    gap: 2px;
    --preview-tail-right: 21px;
    --preview-tail-width: 18px;
    --preview-tail-height: 10px;
    --preview-shift-x: 0px;
    --preview-shift-y: 0px;
    width: min(138px, calc(100vw - 42px));
    transform: translate(calc(-47px + var(--preview-shift-x)), var(--preview-shift-y));
  }

  .map-preview__selection--naver::before {
    right: var(--preview-tail-right);
    bottom: -7px;
    width: var(--preview-tail-width);
    height: var(--preview-tail-height);
    border: 1px solid rgba(189, 207, 231, 0.58);
    border-top: 0;
    border-radius: 0 0 10px 10px;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    background: rgba(242, 248, 255, 0.95);
    box-shadow: 0 7px 12px rgba(77, 114, 160, 0.08);
  }

  .map-preview__selection--naver::after {
    right: calc(var(--preview-tail-right) + 3px);
    bottom: -1px;
    width: calc(var(--preview-tail-width) - 6px);
    height: 5px;
    border-radius: 999px;
    background: rgba(242, 248, 255, 0.94);
  }

  .map-preview__selection--naver .map-preview__card--inline {
    padding: 7px 9px 8px;
    transform: none;
    border-radius: 14px 14px 4px 7px;
  }

  .map-preview__selection--naver .map-preview__recommend-panel {
    max-height: min(196px, 31vh);
    gap: 5px;
    padding: 6px;
    border-radius: 4px 4px 14px 7px;
  }

  .map-preview__selection--naver .map-preview__recommend-item {
    min-height: 32px;
    padding: 7px 9px;
    border-radius: 10px;
    font-size: 0.72rem;
  }
}

.map-preview__recommend-item:hover,
.map-preview__recommend-item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(91, 145, 228, 0.62);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 8px 18px rgba(77, 114, 160, 0.12);
}

.map-preview__recommend-label {
  display: block;
  width: max-content;
  min-width: 100%;
}

.map-preview__recommend-label.is-overflowing {
  animation: map-preview-label-slide 5.5s ease-in-out infinite;
}

.map-preview__recommend-item--manual {
  color: var(--accent-strong);
  background: rgba(224, 237, 255, 0.96);
  border-color: rgba(128, 167, 223, 0.62);
}

@keyframes map-preview-recommend-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.map-preview__manual-input {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 5px 8px;
  border: 1px solid rgba(128, 167, 223, 0.9);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  outline: none;
}

.map-preview__card--inline .map-preview__close {
  width: 18px;
  height: 18px;
  font-size: 0.72rem;
}

.map-preview__card--inline strong {
  padding-right: 0;
  font-size: 0.86rem;
  line-height: 1.2;
}

.map-preview__card--inline small {
  font-size: 0.69rem;
  line-height: 1.28;
}

.map-preview__eyebrow {
  min-width: 0;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
}

.map-preview__action {
  margin-top: 2px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 700;
}

.map-preview__candidates {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.map-preview__nearby {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  max-height: min(150px, 24vh);
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 2px;
  overscroll-behavior: contain;
}

.map-preview__nearby button {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-preview__nearby button strong,
.map-preview__nearby button small {
  display: inline;
}

.map-preview__nearby button small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 0.68rem;
}

.map-preview__skeleton {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #edf3fb 0%, #f8fbff 45%, #edf3fb 90%);
  background-size: 200% 100%;
  animation: map-preview-shimmer 1.15s linear infinite;
}

.map-preview__skeleton--eyebrow {
  width: 42%;
}

.map-preview__skeleton--title {
  width: 76%;
  height: 16px;
}

.map-preview__skeleton--address {
  width: 64%;
}

.map-preview__skeleton--button {
  width: 54%;
  height: 20px;
  margin-top: 8px;
}

@media (max-width: 340px) {
  .map-preview__selection {
    gap: 6px;
    width: min(224px, calc(100vw - 32px));
  }

  .map-preview__selection--naver {
    width: min(129px, calc(100vw - 32px));
    transform: translate(calc(-42px + var(--preview-shift-x)), var(--preview-shift-y));
  }

  .map-preview__recommend-panel {
    max-height: min(196px, 32vh);
  }
}

@keyframes map-preview-shimmer {
  from {
    background-position: 200% 0;
  }

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

@keyframes map-preview-label-slide {
  0%,
  28% {
    transform: translateX(0);
  }

  72%,
  100% {
    transform: translateX(calc(min(0px, 96px - 100%)));
  }
}

.place-rail {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 10px 0 2px;
  padding-left: 6px;
  scrollbar-width: none;
  position: relative;
  z-index: 5;
  margin-top: 0;
  margin-bottom: 0;
  transition: max-height 220ms ease, opacity 220ms ease, padding 220ms ease;
  touch-action: pan-x;
  cursor: grab;
}

.place-rail::-webkit-scrollbar {
  display: none;
}

.place-rail.is-dragging {
  cursor: grabbing;
}

.place-rail.is-dragging .place-chip {
  pointer-events: none;
}

.place-chip,
.result-card {
  flex: 0 0 auto;
  width: min(180px, 58vw);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  padding: 12px 13px;
  text-align: left;
  display: grid;
  gap: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.place-chip {
  position: relative;
  overflow: hidden;
  margin-left: -14px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  touch-action: manipulation;
}

.place-chip:first-child {
  margin-left: 0;
}

.place-chip:hover,
.place-chip:focus-visible,
.place-chip.is-active {
  transform: translateY(-4px);
  z-index: 2;
}

.place-chip__media {
  width: 100%;
  aspect-ratio: 1.75 / 1;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: rgba(217, 101, 59, 0.14);
  margin-bottom: 1px;
}

.place-chip--no-media {
  gap: 6px;
}

.place-chip strong {
  line-height: 1.25;
}

.place-chip small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.place-chip__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.place-chip__count {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(23, 50, 79, 0.08);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.place-chip__selected-indicator {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(34, 93, 188, 0.88);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(40, 86, 156, 0.22);
  pointer-events: none;
}

.place-chip__status {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.place-chip__status.is-wanted,
.summary-pill--status.is-wanted {
  background: rgba(217, 101, 59, 0.14);
  color: var(--accent-strong);
}

.place-chip__status.is-visited,
.summary-pill--status.is-visited {
  background: rgba(47, 143, 107, 0.14);
  color: #21654c;
}

.place-chip__status.is-recommended,
.summary-pill--status.is-recommended {
  background: rgba(245, 192, 59, 0.18);
  color: #9a6a00;
}

.map-rail-shell {
  position: relative;
  z-index: 7;
  margin: 8px 12px -46px;
  padding: 8px 8px 6px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.44);
  box-shadow: 0 18px 34px rgba(77, 114, 160, 0.12);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  transition: margin 220ms ease, padding 220ms ease;
  touch-action: manipulation;
}

.map-rail-shell.is-collapsed {
  margin-bottom: -12px;
  padding-bottom: 0;
}

.map-rail-shell.is-collapsed .place-rail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
}

.map-rail-shell__handle {
  width: 64px;
  display: grid;
  justify-self: center;
  align-self: center;
  place-items: center;
  padding: 2px 0 8px;
  background: transparent;
  touch-action: manipulation;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease, background 140ms ease, border-color 140ms ease;
}

.map-rail-shell__grip {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: rgba(23, 50, 79, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

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

.status-choice--inline {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.draft-candidate-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 4px;
}

.draft-candidate-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(238, 244, 252, 0.96);
  color: #5f7393;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
}

.status-card {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease, background 140ms ease, border-color 140ms ease;
}

.status-card--inline {
  min-height: 46px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex: 1 1 0;
}

.status-card--inline strong {
  font-size: 0.86rem;
  line-height: 1.2;
}

.status-card--inline small {
  display: none;
}

.status-card small {
  color: var(--muted);
}

.status-card.is-active {
  border-color: rgba(127, 177, 255, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(157, 204, 255, 0.22));
  color: var(--accent-strong);
}

.status-card--inline[data-status-option="want_to_visit"].is-active,
.status-card--inline[data-visit-status-option="want_to_visit"].is-active {
  background: rgba(217, 101, 59, 0.14);
  border-color: rgba(217, 101, 59, 0.28);
  color: var(--accent-strong);
  box-shadow: 0 10px 20px rgba(217, 101, 59, 0.12);
}

.status-card--inline[data-status-option="visited"].is-active,
.status-card--inline[data-visit-status-option="visited"].is-active {
  background: rgba(47, 143, 107, 0.14);
  border-color: rgba(47, 143, 107, 0.28);
  color: #21654c;
  box-shadow: 0 10px 20px rgba(47, 143, 107, 0.12);
}

.status-card--inline[data-status-option="recommended"].is-active {
  background: rgba(255, 206, 61, 0.2);
  border-color: rgba(211, 143, 35, 0.32);
  color: #62450a;
  box-shadow: 0 10px 20px rgba(160, 114, 18, 0.12);
}

.place-chip.is-active,
.sheet-tab.is-active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(157, 204, 255, 0.22));
  border-color: rgba(127, 177, 255, 0.4);
  color: var(--accent-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 12px 24px rgba(103, 148, 216, 0.16);
}

.sheet-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  margin-bottom: 14px;
}

.sheet-tab {
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.sheet-panel {
  display: none;
}

.sheet-panel.is-active {
  display: block;
}

.card--sheet-host {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
  min-width: 0;
}

.map-detail-frame {
  display: grid;
  gap: 10px;
}

.stack-form {
  display: grid;
  gap: 10px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(171, 195, 225, 0.7);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

input[type="date"] {
  min-width: 0;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 246, 255, 0.92)),
    rgba(255, 255, 255, 0.95);
  border-color: rgba(104, 154, 230, 0.58);
  box-sizing: border-box;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.95;
  cursor: pointer;
  transform: scale(1.08);
}

textarea,
input,
select,
.memory-card p,
.sheet-photo-card__body strong,
.bottom-sheet__header p,
.bottom-sheet__header h2 {
  overflow-wrap: anywhere;
}

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

.photo-picker {
  display: grid;
  gap: 10px;
}

.photo-picker__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.photo-picker__status {
  margin-top: 0;
}

.photo-picker__trigger {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 12px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 18px;
}

.photo-picker__icon {
  width: 24px;
  height: 24px;
}

.photo-picker__preview {
  display: grid;
  gap: 10px;
}

.photo-picker__preview-stack {
  display: grid;
  gap: 10px;
}

.photo-picker__preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.photo-picker__preview-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.photo-picker__preview-item {
  position: relative;
  min-width: 0;
}

.photo-picker__preview-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(7, 12, 22, 0.82);
}

.photo-picker__preview-media .photo-picker__preview-thumb {
  height: 100%;
}

.photo-picker__preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(13, 24, 38, 0.72);
  color: #fff;
  box-shadow: 0 8px 18px rgba(7, 12, 22, 0.22);
  cursor: pointer;
}

.photo-picker__preview-remove svg {
  width: 13px;
  height: 13px;
}

.media-play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 16, 30, 0.72);
  box-shadow: 0 8px 22px rgba(4, 8, 15, 0.24);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.photo-picker__preview-toggle {
  justify-self: center;
  min-height: 40px;
  padding: 8px 14px;
}

.app-shell.app-shell--map-route {
  max-width: none;
  padding: 0 0 calc(var(--nav-height) + 10px);
  min-height: 100dvh;
}

.app-shell.app-shell--map-route .topbar {
  display: none;
}

.app-shell.app-shell--map-route .page-view {
  min-height: calc(100dvh - var(--nav-height));
}

.page--map {
  position: relative;
  min-height: calc(100dvh - var(--nav-height));
}

.page--map .hero-card--map {
  position: relative;
  min-height: calc(100dvh - var(--nav-height));
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.page--map .hero-card--map::before,
.page--map .hero-card--map::after {
  display: none;
}

.page--map .hero-copy--compact {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: 12px;
  left: auto;
  z-index: 14;
  margin: 0;
  padding: 0;
}

.page--map .searchbar--map {
  position: absolute;
  top: max(14px, calc(env(safe-area-inset-top) + 6px));
  left: 12px;
  right: 12px;
  z-index: 13;
  margin: 0;
  padding: 10px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(238, 244, 251, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 20px 44px rgba(39, 71, 112, 0.14);
  backdrop-filter: blur(24px) saturate(155%);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
}

.page--map .map-rail-shell {
  position: absolute;
  top: 78px;
  left: 12px;
  right: 12px;
  z-index: 12;
  margin: 0;
}

.page--map .map-surface {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: calc(100dvh - var(--nav-height));
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.page--map .card--sheet-host {
  position: absolute;
  right: 14px;
  bottom: calc(var(--nav-height) + 14px);
  z-index: 18;
  width: min(420px, calc(100vw - 28px));
  max-height: min(72dvh, 820px);
  overflow: auto;
  display: none;
  padding: 0;
}

.page--map .card--sheet-host.is-loading-next {
  pointer-events: none;
}

.page--map .card--sheet-host.is-loading-next > * {
  filter: blur(12px);
  opacity: 0.6;
  transform: scale(0.99);
  transition: filter 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.page--map .card--sheet-host.is-loading-next::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px 28px 0 0;
  background: rgba(239, 246, 255, 0.38);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  pointer-events: none;
}

.page--map.has-sheet .card--sheet-host {
  display: block;
}

.page--map .map-detail-frame {
  max-height: inherit;
}

.page--map .bottom-sheet {
  margin: 0;
}

@media (max-width: 767px) {
  .page--map .hero-copy--compact {
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
  }

  .page--map .searchbar--map {
    left: 10px;
    right: 10px;
    top: max(12px, calc(env(safe-area-inset-top) + 2px));
    padding: 9px;
    border-radius: 22px;
  }

  .page--map .map-rail-shell {
    top: 66px;
    left: 10px;
    right: 10px;
  }

  .page--map .map-surface {
    min-height: calc(100dvh - var(--nav-height));
  }

  .page--map .card--sheet-host {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--nav-height) + 4px);
    width: auto;
    max-height: min(72dvh, 760px);
    padding: 10px 8px 0;
    background: transparent;
    pointer-events: none;
  }

  .page--map .card--sheet-host > * {
    pointer-events: auto;
  }

  .page--map:not(.is-detail-open) .card--sheet-host {
    display: none;
  }
}

@media (min-width: 768px) {
  .page--map .map-rail-shell {
    top: 92px;
    right: auto;
    width: 236px;
    bottom: 16px;
    padding: 10px 10px 8px;
    overflow: hidden;
  }

  .page--map .map-preview {
    left: 266px;
    right: 16px;
    bottom: calc(var(--nav-height) + 18px);
  }

  .page--map .place-rail {
    display: grid;
    grid-auto-rows: min-content;
    gap: 10px;
    align-content: start;
    overflow-y: auto;
    overflow-x: visible;
    max-height: 100%;
    padding: 2px 2px 2px 0;
  }

  .page--map .place-chip {
    width: 100%;
    margin-left: 0;
  }
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-text-button,
.memory-card__actions button {
  border-radius: 14px;
  padding: 13px 16px;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease, background 140ms ease, border-color 140ms ease;
}

.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.danger-text-button:active,
.memory-card__actions button:active,
.status-card:active,
.summary-pill:active,
.place-shortcut-card:active,
.place-edit-toggle:active,
.map-rail-shell__handle:active,
.record-entry__actions button:active,
.record-photo-card button:active {
  transform: translateY(1px) scale(0.985);
  filter: saturate(0.98);
}

.primary-button {
  background: linear-gradient(180deg, rgba(146, 196, 255, 0.96), rgba(92, 152, 238, 0.94));
  color: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 12px 24px rgba(95, 145, 219, 0.24);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent-strong);
  border: 1px solid rgba(183, 205, 232, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.naver-login-button,
.primary-button.naver-login-button,
.secondary-button.naver-login-button,
.secondary-button.naver-connect-button {
  background: #03a94d;
  color: #fff;
  border-color: rgba(3, 169, 77, 0.86);
  box-shadow: 0 14px 30px rgba(3, 169, 77, 0.2);
}

.settings-media-backup-card {
  display: grid;
  gap: 14px;
}

.settings-media-backup-card__status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-media-backup-card__status span {
  padding: 7px 11px;
  border: 1px solid rgba(158, 187, 222, 0.42);
  border-radius: 999px;
  background: rgba(240, 247, 255, 0.76);
  color: #49698f;
  font-size: 0.82rem;
  font-weight: 700;
}

.settings-media-backup-resume {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(71, 129, 201, 0.45);
  border-radius: 16px;
  background: rgba(232, 243, 255, 0.88);
}

.settings-media-backup-resume p {
  margin: 0;
  color: #385b86;
  font-weight: 750;
}

.settings-media-backup-warning,
.media-backup-progress__warning {
  margin: 0;
  padding: 12px 14px;
  border: 2px solid rgba(210, 66, 66, 0.58);
  border-radius: 14px;
  background: rgba(255, 235, 235, 0.96);
  color: #a52525;
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.45;
}

.media-backup-progress {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 13000;
  display: grid;
  width: min(390px, calc(100vw - 28px));
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(161, 190, 225, 0.58);
  border-radius: 20px;
  background: rgba(250, 253, 255, 0.96);
  box-shadow: 0 18px 44px rgba(57, 88, 130, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.media-backup-progress__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.media-backup-progress p,
.media-backup-progress small {
  margin: 0;
}

.media-backup-progress [data-media-backup-detail] {
  color: #294d79;
}

.media-backup-progress progress {
  width: 100%;
  height: 10px;
  accent-color: #6798d6;
}

@media (max-width: 767px) {
  .media-backup-progress {
    right: 14px;
    bottom: calc(var(--nav-height) + 12px);
  }
}

.secondary-button.naver-login-button--secondary {
  background: #03a94d;
  color: #fff;
  border-color: rgba(3, 169, 77, 0.86);
  box-shadow: 0 14px 30px rgba(3, 169, 77, 0.2);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  border: 1px solid rgba(183, 205, 232, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.danger-text-button {
  background: transparent;
  color: var(--danger);
}

.danger-text-button[data-place-delete] {
  background: linear-gradient(180deg, rgba(204, 57, 57, 0.94), rgba(167, 31, 31, 0.94));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 22px rgba(179, 42, 42, 0.24);
}

.danger-text-button[data-place-delete]:disabled {
  color: rgba(117, 132, 155, 0.72);
  background: rgba(231, 237, 247, 0.72);
  border-color: rgba(190, 205, 224, 0.5);
  box-shadow: none;
  cursor: default;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(0px, calc(env(safe-area-inset-bottom) - 16px));
  transform: translateX(-50%);
  width: min(500px, calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(226, 238, 252, 0.1)),
    rgba(246, 250, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 32px;
  box-shadow:
    0 18px 34px rgba(86, 118, 160, 0.14),
    0 4px 14px rgba(95, 128, 171, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  overflow: visible;
  touch-action: none;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  z-index: 12000;
}

.bottom-nav::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 2px;
  height: 42%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

.bottom-nav__active-indicator {
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: calc((100% - 40px) / 4);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(166, 208, 255, 0.22)),
    rgba(255, 255, 255, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -12px 24px rgba(132, 185, 255, 0.12),
    0 10px 24px rgba(108, 149, 215, 0.24);
  transform: translateX(calc(var(--bottom-nav-active-index, 0) * (100% + 8px)));
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}

.bottom-nav__item {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  align-content: center;
  justify-content: center;
  justify-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--muted);
  min-height: 56px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  overflow: hidden;
  touch-action: manipulation;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.bottom-nav__item::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 56%;
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.bottom-nav__item span {
  position: relative;
  z-index: 1;
}

.bottom-nav__icon {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  color: currentColor;
}

.bottom-nav__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.bottom-nav__item > span:not(.bottom-nav__icon) {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.bottom-nav__item > .bottom-nav__activity-badge {
  position: absolute;
  top: 6px;
  left: calc(50% + 7px);
  z-index: 3;
  min-width: 12px;
  height: 12px;
  padding: 0 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  background: #e84d4d;
  color: #ffffff;
  font-size: 0.5rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(180, 39, 39, 0.22);
}

.bottom-nav__item.is-active {
  background: transparent;
  color: var(--accent-strong);
  font-weight: 700;
  transform: translateY(-1px);
  box-shadow: none;
}

.bottom-nav__item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.bottom-nav__more {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
}

.bottom-nav__branch {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
}

.bottom-nav__menu-button {
  width: 100%;
}

.bottom-nav__hamburger {
  position: relative;
  width: 24px;
  height: 16px;
  display: inline-block;
}

.bottom-nav__hamburger::before,
.bottom-nav__hamburger::after,
.bottom-nav__hamburger {
  border-top: 2px solid currentColor;
}

.bottom-nav__hamburger::before,
.bottom-nav__hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
}

.bottom-nav__hamburger::before {
  top: 5px;
}

.bottom-nav__hamburger::after {
  top: 12px;
}

.bottom-nav__more-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  z-index: 12001;
  display: grid;
  gap: 8px;
  min-width: 138px;
  padding: 8px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(247, 251, 255, 0.94);
  box-shadow: 0 18px 34px rgba(77, 114, 160, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.bottom-nav__more-panel[hidden] {
  display: none;
}

.bottom-nav__branch-panel {
  left: 50%;
  right: auto;
  min-width: 128px;
  transform: translateX(-50%);
}

.bottom-nav__menu-item {
  min-height: 44px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.bottom-nav__menu-item.is-active,
.bottom-nav__menu-item:hover,
.bottom-nav__menu-item:focus-visible {
  background: rgba(222, 238, 255, 0.82);
  color: var(--accent-strong);
}

@media (min-width: 768px) {
  .bottom-nav__more-panel {
    left: calc(100% + 12px);
    right: auto;
    bottom: 0;
  }

  .bottom-nav__branch-panel {
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bottom-nav__active-indicator {
    transition: none;
  }
}

.bottom-sheet {
  position: sticky;
  bottom: calc(var(--nav-height) + 8px);
  border-radius: 30px 30px 22px 22px;
  overflow-x: hidden;
  touch-action: pan-y;
}

.page--story {
  align-content: start;
}

.story-compose,
.story-form,
.story-feed {
  display: grid;
  gap: 14px;
}

.story-form__mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.story-form__mode-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(183, 205, 232, 0.72);
  background: rgba(246, 251, 255, 0.88);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.story-form__mode-badge.is-edit {
  color: var(--accent-strong);
  border-color: rgba(91, 145, 228, 0.7);
  background: rgba(222, 238, 255, 0.84);
}

.story-compose__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.story-compose__head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.story-compose__help-toggle {
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  border-radius: 999px;
  border-color: rgba(158, 184, 220, 0.34);
  background: rgba(255, 255, 255, 0.68);
  color: #7186a3;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
}

.story-compose__help-toggle.is-active {
  background: rgba(222, 238, 255, 0.82);
  color: var(--accent-strong);
  border-color: rgba(121, 171, 247, 0.64);
}

.story-compose__toggle {
  min-height: 42px;
  padding: 10px 14px;
}

.story-compose__toggle.is-active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(177, 213, 255, 0.42));
  border-color: rgba(91, 145, 228, 0.72);
  color: var(--accent-strong);
}

.story-compose__help {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(183, 205, 232, 0.62);
  background: rgba(246, 251, 255, 0.88);
  color: var(--muted);
  line-height: 1.45;
}

.story-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(183, 205, 232, 0.58);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 30px rgba(77, 114, 160, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.story-card--restricted {
  min-height: 260px;
}

.story-card--text-only {
  grid-template-columns: minmax(0, 1fr);
}

.story-card__photo-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 10px 10px 0;
}

.story-card__photo-rail::-webkit-scrollbar {
  display: none;
}

.story-card__restricted-media {
  min-height: 190px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(26, 35, 52, 0.86), rgba(44, 58, 80, 0.76)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 14px, rgba(255, 255, 255, 0.02) 14px 28px);
}

.story-card__photo {
  position: relative;
  flex: 0 0 min(86%, 360px);
  aspect-ratio: 16 / 9;
  min-width: 0;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  background: rgba(124, 181, 255, 0.18);
}

.story-card__photo:only-child {
  flex-basis: 100%;
}

.story-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card__photo-count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(15, 39, 67, 0.76);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.story-card__body {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  min-width: 0;
}

.story-card__body h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.story-card__meta,
.story-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.story-card__meta span,
.story-card__footer span {
  color: var(--muted);
  font-size: 0.82rem;
}

.story-card__meta-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.story-card__meta strong,
.story-card__footer span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-card__body p {
  margin: 0;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-card__edit-button {
  width: 30px;
  height: 30px;
  min-height: 30px;
  min-width: 30px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(183, 205, 232, 0.72);
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 18px rgba(77, 114, 160, 0.16);
}

.story-card__edit-button svg {
  width: 16px;
  height: 16px;
}

.story-form__place-photo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px 58px;
  gap: 10px;
  align-items: end;
}

.story-form__place-field {
  min-width: 0;
}

.story-form__place-photo-row .photo-picker {
  display: contents;
}

.story-form__place-photo-row .photo-picker__row {
  display: block;
}

.story-form__place-photo-row .photo-picker__trigger {
  width: 58px;
  min-height: 52px;
  height: 52px;
  padding: 0;
  border-radius: 16px;
}

.story-form__place-photo-row .photo-picker__preview-stack {
  grid-column: 1 / -1;
  margin-top: 10px;
}

.story-form__map-pick {
  width: 52px;
  min-width: 52px;
  height: 52px;
  min-height: 52px;
  padding: 0;
  border-radius: 16px;
}

.story-form__map-pick svg {
  width: 20px;
  height: 20px;
}

.story-photo-editor {
  display: grid;
  gap: 8px;
}

.story-photo-editor__head {
  display: grid;
  gap: 2px;
}

.story-photo-editor__head small {
  color: var(--muted);
}

.story-photo-editor__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  gap: 8px;
}

.story-photo-editor__item {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(183, 205, 232, 0.62);
  overflow: hidden;
  display: block;
}

.story-photo-editor__item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.story-photo-editor__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
}

.story-photo-editor__item.is-active {
  box-shadow: inset 0 0 0 2px rgba(46, 111, 203, 0.76);
}

.bottom-sheet__handle {
  width: 56px;
  height: 6px;
  background: rgba(89, 62, 43, 0.16);
  border-radius: 999px;
  margin: 0 auto 14px;
  touch-action: pan-y;
  cursor: ns-resize;
}

.bottom-sheet__header,
.memory-card,
.list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.bottom-sheet__header {
  flex-wrap: nowrap;
}

.bottom-sheet__header > :first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.draft-header-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.draft-header-actions__close {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #657b99;
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(158, 184, 220, 0.34);
  box-shadow: none;
}

.draft-header-actions__close svg {
  width: 16px;
  height: 16px;
}

.draft-header-actions__submit {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.bottom-sheet__title-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.bottom-sheet__title-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.place-header-thumbnail {
  position: relative;
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  border-radius: 8px;
  object-fit: cover;
  background: linear-gradient(180deg, rgba(224, 237, 250, 0.96), rgba(199, 221, 244, 0.92));
  box-shadow: 0 10px 20px rgba(42, 82, 126, 0.14);
}

.place-header-thumbnail--video {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(7, 12, 22, 0.88), rgba(35, 51, 76, 0.84)),
    radial-gradient(circle at 35% 25%, rgba(123, 164, 228, 0.24), transparent 44%);
  overflow: hidden;
}

.place-header-thumbnail--video .media-play-badge {
  width: 34px;
  height: 34px;
}

.place-header-media-stack {
  flex: 0 0 74px;
  display: grid;
  gap: 7px;
  justify-items: stretch;
  align-self: start;
}

.place-header-media-stack .place-header-thumbnail {
  width: 100%;
  flex-basis: auto;
}

.place-record-add-button {
  min-height: 34px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, rgba(146, 196, 255, 0.96), rgba(92, 152, 238, 0.94));
  border: 1px solid rgba(92, 152, 238, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 10px 20px rgba(95, 145, 219, 0.24);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.place-record-add-button__icon {
  width: 15px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.place-record-add-button__icon svg {
  width: 100%;
  height: 100%;
}

.place-header-title-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.place-title-meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.place-title-meta-row .eyebrow {
  min-width: 0;
  margin: 0;
}

.place-external-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  margin: 0;
}

.place-external-action {
  height: 34px;
  min-width: 0;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border-radius: 999px;
  color: #617799;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(183, 205, 232, 0.66);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 8px 18px rgba(64, 98, 145, 0.12);
}

.place-external-action svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.place-external-action--icon {
  width: 34px;
  min-width: 34px;
  padding: 0;
}

.place-external-action__material {
  font-family: "Material Symbols Outlined";
  font-size: 17px;
  font-weight: 500;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings:
    "FILL" 0,
    "wght" 500,
    "GRAD" 0,
    "opsz" 24;
}

.place-external-action span {
  line-height: 1;
}

.modal-backdrop--place-share {
  place-items: end center;
  padding: 16px;
}

.modal-card--place-share {
  display: grid;
  gap: 14px;
  width: min(360px, 100%);
  margin: 0 0 max(0px, env(safe-area-inset-bottom));
  padding: 16px;
  border-radius: 18px;
}

.place-share-actions__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.place-share-actions__header h2 {
  margin: 0;
  color: #1d3856;
  font-size: 1rem;
  letter-spacing: 0;
}

.place-share-actions__close {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
}

.place-share-actions__close svg {
  width: 16px;
  height: 16px;
}

.place-share-actions__list {
  display: grid;
  gap: 8px;
}

.place-share-actions__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(183, 205, 232, 0.68);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  color: #31516f;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: left;
}

.place-share-actions__item svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.place-share-actions__item .place-external-action__material {
  flex: 0 0 auto;
  font-size: 20px;
}

.place-share-actions__item:hover,
.place-share-actions__item:focus-visible {
  border-color: rgba(95, 145, 219, 0.58);
  background: rgba(239, 247, 255, 0.96);
  outline: none;
}

.bottom-sheet__header [data-place-delete] {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-left: auto;
}

.sheet-list {
  margin-top: 16px;
}

.memory-card,
.list-item {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.memory-card p,
.list-item {
  margin: 6px 0;
}

.memory-card__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

.memory-card__date {
  display: inline-flex;
  align-items: center;
  margin-bottom: 6px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.memory-card__content {
  flex: 1 1 0;
  min-width: 0;
}

.memory-card__actions button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
}

.memory-card__actions svg {
  width: 17px;
  height: 17px;
}

.memory-card__content,
.sheet-photo-card__body,
.browse-memory {
  background: transparent;
  padding: 0;
  text-align: left;
  color: inherit;
}

.place-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

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

.sheet-status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.sheet-status-row__main {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: nowrap;
}

.bottom-sheet .status-choice--inline {
  gap: 6px;
  flex-wrap: nowrap;
}

.bottom-sheet .status-card--inline {
  min-height: 40px;
  padding: 8px 11px;
  flex: 0 0 auto;
}

.bottom-sheet .status-card--inline strong {
  font-size: 0.8rem;
}

.sheet-status-row--draft {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bottom-sheet--draft .sheet-status-row--draft .status-card--inline,
.bottom-sheet--draft .sheet-actions > button {
  width: 100%;
  min-width: 0;
}

.bottom-sheet--draft .sheet-status-row--draft .status-card--inline {
  flex: 1 1 0;
  min-height: 44px;
  padding: 9px 12px;
}

.sheet-status-row .status-choice--inline,
.sheet-status-row--draft.status-choice--inline,
.sheet-status-row--draft .status-choice--inline {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row !important;
}

.sheet-status-row__label {
  display: none;
}

.summary-pill--date-meta {
  min-height: 0;
}

.summary-pill {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(183, 205, 232, 0.56);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease, background 140ms ease, border-color 140ms ease;
}

.summary-pill--compact {
  min-height: 76px;
  padding: 10px 12px;
}

button.summary-pill {
  width: 100%;
  text-align: left;
  color: inherit;
}

.summary-pill--date {
  margin-bottom: 14px;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
}

.summary-pill__date-input {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.date-field {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 10px;
  overflow: hidden;
}

.date-field input {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  max-width: 100%;
  display: block;
  min-height: 52px;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
  padding-top: 12px;
  padding-bottom: 12px;
}

.summary-pill--date .date-field input {
  padding-left: 14px;
  padding-right: 14px;
}

input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  margin-left: 8px;
}

.date-field__weekday {
  flex: 0 0 auto;
  min-width: 42px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(183, 205, 232, 0.56);
  background: rgba(244, 248, 255, 0.92);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.date-field__weekday.is-visible {
  color: var(--accent-strong);
}

.modal-card--form {
  display: grid;
  gap: 14px;
}

.modal-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stack-form__field {
  display: grid;
  gap: 8px;
}

.stack-form__field--inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.summary-pill--status strong {
  font-size: 1rem;
}

.summary-pill--status small {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.summary-pill span {
  color: var(--muted);
  font-size: 0.78rem;
}

.place-shortcuts,
.record-compose__forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.place-shortcuts {
  margin-top: 12px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr);
}

.place-shortcut-card,
.place-info-card,
.record-compose__form {
  border-radius: 20px;
  border: 1px solid rgba(183, 205, 232, 0.58);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.place-shortcut-card {
  display: grid;
  gap: 6px;
  align-items: start;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  color: inherit;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease, background 140ms ease, border-color 140ms ease;
}

.place-shortcut-card__copy {
  display: grid;
  gap: 4px;
  width: 100%;
}

.place-shortcut-card__copy span,
.sheet-section__head small,
.sheet-section__subhead {
  color: var(--muted);
  font-size: 0.78rem;
}

.place-shortcut-card__copy strong,
.sheet-section__head h3 {
  margin: 0;
}

.place-shortcut-card__copy strong {
  font-size: 0.98rem;
  line-height: 1.3;
}

.place-shortcut-card--memo .place-shortcut-card__copy {
  min-width: 0;
  align-self: stretch;
}

.place-shortcut-card--memo .place-shortcut-card__copy strong,
.place-shortcut-card--memo .place-shortcut-card__copy small {
  width: 100%;
}

.place-shortcut-card--memo {
  grid-template-columns: minmax(0, 1fr);
}

.place-shortcut-card__copy small {
  margin-top: 2px;
}

.place-cover-picker {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid rgba(245, 192, 59, 0.36);
  background: rgba(255, 250, 238, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.place-cover-picker__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.place-cover-picker__gallery-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.place-cover-picker__mode-toggle {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 192, 59, 0.38);
  background: rgba(255, 255, 255, 0.78);
  color: #846417;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.place-cover-picker__mode-toggle.is-active {
  background: rgba(245, 192, 59, 0.24);
  border-color: rgba(217, 151, 20, 0.56);
  color: #6e5010;
}

.place-cover-picker__gallery-link:active,
.place-cover-picker__mode-toggle:active,
.place-cover-picker__thumb:active,
.gallery-modal__icon-button:active,
.gallery-thumb:active {
  transform: scale(0.96);
}

.place-cover-picker__gallery-link,
.place-cover-picker__mode-toggle,
.place-cover-picker__thumb,
.gallery-modal__icon-button,
.gallery-thumb {
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
}

.place-cover-picker__gallery-link {
  width: 100%;
}

.place-cover-picker__gallery-link strong {
  font-size: 0.98rem;
  line-height: 1.3;
}

.place-cover-picker__gallery-link small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.place-cover-picker__row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 4px;
}

.place-cover-picker__thumb {
  position: relative;
  overflow: hidden;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  padding: 0;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  background-size: cover;
  background-position: center;
  background-color: rgba(217, 101, 59, 0.12);
}

.place-cover-picker__thumb.is-restricted {
  background:
    linear-gradient(135deg, rgba(26, 35, 52, 0.84), rgba(58, 76, 104, 0.78)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.09) 0 14px, rgba(255, 255, 255, 0.03) 14px 28px) !important;
}

.place-cover-picker__thumb.is-active {
  flex-basis: 70px;
  width: 70px;
  height: 70px;
  border-color: #f5c03b;
  box-shadow: 0 0 0 3px rgba(245, 192, 59, 0.18), 0 8px 14px rgba(213, 154, 29, 0.14);
}

.place-cover-picker.is-cover-mode .place-cover-picker__thumb {
  cursor: pointer;
}

.place-cover-picker__thumb.is-active::after {
  content: "대표";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: rgba(23, 50, 79, 0.36);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 900;
}

.place-info-card,
.record-compose {
  margin-top: 16px;
}

.record-compose {
  display: grid;
  gap: 14px;
}

.record-compose:not(.is-collapsed) {
  gap: 0;
  padding: 14px 16px 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(241, 247, 255, 0.6));
  border: 1px solid rgba(201, 220, 244, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 24px rgba(74, 110, 165, 0.06);
}

.place-cover-picker__thumb.is-active::after {
  content: none;
  display: none;
}

.record-compose.is-collapsed .record-compose__form {
  display: none;
}

.bottom-sheet--draft .date-field {
  align-items: center;
  justify-content: center;
}

.bottom-sheet--draft .date-field input {
  text-align: center;
  font-weight: 700;
}

.bottom-sheet--draft input[type="date"]::-webkit-date-and-time-value {
  text-align: center;
}

.bottom-sheet--draft .date-field__weekday {
  min-width: 54px;
  min-height: 48px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.draft-title-input {
  width: 100%;
  min-height: 44px;
  margin: 2px 0 4px;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid rgba(183, 205, 232, 0.78);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: clamp(1.35rem, 6vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
  outline: none;
}

.draft-title-input:focus {
  border-color: var(--accent);
}

.place-info-card,
.record-compose__form {
  padding: 16px;
}

.record-compose__form {
  padding: 14px 0 0;
}

.record-compose:not(.is-collapsed) .record-compose__form {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.place-info-card.is-collapsed .place-info-card__hint,
.place-info-card.is-collapsed .place-edit-form {
  display: none;
}

.place-info-card.is-collapsed {
  display: none;
}

.record-compose__form--combined {
  display: grid;
  gap: 14px;
}

.record-compose--modal {
  position: fixed;
  inset: 0;
  z-index: 12120;
  margin: 0;
  display: grid;
  align-items: center;
  padding: max(18px, env(safe-area-inset-top)) 12px calc(var(--nav-height) + 18px);
  pointer-events: auto;
}

.record-compose--modal.is-collapsed {
  display: none;
}

.record-compose--modal:not(.is-collapsed) {
  gap: 0;
  padding: max(18px, env(safe-area-inset-top)) 12px calc(var(--nav-height) + 18px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.record-compose__scrim {
  position: fixed;
  inset: 0;
  z-index: 0;
  padding: 0;
  background: rgba(28, 45, 68, 0.28);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.record-compose__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(68dvh, 620px);
  margin: 0 auto;
  display: grid;
  gap: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  border-radius: 28px 28px 20px 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 248, 255, 0.9)),
    rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 30px 58px rgba(42, 73, 118, 0.26),
    0 14px 28px rgba(69, 104, 150, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.record-compose__modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.record-compose__modal-head h3 {
  margin: 0;
}

.record-compose__modal-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.record-compose__save {
  width: auto;
  min-width: 58px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.record-compose__close {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.record-compose__close svg {
  width: 18px;
  height: 18px;
}

.record-compose--modal .record-compose__form {
  padding: 0;
}

.page--map.is-detail-open .card--sheet-host:has(.record-compose--modal:not(.is-collapsed)) {
  z-index: 12110 !important;
}

body.is-record-compose-open .page--map.is-detail-open .card--sheet-host {
  z-index: 12110 !important;
}

.record-compose__grid {
  display: grid;
  gap: 12px;
}

.record-compose__date-field {
  width: min(240px, 100%);
}

.record-compose__date-field .date-field {
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.record-compose__date-field .date-field input {
  min-height: 48px;
  padding: 10px 12px;
  text-align: center;
  font-size: 0.96rem;
  font-weight: 700;
}

.record-compose__date-field input[type="date"]::-webkit-date-and-time-value,
.modal-card--memory-editor input[type="date"]::-webkit-date-and-time-value {
  text-align: center;
}

.record-compose__date-field .date-field__weekday {
  min-width: 54px;
  min-height: 48px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  text-align: center;
}

.record-compose__topline {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.record-summary-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
}

.record-summary-inline__item {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(234, 242, 252, 0.9);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.sheet-list {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(183, 205, 232, 0.5);
}

.record-compose__memo-field textarea {
  min-height: 120px;
}

.record-compose__photo-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.record-compose__photo-row .photo-picker {
  display: contents;
}

.record-compose__photo-row .photo-picker__row {
  display: contents;
}

.record-compose__photo-row .photo-picker__status {
  display: none !important;
}

.record-compose__photo-row .photo-picker__trigger {
  grid-column: 1;
  grid-row: 1;
  width: 56px;
  min-width: 56px;
  height: 56px;
  min-height: 56px;
  padding: 0;
  border-radius: 18px;
}

.record-compose__photo-row .photo-picker__trigger span:not(.photo-picker__icon) {
  display: none;
}

.record-compose__photo-row input[name="fileName"] {
  grid-column: 2;
  grid-row: 1;
  min-height: 56px;
}

.record-compose__photo-row .photo-picker__preview-stack {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 2px;
}

.record-compose__photo-row [data-photo-file-input] {
  grid-column: 1 / -1;
}

.place-edit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.place-edit-toggle--summary,
.place-edit-cancel,
.place-sync-button {
  width: auto;
  min-width: 34px;
  height: 40px;
  min-height: 40px;
  padding: 0 9px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 999px;
}

.place-edit-cancel {
  min-width: 58px;
  padding: 0 14px;
  color: #587091;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(183, 205, 232, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.place-sync-button {
  width: 34px;
  min-width: 34px;
  padding: 0;
  color: #617799;
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(183, 205, 232, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 8px 18px rgba(64, 98, 145, 0.12);
}

.place-sync-button svg {
  width: 18px;
  height: 18px;
}

.place-edit-cancel[hidden] {
  display: none;
}

.sheet-danger-zone {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(193, 74, 44, 0.12);
  display: flex;
  justify-content: flex-end;
}

.sheet-danger-zone__button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(193, 74, 44, 0.08);
}

.sheet-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sheet-section__head > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

.sheet-section__head h3 {
  white-space: nowrap;
}

.sheet-section__subhead {
  margin-bottom: 2px;
}

.place-info-card__hint {
  display: none;
}

.place-info-card > .sheet-section__head {
  display: none;
}

.sheet-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.bottom-sheet--draft .sheet-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sheet-actions--status {
  margin-top: 12px;
}

.place-edit-form {
  min-width: 0;
  display: none;
  gap: 10px;
}

.place-edit-close {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.place-edit-form:not(.is-editing) input {
  color: var(--text);
  background: rgba(244, 248, 255, 0.8);
  cursor: default;
}

.place-edit-form > * {
  min-width: 0;
}

.place-edit-form input[type="date"] {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: block;
}

.place-edit-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease, background 140ms ease, border-color 140ms ease;
}

.place-edit-toggle svg,
.record-entry__actions svg {
  width: 18px;
  height: 18px;
}

.place-edit-toggle.is-active {
  color: var(--accent-strong);
}

.place-edit-actions .place-edit-toggle--summary {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  color: #617799;
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(183, 205, 232, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 8px 18px rgba(64, 98, 145, 0.12);
}

.place-edit-actions .place-edit-toggle--summary.is-active {
  width: auto;
  min-width: 58px;
  height: 40px;
  padding: 0 14px;
  color: #fff;
  background: linear-gradient(180deg, rgba(146, 196, 255, 0.96), rgba(92, 152, 238, 0.94));
  border-color: rgba(105, 156, 231, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 12px 24px rgba(95, 145, 219, 0.24);
}

.place-edit-actions--title {
  align-self: start;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  min-width: 34px;
  position: relative;
  z-index: 1;
  gap: 6px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.place-edit-actions--title .place-edit-toggle--summary,
.place-edit-actions--title .place-sync-button {
  min-width: 40px;
}

.place-title-inline-input,
.place-address-inline-input {
  width: 100%;
  min-width: 0;
}

.place-title-inline-input,
.place-address-inline-input {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  color: var(--text);
  letter-spacing: 0;
}

.place-title-inline-input {
  margin: 0;
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  font-weight: 850;
  line-height: 1.16;
}

.place-address-inline {
  display: grid;
  grid-template-columns: 0 minmax(0, 1fr);
  align-items: center;
  gap: 0;
  margin-top: 5px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.place-address-inline::-webkit-scrollbar {
  display: none;
}

.place-address-inline-display,
.place-address-inline-input {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
  width: max-content;
  min-width: 100%;
  white-space: nowrap;
}

.place-address-inline-display {
  overflow: visible;
  user-select: text;
  -webkit-user-select: text;
  cursor: grab;
}

.place-address-inline-display:active {
  cursor: grabbing;
}

.place-title-inline-input:disabled,
.place-address-inline-input:disabled {
  opacity: 1;
  -webkit-text-fill-color: currentColor;
}

.bottom-sheet.is-place-editing .place-title-inline-input {
  padding: 6px 0;
  border-bottom: 1px solid rgba(183, 205, 232, 0.78);
}

.bottom-sheet.is-place-editing .place-address-inline {
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 6px;
}

.bottom-sheet.is-place-editing .place-address-inline-display[hidden] {
  display: none;
}

.bottom-sheet.is-place-editing .place-address-inline-input.is-editing {
  width: 100%;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid rgba(183, 205, 232, 0.6);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.place-address-edit {
  width: 28px;
  height: 28px;
  min-height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  color: #6b7fa2;
  opacity: 0;
  pointer-events: none;
}

.place-address-edit svg {
  width: 15px;
  height: 15px;
}

.bottom-sheet.is-place-editing .place-address-edit {
  opacity: 1;
  pointer-events: auto;
}

.place-address-edit.is-active {
  color: var(--accent-strong);
  background: rgba(222, 234, 255, 0.9);
}

.record-stream {
  display: grid;
}

@media (max-width: 420px) {
  .bottom-sheet__header {
    gap: 8px;
  }

  .draft-header-actions {
    gap: 5px;
  }

  .draft-header-actions__close {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
  }

  .draft-header-actions__submit {
    min-height: 32px;
    padding-inline: 10px;
    font-size: 0.74rem;
  }

  .bottom-sheet__title-layout {
    gap: 10px;
  }

  .place-external-actions {
    gap: 4px;
  }

  .place-external-action {
    height: 31px;
    min-height: 31px;
    gap: 4px;
    padding-inline: 7px;
    font-size: 0.68rem;
  }

  .place-external-action--icon {
    width: 31px;
    min-width: 31px;
    padding: 0;
  }

  .place-external-action svg {
    width: 13px;
    height: 13px;
  }

  .place-external-action__material {
    font-size: 16px;
  }

  .place-edit-actions--title {
    width: auto;
    min-width: 31px;
  }

  .place-edit-actions .place-edit-toggle--summary.is-active,
  .place-edit-cancel {
    width: auto;
    min-width: 58px;
    height: 40px;
    padding: 0 14px;
  }

  .place-sync-button {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .place-edit-actions--title {
    gap: 4px;
  }
}

.record-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.record-entry.is-linked .record-entry__main {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(228, 239, 255, 0.68));
  border: 1px solid rgba(183, 205, 232, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.record-entry__main {
  display: grid;
  gap: 8px;
  padding: 0;
  background: transparent;
  text-align: left;
  color: inherit;
}

.record-entry__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.record-entry__header .record-entry__meta {
  flex: 1 1 220px;
  min-width: 0;
}

.record-entry__meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.record-entry__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(234, 242, 252, 0.92);
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 700;
}

.record-entry__main p {
  margin: 0;
  color: var(--text);
}

.record-entry__main > small {
  color: var(--muted);
}

.record-entry__main strong,
.browse-record strong {
  line-height: 1.35;
}

.record-entry__caption {
  color: var(--muted);
  font-size: 0.76rem;
}

.record-entry__photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.record-entry--photo-cluster {
  gap: 10px;
}

.record-entry__photo-cluster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.record-photo-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(183, 205, 232, 0.54);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.record-entry__photo-thumb,
.record-entry__hero {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  background-color: rgba(217, 101, 59, 0.12);
}

.record-entry__photo-thumb.is-restricted,
.record-entry__hero.is-restricted {
  background:
    linear-gradient(135deg, rgba(26, 35, 52, 0.84), rgba(58, 76, 104, 0.78)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.09) 0 14px, rgba(255, 255, 255, 0.03) 14px 28px) !important;
}

.record-entry__photo-thumb {
  aspect-ratio: 1 / 1;
}

.record-entry__hero {
  width: min(180px, 100%);
  aspect-ratio: 4 / 3;
}

.record-entry__main--photo-card {
  gap: 6px;
}

.record-entry__main--photo-card .record-entry__hero {
  width: 100%;
}

.record-entry__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  padding-right: 0;
}

.record-entry__actions--inline {
  width: auto;
  flex-shrink: 0;
  margin-left: auto;
}

.record-entry__actions button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease, background 140ms ease, border-color 140ms ease;
}

.record-entry__actions button[data-memory-delete],
.record-entry__actions button[data-photo-delete],
.sheet-photo-card__delete {
  background: linear-gradient(180deg, rgba(255, 241, 241, 0.96), rgba(255, 221, 221, 0.92));
  border: 1px solid rgba(204, 78, 78, 0.34);
  color: var(--danger);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.record-entry__actions button[data-cover-photo].is-active {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(245, 192, 59, 0.96), rgba(213, 154, 29, 0.92));
  border-color: rgba(213, 154, 29, 0.42);
  box-shadow: 0 10px 18px rgba(213, 154, 29, 0.2);
}

.browse-record {
  width: 100%;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(183, 205, 232, 0.54);
  background: rgba(248, 251, 255, 0.92);
  text-align: left;
  display: grid;
  gap: 10px;
  color: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.browse-record--memory {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(231, 242, 255, 0.76));
}

.browse-record__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.browse-record__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(234, 242, 252, 0.92);
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 700;
}

.browse-record p,
.browse-record small {
  margin: 0;
  color: var(--muted);
}

.browse-record__photos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.browse-record__photo,
.browse-record__hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  background-color: rgba(217, 101, 59, 0.12);
}

.browse-record__photo.is-restricted,
.browse-record__hero.is-restricted {
  background:
    linear-gradient(135deg, rgba(26, 35, 52, 0.84), rgba(58, 76, 104, 0.78)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.09) 0 14px, rgba(255, 255, 255, 0.03) 14px 28px) !important;
}

.browse-record__photo {
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(183, 205, 232, 0.58);
}

.browse-record__hero {
  display: block;
  aspect-ratio: 4 / 3;
}

@media (max-width: 767px) {
  .sheet-status-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .sheet-status-row__main {
    flex-wrap: nowrap;
  }

  .place-edit-actions {
    justify-content: flex-end;
  }

  .record-summary-inline {
    gap: 6px;
    flex-wrap: nowrap;
  }

  .record-summary-inline__item {
    padding: 5px 8px;
    font-size: 0.7rem;
  }

  .sheet-danger-zone {
    justify-content: stretch;
  }

  .sheet-danger-zone__button {
    width: 100%;
    justify-content: center;
  }

  .record-compose__forms {
    grid-template-columns: minmax(0, 1fr);
  }

  .record-entry__photo-grid,
  .memory-modal__photos-grid,
  .browse-record__photos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.sheet-photo-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.sheet-photo-card__preview {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  background-color: rgba(217, 101, 59, 0.12);
}

.sheet-photo-card__body {
  display: grid;
  gap: 4px;
}

.sheet-photo-card__delete {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0;
  background: linear-gradient(180deg, rgba(255, 241, 241, 0.96), rgba(255, 221, 221, 0.92));
  color: var(--danger);
  border: 1px solid rgba(204, 78, 78, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.sheet-photo-card__delete svg {
  width: 17px;
  height: 17px;
}

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

.photo-card {
  text-align: left;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(183, 205, 232, 0.56);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.photo-card__image,
.modal-image {
  background-size: cover;
  background-position: center;
  background-color: rgba(217, 101, 59, 0.12);
}

.photo-card__image {
  aspect-ratio: 1 / 1;
}

.photo-card__meta {
  padding: 12px;
}

.photo-card--gallery {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  width: 100%;
  padding: 0;
  min-width: 0;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  overflow: hidden;
}

.photo-card--gallery .photo-card__image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}

.photo-card--gallery.is-restricted .photo-card__image {
  background:
    linear-gradient(135deg, rgba(26, 35, 52, 0.84), rgba(58, 76, 104, 0.78)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.09) 0 14px, rgba(255, 255, 255, 0.03) 14px 28px) !important;
}

.photo-card--gallery.is-video .photo-card__image,
.gallery-thumb.is-video,
.record-entry__photo-thumb.is-video,
.record-entry__hero.is-video,
.browse-thumb.is-video,
.browse-record__photo.is-video,
.browse-record__hero.is-video,
.place-cover-picker__thumb.is-video,
.memory-modal__photo-thumb.is-video,
.memory-editor__photo-thumb.is-video,
.photo-gallery-page__today-card.is-video {
  background-color: rgba(7, 12, 22, 0.82);
}

.record-entry__photo-thumb.is-video,
.record-entry__hero.is-video,
.browse-thumb.is-video,
.browse-record__photo.is-video,
.browse-record__hero.is-video,
.place-cover-picker__thumb.is-video,
.memory-modal__photo-thumb.is-video,
.memory-editor__photo-thumb.is-video,
.photo-gallery-page__today-card.is-video {
  position: relative;
  overflow: hidden;
}

.photo-card--gallery .photo-card__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 0;
  padding: 18px 5px 4px;
  background: linear-gradient(180deg, rgba(4, 8, 15, 0), rgba(4, 8, 15, 0.42));
  pointer-events: none;
}

.photo-card--gallery .photo-card__meta small {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.2;
  font-size: 0.62rem;
  font-weight: 700;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page--photos {
  gap: 8px;
  overflow-x: clip;
}

.photo-gallery-page,
.photo-gallery-page__grid-card {
  display: grid;
  gap: 8px;
}

.photo-gallery-page {
  padding: 2px 0 0;
  max-width: 100%;
  overflow-x: clip;
}

.photo-gallery-page__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.query-page-head__main,
.photo-gallery-page__head > div {
  min-width: 0;
  flex: 1 1 auto;
}

.query-page-head__title-row,
.photo-gallery-page__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.query-page-head h2,
.photo-gallery-page__head h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.12;
  white-space: nowrap;
}

.photo-gallery-page__help-toggle {
  width: 26px;
  height: 26px;
  min-height: 26px;
  min-width: 26px;
  padding: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  border-color: rgba(158, 184, 220, 0.34);
  background: rgba(255, 255, 255, 0.68);
  color: #7186a3;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
}

.photo-gallery-page__help-toggle.is-active {
  background: rgba(229, 240, 255, 0.92);
  border-color: rgba(91, 145, 228, 0.5);
  color: #335f98;
}

.photo-gallery-page__help {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.photo-gallery-page__today {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(183, 205, 232, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(244, 249, 255, 0.34)),
    rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.photo-gallery-page__today-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.photo-gallery-page__today-head div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.photo-gallery-page__today-head span,
.photo-gallery-page__today-head small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.photo-gallery-page__today-head strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.15;
}

.photo-gallery-page__today-head small {
  text-align: right;
}

.photo-gallery-page__today-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.photo-gallery-page__today-card {
  position: relative;
  display: grid;
  align-content: end;
  min-width: 0;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(40, 57, 79, 0.08), rgba(15, 23, 42, 0.52)),
    rgba(229, 238, 250, 0.9);
  background-position: center;
  background-size: cover;
  color: #fff;
  text-align: left;
  box-shadow: 0 10px 18px rgba(77, 114, 160, 0.12);
}

.photo-gallery-page__today-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 22, 38, 0.02), rgba(12, 22, 38, 0.62));
  pointer-events: none;
}

.photo-gallery-page__today-card span,
.photo-gallery-page__today-card strong {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-gallery-page__today-card span {
  font-size: 0.66rem;
  font-weight: 900;
  opacity: 0.86;
}

.photo-gallery-page__today-card strong {
  font-size: 0.74rem;
  line-height: 1.2;
}

.photo-gallery-page__stats-line {
  min-width: 0;
}

.query-page-head__stats,
.photo-gallery-page__stats-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.query-page-head__stats span,
.photo-gallery-page__stats-line span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(171, 195, 225, 0.26);
}

.query-page-head__stats small,
.photo-gallery-page__stats-line small {
  color: #687f9e;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
}

.query-page-head__stats strong,
.photo-gallery-page__stats-line strong {
  color: #426385;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.photo-gallery-page__filters {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(220px, 1.25fr) minmax(214px, 0.95fr) minmax(154px, 0.8fr);
  gap: 8px;
  max-width: 100%;
  padding: 8px;
  border-radius: 14px;
  background: rgba(247, 249, 252, 0.92);
  border: 0;
  box-shadow: none;
}

.photo-gallery-page__filters select,
.photo-gallery-page__filters input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 7px 11px;
  border-radius: 13px;
}

.photo-gallery-page__keyword-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 6px;
  min-width: 0;
}

.photo-gallery-page__filters input[type="search"] {
  min-width: 0;
}

.photo-gallery-page__search-field input {
  min-height: 100%;
  padding: 2px 0 1px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.photo-gallery-page__date-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.photo-gallery-page__date-range span {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.photo-gallery-page__date-field {
  position: relative;
  display: grid;
  place-items: center start;
  min-width: 0;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(158, 184, 220, 0.4);
  box-shadow: none;
  overflow: hidden;
}

.photo-gallery-page__date-field span {
  width: 100%;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  pointer-events: none;
}

.photo-gallery-page__date-field input[type="date"] {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  min-width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  opacity: 0.01;
  font-size: 16px;
  color: transparent;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.photo-gallery-page__region-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 10px;
  background: #ffffff;
  border-color: rgba(158, 184, 220, 0.4);
  box-shadow: none;
}

.photo-gallery-page__region-toggle span,
.photo-gallery-page__region-toggle strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-gallery-page__region-toggle span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.photo-gallery-page__region-toggle strong {
  color: var(--accent-strong);
  font-size: 0.78rem;
}

.photo-gallery-page__region-toggle.is-active {
  border-color: rgba(91, 145, 228, 0.5);
  background: rgba(229, 240, 255, 0.92);
  color: #335f98;
}

.photo-gallery-page__region-panel {
  position: relative;
  display: grid;
  gap: 0;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid rgba(183, 205, 232, 0.4);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(244, 249, 255, 0.3)),
    rgba(255, 255, 255, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(132%);
  -webkit-backdrop-filter: blur(16px) saturate(132%);
}

.photo-gallery-page__region-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding: 0 2px 2px;
}

.photo-gallery-page__region-head strong {
  display: block;
  font-size: 0.86rem;
}

.photo-gallery-page__region-reset {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.gallery-region-map .korea-minimap__map {
  min-height: 136px;
  border-radius: 16px;
}

.gallery-region-focus .region-focus__map {
  min-height: 148px;
  border-radius: 16px;
}

.photo-gallery-page__grid {
  display: block;
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: clip;
}

.photo-grid--gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  max-width: 100%;
  grid-auto-rows: 1fr;
}

.photo-gallery-page__reset {
  width: 36px;
  height: 40px;
  min-height: 40px;
  min-width: 36px;
  padding: 0;
  border-radius: 10px;
  border-color: rgba(158, 184, 220, 0.4);
  background: #ffffff;
  color: #57769f;
  box-shadow: none;
  display: grid;
  place-items: center;
}

.photo-gallery-page__reset svg {
  width: 17px;
  height: 17px;
}

.modal-card--photo-detail {
  width: 100% !important;
  max-width: 100vw !important;
  min-height: 100dvh;
  border-radius: 0 !important;
  padding: 0;
  position: relative;
  overflow: hidden;
  background: rgba(4, 8, 15, 0.98);
  border: 0;
  box-shadow: none;
  display: block;
}

.photo-detail__toolbar {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  left: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: top 180ms ease, opacity 160ms ease;
}

.modal-card--photo-detail.is-video .photo-detail__toolbar {
  top: max(68px, calc(env(safe-area-inset-top) + 58px));
}

.photo-detail__toolbar-left,
.photo-detail__toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.photo-detail__toolbar-right {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.photo-detail__icon-button {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border-color: rgba(141, 171, 210, 0.48);
  color: rgba(229, 238, 252, 0.94);
  background: rgba(36, 53, 79, 0.7);
}

.photo-detail__icon-button svg {
  width: 18px;
  height: 18px;
}

.photo-detail__zoom-frame {
  position: fixed;
  inset: 0;
  min-height: 0;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: contain;
  border-radius: 0;
  background: rgba(4, 8, 15, 0.98);
  display: grid;
  place-items: center;
  touch-action: none;
  cursor: pointer;
}

.photo-detail__zoom-frame.is-video {
  touch-action: auto;
  cursor: default;
}

.modal-image--photo-detail {
  margin: 0 !important;
  display: block;
  width: 100vw;
  max-width: none;
  min-width: 100vw;
  aspect-ratio: auto;
  min-height: 0;
  border-radius: 0;
  height: 100dvh;
  object-fit: contain;
  background: transparent;
  transform-origin: center center;
  transition: transform 80ms ease-out, opacity 160ms ease;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform, opacity;
}

.modal-image--photo-detail[hidden],
.modal-video--photo-detail[hidden] {
  display: none !important;
}

.modal-image--photo-detail.is-photo-dragging {
  cursor: grabbing;
}

.modal-image--photo-detail.is-photo-loading-original {
  filter: saturate(0.92) brightness(0.94);
}

.modal-video--photo-detail {
  display: block;
  width: 100vw;
  max-width: none;
  min-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  object-fit: contain;
  background: rgba(4, 8, 15, 0.98);
}

.photo-detail__nav-button,
.gallery-modal__nav-button {
  display: none;
}

.photo-detail-card {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 24px;
  color: rgba(221, 234, 252, 0.88);
  transition: opacity 160ms ease;
  pointer-events: none;
}

.modal-card--photo-detail.is-chrome-hidden .photo-detail__toolbar,
.modal-card--photo-detail.is-chrome-hidden .photo-detail-card {
  opacity: 0;
  pointer-events: none;
}

.photo-detail-card p,
.photo-detail-card small {
  margin: 0;
}

.gallery-modal__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: start center;
  background: rgba(10, 10, 10, 0.38);
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  z-index: 13000;
}

.modal-backdrop--photo-detail {
  inset: 0 !important;
  padding: 0 !important;
  background: rgba(7, 12, 22, 0.96);
  place-items: stretch;
  overflow: hidden;
}

.modal-card {
  width: min(420px, 100%);
  padding: 18px;
  margin: auto;
}

.modal-card--memory-editor,
.modal-card--memory-detail {
  display: grid;
  gap: 12px;
}

.modal-card--memory-editor {
  width: min(420px, calc(100vw - 24px));
  max-height: calc(100dvh - var(--nav-height) - 28px);
  margin: 10px auto calc(var(--nav-height) + 14px);
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.memory-modal__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.memory-modal__toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.modal-card--memory-editor .memory-modal__toolbar-actions > button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
}

.memory-modal__label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.memory-modal__date {
  color: var(--muted);
  font-size: 0.82rem;
}

.memory-modal__gallery-button {
  padding-left: 12px;
  padding-right: 12px;
}

.modal-close--icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.92rem;
  font-weight: 700;
}

.memory-modal__toolbar-actions [data-memory-edit] svg {
  width: 17px;
  height: 17px;
}

.memory-modal__photos {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.memory-modal__photo-cover-drop {
  display: none;
  gap: 3px;
  place-items: center;
  padding: 12px 10px;
  border-radius: 16px;
  border: 2px dashed rgba(127, 164, 227, 0.42);
  background: rgba(255, 255, 255, 0.18);
  color: #6d82a6;
  text-align: center;
}

.memory-modal__photo-cover-drop.is-visible {
  display: grid;
}

.memory-modal__photo-cover-drop.is-active {
  border-color: rgba(47, 103, 200, 0.82);
  background: rgba(226, 237, 255, 0.56);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.66);
  color: #2f67c8;
}

.memory-modal__photo-cover-drop strong {
  font-size: 0.8rem;
  font-weight: 800;
}

.memory-modal__photo-cover-drop small {
  font-size: 0.72rem;
  line-height: 1.35;
}

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

.memory-modal__photos-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.memory-modal__reorder-button {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.memory-modal__reorder-button svg {
  width: 16px;
  height: 16px;
}

.memory-modal__reorder-button.is-active {
  color: #2f67c8;
  background: rgba(226, 237, 255, 0.92);
  border-color: rgba(127, 164, 227, 0.9);
  box-shadow: inset 0 0 0 1px rgba(61, 126, 224, 0.12);
}

.memory-modal__photos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.memory-modal__photos-grid.is-reorder-mode {
  touch-action: none;
}

.memory-modal__photo-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  background-color: rgba(217, 101, 59, 0.12);
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.memory-modal__photo-cover-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(47, 103, 200, 0.92);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 14px rgba(47, 103, 200, 0.2);
  pointer-events: none;
}

.memory-modal__photos-grid.is-reorder-mode .memory-modal__photo-thumb {
  cursor: grab;
}

.memory-modal__photo-thumb.is-reorder-ready {
  transform: scale(0.98);
  box-shadow: inset 0 0 0 2px rgba(61, 126, 224, 0.2);
}

.memory-modal__photo-thumb.is-drag-source {
  opacity: 0.18;
}

.memory-modal__photo-drop-marker {
  min-height: 0;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 2px dashed rgba(47, 103, 200, 0.74);
  background: rgba(226, 237, 255, 0.38);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.62);
}

.memory-modal__photo-drag-ghost {
  position: fixed;
  z-index: 1200;
  margin: 0;
  border: 1px solid rgba(127, 164, 227, 0.7);
  box-shadow: 0 16px 28px rgba(55, 87, 138, 0.24);
  pointer-events: none;
}

.modal-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  margin: 10px 0 14px;
}

.modal-copy {
  white-space: pre-wrap;
}

.memory-editor__photo-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
}

.memory-editor__photo-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.memory-editor__photo-upload {
  position: relative;
  width: 44px;
  min-width: 0;
  justify-self: end;
}

.memory-editor__form.has-photo-preview .memory-editor__photo-upload {
  grid-column: 1 / -1;
  width: 100%;
  justify-self: stretch;
}

.memory-editor__photo-actions {
  width: 44px;
  min-width: 0;
}

.memory-editor__photo-action {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.memory-editor__photo-action svg {
  width: 18px;
  height: 18px;
}

.memory-editor__photo-action.is-active {
  color: #2f67c8;
  background: rgba(226, 237, 255, 0.92);
  border-color: rgba(127, 164, 227, 0.9);
  box-shadow: inset 0 0 0 1px rgba(61, 126, 224, 0.12);
}

.memory-editor__photo-upload .photo-picker__row {
  justify-content: flex-end;
}

.memory-editor__photo-upload .photo-picker__trigger {
  min-width: 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
}

.memory-editor__photo-upload .photo-picker__preview-stack {
  display: none;
  margin-top: 8px;
  justify-items: end;
  padding: 6px;
  border-radius: 14px;
  background: rgba(248, 251, 255, 0.96);
  box-shadow: 0 10px 24px rgba(55, 87, 138, 0.16);
}

.memory-editor__form.has-photo-preview .memory-editor__photo-upload .photo-picker {
  width: 100%;
  justify-items: stretch;
}

.memory-editor__form.has-photo-preview .memory-editor__photo-upload .photo-picker__preview-stack {
  width: 100%;
  box-sizing: border-box;
}

.memory-editor__photo-upload .photo-picker__preview-stack:not([hidden]) {
  display: grid;
}

.memory-editor__photo-upload .photo-picker__preview-grid {
  grid-template-columns: repeat(auto-fill, 40px);
  justify-content: start;
  gap: 6px;
  max-width: 100%;
}

.memory-editor__photo-upload .photo-picker__preview-thumb {
  width: 40px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
}

.memory-editor__photo-upload .photo-picker__preview-media,
.record-compose__photo-row .photo-picker__preview-media,
.story-form__place-photo-row .photo-picker__preview-media {
  border-radius: 10px;
}

.memory-editor__photo-upload .media-play-badge,
.record-compose__photo-row .media-play-badge,
.story-form__place-photo-row .media-play-badge {
  width: 28px;
  height: 28px;
  font-size: 0.72rem;
}

.memory-editor__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.memory-modal__toolbar--editor {
  align-items: center;
  margin-bottom: 8px;
}

.modal-card--memory-editor .memory-modal__toolbar--editor {
  margin-bottom: 0;
}

.memory-editor__form {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}

.memory-editor__form textarea[name="memo"] {
  min-height: 132px;
  resize: vertical;
}

.memory-editor__save-button {
  min-width: 58px;
}

.modal-card--memory-editor .modal-close {
  min-width: 58px;
  color: #587091;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(183, 205, 232, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.memory-editor__photo-guide {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  font-weight: 600;
}

.memory-editor__photo-count,
.memory-editor__photo-empty {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.memory-editor__photo-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(183, 205, 232, 0.52);
  background: rgba(248, 251, 255, 0.9);
  max-height: min(220px, 32dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  align-content: start;
}

.memory-editor__photo-panel.is-reorder-mode {
  border-color: rgba(127, 164, 227, 0.78);
  box-shadow: inset 0 0 0 1px rgba(61, 126, 224, 0.08);
}

.memory-editor__photo-cover-drop {
  display: none;
  gap: 3px;
  place-items: center;
  padding: 12px 10px;
  border-radius: 14px;
  border: 2px dashed rgba(127, 164, 227, 0.44);
  background: rgba(255, 255, 255, 0.22);
  color: #6d82a6;
  text-align: center;
}

.memory-editor__photo-cover-drop.is-visible {
  display: grid;
}

.memory-editor__photo-cover-drop.is-active {
  border-color: rgba(47, 103, 200, 0.82);
  background: rgba(226, 237, 255, 0.56);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.66);
  color: #2f67c8;
}

.memory-editor__photo-cover-drop strong {
  font-size: 0.8rem;
  font-weight: 800;
}

.memory-editor__photo-cover-drop small {
  font-size: 0.72rem;
  line-height: 1.35;
}

.memory-editor__photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.memory-editor__photo-option {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(183, 205, 232, 0.58);
  background: rgba(255, 255, 255, 0.94);
  text-align: left;
  color: inherit;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease, background 140ms ease, border-color 140ms ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

.memory-editor__photo-cover-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(47, 103, 200, 0.92);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 14px rgba(47, 103, 200, 0.2);
}

.memory-editor__photo-option.is-selected {
  border-color: rgba(61, 126, 224, 0.78);
  box-shadow: inset 0 0 0 1px rgba(61, 126, 224, 0.2);
  cursor: grab;
}

.memory-editor__photo-panel.is-reorder-mode .memory-editor__photo-option.is-selected {
  touch-action: none;
}

.memory-editor__photo-option.is-reorder-ready {
  transform: scale(0.98);
  box-shadow: inset 0 0 0 2px rgba(61, 126, 224, 0.22);
}

.memory-editor__photo-option.is-drag-source {
  opacity: 0.18;
  transform: scale(0.92);
  box-shadow: inset 0 0 0 2px rgba(61, 126, 224, 0.14);
}

.memory-editor__photo-drop-marker {
  min-height: 0;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 2px dashed rgba(47, 103, 200, 0.7);
  background: rgba(226, 237, 255, 0.38);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.62);
}

.memory-editor__photo-option--drag-preview {
  position: fixed;
  left: 0;
  top: 0;
  margin: 0;
  opacity: 0.98;
  transform: translate3d(0, 0, 0);
  box-shadow: 0 18px 36px rgba(61, 126, 224, 0.22);
  z-index: 9999;
  pointer-events: none;
  scale: 1.04;
}

.memory-editor__photo-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: rgba(217, 101, 59, 0.12);
  pointer-events: none;
}

.memory-editor__photo-option small {
  display: none;
}

.modal-card--memory-editor .date-field {
  align-items: center;
  justify-content: center;
}

.modal-card--memory-editor .date-field input {
  text-align: center;
  font-weight: 700;
}

.modal-card--memory-editor .date-field__weekday {
  min-width: 54px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .memory-editor__photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.search-results {
  display: grid;
  gap: 16px;
}

.browse-hero,
.browse-breadcrumbs,
.browse-layout,
.browse-side {
  display: grid;
  gap: 10px;
}

.browse-hero {
  overflow: hidden;
  gap: 8px;
  padding: 2px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.browse-hero::after,
.browse-breadcrumbs::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
}

.browse-hero::after {
  display: none;
  width: 220px;
  height: 220px;
  top: -90px;
  right: -54px;
  background: radial-gradient(circle, rgba(245, 192, 59, 0.18), transparent 66%);
}

.browse-breadcrumbs::after {
  width: 180px;
  height: 180px;
  bottom: -90px;
  left: -34px;
  background: radial-gradient(circle, rgba(124, 181, 255, 0.16), transparent 68%);
}

.browse-hero__topline,
.browse-hero__stats,
.browse-breadcrumbs__topline {
  position: relative;
  z-index: 1;
}

.browse-hero__topline {
  position: relative;
  padding: 0 1px;
}

.browse-hero__compact-copy {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 34ch;
  line-height: 1.5;
}

.browse-hero__stats {
  display: grid;
  grid-template-columns: minmax(112px, 1.35fr) repeat(2, minmax(62px, 0.78fr)) 40px;
  gap: 6px;
  align-content: stretch;
  width: 100%;
  align-items: stretch;
}

.browse-hero__summary-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.browse-hero__summary-line.query-page-head__main {
  flex-wrap: nowrap;
  width: 100%;
}

.browse-hero__summary-line .query-page-head__title-row {
  flex: 1 1 auto;
}

.browse-hero__summary-line h2 {
  margin: 0;
  font-size: 1.12rem;
  white-space: nowrap;
}

.browse-hero__summary-line > span:not(:first-child) {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(171, 195, 225, 0.26);
  color: var(--muted);
  font-size: 0.68rem;
}

.browse-hero__summary-line .browse-hero__help {
  margin-left: auto;
}

.browse-hero__stat {
  display: grid;
  gap: 2px;
  align-content: center;
  min-height: 58px;
  padding: 9px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 245, 255, 0.76));
  border: 1px solid rgba(183, 205, 232, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: center;
  min-width: 0;
}

.browse-hero__stat span {
  color: var(--muted);
  font-size: clamp(0.58rem, 1.6vw, 0.68rem);
  font-weight: 700;
  line-height: 1.1;
}

.browse-hero__stat strong {
  font-size: clamp(0.9rem, 2.5vw, 1.12rem);
  line-height: 1;
}

.browse-layout {
  grid-template-columns: 1fr;
  gap: 16px;
}

.browse-region-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.browse-toolbar,
.browse-toolbar__actions,
.browse-search,
.browse-breadcrumbs__actions,
.browse-place-card__head,
.browse-place-card__actions,
.browse-place-card__meta,
.browse-section-heading,
.browse-breadcrumbs__trail,
.browse-place-card__tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.browse-status-filters {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: nowrap;
}

.browse-status-filter {
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(164, 190, 222, 0.26);
  background: rgba(255, 255, 255, 0.46);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: none;
}

.browse-status-filter.is-active {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 16px rgba(77, 114, 160, 0.12);
}

.browse-status-filter--wanted.is-active {
  background: linear-gradient(180deg, rgba(217, 101, 59, 0.95), rgba(190, 77, 42, 0.92));
}

.browse-status-filter--visited.is-active {
  background: linear-gradient(180deg, rgba(47, 143, 107, 0.95), rgba(38, 119, 89, 0.92));
}

.browse-status-filter--recommended.is-active {
  background: linear-gradient(180deg, rgba(245, 192, 59, 0.98), rgba(213, 154, 29, 0.94));
}

.browse-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  flex: 1 1 280px;
  gap: 6px;
}

.browse-search__field,
.photo-gallery-page__search-field {
  min-width: 0;
}

.browse-search__field,
.photo-gallery-page__search-field {
  min-height: 40px;
  padding: 0 12px 0 38px;
  border-radius: 10px;
  border: 1px solid rgba(158, 184, 220, 0.4);
  background: #ffffff;
  box-shadow: none;
}

.browse-search__field input,
.photo-gallery-page__search-field input {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  padding: 2px 0 1px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.browse-toolbar {
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.browse-hero .browse-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  padding: 8px;
  border-radius: 14px;
  background: rgba(247, 249, 252, 0.92);
  border: 1px solid rgba(171, 195, 225, 0.28);
  box-shadow: 0 6px 18px rgba(77, 114, 160, 0.06);
}

.browse-toolbar__actions {
  justify-content: flex-end;
}

.browse-toolbar__icon-button {
  width: 36px;
  height: 40px;
  min-height: 40px;
  min-width: 36px;
  padding: 0;
  border-radius: 10px;
  border-color: rgba(158, 184, 220, 0.4);
  background: #ffffff;
  color: #57769f;
  box-shadow: none;
  display: grid;
  place-items: center;
}

.browse-toolbar__icon-button svg {
  width: 17px;
  height: 17px;
}

.browse-hero__icon-button,
.browse-hero__help-button {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
}

.browse-hero__help-button {
  border-color: rgba(158, 184, 220, 0.34);
  background: rgba(255, 255, 255, 0.68);
  color: #7186a3;
  font-size: 0.72rem;
  box-shadow: none;
}

.browse-hero__help {
  justify-self: end;
}

.browse-scope-toggle {
  margin-top: 2px;
  margin-bottom: 0;
}

.browse-breadcrumbs {
  gap: 8px;
  padding: 0;
  overflow: visible;
  background: transparent;
}

.browse-breadcrumbs::after {
  display: none;
}

.browse-breadcrumbs .browse-scope-toggle {
  margin: 0;
}

.browse-breadcrumbs__topline {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.browse-breadcrumbs__trail {
  color: var(--muted);
  font-size: 0.82rem;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  gap: 6px;
}

.browse-breadcrumbs__trail .sheet-tab {
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.browse-scope-divider {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.browse-breadcrumbs__actions {
  gap: 6px;
  justify-content: flex-end;
  margin-left: auto;
}

.browse-breadcrumbs__actions .ghost-button {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.browse-crumb {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(183, 205, 232, 0.52);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.browse-crumb.is-root {
  background: rgba(234, 242, 252, 0.92);
  color: var(--accent-strong);
}

.browse-region-panel,
.browse-place-section {
  overflow: hidden;
}

.browse-place-section {
  padding: 13px;
  border-color: rgba(183, 205, 232, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(244, 249, 255, 0.5)),
    rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.browse-region-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.browse-region-panel .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.browse-place-section > .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(183, 205, 232, 0.24);
}

.browse-place-section > .section-head > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.browse-place-section__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.browse-place-section > .section-head .browse-status-filters {
  margin-left: auto;
  flex: 0 0 auto;
  justify-content: flex-end;
  min-width: 0;
}

.browse-place-section__title-row h3 {
  margin: 0;
}

.browse-place-section__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.browse-selection-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 2px;
  min-width: 0;
  flex-wrap: nowrap;
  width: 100%;
}

.browse-selection-toolbar__count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0;
  color: #426385;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.browse-selection-toolbar__mini-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  line-height: 1;
  flex: 0 0 auto;
  white-space: nowrap;
}

.browse-selection-tools {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.browse-selection-tools__toggle {
  width: 66px;
  min-width: 66px;
  min-height: 28px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #5d728f;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(183, 205, 232, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.browse-selection-tools__toggle.is-active {
  background: rgba(233, 242, 255, 0.88);
  border-color: rgba(131, 170, 229, 0.42);
  color: #426385;
}

.browse-selection-toolbar__icon {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  color: #426385;
  background: rgba(236, 246, 255, 0.74);
  border-color: rgba(131, 170, 229, 0.34);
}

.browse-selection-toolbar__icon svg {
  width: 14px;
  height: 14px;
}

.browse-selection-toolbar__icon--subtle {
  color: #6f7f97;
  background: rgba(255, 255, 255, 0.62);
}

.browse-compact-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(183, 205, 232, 0.48);
  color: #506684;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.browse-compact-toggle input {
  margin: 0;
  accent-color: var(--accent-strong);
}

.browse-region-panel .section-head .browse-breadcrumbs__topline {
  margin-left: auto;
}

.browse-region-panel--primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(240, 246, 255, 0.76)),
    rgba(255, 255, 255, 0.82);
}

.region-focus {
  display: grid;
  gap: 10px;
}

.region-focus__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(183, 205, 232, 0.5);
  background: rgba(255, 255, 255, 0.72);
}

.region-focus__head div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.region-focus__head span,
.region-focus__head small {
  color: var(--muted);
  font-size: 0.76rem;
}

.region-focus__head strong {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.2;
}

.region-focus__back {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
}

.region-focus__map {
  position: relative;
  min-height: 252px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(183, 205, 232, 0.56);
  background:
    radial-gradient(circle at 64% 24%, rgba(245, 192, 59, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(247, 251, 255, 0.94), rgba(236, 244, 255, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.region-focus__summary {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(183, 205, 232, 0.58);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.15;
  box-shadow: 0 8px 16px rgba(77, 114, 160, 0.12);
}

.region-focus__map--seoul {
  background:
    radial-gradient(circle at 54% 42%, rgba(124, 181, 255, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(247, 251, 255, 0.96), rgba(235, 243, 255, 0.8));
}

.region-focus__map svg {
  position: absolute;
  inset: 16px 14px;
  width: calc(100% - 28px);
  height: calc(100% - 32px);
  color: rgba(175, 206, 236, 0.62);
  filter: drop-shadow(0 14px 20px rgba(77, 114, 160, 0.12));
}

.region-focus__map path:first-child {
  fill: currentColor;
  stroke: rgba(122, 158, 198, 0.46);
  stroke-width: 1.25;
}

.region-focus__map path:last-child {
  fill: none;
  stroke: rgba(91, 145, 228, 0.28);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.region-focus__pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  min-width: 46px;
  min-height: 28px;
  max-width: 72px;
  padding: 4px 7px;
  border-radius: 999px;
  border: 1px solid rgba(183, 205, 232, 0.74);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 800;
  font-size: 0.68rem;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(86, 133, 205, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
  z-index: 1;
}

.region-focus__pin span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.region-focus__pin small {
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(234, 242, 252, 0.94);
  color: var(--muted);
  font-size: 0.56rem;
  line-height: 1;
}

.region-focus__pin.is-active,
.region-focus__pin:hover,
.region-focus__pin:focus-visible {
  transform: translate(-50%, -50%) scale(1.05);
  border-color: rgba(91, 145, 228, 0.82);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(190, 220, 255, 0.56));
  box-shadow: 0 12px 24px rgba(86, 133, 205, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  z-index: 2;
}

.browse-region-panel__copy {
  margin: -2px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.section-head h3 {
  margin: 4px 0 0;
}

.region-card-grid,
.browse-place-list,
.trash-list {
  display: grid;
  gap: 8px;
}

.page--trash {
  gap: 12px;
}

.page--trash .trash-hero {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
}

.page--trash .trash-hero h2,
.page--trash .trash-hero p {
  margin-bottom: 0;
}

.page--trash .trash-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
}

.page--trash .section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 4px 12px;
}

.page--trash .section-head .eyebrow,
.page--trash .section-head h3,
.page--trash .section-head .hero-subcopy {
  margin: 0;
}

.page--trash .section-head h3 {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: #263d5b;
  font-size: 1.1rem;
}

.trash-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(238, 245, 253, 0.72);
  border: 1px solid rgba(183, 205, 232, 0.5);
}

.trash-tab {
  display: grid;
  gap: 2px;
  min-width: 0;
  min-height: 50px;
  padding: 8px 6px;
  border-radius: 13px;
  border: 1px solid transparent;
  background: transparent;
  color: #536b8a;
  text-align: center;
}

.trash-tab span,
.trash-tab b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trash-tab span {
  font-size: 0.72rem;
  font-weight: 800;
}

.trash-tab b {
  color: #263d5b;
  font-size: 0.88rem;
}

.trash-tab.is-active {
  border-color: rgba(46, 111, 203, 0.34);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(71, 108, 156, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.trash-bulk-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 0;
  padding: 7px;
  border-radius: 16px;
  background: rgba(247, 250, 254, 0.7);
  border: 1px solid rgba(183, 205, 232, 0.4);
}

.trash-bulk-toolbar > button,
.trash-card__actions > button {
  min-width: 0;
  min-height: 38px;
  padding-left: 6px;
  padding-right: 6px;
  white-space: nowrap;
  font-size: 0.72rem;
}

.region-card {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(183, 205, 232, 0.58);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.region-card.is-active,
.region-card:hover,
.region-card:focus-visible {
  border-color: rgba(91, 145, 228, 0.7);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(190, 220, 255, 0.34));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 14px 28px rgba(86, 133, 205, 0.14);
  transform: translateY(-1px);
}

.region-card strong,
.browse-place-card h3 {
  display: block;
  margin: 0;
}

.region-card strong {
  font-size: 0.94rem;
}

.region-card small,
.browse-place-card p,
.browse-place-card__meta {
  color: var(--muted);
}

.region-card small {
  display: block;
  margin-top: 3px;
  font-size: 0.76rem;
  line-height: 1.35;
}

.region-card--compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
}

.region-card--compact small {
  margin-top: 0;
  white-space: nowrap;
}

.korea-minimap {
  display: grid;
  gap: 8px;
}

.korea-minimap__map {
  position: relative;
  width: 100%;
  min-height: 250px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(183, 205, 232, 0.58);
  background:
    radial-gradient(circle at 68% 18%, rgba(124, 181, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(247, 251, 255, 0.94), rgba(234, 243, 255, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.korea-minimap__map svg {
  position: absolute;
  inset: 10px 16px 8px;
  width: calc(100% - 32px);
  height: calc(100% - 18px);
  color: rgba(175, 206, 236, 0.58);
  filter: drop-shadow(0 12px 18px rgba(77, 114, 160, 0.12));
}

.korea-minimap__map path {
  fill: currentColor;
  stroke: rgba(122, 158, 198, 0.46);
  stroke-width: 1.2;
}

.korea-minimap__pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 34px;
  min-width: 34px;
  height: 30px;
  min-height: 30px;
  padding: 0 4px;
  border-radius: 999px;
  border: 1px solid rgba(183, 205, 232, 0.76);
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-weight: 800;
  font-size: 0.68rem;
  box-shadow: 0 8px 16px rgba(86, 133, 205, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
  z-index: 1;
}

.korea-minimap__pin small {
  position: absolute;
  right: -5px;
  top: -5px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(35, 85, 158, 0.92);
  color: #fff;
  font-size: 0.58rem;
  line-height: 1;
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 160ms ease, transform 160ms ease;
}

.korea-minimap__pin.is-active,
.korea-minimap__pin:hover,
.korea-minimap__pin:focus-visible {
  transform: translate(-50%, -50%) scale(1.06);
  border-color: rgba(91, 145, 228, 0.82);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(190, 220, 255, 0.58));
  box-shadow: 0 12px 24px rgba(86, 133, 205, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  z-index: 2;
}

.korea-minimap__pin.is-active small,
.korea-minimap__pin:hover small,
.korea-minimap__pin:focus-visible small {
  opacity: 1;
  transform: scale(1);
}

.korea-minimap__extras {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
}

.browse-place-card {
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(183, 205, 232, 0.44);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  display: grid;
  gap: 8px;
}

.browse-place-card.is-wanted {
  border-color: rgba(217, 101, 59, 0.24);
  background:
    linear-gradient(90deg, rgba(217, 101, 59, 0.1), transparent 32%),
    rgba(255, 255, 255, 0.68);
}

.browse-place-card.is-visited {
  border-color: rgba(47, 143, 107, 0.25);
  background:
    linear-gradient(90deg, rgba(47, 143, 107, 0.11), transparent 32%),
    rgba(255, 255, 255, 0.68);
}

.browse-place-card.is-recommended {
  border-color: rgba(245, 192, 59, 0.32);
  background:
    linear-gradient(90deg, rgba(245, 192, 59, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.68);
}

.browse-place-card.is-selected {
  border-color: rgba(127, 177, 255, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 12px 24px rgba(103, 148, 216, 0.12);
}

.browse-place-card__head > .trash-card__select {
  flex: 0 0 auto;
}

.browse-place-card__select {
  align-self: center;
}

.browse-place-card__compact-media {
  flex: 0 0 72px;
  width: 72px;
  min-width: 72px;
  height: 72px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  background-color: rgba(217, 101, 59, 0.14);
  border: 1px solid rgba(183, 205, 232, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.browse-place-card__compact-media--fallback {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(247, 209, 196, 0.78), rgba(242, 189, 171, 0.52));
}

.browse-pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
}

.browse-pill--status {
  font-weight: 800;
}

.browse-pill--status.is-wanted {
  background: rgba(217, 101, 59, 0.13);
  border-color: rgba(217, 101, 59, 0.24);
  color: #9a4b2f;
}

.browse-pill--status.is-visited {
  background: rgba(47, 143, 107, 0.13);
  border-color: rgba(47, 143, 107, 0.24);
  color: #21654c;
}

.browse-pill--status.is-recommended {
  background: rgba(245, 192, 59, 0.18);
  border-color: rgba(245, 192, 59, 0.32);
  color: #846417;
}

.browse-place-card__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.browse-place-card__title-row h3 {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.24;
}

.browse-place-card__head {
  flex-wrap: nowrap;
  align-items: flex-start;
}

.browse-place-card__head > div {
  min-width: 0;
  flex: 1 1 auto;
}

.browse-place-card__content {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.browse-place-card__detail-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.browse-place-card__detail-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.browse-place-card__detail-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.browse-place-card__detail-address {
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
}

.browse-place-card__map-button svg {
  width: 17px;
  height: 17px;
}

.browse-place-card__meta {
  gap: 6px;
  align-items: center;
}

.browse-place-card__label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: -2px;
}

.browse-place-card__meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(234, 242, 252, 0.9);
  font-size: 0.72rem;
}

.browse-place-card__section,
.browse-place-card__detail {
  display: grid;
  gap: 10px;
}

.browse-place-card__detail {
  padding: 11px 12px;
  border-radius: 18px;
  background: rgba(248, 251, 255, 0.86);
  border: 1px solid rgba(183, 205, 232, 0.5);
}

.browse-place-card__detail--records {
  padding-top: 10px;
}

.browse-meta-button {
  padding: 5px 8px;
  font-size: 0.72rem;
}

.browse-place-card.is-compact {
  gap: 8px;
  padding: 11px;
}

.browse-place-card.is-compact .browse-place-card__head {
  flex-wrap: nowrap;
  align-items: flex-start;
}

.browse-place-card.is-compact .browse-place-card__head > div {
  min-width: 0;
  flex: 1 1 auto;
}

.browse-place-card.is-compact .browse-place-card__content {
  gap: 6px;
}

.browse-place-card.is-compact .browse-place-card__tags {
  gap: 6px;
  margin-bottom: 1px;
}

.browse-place-card.is-compact .browse-place-card__title-row {
  gap: 6px;
}

.browse-place-card.is-compact .browse-place-card__title-row h3 {
  font-size: 0.94rem;
  line-height: 1.16;
}

.browse-place-card.is-compact .browse-place-card__compact-media {
  flex-basis: 60px;
  width: 60px;
  min-width: 60px;
  height: 60px;
  border-radius: 14px;
}

.browse-place-card.is-compact .browse-place-card__tag-chips,
.browse-place-card.is-compact .browse-place-card__bookmark-row {
  margin-top: 4px;
  gap: 5px;
}

.browse-place-card.is-compact .browse-place-card__label-row {
  gap: 5px;
  margin-top: -3px;
}

.browse-place-card.is-compact .browse-place-card__meta {
  gap: 5px;
  align-items: center;
}

.browse-place-card.is-compact .browse-place-card__meta span,
.browse-place-card.is-compact .browse-meta-button {
  padding: 4px 7px;
  font-size: 0.69rem;
}

.browse-place-card.is-compact .browse-place-card__bookmark {
  min-height: 24px;
  padding: 0 8px;
  font-size: 0.68rem;
}

.browse-place-card.is-compact .browse-pill {
  padding: 4px 8px;
  font-size: 0.69rem;
}

.browse-place-card.is-compact .browse-place-card__tag-chip {
  min-height: 22px;
  padding: 0 8px;
  font-size: 0.68rem;
}

.browse-place-card.is-compact .browse-icon-button {
  width: 34px;
  height: 34px;
}

.browse-place-card.is-compact .browse-place-card__detail {
  padding: 10px;
}

.browse-place-card.is-compact .browse-place-card__detail-address {
  font-size: 0.76rem;
}

.browse-place-card.is-compact .browse-place-card__detail-regions {
  gap: 5px;
}

.browse-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.browse-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: rgba(217, 101, 59, 0.12);
  border: 1px solid rgba(183, 205, 232, 0.58);
}

.browse-thumb.is-restricted {
  background:
    linear-gradient(135deg, rgba(26, 35, 52, 0.84), rgba(58, 76, 104, 0.78)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.09) 0 14px, rgba(255, 255, 255, 0.03) 14px 28px) !important;
}

.browse-thumb--empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  background-image: none;
}

.browse-place-section {
  width: 100%;
  padding: 18px;
}

.trash-card {
  display: grid;
  grid-template-columns: auto 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(183, 205, 232, 0.58);
  background: rgba(255, 255, 255, 0.84);
}

.trash-record-card .browse-place-card__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(132px, auto);
  align-items: center;
  gap: 10px;
}

.trash-card.is-selected {
  border-color: rgba(127, 177, 255, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 12px 24px rgba(103, 148, 216, 0.12);
}

.trash-card__select {
  display: grid;
  gap: 6px;
  justify-items: center;
  align-self: center;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.trash-card__select span {
  white-space: nowrap;
}

.trash-card__image {
  width: 72px;
  height: 72px;
  min-width: 72px;
  padding: 0;
  border: 1px solid rgba(183, 205, 232, 0.58);
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  background-color: rgba(217, 101, 59, 0.12);
}

.trash-card__meta,
.trash-card__actions {
  display: grid;
  gap: 6px;
  min-width: 0;
}

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

.trash-card__meta strong,
.trash-card__meta small,
.trash-record-card .browse-place-card__head strong,
.trash-record-card .browse-place-card__head p {
  overflow: hidden;
  text-overflow: ellipsis;
}

.trash-card__meta strong,
.trash-record-card .browse-place-card__head strong {
  white-space: nowrap;
}

.trash-record-card .browse-place-card__head p {
  margin: 2px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.trash-card__meta small {
  color: var(--muted);
}

.loading-mask {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(221, 232, 245, 0.42);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  z-index: 14000;
  animation: loading-mask-fade-in 180ms ease;
}

.loading-mask__card {
  min-width: min(280px, 100%);
  display: grid;
  gap: 10px;
  padding: 22px 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(232, 241, 252, 0.52));
  box-shadow:
    0 26px 46px rgba(86, 118, 160, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  text-align: center;
  justify-items: center;
}

.loading-mask__card span {
  color: var(--muted);
}

.loading-mask__title {
  display: block;
}

.loading-mask__subtitle {
  display: block;
}

.loading-mask__progress {
  display: grid;
  gap: 8px;
  width: min(240px, 100%);
  padding-top: 4px;
  animation: loading-mask-fade-in 220ms ease;
}

.loading-mask__progress[hidden] {
  display: none;
}

.loading-mask__progress-bar {
  position: relative;
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(214, 227, 244, 0.72);
  box-shadow: inset 0 1px 2px rgba(100, 126, 163, 0.12);
}

.loading-mask__progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(101, 170, 255, 0.92), rgba(255, 127, 160, 0.9));
  box-shadow: 0 8px 18px rgba(108, 151, 224, 0.22);
  transition: width 220ms ease;
}

.loading-mask__progress-label {
  color: var(--accent-strong);
  font-size: 0.85rem;
  line-height: 1;
}

.loading-mask__dday {
  display: grid;
  gap: 8px;
  width: 100%;
  padding-top: 4px;
  animation: loading-mask-fade-in 260ms ease;
}

.loading-mask__dday[hidden] {
  display: none;
}

.loading-mask__dday-main {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  font-size: 1.08rem;
}

.loading-mask__dday-main strong {
  font-size: 1.65rem;
  line-height: 1;
  color: #d55d7b;
}

.loading-mask__dday-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.loading-mask__dday-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
}

.loading-mask__dday-chip i {
  font-style: normal;
}

.loading-mask__dday-chip b {
  color: var(--accent-strong);
}

.page--route-error {
  min-height: min(560px, calc(100dvh - var(--nav-height) - 60px));
  align-content: center;
}

.route-error-card {
  display: grid;
  gap: 14px;
  text-align: center;
  justify-items: center;
}

.route-error-card .primary-button {
  min-width: 140px;
}

.settings-tag-form {
  grid-template-columns: minmax(112px, 1fr) minmax(220px, 1.5fr) 72px auto;
  align-items: stretch;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(246, 249, 255, 0.68);
  border: 1px solid rgba(183, 205, 232, 0.42);
}

.settings-tag-form > * {
  min-width: 0;
}

.settings-tag-form input,
.settings-tag-form select {
  height: 48px;
  padding: 0 12px;
  border-radius: 14px;
}

.settings-tag-form select[name="icon"],
.settings-tag-form input[name="score"] {
  text-align: center;
}

.settings-tag-form button {
  min-height: 48px;
  padding-inline: 12px;
  border-radius: 14px;
  white-space: nowrap;
}

.settings-trash-lock-card {
  display: grid;
  gap: 12px;
}

.settings-trash-lock-status {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(183, 205, 232, 0.52);
  background: rgba(248, 251, 255, 0.78);
}

.settings-trash-lock-status span {
  color: #263d5b;
  font-weight: 900;
}

.settings-trash-lock-status small {
  color: var(--muted);
  line-height: 1.45;
}

.settings-trash-lock-status.is-locked {
  border-color: rgba(46, 111, 203, 0.32);
  background: rgba(236, 244, 255, 0.86);
}

.settings-trash-pin-form {
  gap: 10px;
}

.settings-trash-pin-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.settings-trash-pin-actions > * {
  min-width: 0;
}

.settings-trash-pin-actions > :only-child {
  grid-column: 1 / -1;
}

.category-icon-picker {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
}

.category-icon-picker__search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 48px;
  padding: 0 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(104, 154, 230, 0.46);
}

.category-icon-picker__search input {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  outline: 0;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text);
}

.category-icon-picker__current,
.category-icon-picker__option {
  display: inline-grid;
  place-items: center;
  user-select: none;
  -webkit-user-select: none;
}

.category-icon-picker__current {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #2f6f8f;
  background: rgba(232, 241, 255, 0.9);
}

.category-icon-picker__current svg,
.category-icon-picker__option svg {
  width: 1.2em;
  height: 1.2em;
  display: block;
}

.category-icon-picker__grid {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 6px;
  max-height: 184px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(183, 205, 232, 0.72);
  box-shadow: 0 18px 34px rgba(77, 114, 160, 0.16);
}

.category-icon-picker:focus-within {
  z-index: 21;
}

.category-icon-picker:focus-within .category-icon-picker__grid {
  display: grid;
}

.category-icon-picker__option {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  min-height: 52px;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 13px;
  color: #5f7294;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(183, 205, 232, 0.42);
}

.category-icon-picker__option span {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 800;
  user-select: none;
  -webkit-user-select: none;
  text-align: left;
}

.category-icon-picker__option.is-active {
  color: var(--accent-strong);
  background: rgba(222, 238, 255, 0.92);
  border-color: rgba(104, 154, 230, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.settings-tag-list {
  display: grid;
  gap: 8px;
}

.settings-tag-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(183, 205, 232, 0.5);
}

.settings-tag-item__emoji,
.settings-tag-item__icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(246, 249, 255, 0.92);
  font-size: 1rem;
  color: #2f6f8f;
}

.settings-tag-item__icon svg,
.map-tag-filter__chip svg,
.browse-tag-filter__chip svg,
.place-tag-chip svg {
  width: 1.42em;
  height: 1.42em;
  display: block;
}

.settings-tag-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-tag-item__score {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: #7082a8;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.settings-tag-item__score input {
  min-width: 0;
  height: 32px;
  padding: 0 8px;
  text-align: center;
}

.settings-tag-item__score b {
  color: var(--text);
  font-size: 0.82rem;
}

.settings-tag-item__actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.settings-tag-item__edit,
.settings-tag-item__delete {
  min-width: 0;
  min-height: 34px;
  padding-inline: 10px;
  white-space: nowrap;
}

.settings-tag-form input:disabled,
.settings-tag-form button:disabled,
.settings-tag-item button:disabled,
.settings-tag-item input:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  box-shadow: none;
}

.settings-tag-item--editing {
  grid-template-columns: auto minmax(96px, 0.75fr) minmax(190px, 1.25fr) 72px auto auto;
}

.settings-tag-item--editing input,
.settings-tag-item--editing select {
  min-width: 0;
  height: 38px;
  border-radius: 12px;
  padding: 0 10px;
}

.settings-tag-item--editing .settings-tag-item__actions {
  display: contents;
}

.settings-tag-item--editing .category-icon-picker {
  align-self: start;
}

.loading-mask__orbit {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 2px;
}

.loading-mask__heart {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: #ff7b98;
  text-shadow: 0 8px 18px rgba(255, 123, 152, 0.28);
  animation: loading-heart-bob 1.35s ease-in-out infinite;
}

.loading-mask__dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(124, 181, 255, 0.88));
  box-shadow: 0 10px 20px rgba(104, 154, 230, 0.2);
}

.loading-mask__dot--a {
  top: 8px;
  left: 12px;
  animation: loading-orbit-a 1.45s ease-in-out infinite;
}

.loading-mask__dot--b {
  top: 14px;
  right: 10px;
  animation: loading-orbit-b 1.45s ease-in-out infinite;
}

.loading-mask__dot--c {
  bottom: 12px;
  left: 28px;
  animation: loading-orbit-c 1.45s ease-in-out infinite;
}

.loading-mask--route {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.46), transparent 24%),
    rgba(221, 232, 245, 0.52);
}

.settings-dday-form {
  grid-template-columns: minmax(0, 1fr) 170px 100px 110px auto auto auto;
  align-items: center;
}

.settings-dday-date {
  position: relative;
  display: grid;
  place-items: center start;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(104, 154, 230, 0.62);
  overflow: hidden;
}

.settings-dday-date span {
  width: 100%;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}

.settings-dday-date input[type="date"] {
  position: absolute;
  inset: 0;
  width: 100%;
  min-width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  opacity: 0.01;
  font-size: 16px;
  color: transparent;
  background: transparent;
  box-shadow: none;
}

.settings-dday-repeat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(171, 195, 225, 0.62);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.settings-dday-repeat input {
  width: auto;
  box-shadow: none;
}

.settings-dday-suggestion {
  justify-self: start;
  margin: 8px 0 10px;
}

.settings-dday-list {
  display: grid;
  gap: 8px;
}

.settings-dday-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(183, 205, 232, 0.5);
}

.settings-dday-item__icon {
  font-size: 1.2rem;
}

.settings-dday-item__actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.settings-dday-item strong,
.settings-dday-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .settings-tag-form {
    grid-template-columns: minmax(82px, 1fr) minmax(124px, 1.2fr) 52px auto;
    gap: 6px;
    padding: 8px;
  }

  .settings-tag-form input,
  .settings-tag-form select,
  .settings-tag-form button {
    height: 48px;
    min-height: 48px;
    padding-inline: 7px;
    font-size: 0.78rem;
  }

  .settings-tag-form input,
  .settings-tag-form select {
    padding-inline: 6px;
  }

  .settings-tag-item {
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    gap: 7px;
  }

  .settings-tag-item__edit,
  .settings-tag-item__delete {
    min-height: 32px;
    padding-inline: 8px;
    font-size: 0.78rem;
  }

  .settings-tag-item__score {
    font-size: 0.68rem;
  }

  .settings-tag-item__score b {
    font-size: 0.76rem;
  }

  .settings-tag-item--editing {
    grid-template-columns: auto minmax(74px, 1fr) minmax(118px, 1.1fr) 48px auto auto;
    gap: 5px;
  }

  .settings-tag-item--editing input,
  .settings-tag-item--editing select {
    height: 34px;
    padding-inline: 6px;
    font-size: 0.76rem;
  }

  .settings-tag-item--editing .settings-tag-item__actions button {
    min-height: 32px;
    padding-inline: 7px;
    font-size: 0.74rem;
  }

  .category-icon-picker__grid {
    max-height: 168px;
    grid-template-columns: 1fr;
  }

  .category-icon-picker__search {
    height: 48px;
    padding: 0 8px;
    gap: 6px;
  }

  .category-icon-picker__search input {
    font-size: 0.76rem;
  }

  .category-icon-picker__current {
    width: 24px;
    height: 24px;
  }

  .category-icon-picker__option {
    min-height: 46px;
    gap: 7px;
    padding: 7px 9px;
  }

  .category-icon-picker__option span {
    font-size: 0.74rem;
  }

  .settings-dday-form {
    grid-template-columns: 1fr;
  }

  .settings-dday-date {
    min-height: 56px;
    padding: 0 14px;
    border-radius: 18px;
  }

  .settings-dday-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .settings-dday-item button {
    width: 34px;
  }
}

.action-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-height) + 28px);
  transform: translate(-50%, 10px);
  width: min(420px, calc(100vw - 28px));
  padding: 14px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(236, 244, 255, 0.84));
  color: var(--text);
  box-shadow: 0 18px 34px rgba(77, 114, 160, 0.18);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 15150;
  pointer-events: none;
  text-align: center;
  font-weight: 700;
  line-height: 1.45;
}

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

.page--map .action-toast,
.action-toast--map {
  bottom: calc(var(--nav-height) + 76px + env(safe-area-inset-bottom));
}

.action-toast--success {
  color: #21654c;
}

.action-toast--info {
  color: var(--accent-strong);
}

.action-toast--danger {
  color: #9e2f28;
  background: linear-gradient(180deg, rgba(255, 250, 249, 0.96), rgba(255, 233, 229, 0.9));
  border-color: rgba(223, 120, 102, 0.36);
}

.birthday-confetti {
  position: fixed;
  inset: 0;
  z-index: 71;
  pointer-events: none;
  overflow: hidden;
}

.birthday-confetti span {
  position: absolute;
  top: -18px;
  left: var(--confetti-left);
  width: 9px;
  height: 14px;
  border-radius: 3px;
  background: var(--confetti-color);
  opacity: 0;
  transform: translate3d(0, -20px, 0) rotate(0deg);
  animation: birthday-confetti-fall var(--confetti-duration) ease-in var(--confetti-delay) forwards;
}

@keyframes birthday-confetti-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -20px, 0) rotate(0deg);
  }

  12% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--confetti-drift), 104vh, 0) rotate(680deg);
  }
}

@keyframes loading-mask-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes loading-heart-bob {
  0%,
  100% {
    transform: translateY(0) scale(0.96);
  }

  50% {
    transform: translateY(-3px) scale(1.04);
  }
}

@keyframes loading-orbit-a {
  0%,
  100% {
    transform: translate(0, 0) scale(0.92);
    opacity: 0.82;
  }

  50% {
    transform: translate(8px, -5px) scale(1.08);
    opacity: 1;
  }
}

@keyframes loading-orbit-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.76;
  }

  50% {
    transform: translate(5px, 6px) scale(0.88);
    opacity: 1;
  }
}

@keyframes loading-orbit-c {
  0%,
  100% {
    transform: translate(0, 0) scale(0.9);
    opacity: 0.8;
  }

  50% {
    transform: translate(-7px, 5px) scale(1.05);
    opacity: 1;
  }
}

.result-group h3 {
  margin-bottom: 8px;
}

@media (max-width: 540px) {
  .photo-gallery-page {
    padding-left: 0;
    padding-right: 0;
  }

  .photo-gallery-page__title-row {
    gap: 8px;
  }

  .photo-gallery-page__stats-line {
    gap: 4px;
    font-size: 0.64rem;
  }

  .photo-gallery-page__stats-line span {
    min-height: 22px;
    padding: 0 6px;
  }

  .photo-gallery-page__filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border-radius: 14px;
  }

  .photo-gallery-page__keyword-row {
    grid-column: 1 / -1;
  }

  .photo-gallery-page__date-range {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
    gap: 6px;
  }

  .photo-gallery-page__date-range input[type="date"] {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  .photo-gallery-page__date-field {
    min-height: 40px;
    padding: 0 10px;
    border-color: rgba(104, 154, 230, 0.38);
  }

  .photo-gallery-page__region-toggle {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .photo-gallery-page__region-panel {
    padding: 7px;
    border-radius: 17px;
  }

  .photo-gallery-page__today {
    padding: 9px;
  }

  .photo-gallery-page__today-head {
    align-items: start;
    flex-direction: column;
    gap: 3px;
  }

  .photo-gallery-page__today-head small {
    text-align: left;
  }

  .photo-gallery-page__today-strip {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .photo-gallery-page__today-strip::-webkit-scrollbar {
    display: none;
  }

  .photo-gallery-page__today-card {
    flex: 0 0 104px;
    width: 104px;
  }

  .gallery-region-map .korea-minimap__map {
    min-height: 132px;
  }

  .gallery-region-focus .region-focus__map {
    min-height: 144px;
  }

  .passkey-form,
  .passkey-card {
    grid-template-columns: 1fr;
  }

  .passkey-form {
    align-items: stretch;
  }

  .passkey-card {
    display: grid;
  }

  .passkey-card__delete {
    justify-self: start;
  }

  .date-field__weekday {
    min-width: 40px;
    padding: 9px 11px;
  }

  .place-shortcuts {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 2.2fr);
  }

  .photo-picker__preview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .status-choice--inline {
    gap: 6px;
  }

  .status-card--inline {
    padding-left: 10px;
    padding-right: 10px;
  }

  .status-card--inline strong {
    font-size: 0.8rem;
  }

  .searchbar__row {
    gap: 8px;
  }

  .searchbar__toggle,
  .searchbar--map .primary-button {
    min-width: 52px;
  }
}

.result-group {
  display: grid;
  gap: 10px;
}

.result-card span,
.place-chip small,
.result-card small {
  color: var(--muted);
}

.check-list {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.empty-copy {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 540px) {
  .page--settings {
    gap: 12px;
  }

  .settings-my-hub {
    padding: 14px;
    border-radius: 20px;
  }

  .settings-my-summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
  }

  .settings-my-summary__actions {
    grid-column: 3;
    justify-self: end;
  }

  .settings-my-avatar {
    width: 40px;
    height: 40px;
  }

  .settings-my-title h2 {
    font-size: 1.12rem;
  }

  .settings-my-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-my-card {
    padding: 11px;
  }

  .member-card__controls {
    grid-template-columns: 1fr;
  }

  .member-card__controls .stack-form__field input,
  .member-card__controls .stack-form__field select {
    width: 100%;
    max-width: 100%;
  }

  .app-shell.app-shell--map-route {
    padding-top: 0;
    padding-bottom: 0;
    min-height: 100dvh;
  }

  .app-shell.app-shell--map-route .topbar {
    display: none;
  }

  .app-shell {
    padding-top: 8px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .searchbar,
  .filter-row,
  .sheet-actions,
  .status-choice,
  .browse-toolbar {
    grid-template-columns: 1fr;
    display: grid;
  }

  .searchbar--map {
    display: flex;
    grid-template-columns: none;
  }

  .topbar {
    margin-bottom: 6px;
  }

  .page--map {
    gap: 0;
  }

  .page--map .hero-card--map {
    position: relative;
    width: calc(100% + 16px);
    margin-left: -8px;
    margin-right: -8px;
    margin-bottom: 0;
    padding: 0;
    min-height: calc(100dvh - 80px);
    border-radius: 0 0 30px 30px;
  }

  .page--map .hero-copy--compact {
    display: none;
  }

  .page--map .searchbar--map {
    position: absolute;
    top: 12px;
    left: 10px;
    right: 10px;
    margin: 0;
    padding: 9px;
    z-index: 9;
  }

  .page--map .map-rail-shell {
    position: absolute;
    top: 62px;
    left: 10px;
    right: 10px;
    margin: 0;
    padding: 5px 6px 0;
    border-radius: 22px;
    z-index: 8;
    transition: max-height 180ms ease, padding 180ms ease;
  }

  .page--map .map-rail-shell.is-collapsed {
    margin: 0;
  }

  .page--map .place-rail {
    gap: 8px;
    padding: 1px 2px 0 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
  }

  .page--map .place-chip {
    width: min(108px, 28vw);
    min-height: 92px;
    margin-left: 0;
    padding: 7px 8px 8px;
    gap: 4px;
    border-radius: 16px;
    transform: none;
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(255, 255, 255, 0.56);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
    touch-action: pan-x;
  }

  .page--map .place-chip small {
    display: block;
    min-height: 1.05em;
    font-size: 0.68rem;
    color: rgba(75, 94, 126, 0.72);
  }

  .page--map .place-chip .place-chip__media {
    display: block;
    aspect-ratio: 1.62 / 1;
    border-radius: 11px;
    margin-bottom: 1px;
    background-size: cover;
    background-position: center 42%;
  }

  .page--map .place-chip.place-chip--no-media .place-chip__media {
    min-height: 38px;
  }

  .page--map .place-chip__topline {
    min-height: 22px;
    justify-content: space-between;
  }

  .page--map .place-chip__status,
  .page--map .place-chip__count {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 6px;
    font-size: 0.65rem;
  }

  .page--map .place-chip:not(.is-active) .place-chip__status {
    max-width: 46px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .page--map .place-chip:not(.is-active) .place-chip__count {
    background: rgba(23, 50, 79, 0.07);
    color: var(--muted);
  }

  .page--map .place-chip strong {
    font-size: 0.76rem;
    line-height: 1.15;
  }

  .page--map .place-chip.is-active {
    width: min(108px, 28vw);
    min-height: 92px;
    padding: 7px 8px 8px;
    border-color: rgba(58, 119, 214, 0.72);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 244, 255, 0.9)),
      rgba(255, 255, 255, 0.88);
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.86),
      0 0 0 4px rgba(58, 119, 214, 0.2),
      inset 0 0 0 2px rgba(58, 119, 214, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      0 12px 24px rgba(70, 119, 188, 0.2);
    transform: none;
  }

  .page--map .place-chip.place-chip--no-media.is-active {
    min-height: 92px;
  }

  .page--map .place-chip.is-active .place-chip__media {
    aspect-ratio: 1.62 / 1;
    box-shadow:
      inset 0 0 0 2px rgba(255, 255, 255, 0.74),
      inset 0 0 0 4px rgba(58, 119, 214, 0.24);
  }

  .page--map .place-chip__collapse {
    display: none;
  }

  .page--map .place-chip.is-active .place-chip__collapse {
    display: grid;
    place-items: center;
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 4;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(183, 205, 232, 0.4);
    box-shadow: 0 8px 16px rgba(77, 114, 160, 0.12);
  }

  .page--map .place-chip__collapse-grip {
    width: 10px;
    height: 2px;
    border-radius: 999px;
    background: rgba(23, 50, 79, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  }

  .page--map .map-surface {
    height: calc(100dvh - 70px);
    min-height: 720px;
    margin-top: 0;
    padding-top: 0;
    border-radius: 0 0 30px 30px;
  }

  .page--map .map-preview {
    left: 10px;
    right: 10px;
    bottom: calc(var(--nav-height) + 12px);
  }

  .page--map .card--sheet-host {
    display: none;
  }

  .page--map.is-detail-open .card--sheet-host {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--nav-height) + 4px);
    top: auto;
    z-index: 41;
    pointer-events: auto;
    padding: 0 8px 0;
    background: transparent;
  }

  .page--map.is-detail-open .map-detail-frame {
    display: block;
    max-height: min(68dvh, 620px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .page--map.is-detail-open .bottom-sheet {
    margin: 0;
    border-radius: 28px 28px 0 0;
    touch-action: pan-y;
  }

  .page--map .place-chip.is-visited:not(.is-active) {
    background: rgba(47, 143, 107, 0.16);
    border-color: rgba(47, 143, 107, 0.2);
  }

  .page--map .place-chip.is-wanted:not(.is-active) {
    background: rgba(217, 101, 59, 0.14);
    border-color: rgba(217, 101, 59, 0.18);
  }

  .page--map .place-chip.is-recommended:not(.is-active) {
    background: rgba(245, 192, 59, 0.14);
    border-color: rgba(245, 192, 59, 0.2);
  }

  .hero-copy__headline {
    align-items: center;
  }

  .hero-copy__headline h2 {
    font-size: 1.42rem;
  }

  .browse-region-panels {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .browse-region-panel {
    min-width: 0;
    padding: 14px;
  }

  .browse-hero,
  .browse-place-section {
    padding: 16px;
  }

  .browse-hero {
    padding: 10px 12px 6px;
  }

  .browse-breadcrumbs {
    padding: 0;
  }

  .korea-minimap__map {
    min-height: 216px;
  }

  .region-focus__map {
    min-height: 224px;
  }

  .browse-hero__topline {
    gap: 8px;
  }

  .browse-hero__stats {
    grid-template-columns: minmax(108px, 1.45fr) repeat(2, minmax(58px, 0.74fr)) 38px;
  }

  .browse-hero__stat {
    min-height: 54px;
    padding: 8px 8px;
    border-radius: 15px;
  }

  .browse-toolbar {
    padding: 8px 10px;
    gap: 6px;
  }

  .browse-hero .browse-toolbar {
    padding: 0 1px;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }

  .browse-breadcrumbs__topline {
    gap: 10px;
  }

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

  .browse-place-card__head {
    flex-direction: column;
  }

  .browse-place-card__fallback-media {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .browse-place-card__head > div {
    width: 100%;
  }

  .sheet-photo-card {
    grid-template-columns: 52px minmax(0, 1fr) auto;
  }

  .trash-card {
    grid-template-columns: auto 56px minmax(0, 1fr);
    gap: 9px;
  }

  .trash-card__image {
    width: 56px;
    min-width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .trash-card__actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trash-record-card .browse-place-card__head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .trash-record-card .trash-card__actions {
    grid-column: 1 / -1;
  }

  .story-card__photo {
    flex-basis: 88%;
  }
}

@media (min-width: 768px) {
  .settings-split-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page--settings {
    max-width: 760px;
    width: 100%;
    margin-inline: auto;
  }

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

  .settings-my-card--profile,
  .settings-my-card--security {
    grid-column: 1 / -1;
  }

  .app-shell {
    max-width: 1180px;
    padding-top: 18px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .page--map {
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
    align-items: start;
  }

  .page--map .hero-card--map {
    min-height: calc(100dvh - 132px);
  }

  .page--map .card--sheet-host {
    position: sticky;
    top: 36px;
  }

  .page--map .bottom-sheet {
    position: static;
  }

  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .record-compose__grid {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    align-items: start;
  }

  .page--browse {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
  }

  .page--browse .browse-hero {
    grid-column: auto;
    grid-row: auto;
  }

  .page--browse .browse-side {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    gap: 10px;
  }

  .page--browse .browse-region-panels {
    grid-column: auto;
    grid-row: auto;
  }

  .page--browse .browse-place-section {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

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

  .page--story {
    grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
    align-items: start;
  }

  .story-compose {
    position: sticky;
    top: 18px;
  }
}

@media (max-width: 430px) {
  .photo-gallery-page__filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .photo-gallery-page__keyword-row {
    grid-column: 1 / -1;
  }

  .photo-gallery-page__date-range,
  .photo-gallery-page__region-toggle {
    grid-column: 1 / -1;
  }

  .photo-grid--gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
  }

  .browse-hero__topline {
    gap: 8px;
  }

  .browse-hero__compact-copy {
    font-size: 0.88rem;
    max-width: 28ch;
  }

  .browse-hero__stats {
    grid-template-columns: minmax(104px, 1.48fr) repeat(2, minmax(54px, 0.72fr)) 36px;
    width: 100%;
  }

  .browse-hero__stat {
    min-height: 50px;
    padding: 7px 6px;
  }

  .browse-hero__stat span {
    font-size: 0.55rem;
  }

  .browse-toolbar__icon-button {
    width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .browse-hero__icon-button,
  .browse-hero__help-button {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
  }

  .browse-breadcrumbs__actions {
    justify-content: flex-start;
  }

  .trash-bulk-toolbar {
    gap: 4px;
    padding: 5px;
  }

  .trash-bulk-toolbar > button {
    min-height: 36px;
    padding-left: 4px;
    padding-right: 4px;
    font-size: 0.66rem;
  }

  .trash-card__actions > button {
    font-size: 0.7rem;
  }
}

@media (min-width: 1100px) {
  .app-shell {
    max-width: 1320px;
    padding-top: 14px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .page--map {
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.72fr);
  }

  .photo-grid--gallery {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }

  .page--map .hero-card--map {
    display: block;
    position: relative;
    min-height: calc(100dvh - 96px);
  }

  .page--map .hero-copy--compact {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 9;
    margin-bottom: 0;
    padding-right: 54px;
  }

  .page--map .searchbar--map {
    position: absolute;
    top: 72px;
    left: 14px;
    right: 14px;
    z-index: 9;
    margin: 0;
  }

  .page--map .map-preview {
    left: 256px;
    right: 18px;
    bottom: 18px;
  }

  .page--map .map-rail-shell {
    position: absolute;
    top: 132px;
    left: 14px;
    bottom: 14px;
    width: 228px;
    margin: 0;
    padding: 10px 10px 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.16));
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-shadow: 0 20px 34px rgba(77, 114, 160, 0.12);
    backdrop-filter: blur(14px) saturate(125%);
    -webkit-backdrop-filter: blur(14px) saturate(125%);
    overflow: hidden;
    transition: width 220ms ease, padding 220ms ease, opacity 220ms ease;
  }

  .page--map .map-rail-shell.is-collapsed {
    width: 34px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .page--map .map-rail-shell__handle {
    display: grid;
    position: absolute;
    top: 50%;
    right: -28px;
    width: 28px;
    height: 108px;
    padding: 0;
    transform: translateY(-50%);
    border-radius: 0 999px 999px 0;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-left-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 28px rgba(77, 114, 160, 0.16);
    backdrop-filter: blur(16px) saturate(135%);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
  }

  .page--map .map-rail-shell__grip {
    width: 6px;
    height: 56px;
  }

  .page--map .place-rail {
    display: grid;
    grid-auto-rows: min-content;
    gap: 10px;
    align-content: start;
    overflow-x: visible;
    overflow-y: auto;
    max-height: 100%;
    padding: 2px 2px 2px 0;
  }

  .page--map .place-chip {
    width: 100%;
    margin-left: 0;
    padding: 10px;
    gap: 6px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(255, 255, 255, 0.58);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.78),
      0 10px 22px rgba(72, 103, 145, 0.1);
  }

  .page--map .place-chip.is-visited {
    border-color: rgba(139, 205, 155, 0.72);
    box-shadow:
      inset 0 0 0 2px rgba(139, 205, 155, 0.42),
      0 10px 22px rgba(79, 153, 101, 0.12);
  }

  .page--map .place-chip.is-wanted {
    border-color: rgba(244, 170, 190, 0.74);
    box-shadow:
      inset 0 0 0 2px rgba(244, 170, 190, 0.44),
      0 10px 22px rgba(190, 92, 121, 0.12);
  }

  .page--map .place-chip.is-recommended {
    border-color: rgba(239, 203, 89, 0.78);
    box-shadow:
      inset 0 0 0 2px rgba(239, 203, 89, 0.48),
      0 10px 22px rgba(190, 142, 41, 0.12);
  }

  .page--map .place-chip__media {
    aspect-ratio: 1.55 / 1;
    border-radius: 14px;
    margin-bottom: 2px;
  }

  .page--map .place-chip__topline {
    gap: 6px;
  }

  .page--map .place-chip__status,
  .page--map .place-chip__count {
    min-height: 22px;
    padding: 0 8px;
    font-size: 0.68rem;
  }

  .page--map .place-chip strong {
    font-size: 0.92rem;
    line-height: 1.22;
  }

  .page--map .place-chip:hover,
  .page--map .place-chip:focus-visible {
    transform: translateX(4px);
  }

  .page--map .place-chip.is-active {
    transform: none;
  }

  .page--map .map-surface {
    margin-top: 0;
    height: min(86vh, 980px);
    min-height: 780px;
    padding-top: 0;
  }
}


/* Browse gallery overrides */
.browse-place-card__quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.browse-icon-button,
.browse-meta-button {
  border-radius: 999px;
  border: 1px solid rgba(183, 205, 232, 0.66);
  background: rgba(255, 255, 255, 0.84);
  color: var(--accent-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.browse-icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.browse-icon-button.is-active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(190, 220, 255, 0.38));
  border-color: rgba(91, 145, 228, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 24px rgba(86, 133, 205, 0.16);
}

.browse-meta-button {
  padding: 6px 10px;
}

.browse-thumbs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.browse-thumb {
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.browse-thumb__overflow {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(23, 50, 79, 0.78);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
}

.restricted-media__label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: rgba(255, 255, 255, 0.96);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}

.settings-permission-panel {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(247, 244, 238, 0.96);
}

.settings-permission-panel__checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.settings-permission-check {
  display: grid;
  grid-template-columns: 18px auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 10px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #233042;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.settings-permission-check input {
  width: 14px;
  height: 14px;
  margin: 0;
  padding: 0;
  justify-self: end;
  box-shadow: none;
}

.settings-permission-check span {
  min-width: 0;
  white-space: nowrap;
}

.settings-flow-card {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 251, 247, 0.88);
}

.settings-flow-card__steps {
  display: grid;
  gap: 8px;
}

.settings-flow-card__steps span {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  font-weight: 700;
  color: #233042;
}

.settings-flow-card__steps span:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -8px;
  width: 2px;
  height: 8px;
  background: rgba(88, 101, 123, 0.28);
}

.settings-flow-card__notes {
  margin: 0;
  padding-left: 18px;
  color: #526072;
  font-size: 12px;
}

.settings-feedback-card {
  overflow: hidden;
  border-color: rgba(118, 156, 207, 0.54);
  background:
    radial-gradient(circle at 100% 0, rgba(102, 163, 244, 0.15), transparent 35%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 255, 0.94));
  box-shadow: 0 18px 40px rgba(52, 91, 139, 0.12);
}

.settings-feedback-card[data-settings-default="collapsed"]:not(.settings-panel) > :not(.sheet-section__head) {
  display: none;
}

.settings-feedback-card .sheet-section__head > div,
.settings-feedback-inbox-card .sheet-section__head > div {
  display: grid;
  gap: 3px;
}

.settings-feedback-card .sheet-section__head small,
.settings-feedback-inbox-card .sheet-section__head small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.settings-feedback-kicker {
  color: #2e6fcb;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.settings-feedback-form {
  gap: 14px;
}

.settings-feedback-form .stack-form__field {
  gap: 7px;
}

.settings-feedback-form .stack-form__field > span {
  color: #314b6a;
  font-size: 0.8rem;
  font-weight: 850;
}

.settings-feedback-form textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.6;
}

.settings-feedback-form__counter {
  justify-self: end;
  color: var(--muted);
  font-size: 0.72rem;
}

.settings-feedback-upload {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
}

.settings-feedback-upload__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
}

.settings-feedback-upload__button span,
.settings-feedback-upload__button svg {
  display: block;
  width: 18px;
  height: 18px;
}

.settings-feedback-upload__hint {
  min-width: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.settings-feedback-preview {
  position: relative;
  grid-column: 1 / -1;
  width: min(100%, 360px);
  overflow: hidden;
  border: 1px solid rgba(154, 184, 222, 0.54);
  border-radius: 18px;
  background: #edf4fc;
}

.settings-feedback-preview[hidden],
.settings-feedback-success[hidden] {
  display: none;
}

.settings-feedback-preview img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.settings-feedback-preview .settings-icon-button {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 5px 14px rgba(33, 49, 70, 0.18);
}

.settings-feedback-submit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-top: 2px;
}

.settings-feedback-submit-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.settings-feedback-submit-row .primary-button {
  min-width: 126px;
}

.settings-feedback-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(57, 160, 107, 0.32);
  border-radius: 17px;
  background: rgba(235, 250, 243, 0.92);
  color: #276c4c;
}

.settings-feedback-success > span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #3fa36f;
  color: #fff;
}

.settings-feedback-success svg {
  width: 18px;
  height: 18px;
}

.settings-feedback-success strong,
.settings-feedback-success p {
  margin: 0;
}

.settings-feedback-success p {
  margin-top: 3px;
  font-size: 0.78rem;
}

.settings-feedback-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding-top: 12px;
  border-top: 1px solid rgba(154, 184, 222, 0.38);
  color: var(--muted);
  font-size: 0.76rem;
}

.settings-feedback-contact a {
  color: #2e6fcb;
  font-weight: 850;
  text-decoration: none;
}

.settings-feedback-count {
  display: grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: #eaf3ff;
  color: #2e6fcb;
  font-size: 0.78rem;
  font-weight: 900;
}

.settings-feedback-list {
  display: grid;
  gap: 10px;
}

.settings-feedback-item {
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid rgba(183, 205, 232, 0.56);
  border-radius: 16px;
  background: rgba(248, 251, 255, 0.9);
}

.settings-feedback-item__meta,
.settings-feedback-item__actions,
.settings-feedback-item__sender {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.settings-feedback-item__meta {
  justify-content: space-between;
}

.settings-feedback-type {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #2e6fcb;
  font-size: 0.7rem;
  font-weight: 900;
}

.settings-feedback-item time,
.settings-feedback-item__sender,
.settings-feedback-no-file {
  color: var(--muted);
  font-size: 0.72rem;
}

.settings-feedback-item > p {
  margin: 0;
  color: #2f435c;
  font-size: 0.86rem;
  line-height: 1.58;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.settings-feedback-item__sender strong {
  color: #3d5572;
}

.settings-feedback-item__actions {
  justify-content: space-between;
}

.settings-feedback-item__actions select,
.settings-feedback-item__actions .secondary-button {
  min-height: 38px;
  font-size: 0.76rem;
}

.settings-feedback-empty,
.settings-feedback-error {
  padding: 16px;
  border-radius: 15px;
  color: var(--muted);
  background: #f6f9fd;
  font-size: 0.82rem;
  text-align: center;
}

.settings-feedback-error {
  color: #a44738;
  background: #fff4f1;
}

.page--settings .settings-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.page--settings .stack-form > .settings-form-submit,
.page--settings .settings-tag-form > .settings-form-submit,
.page--settings .settings-dday-form > .settings-form-submit {
  width: 100%;
  justify-self: stretch;
}

.page--settings .passkey-form .settings-form-submit {
  align-self: stretch;
}

@media (max-width: 520px) {
  .settings-feedback-upload,
  .settings-feedback-submit-row {
    grid-template-columns: 1fr;
  }

  .settings-feedback-upload__button,
  .settings-feedback-submit-row .primary-button {
    width: 100%;
  }

  .settings-feedback-preview {
    grid-column: 1;
  }

  .page--settings .settings-tag-form {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 8px;
    padding: 10px;
  }

  .page--settings .settings-tag-form input[name="name"],
  .page--settings .settings-tag-form .category-icon-picker {
    grid-column: 1 / -1;
  }

  .page--settings .settings-tag-form input,
  .page--settings .settings-tag-form select,
  .page--settings .settings-tag-form button,
  .page--settings .settings-tag-form .category-icon-picker__search {
    height: 48px;
    min-height: 48px;
  }

  .page--settings .settings-tag-form input[name="score"] {
    grid-column: 1;
  }

  .page--settings .settings-tag-form .settings-form-submit {
    grid-column: 2;
    min-width: 0;
  }
}

.modal-backdrop--gallery {
  padding: 0;
  background: rgba(7, 12, 22, 0.96);
}

.modal-card--gallery {
  width: 100%;
  max-width: 100vw;
  min-height: 100dvh;
  border-radius: 0;
  padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  background: rgba(11, 19, 32, 0.98);
  border: 0;
  box-shadow: none;
  display: grid;
  gap: 10px;
  align-content: start;
}

.modal-card--gallery-detail {
  position: relative;
  overflow: hidden;
  display: block;
  padding: 0;
  background: rgba(4, 8, 15, 0.98);
}

.gallery-modal__topbar,
.gallery-modal__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gallery-modal__topbar {
  justify-content: space-between;
  margin-bottom: 0;
}

.modal-card--gallery-detail .gallery-modal__topbar {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  left: 10px;
  right: 10px;
  z-index: 2;
  justify-content: flex-end;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.modal-card--gallery-detail .gallery-modal__heading {
  display: none;
}

.gallery-modal__top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-card--gallery-detail .gallery-modal__top-actions {
  pointer-events: auto;
}

.gallery-modal__icon-button {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border-color: rgba(141, 171, 210, 0.48);
  color: rgba(229, 238, 252, 0.94);
  background: rgba(36, 53, 79, 0.7);
}

.gallery-modal__icon-button svg {
  width: 18px;
  height: 18px;
}

.gallery-modal__actions--below {
  justify-content: flex-end;
  margin-bottom: 0;
}

.gallery-modal__heading h3,
.gallery-modal__hero-meta strong {
  margin: 0;
}

.gallery-modal__heading h3 {
  color: rgba(238, 245, 255, 0.96);
}

.gallery-modal__heading small,
.gallery-modal__hero-meta small {
  color: rgba(189, 209, 236, 0.88);
}

.gallery-modal__hero {
  min-height: 0;
  height: calc(100dvh - 150px);
  overflow: hidden;
  touch-action: none;
  display: grid;
  gap: 10px;
  margin-bottom: 0;
  border-radius: 8px;
  background-color: rgba(7, 12, 22, 0.74);
}

.gallery-modal__hero--video {
  touch-action: auto;
}

.modal-card--gallery-detail .gallery-modal__hero {
  width: 100%;
  height: 100dvh;
  margin: 0;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: rgba(4, 8, 15, 0.98);
}

.gallery-modal__hero-image {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 8px;
  object-fit: contain;
  background-color: transparent;
  transform-origin: center center;
  transition: transform 80ms ease-out, opacity 160ms ease, filter 180ms ease;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform, opacity;
}

.gallery-modal__hero-image.is-gallery-dragging {
  cursor: grabbing;
}

.gallery-modal__hero-image.is-gallery-loading-original {
  filter: saturate(0.92) brightness(0.94);
}

.gallery-modal__hero-video {
  background: rgba(4, 8, 15, 0.98);
}

@media (min-width: 768px) {
  .photo-detail__nav-button,
  .gallery-modal__nav-button {
    position: fixed;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 48px;
    height: 64px;
    padding: 0;
    border: 1px solid rgba(219, 232, 250, 0.28);
    border-radius: 999px;
    background: rgba(10, 18, 30, 0.42);
    color: rgba(242, 247, 255, 0.94);
    font-size: 34px;
    line-height: 1;
    font-weight: 300;
    transform: translateY(-50%);
    cursor: pointer;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(16px);
    transition: transform 160ms ease, opacity 160ms ease, background 160ms ease, border-color 160ms ease;
  }

  .photo-detail__nav-button--prev,
  .gallery-modal__nav-button--prev {
    left: max(22px, env(safe-area-inset-left));
  }

  .photo-detail__nav-button--next,
  .gallery-modal__nav-button--next {
    right: max(22px, env(safe-area-inset-right));
  }

  .photo-detail__nav-button:hover,
  .gallery-modal__nav-button:hover {
    background: rgba(27, 42, 66, 0.68);
    border-color: rgba(233, 241, 255, 0.52);
    transform: translateY(-50%) scale(1.04);
  }

  .photo-detail__nav-button:active,
  .gallery-modal__nav-button:active {
    transform: translateY(-50%) scale(0.98);
  }

  .photo-detail__nav-button:disabled,
  .gallery-modal__nav-button:disabled {
    opacity: 0.24;
    cursor: default;
    pointer-events: none;
  }
}

.modal-card--gallery-detail .gallery-modal__hero-image {
  width: 100vw;
  max-width: none;
  min-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
}

.gallery-modal__hero-meta {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 2;
  display: grid;
  gap: 4px;
  transition: opacity 160ms ease;
  pointer-events: none;
}

.modal-card--gallery.is-chrome-hidden .gallery-modal__topbar,
.modal-card--gallery.is-chrome-hidden .gallery-modal__hero-meta {
  opacity: 0;
  pointer-events: none;
}

.gallery-modal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 2px;
}

.gallery-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  background-size: cover;
  background-position: center;
  background-color: rgba(217, 101, 59, 0.12);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(183, 205, 232, 0.34);
}

.gallery-thumb.is-active {
  box-shadow: inset 0 0 0 2px rgba(119, 158, 218, 0.52);
}

.gallery-thumb.is-selected::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(46, 111, 203, 0.24);
}

.gallery-thumb__check {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 1;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(15, 39, 67, 0.82);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}

@media (max-width: 767px) {
  .browse-place-section > .section-head {
    flex-wrap: nowrap;
    align-items: flex-start;
  }

  .browse-place-section > .section-head .browse-status-filters {
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .browse-place-section__title-row {
    gap: 8px;
  }

  .browse-compact-toggle {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.74rem;
  }

  .browse-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .browse-place-card__detail-topline {
    flex-direction: row;
  }

  .browse-place-card__head,
  .browse-place-card.is-compact .browse-place-card__head {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
  }

  .browse-place-card__head:has(.browse-place-card__select) {
    grid-template-columns: auto 66px minmax(0, 1fr);
  }

  .browse-place-card__head > .trash-card__select {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .browse-place-card__compact-media,
  .browse-place-card.is-compact .browse-place-card__compact-media {
    grid-column: 1;
    grid-row: 1 / span 2;
    flex: none;
    width: 66px;
    min-width: 0;
    height: 66px;
    border-radius: 15px;
  }

  .browse-place-card__head:has(.browse-place-card__select) .browse-place-card__compact-media {
    grid-column: 2;
  }

  .browse-place-card__content,
  .browse-place-card.is-compact .browse-place-card__content {
    display: contents;
  }

  .browse-place-card__tags,
  .browse-place-card__title-row {
    grid-column: 2;
    min-width: 0;
  }

  .browse-place-card__head:has(.browse-place-card__select) .browse-place-card__tags,
  .browse-place-card__head:has(.browse-place-card__select) .browse-place-card__title-row {
    grid-column: 3;
  }

  .browse-place-card__label-row,
  .browse-place-card__meta {
    grid-column: 1 / -1;
  }

  .browse-place-card__label-row {
    margin-top: 0;
  }

  .browse-place-card__meta {
    margin-top: -1px;
  }

  .gallery-modal__hero-image {
    height: 100%;
    min-height: 0;
  }

  .gallery-modal__actions {
    justify-content: flex-end;
    gap: 8px;
  }

  .gallery-modal__actions .ghost-button,
  .gallery-modal__actions .danger-text-button {
    padding: 0;
  }

  .gallery-modal__actions .ghost-button.is-active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(177, 213, 255, 0.42));
    border-color: rgba(91, 145, 228, 0.72);
    color: var(--accent-strong);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 22px rgba(86, 133, 205, 0.16);
  }
}

.browse-place-card__focus,
.browse-icon-button {
  font-family: var(--font-main);
}

.browse-place-card__focus span,
.browse-icon-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.browse-place-card__focus svg,
.browse-icon-button svg {
  width: 18px;
  height: 18px;
}

.browse-place-card__focus:hover,
.browse-icon-button:hover,
.browse-place-card__focus:focus-visible,
.browse-icon-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(91, 145, 228, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 24px rgba(86, 133, 205, 0.16);
}

.browse-hero__gallery-button {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid rgba(183, 205, 232, 0.66);
  background: rgba(255, 255, 255, 0.86);
  color: var(--accent-strong);
  font-weight: 800;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

@media (min-width: 900px) {
  .page--map {
    font-size: 1rem;
  }

  .page--map .searchbar--map input {
    font-size: 1rem;
  }

  .map-preview__selection {
    --preview-tail-right: 30px;
    width: min(328px, calc(100vw - 72px));
    transform: translateX(-130px);
  }

  .map-preview__card--inline {
    min-width: 230px;
    max-width: 292px;
    padding: 13px 16px 14px;
    gap: 6px;
    border-radius: 18px 18px 18px 7px;
  }

  .map-preview__card--inline::after {
    width: 14px;
    height: 14px;
  }

  .map-preview__card--inline .map-preview__close {
    width: 22px;
    height: 22px;
    font-size: 0.8rem;
  }

  .map-preview__card--inline strong {
    font-size: 1.08rem;
    line-height: 1.22;
  }

  .map-preview__card--inline small {
    font-size: 0.82rem;
    line-height: 1.32;
  }

  .map-preview__eyebrow {
    font-size: 0.76rem;
  }

  .map-preview__recommend-panel {
    max-height: min(300px, 38vh);
    padding: 10px;
    gap: 8px;
  }

  .map-preview__recommend-item {
    min-height: 42px;
    padding: 10px 13px;
    font-size: 0.88rem;
  }

  .map-search-saved-row {
    gap: 8px;
  }

  .map-search-suggestion {
    padding: 14px 16px;
  }

  .map-search-suggestion strong {
    font-size: 1rem;
  }

  .map-search-suggestion small {
    font-size: 0.86rem;
  }

  .map-search-saved-card {
    flex-basis: 172px;
    min-height: 48px;
    height: 48px;
    align-content: center;
    place-items: center stretch;
    padding: 7px 10px;
  }

  .map-search-saved-card strong {
    font-size: 0.82rem;
  }

  .map-search-saved-card small {
    display: block;
    width: 100%;
    margin-top: 2px;
    overflow: hidden;
    color: rgba(23, 50, 79, 0.68);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .map-pin-name-overlay {
    max-width: 104px;
    min-height: 28px;
    padding: 5px 10px 6px;
    border-radius: 12px 12px 12px 5px;
    font-size: 0.78rem;
    line-height: 1.15;
  }

  .map-pin-name-overlay::after {
    left: 13px;
    bottom: -5px;
    width: 10px;
    height: 7px;
  }

  .map-pin-name-overlay::before {
    left: 12px;
    bottom: -6px;
    width: 12px;
    height: 8px;
  }

  .map-pin__name-count {
    font-size: 0.8rem;
  }

  .gallery-modal__grid {
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 4px;
  }

  .photo-grid--gallery {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .gallery-modal__grid {
    grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  }

  .photo-grid--gallery {
    grid-template-columns: repeat(14, minmax(0, 1fr));
  }
}

.app-shell.app-shell--map-route {
  height: 100dvh !important;
  min-height: 100dvh !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.app-shell.app-shell--map-route .page-view,
.app-shell.app-shell--map-route .page--map {
  height: 100dvh !important;
  min-height: 100dvh !important;
  overflow: hidden !important;
}

.map-filter-row,
.browse-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.browse-filter-row {
  gap: 8px;
  margin-top: 0;
}

.map-tag-filter,
.browse-tag-filter,
.place-tag-picker {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.map-tag-filter {
  overscroll-behavior-inline: contain;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.browse-tag-filter {
  gap: 7px;
  padding-bottom: 0;
  cursor: grab;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.browse-tag-filter.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.browse-tag-filter.is-dragging .browse-tag-filter__chip {
  cursor: grabbing;
}

.map-tag-filter::-webkit-scrollbar,
.browse-tag-filter::-webkit-scrollbar,
.place-tag-picker::-webkit-scrollbar {
  display: none;
}

.map-tag-filter__chip,
.browse-tag-filter__chip,
.place-tag-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(143, 168, 209, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #5f6f92;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(151, 175, 210, 0.14);
}

.browse-tag-filter__chip {
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-color: rgba(158, 184, 220, 0.32);
  background: #ffffff;
  color: #64758e;
  font-size: 0.74rem;
  font-weight: 800;
  box-shadow: none;
}

.browse-tag-filter__chip svg {
  width: 14px;
  height: 14px;
}

.place-tag-chip.is-recommended {
  position: relative;
  border-color: rgba(132, 165, 214, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(240, 246, 253, 0.76)),
    rgba(255, 255, 255, 0.76);
  padding-top: 4px;
  overflow: visible;
}

.place-tag-chip.is-recommended::before {
  content: "♛";
  position: absolute;
  left: 10px;
  top: -12px;
  display: block;
  color: #d2a432;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92),
    0 3px 8px rgba(161, 118, 21, 0.24);
  transform: rotate(-8deg);
  pointer-events: none;
}

.map-tag-filter__chip.is-active,
.browse-tag-filter__chip.is-active,
.place-tag-chip.is-active {
  background: linear-gradient(135deg, rgba(196, 220, 255, 0.96), rgba(242, 211, 255, 0.95));
  color: #3f5888;
  border-color: rgba(143, 168, 209, 0.36);
}

.browse-tag-filter__chip.is-active {
  border-color: rgba(91, 145, 228, 0.44);
  background: rgba(229, 240, 255, 0.92);
  color: #335f98;
  box-shadow: none;
}

.map-bookmark-filter-button,
.browse-bookmark-filter,
.place-bookmark-summary__action,
.bookmark-picker__mini-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.map-bookmark-filter-button.is-active,
.browse-bookmark-filter.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: #4d628f;
}

.browse-bookmark-filter {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  min-width: 36px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(158, 184, 220, 0.4);
  background: #ffffff;
  color: #57769f;
  box-shadow: none;
}

.browse-bookmark-filter__icon {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
}

.browse-bookmark-filter__icon svg {
  width: 17px;
  height: 17px;
}

.browse-bookmark-filter__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #6fa8ff;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 6px 12px rgba(87, 139, 218, 0.24);
}

.place-meta-block {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  min-width: 0;
}

.place-meta-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7082a8;
  font-size: 0.83rem;
}

.place-bookmark-summary,
.place-summary__meta,
.browse-place-card__label-row,
.browse-place-card__tag-chips,
.browse-place-card__bookmark-row,
.place-chip__tags,
.place-chip__bookmarks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.place-summary__meta > [data-place-summary-tags],
.place-summary__meta > [data-place-summary-bookmarks],
.place-summary__tag-editor {
  min-width: 0;
  max-width: 100%;
}

.place-summary__meta > [data-place-summary-tags],
.place-summary__tag-editor {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.place-summary__tag-editor[hidden] {
  display: none;
}

.place-summary__meta > [data-place-summary-bookmarks] {
  flex: 1 1 100%;
}

.place-bookmark-summary {
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 10px;
}

.place-bookmark-summary__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
}

.place-bookmark-summary__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(183, 205, 232, 0.36);
  color: #4d628f;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(77, 114, 160, 0.08);
  flex: 0 0 auto;
}

.place-bookmark-summary__action svg {
  width: 15px;
  height: 15px;
}

.place-bookmark-chip,
.browse-place-card__bookmark,
.place-chip__bookmark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  max-width: 100%;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #6d7f9e;
  font-size: 0.78rem;
  font-weight: 700;
  min-width: 0;
  max-width: 100%;
}

.place-bookmark-chip strong,
.browse-place-card__bookmark,
.place-chip__bookmark {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-bookmark-chip__dot,
.browse-place-card__bookmark-dot,
.place-chip__bookmark-dot,
.map-pin-bookmark-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--bookmark-color, #a8c8ff);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
  flex: 0 0 auto;
}

.place-summary__meta {
  margin-top: 10px;
}

.place-info-card .place-tag-picker,
.place-info-card .place-bookmark-summary,
.bottom-sheet--draft .place-tag-picker,
.bottom-sheet--draft .place-bookmark-summary {
  overflow: visible;
}

.place-info-card .place-tag-picker,
.bottom-sheet--draft .place-tag-picker {
  flex-wrap: wrap;
}

.place-info-card .place-tag-chip,
.bottom-sheet--draft .place-tag-chip {
  max-width: 100%;
}

.place-tag-picker:not(.is-editable) .place-tag-chip {
  cursor: default;
}

.place-tag-picker.is-editable .place-tag-chip {
  cursor: pointer;
}

.place-chip__tags,
.place-chip__bookmarks {
  margin-top: 8px;
}

.page--map .place-chip__tags {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: calc(100% - 20px);
  margin-top: 0;
  pointer-events: none;
}

.place-chip__tag,
.browse-place-card__tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(252, 245, 255, 0.82);
  color: #7e6f96;
  font-size: 0.72rem;
  font-weight: 700;
}

.place-chip__tag svg,
.browse-place-card__tag-chip svg {
  width: 1.28em;
  height: 1.28em;
  display: block;
  flex: 0 0 auto;
}

.place-chip__tag strong,
.browse-place-card__tag-chip strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browse-place-card__tag-chips,
.browse-place-card__bookmark-row {
  margin-top: 10px;
}

.map-pin__bookmark-dots,
.map-pin-name-overlay__dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.map-pin__bookmark-dots {
  position: absolute;
  right: -4px;
  bottom: -2px;
  padding: 3px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.map-pin-name-overlay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-pin-name-overlay.has-bookmark {
  overflow: visible;
}

.map-pin-name-overlay__bookmark {
  position: absolute;
  left: -5px;
  top: -7px;
  width: 11px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  color: var(--bookmark-color, #a8c8ff);
  transform: rotate(-8deg);
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.5))
    drop-shadow(0 2px 4px rgba(23, 50, 79, 0.18));
  pointer-events: none;
  z-index: 2;
}

.map-pin-name-overlay__bookmark svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 1.8;
}

.map-pin-name-overlay__text {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-pin-name-overlay__dots {
  display: none;
}

.modal-card--bookmark-picker {
  width: min(100%, 420px);
  max-height: min(84dvh, 680px);
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto auto;
  gap: 14px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(238, 244, 251, 0.3)),
    rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 24px 52px rgba(39, 71, 112, 0.16);
  backdrop-filter: blur(24px) saturate(155%);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
}

.modal-card--bookmark-picker > .modal-close {
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #4d628f;
  font-size: 0;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(183, 205, 232, 0.34);
  box-shadow: 0 8px 18px rgba(77, 114, 160, 0.1);
}

.modal-card--bookmark-picker > .modal-close::before,
.modal-card--bookmark-picker > .modal-close::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.modal-card--bookmark-picker > .modal-close::before {
  transform: rotate(45deg);
}

.modal-card--bookmark-picker > .modal-close::after {
  transform: rotate(-45deg);
}

.modal-card--bookmark-picker .modal-card__header {
  min-height: 34px;
  padding-right: 44px;
}

.modal-card--bookmark-picker .modal-card__header .eyebrow {
  display: none;
}

.modal-card--bookmark-picker .modal-card__header h2 {
  margin: 0;
  font-size: 0;
}

.modal-card--bookmark-picker .modal-card__header h2::before {
  content: "\BD81\B9C8\D06C";
  color: #314766;
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: 0;
}

.bookmark-picker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding-bottom: 2px;
}

.bookmark-picker__header h2 {
  margin: 0;
  color: #2c435f;
  font-size: 1.2rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.bookmark-picker__close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: #445872;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.bookmark-picker__close svg {
  width: 19px;
  height: 19px;
}

.page--map .map-filter-row {
  position: fixed;
  top: 96px;
  left: 42px;
  right: 42px;
  width: auto;
  max-width: calc(100vw - 84px);
  box-sizing: border-box;
  z-index: 22;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  overflow: hidden;
}

.page--map .map-tag-filter {
  width: 100%;
  max-width: 100%;
  padding: 0 0 2px;
  box-sizing: border-box;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: auto;
  justify-content: flex-start;
}

.page--map .map-rail-shell {
  top: 128px;
}

@media (min-width: 768px) {
  .page--map .map-filter-row {
    left: 270px;
    right: 42px;
    max-width: calc(100vw - 312px);
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 14px 30px rgba(64, 92, 138, 0.1);
    backdrop-filter: blur(12px) saturate(125%);
    -webkit-backdrop-filter: blur(12px) saturate(125%);
  }
}

.page--map .map-bookmark-filter-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: 0 14px 30px rgba(64, 92, 138, 0.14);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  pointer-events: auto;
}

.page--map .map-bookmark-filter-button__icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #5f79a8;
}

.page--map .map-bookmark-filter-button__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.page--map .map-bookmark-filter-button__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: #5f8ee8;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 6px 12px rgba(64, 92, 138, 0.18);
}

.page--map .map-floating-tools {
  position: fixed;
  right: 16px;
  bottom: calc(var(--nav-height) + 24px);
  z-index: 24;
  display: grid;
  gap: 10px;
}

.page--map .map-floating-tools__button {
  width: 46px;
  height: 46px;
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(226, 240, 255, 0.72)),
    rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow:
    0 14px 28px rgba(64, 92, 138, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  color: #5574a9;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.page--map .map-floating-tools__button[hidden],
.page--map.is-festival-mode .map-floating-tools__button--recommendation {
  display: none !important;
}

.page--map .map-floating-tools__button svg {
  width: 19px;
  height: 19px;
  display: block;
}

.page--map .map-floating-tools__button:active {
  transform: translateY(1px) scale(0.98);
}

.page--map .map-floating-tools__button.follow-active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(173, 212, 255, 0.58)),
    rgba(255, 255, 255, 0.9);
  border-color: rgba(103, 155, 242, 0.62);
  color: #2f6de6;
  box-shadow:
    0 18px 34px rgba(66, 133, 244, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.page--map .map-floating-tools__button--festival,
.page--map .map-floating-tools__button--recommendation {
  background:
    linear-gradient(180deg, rgba(255, 252, 232, 0.98), rgba(255, 238, 177, 0.82)),
    rgba(255, 248, 218, 0.94);
  border-color: rgba(221, 164, 47, 0.42);
  color: #8a5a06;
  box-shadow:
    0 15px 30px rgba(184, 125, 24, 0.16),
    0 0 0 4px rgba(255, 209, 75, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.page--map .map-floating-tools__button--festival[data-state="active"] {
  background:
    linear-gradient(180deg, rgba(43, 63, 94, 0.98), rgba(23, 39, 65, 0.96)),
    #172741;
  border-color: rgba(255, 211, 91, 0.62);
  color: #ffd65e;
  box-shadow:
    0 18px 34px rgba(23, 39, 65, 0.26),
    0 0 0 6px rgba(255, 199, 58, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.page--map .map-floating-tools__button--festival[data-state="loading"] {
  opacity: 0.74;
  cursor: wait;
}

.page--map .map-floating-tools__button--recommendation {
  display: none;
}

.page--map .map-floating-tools__button--recommendation[data-state="active"],
.page--map .map-floating-tools__button--recommendation[data-state="stale"] {
  background:
    linear-gradient(180deg, rgba(43, 63, 94, 0.98), rgba(23, 39, 65, 0.96)),
    #172741;
  border-color: rgba(255, 211, 91, 0.62);
  color: #ffd65e;
  box-shadow:
    0 18px 34px rgba(23, 39, 65, 0.26),
    0 0 0 6px rgba(255, 199, 58, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.page--map .map-floating-tools__button--recommendation[data-state="loading"] {
  opacity: 0.74;
  cursor: wait;
}

.page--map.is-festival-mode .map-filter-row {
  grid-template-columns: minmax(0, 1fr);
}

.page--map.is-festival-mode .map-tag-filter {
  padding-left: 0;
}

.page--map.is-festival-mode .map-rail-shell {
  display: none;
}

.page--map .map-recommendation-bar {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-height) + 54px + env(safe-area-inset-bottom));
  z-index: 23;
  width: min(238px, calc(100vw - 142px));
  transform: translateX(-50%);
  pointer-events: none;
}

.page--map .map-recommendation-button {
  width: 100%;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding-inline: 14px;
  border-radius: 999px;
  border-color: rgba(113, 151, 214, 0.46);
  border-style: dashed;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.94)),
    rgba(255, 255, 255, 0.94);
  color: #385984;
  box-shadow:
    0 14px 28px rgba(71, 111, 173, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  pointer-events: auto;
  font-weight: 800;
  font-size: 0.8rem;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.page--map .map-recommendation-button[hidden],
.page--map.is-festival-mode [data-tour-recommendations],
.page--map:not(.is-festival-mode) [data-tour-festival-refresh] {
  display: none;
}

.page--map .map-recommendation-button::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #ffce3d;
  box-shadow: 0 0 0 4px rgba(255, 206, 61, 0.22);
}

.page--map .map-recommendation-button[data-state="active"] {
  border-color: rgba(255, 211, 91, 0.62);
  background:
    linear-gradient(180deg, rgba(43, 63, 94, 0.98), rgba(23, 39, 65, 0.96)),
    #172741;
  color: #ffd65e;
}

.page--map .map-recommendation-button[data-state="stale"] {
  width: min(100%, 226px);
  border-color: rgba(255, 211, 91, 0.62);
  background:
    linear-gradient(180deg, rgba(43, 63, 94, 0.98), rgba(23, 39, 65, 0.96)),
    #172741;
  color: #ffd65e;
}

.page--map .map-recommendation-button--festival {
  border-color: rgba(220, 157, 42, 0.48);
  color: #62450a;
  background:
    linear-gradient(180deg, rgba(255, 249, 221, 0.98), rgba(255, 231, 157, 0.94)),
    rgba(255, 245, 198, 0.94);
}

.page--map .map-recommendation-button--festival::before {
  background: #172741;
  box-shadow: 0 0 0 4px rgba(23, 39, 65, 0.14);
}

.page--map .map-recommendation-button--festival[hidden],
.page--map:not(.is-festival-mode) .map-recommendation-button--festival {
  display: none;
}

.page--map .map-recommendation-button:active {
  transform: translateY(1px) scale(0.99);
}

.page--map .map-recommendation-button:disabled {
  opacity: 0.72;
  cursor: wait;
}

@media (max-width: 767px) {
  .page--map .map-floating-tools__button--recommendation {
    display: grid;
  }

  .page--map .map-recommendation-bar {
    width: min(196px, calc(100vw - 158px));
    bottom: calc(var(--nav-height) + 58px + env(safe-area-inset-bottom));
  }

  .page--map .map-recommendation-button[data-tour-recommendations]:not([data-state="stale"]) {
    display: none;
  }

  .page--map .map-recommendation-button {
    min-height: 38px;
    gap: 6px;
    padding-inline: 12px;
    font-size: 0.78rem;
  }

  .page--map .map-recommendation-button::before {
    width: 8px;
    height: 8px;
    box-shadow: 0 0 0 3px rgba(255, 206, 61, 0.2);
  }

  .page--map .map-recommendation-button--festival::before {
    box-shadow: 0 0 0 3px rgba(75, 130, 186, 0.16);
  }
}

@media (min-width: 768px) {
  .page--map .map-recommendation-bar {
    width: min(230px, calc(100vw - 180px));
    bottom: calc(var(--nav-height) + 72px + env(safe-area-inset-bottom));
  }
}

.my-location-marker {
  position: absolute;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.my-location-marker .pulse,
.my-location-marker .dot,
.my-location-marker .heading {
  position: absolute;
  left: 50%;
  top: 50%;
}

.my-location-marker .pulse {
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(66, 133, 244, 0.22);
  border: 1px solid rgba(66, 133, 244, 0.26);
  animation: my-location-pulse 1.9s ease-out infinite;
}

.my-location-marker .dot {
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #73acff 0%, #4285f4 62%, #2f67d6 100%);
  border: 3px solid rgba(255, 255, 255, 0.96);
  box-shadow:
    0 10px 22px rgba(66, 133, 244, 0.32),
    0 0 0 1px rgba(48, 96, 194, 0.12);
}

.my-location-marker .heading {
  width: 20px;
  height: 22px;
  transform: translate(-50%, -92%) rotate(var(--heading-angle, 0deg));
  transform-origin: 50% 100%;
  background: linear-gradient(180deg, rgba(43, 119, 244, 0.96), rgba(66, 133, 244, 0.32));
  border-radius: 14px 14px 10px 10px;
  clip-path: polygon(50% 6%, 88% 82%, 50% 64%, 12% 82%);
  filter: drop-shadow(0 4px 8px rgba(66, 133, 244, 0.22));
}

@keyframes my-location-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.48);
    opacity: 0.72;
  }
  70% {
    transform: translate(-50%, -50%) scale(1.34);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.34);
    opacity: 0;
  }
}

.page--map .map-scale-bar {
  position: fixed;
  right: 16px;
  bottom: calc(var(--nav-height) + max(10px, calc(env(safe-area-inset-bottom) - 22px)));
  z-index: 23;
  display: inline-flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
  color: rgba(49, 67, 92, 0.92);
  pointer-events: none;
}

.page--map .map-scale-bar__label {
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.82);
}

.page--map .map-scale-bar__line {
  position: relative;
  display: inline-block;
  height: 10px;
  border-bottom: 2px solid rgba(30, 40, 58, 0.92);
}

.page--map .map-scale-bar__line::before,
.page--map .map-scale-bar__line::after {
  content: "";
  position: absolute;
  bottom: -2px;
  width: 2px;
  height: 8px;
  background: rgba(30, 40, 58, 0.92);
}

.page--map .map-scale-bar__line::before {
  left: 0;
}

.page--map .map-scale-bar__line::after {
  right: 0;
}

@media (min-width: 768px) {
  .page--map .map-scale-bar {
    right: 20px;
    bottom: 24px;
    justify-content: flex-start;
  }
}

.bookmark-picker__list {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  margin-top: 0;
  padding-right: 4px;
}

.modal-card--workspace-switcher {
  gap: 14px;
}

.workspace-switcher__list {
  display: grid;
  gap: 10px;
}

.workspace-switcher__limit {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.workspace-switcher__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(183, 205, 232, 0.58);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  text-align: left;
}

.workspace-switcher__item.is-active {
  border-color: rgba(46, 111, 203, 0.46);
  background: rgba(236, 244, 255, 0.92);
}

.workspace-switcher__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #edf4fc;
  color: #375c8b;
  font-weight: 900;
}

.workspace-switcher__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.workspace-switcher__body strong,
.workspace-switcher__body small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-switcher__body small {
  color: var(--muted);
  font-size: 0.8rem;
}

.workspace-switcher__state {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(243, 247, 252, 0.95);
  color: #52719c;
  font-size: 0.76rem;
  font-weight: 800;
}

.modal-card--workspace-switcher .bookmark-picker__create-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

.bookmark-picker__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(245, 249, 255, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 10px 24px rgba(39, 71, 112, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
  overflow: hidden;
}

.bookmark-picker__item.is-selected {
  border-color: rgba(var(--bookmark-color-rgb, 168, 200, 255), 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.34)),
    rgba(var(--bookmark-color-rgb, 168, 200, 255), 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 30px rgba(39, 71, 112, 0.08);
  transform: translateY(-1px);
}

.bookmark-picker__item.is-selected .bookmark-picker__name {
  color: #294664;
}

.bookmark-picker__item-main,
.bookmark-picker__item-actions,
.bookmark-picker__palette {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bookmark-picker__item-main {
  min-width: 0;
  flex: 1 1 auto;
  gap: 12px;
}

.bookmark-picker__item-actions {
  flex: 0 0 auto;
  justify-content: center;
}

.bookmark-picker__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
  color: #324a66;
}

.bookmark-picker__dot,
.bookmark-picker__color {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--bookmark-color, #a8c8ff);
  flex: 0 0 auto;
}

.bookmark-picker__dot {
  width: 18px;
  height: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 6px 12px rgba(39, 71, 112, 0.12);
}

.bookmark-picker__checkbox {
  width: 18px;
  height: 18px;
  accent-color: rgba(var(--bookmark-color-rgb, 111, 143, 178), 0.95);
  flex: 0 0 auto;
}

.bookmark-picker__mini-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  font-size: 0;
  line-height: 0;
  color: #5a6f8f;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 8px 18px rgba(39, 71, 112, 0.07);
}

.bookmark-picker__mini-button::before {
  content: "\270E";
  display: block;
  width: 1em;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1;
}

.bookmark-picker__mini-button--danger {
  color: #b86a72;
}

.bookmark-picker__mini-button--danger::before {
  content: "\00D7";
  width: 1em;
  text-align: center;
  font-size: 1.25rem;
}

.bookmark-picker__mini-button.is-active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(232, 240, 250, 0.54));
  border-color: rgba(132, 158, 192, 0.46);
  color: #466384;
}

.bookmark-picker__create-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 18px;
  border: 1px dashed rgba(127, 149, 181, 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(241, 246, 252, 0.34));
  color: #4e6380;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.bookmark-picker__create-toggle svg {
  width: 17px;
  height: 17px;
}

.bookmark-picker__create-toggle.is-hidden {
  display: none;
}

.bookmark-picker__form {
  display: grid;
  gap: 12px;
  margin-top: 0;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(240, 246, 252, 0.34));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.bookmark-picker__form:not(.is-open) {
  display: none;
}

.bookmark-picker__form input[type="text"] {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border-color: rgba(184, 200, 221, 0.66);
  background: rgba(255, 255, 255, 0.72);
}

.bookmark-picker__color {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 8px 18px rgba(39, 71, 112, 0.1);
}

.bookmark-picker__color.is-active {
  outline: 2px solid rgba(104, 126, 158, 0.78);
  outline-offset: 2px;
  transform: scale(1.06);
}

.bookmark-picker__form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.bookmark-picker__form-actions > * {
  min-width: 0;
}

.modal-card--bookmark-picker .sheet-actions--sticky {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding-top: 2px;
}

.modal-card--bookmark-picker .sheet-actions--sticky [data-close-modal] {
  display: none;
}

body:has(.modal-backdrop) .bottom-nav,
body.photo-immersive-open .bottom-nav {
  transform: translateY(calc(100% + 18px));
  opacity: 0;
  pointer-events: none;
}

body:has(.modal-backdrop) .mobile-sheet-peek,
body:has(.modal-backdrop) .detail-sheet__shutter {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 767px) {
  .modal-backdrop--bookmark-picker {
    padding: 12px;
    place-items: center;
  }

  .modal-card--bookmark-picker {
    width: min(100%, calc(100vw - 24px));
    max-height: min(88dvh, calc(100dvh - 24px));
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    padding: 16px;
  }

  .bookmark-picker__list,
  .bookmark-picker__form,
  .modal-card--bookmark-picker .sheet-actions--sticky,
  .bookmark-picker__item,
  .bookmark-picker__item-main,
  .bookmark-picker__name,
  .bookmark-picker__item-actions,
  .bookmark-picker__form-actions {
    min-width: 0;
  }

  .bookmark-picker__item {
    gap: 8px;
    padding: 11px 12px;
  }

  .bookmark-picker__item-main {
    gap: 10px;
  }

  .bookmark-picker__item-actions {
    gap: 6px;
  }

  .bookmark-picker__mini-button {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
  }

  .bookmark-picker__palette {
    flex-wrap: wrap;
    justify-content: flex-start;
    row-gap: 10px;
  }

  .bookmark-picker__form-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .bookmark-picker__form-actions > .primary-button,
  .bookmark-picker__form-actions > .secondary-button,
  .modal-card--bookmark-picker .sheet-actions--sticky > .primary-button,
  .modal-card--bookmark-picker .sheet-actions--sticky > .secondary-button {
    width: 100%;
    min-width: 0;
    padding-left: 12px;
    padding-right: 12px;
  }

  .map-filter-row,
  .browse-filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .map-bookmark-filter-button,
  .browse-bookmark-filter {
    width: 100%;
    justify-content: center;
  }

  .browse-filter-row {
    flex-direction: row;
    align-items: center;
  }

  .browse-bookmark-filter {
    flex: 0 0 36px;
    width: 36px;
  }

  .browse-tag-filter {
    flex: 1 1 auto;
  }

  .browse-toolbar {
    min-width: 0;
  }

  .browse-filter-row,
  .browse-tag-filter,
  .browse-tag-filter__chip,
  .place-summary__meta,
  .place-bookmark-summary,
  .place-bookmark-summary__chips,
  .browse-place-card__label-row,
  .browse-place-card__tag-chips,
  .browse-place-card__bookmark-row {
    min-width: 0;
  }

  .page--map .map-filter-row {
    position: fixed;
    top: 78px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: calc(100vw - 20px);
    box-sizing: border-box;
    z-index: 23;
    margin-top: 0;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    overflow: hidden;
  }

  .page--map .map-rail-shell {
    top: 122px !important;
    z-index: 21 !important;
  }

  .page--map .map-rail-shell.is-collapsed {
    top: 96px !important;
    width: auto !important;
    min-height: 28px;
    padding: 0 !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .page--map .map-rail-shell .map-rail-shell__handle {
    position: static;
    top: auto;
    left: auto;
    z-index: 27;
    transform: none;
    margin: -1px auto 0;
  }

  .page--map .map-rail-shell.is-collapsed .map-rail-shell__handle {
    margin-top: 3px;
  }

  .page--map .map-tag-filter {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .page--map .map-bookmark-filter-button {
    flex: 0 0 42px;
    width: 42px;
    justify-content: center;
    align-self: center;
  }

  .bookmark-picker__item {
    align-items: center;
    flex-direction: row;
  }
}

/* Map rail card polish: keep card dimensions stable while only the active treatment changes. */
@media (max-width: 767px) {
  .page--map .map-rail-shell {
    padding: 6px 7px 7px !important;
    height: var(--map-rail-height, 82px) !important;
    max-height: var(--map-rail-height, 82px) !important;
    border-radius: 23px !important;
    overflow: visible !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(238, 248, 242, 0.28)) !important;
    transition: height 180ms ease, max-height 180ms ease, padding 180ms ease, background 180ms ease, opacity 180ms ease !important;
  }

  .page--map .map-rail-shell.is-resizing {
    transition: none !important;
  }

  .page--map .place-rail {
    height: 100%;
    max-height: calc(var(--map-rail-height, 82px) - 14px);
    padding: 2px 1px 1px !important;
    gap: 8px;
    align-items: stretch;
  }

  .page--map .map-rail-shell .map-rail-shell__handle {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: -13px !important;
    width: 76px !important;
    height: 20px !important;
    margin: 0 !important;
    transform: translateX(-50%) !important;
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(183, 205, 232, 0.48);
    box-shadow: 0 10px 22px rgba(65, 95, 138, 0.12);
    touch-action: none;
    cursor: ns-resize;
  }

  .page--map .map-rail-shell__grip {
    width: 38px;
    height: 4px;
  }

  .page--map .place-chip {
    isolation: isolate;
    height: clamp(64px, calc(var(--map-rail-height, 82px) - 30px), 132px);
    min-height: auto;
    padding: 0;
    overflow: visible;
    background: rgba(255, 255, 255, 0.32);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 18px rgba(65, 95, 138, 0.12);
    transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  }

  .page--map .place-chip.is-visited {
    border-color: rgba(139, 205, 155, 0.82);
    box-shadow:
      inset 0 0 0 3px rgba(139, 205, 155, 0.9),
      0 0 0 2px rgba(139, 205, 155, 0.2),
      0 10px 18px rgba(79, 153, 101, 0.16);
  }

  .page--map .place-chip.is-wanted {
    border-color: rgba(244, 170, 190, 0.86);
    box-shadow:
      inset 0 0 0 3px rgba(244, 170, 190, 0.92),
      0 0 0 2px rgba(244, 170, 190, 0.22),
      0 10px 18px rgba(190, 92, 121, 0.16);
  }

  .page--map .place-chip.is-recommended {
    border-color: rgba(239, 203, 89, 0.88);
    box-shadow:
      inset 0 0 0 3px rgba(239, 203, 89, 0.94),
      0 0 0 2px rgba(239, 203, 89, 0.24),
      0 10px 18px rgba(190, 142, 41, 0.16);
  }

  .page--map .place-chip.is-active {
    width: min(108px, 28vw) !important;
    height: clamp(64px, calc(var(--map-rail-height, 82px) - 30px), 132px) !important;
    min-height: auto !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
    filter: saturate(1.08) contrast(1.02);
    border-color: rgba(58, 119, 214, 0.82);
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.88),
      0 0 0 5px rgba(58, 119, 214, 0.24),
      inset 0 0 0 3px rgba(58, 119, 214, 0.42),
      0 12px 24px rgba(40, 86, 156, 0.26);
    z-index: 5;
  }

  .page--map .place-chip.place-chip--no-media .place-chip__media {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0)),
      linear-gradient(180deg, rgba(247, 209, 196, 0.78), rgba(242, 189, 171, 0.52));
  }

  .page--map .place-chip .place-chip__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    margin: 0;
    border-radius: inherit;
  }

  .page--map .place-chip.is-active .place-chip__media {
    aspect-ratio: auto !important;
    box-shadow:
      inset 0 0 0 2px rgba(255, 255, 255, 0.76),
      inset 0 0 0 5px rgba(58, 119, 214, 0.28) !important;
    transform: none !important;
  }

  .page--map .place-chip::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(18, 35, 58, 0.02), rgba(18, 35, 58, 0.54));
    pointer-events: none;
  }

  .page--map .place-chip__topline,
  .page--map .place-chip small,
  .page--map .place-chip__tags,
  .page--map .place-chip__bookmarks {
    display: none;
  }

  .page--map .place-chip strong {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 7px;
    z-index: 2;
    color: #fff;
    text-shadow: 0 1px 5px rgba(18, 35, 58, 0.5);
  }

  .page--map .place-chip.is-active .place-chip__collapse {
    display: none;
  }

  .page--map .map-rail-shell.is-compact {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.26) !important;
    box-shadow: 0 14px 24px rgba(65, 95, 138, 0.08) !important;
    backdrop-filter: blur(8px) saturate(115%);
    -webkit-backdrop-filter: blur(8px) saturate(115%);
  }

  .page--map .map-rail-shell:not(.is-compact) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(238, 248, 242, 0.18)) !important;
  }

  .page--map .map-rail-shell:not(.is-compact) .place-chip::before {
    background: linear-gradient(180deg, rgba(18, 35, 58, 0.34), rgba(18, 35, 58, 0.05) 40%, rgba(18, 35, 58, 0.58));
  }

  .page--map .map-rail-shell:not(.is-compact) .place-chip__topline {
    position: absolute;
    left: 6px;
    right: 6px;
    top: 6px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    min-height: 20px;
  }

  .page--map .map-rail-shell:not(.is-compact) .place-chip__status,
  .page--map .map-rail-shell:not(.is-compact) .place-chip__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 19px;
    padding: 0 6px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.74);
    color: #38516f;
    font-size: 0.62rem;
    font-weight: 800;
    box-shadow: 0 6px 12px rgba(18, 35, 58, 0.12);
    backdrop-filter: blur(8px) saturate(130%);
    -webkit-backdrop-filter: blur(8px) saturate(130%);
    white-space: nowrap;
    line-height: 1;
  }

  .page--map .map-rail-shell:not(.is-compact) .place-chip__status.is-visited {
    background: rgba(207, 236, 207, 0.88);
    border-color: rgba(167, 218, 171, 0.7);
    color: #2f704c;
  }

  .page--map .map-rail-shell:not(.is-compact) .place-chip__status.is-wanted {
    background: rgba(255, 220, 228, 0.9);
    border-color: rgba(247, 181, 197, 0.72);
    color: #9b4e64;
  }

  .page--map .map-rail-shell:not(.is-compact) .place-chip__status.is-recommended {
    background: rgba(255, 239, 176, 0.92);
    border-color: rgba(238, 205, 104, 0.72);
    color: #886513;
  }

  .page--map .map-rail-shell:not(.is-compact) .place-chip__count {
    max-width: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .page--map .map-rail-shell:not(.is-compact) .place-chip__tags,
  .page--map .map-rail-shell:not(.is-compact) .place-chip__bookmarks {
    display: none;
  }

  .page--map .map-rail-shell:not(.is-compact) .place-chip__tags {
    top: 30px;
    bottom: auto;
  }

  .page--map .map-rail-shell:not(.is-compact) .place-chip__bookmarks {
    top: 52px;
    bottom: auto;
  }

  .page--map .map-rail-shell.is-medium .place-chip__bookmarks {
    display: none;
  }

  .page--map .map-rail-shell.is-medium .place-chip__tags {
    top: 30px;
    bottom: auto;
  }

  .page--map .map-rail-shell:not(.is-compact) .place-chip__tag,
  .page--map .map-rail-shell:not(.is-compact) .place-chip__bookmark {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 72px;
    min-height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.72);
    color: #425a78;
    font-size: 0.62rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    writing-mode: horizontal-tb;
    box-shadow: 0 6px 12px rgba(18, 35, 58, 0.12);
    backdrop-filter: blur(8px) saturate(130%);
    -webkit-backdrop-filter: blur(8px) saturate(130%);
    line-height: 20px;
  }

  .page--map .map-rail-shell:not(.is-compact) .place-chip__tag {
    gap: 4px;
    background: rgba(255, 246, 231, 0.82);
    color: #7f6546;
  }

  .page--map .map-rail-shell:not(.is-compact) .place-chip__tag svg {
    width: 1.05em;
    height: 1.05em;
  }

  .page--map .map-rail-shell:not(.is-compact) .place-chip__bookmark {
    background: rgba(207, 224, 255, 0.82);
    border-color: rgba(174, 200, 244, 0.76);
    background: color-mix(in srgb, var(--bookmark-color, #a8c8ff) 62%, white);
    border-color: color-mix(in srgb, var(--bookmark-color, #a8c8ff) 72%, white);
    color: #3e526f;
  }

  .page--map .map-rail-shell:not(.is-compact) .place-chip__bookmark-dot {
    display: none;
  }
}

@media (min-width: 768px) {
  .page--map .map-rail-shell {
    overflow: visible !important;
    transition:
      top 220ms ease,
      right 220ms ease,
      bottom 220ms ease,
      left 220ms ease,
      width 220ms ease,
      max-height 220ms ease,
      padding 220ms ease,
      opacity 220ms ease !important;
  }

  .page--map .map-rail-shell .map-rail-shell__handle {
    position: absolute !important;
    top: 50% !important;
    right: -18px !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 27;
    width: 36px !important;
    height: clamp(72px, 32%, 112px) !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
    border-radius: 0 999px 999px 0;
    transition:
      top 220ms ease,
      right 220ms ease,
      bottom 220ms ease,
      left 220ms ease,
      width 220ms ease,
      height 220ms ease,
      transform 220ms ease,
      border-radius 220ms ease,
      box-shadow 160ms ease,
      background 160ms ease !important;
  }

  .page--map .map-rail-shell__grip {
    width: 6px !important;
    height: 56px !important;
  }
}

@media (min-width: 768px) {
  .page--browse .browse-place-card {
    min-height: 144px;
  }

  .page--browse .browse-place-card__head {
    align-items: stretch;
    min-height: 120px;
  }

  .page--browse .browse-place-card__compact-media,
  .page--browse .browse-place-card.is-compact .browse-place-card__compact-media {
    flex: 0 0 128px;
    width: 128px;
    min-width: 128px;
    height: auto;
    min-height: 100%;
    align-self: stretch;
    border-radius: 16px;
  }

  .page--browse .browse-place-card__content {
    min-height: 100%;
    align-content: start;
  }

  .page--browse .browse-place-card__meta {
    margin-top: auto;
  }

  .page--map .place-chip.is-active {
    outline: 0;
    border-color: rgba(255, 255, 255, 0.86);
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.78),
      0 0 0 4px rgba(92, 128, 178, 0.16),
      inset 0 0 0 1px rgba(255, 255, 255, 0.78),
      inset 0 0 0 3px rgba(92, 128, 178, 0.1),
      0 16px 28px rgba(72, 103, 145, 0.24);
  }

  .page--map .place-chip.is-visited.is-active {
    background: linear-gradient(180deg, rgba(244, 252, 246, 0.96), rgba(220, 242, 226, 0.84));
    border-color: rgba(107, 184, 130, 0.78);
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.78),
      0 0 0 4px rgba(107, 184, 130, 0.22),
      inset 0 0 0 3px rgba(139, 205, 155, 0.48),
      inset 0 1px 0 rgba(255, 255, 255, 0.84),
      0 16px 28px rgba(79, 153, 101, 0.22);
  }

  .page--map .place-chip.is-wanted.is-active {
    background: linear-gradient(180deg, rgba(255, 250, 252, 0.96), rgba(255, 232, 239, 0.84));
    border-color: rgba(235, 139, 166, 0.8);
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.78),
      0 0 0 4px rgba(235, 139, 166, 0.22),
      inset 0 0 0 3px rgba(244, 170, 190, 0.52),
      inset 0 1px 0 rgba(255, 255, 255, 0.84),
      0 16px 28px rgba(190, 92, 121, 0.22);
  }

  .page--map .place-chip.is-recommended.is-active {
    background: linear-gradient(180deg, rgba(255, 253, 244, 0.96), rgba(255, 244, 205, 0.84));
    border-color: rgba(222, 185, 62, 0.82);
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.78),
      0 0 0 4px rgba(222, 185, 62, 0.22),
      inset 0 0 0 3px rgba(239, 203, 89, 0.52),
      inset 0 1px 0 rgba(255, 255, 255, 0.84),
      0 16px 28px rgba(190, 142, 41, 0.22);
  }

  .bottom-sheet .place-edit-actions {
    gap: 6px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(244, 249, 255, 0.72);
    border: 1px solid rgba(183, 205, 232, 0.34);
  }

  .bottom-sheet .place-edit-actions--title {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .bottom-sheet .place-edit-actions--title .place-sync-button,
  .bottom-sheet .place-edit-actions--title .place-edit-toggle--summary {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 999px;
    color: #5f7ba1;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.82)),
      rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(183, 205, 232, 0.58);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 8px 18px rgba(83, 117, 164, 0.12);
  }

  .bottom-sheet .place-edit-actions--title .place-edit-toggle--summary.is-active {
    width: 40px;
    min-width: 40px;
    padding: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(146, 196, 255, 0.96), rgba(92, 152, 238, 0.94));
    border-color: rgba(105, 156, 231, 0.82);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.62),
      0 12px 24px rgba(95, 145, 219, 0.24);
  }

  .bottom-sheet .place-edit-toggle--summary,
  .bottom-sheet .place-edit-cancel {
    height: 38px;
    min-width: 54px;
    padding: 0 13px;
    border-radius: 999px;
    font-size: 0.8rem;
  }
}

@media (max-width: 767px) {
  .page--map {
    --detail-sheet-partial-height: min(70dvh, 640px);
    --detail-sheet-full-top: 0px;
  }

  .page--map.is-detail-open .card--sheet-host {
    display: block !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: calc(100dvh - var(--nav-height) - 4px - var(--detail-sheet-partial-height)) !important;
    bottom: calc(var(--nav-height) + 4px) !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    background: transparent !important;
    z-index: 60 !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    transition:
      top 340ms cubic-bezier(0.22, 1, 0.36, 1),
      bottom 340ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
      padding 340ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .page--map.is-detail-open.is-detail-dragging .card--sheet-host {
    transition: none !important;
  }

  .page--map.is-detail-open .card--sheet-host::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(-1 * var(--nav-height));
    z-index: 0;
    height: calc(var(--nav-height) + 46px);
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(246, 251, 255, 0), rgba(246, 251, 255, 0.68) 36%, rgba(246, 251, 255, 0.96)),
      radial-gradient(ellipse at center, rgba(78, 112, 158, 0.16) 0%, rgba(78, 112, 158, 0.08) 38%, rgba(78, 112, 158, 0) 72%);
  }

  .page--map.is-detail-open.is-detail-fullscreen .card--sheet-host {
    top: var(--detail-sheet-full-top) !important;
    bottom: 0 !important;
    padding: 0 !important;
    z-index: 11990 !important;
  }

  .page--map.is-detail-open .map-detail-frame {
    position: relative;
    z-index: 1;
    height: 100% !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: max(14px, env(safe-area-inset-bottom)) !important;
    border-radius: 28px 28px 0 0;
    touch-action: pan-y !important;
    transition:
      border-radius 260ms cubic-bezier(0.22, 1, 0.36, 1),
      padding-bottom 260ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .page--map.is-detail-open.is-detail-fullscreen .map-detail-frame {
    padding-bottom: calc(var(--nav-height) + max(14px, env(safe-area-inset-bottom))) !important;
    border-radius: 0;
  }

  .page--map.is-detail-open .map-detail-frame .bottom-sheet {
    min-height: 100% !important;
    margin: 0 !important;
    border-radius: inherit !important;
    overflow: visible !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 251, 255, 0.86)),
      rgba(255, 255, 255, 0.82) !important;
    touch-action: pan-y !important;
  }

  .page--map.is-detail-open .map-detail-frame .bottom-sheet__header {
    position: sticky;
    top: 0;
    z-index: 24;
    margin: 0 -18px 14px;
    padding: 12px 18px 14px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 251, 255, 0.86)),
      rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(177, 198, 224, 0.28);
    box-shadow: 0 10px 22px rgba(77, 114, 160, 0.06);
    backdrop-filter: blur(22px) saturate(135%);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
  }

  .page--map.is-detail-open .bottom-sheet__handle {
    width: 48px;
    height: 5px;
    margin-top: 0;
    margin-bottom: 12px;
    transform: translateY(8px);
    background: rgba(23, 50, 79, 0.18);
    touch-action: none;
  }
}

@media (max-width: 767px) {
  body.is-map-detail-fullscreen {
    overflow: hidden;
  }

  body.is-map-detail-fullscreen .bottom-nav {
    bottom: max(10px, env(safe-area-inset-bottom));
    width: min(500px, calc(100% - 28px));
  }

  .page--map.is-detail-open.is-detail-fullscreen .card--sheet-host {
    background:
      linear-gradient(180deg, rgba(250, 253, 255, 0.98), rgba(241, 248, 255, 0.98)) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .page--map.is-detail-open.is-detail-fullscreen .card--sheet-host::before {
    display: none !important;
  }

  .page--map.is-detail-open.is-detail-fullscreen .card--sheet-host::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(var(--nav-height) + max(30px, env(safe-area-inset-bottom)));
    background:
      linear-gradient(180deg, rgba(246, 251, 255, 0), rgba(246, 251, 255, 0.94) 34%, rgba(246, 251, 255, 0.99));
    pointer-events: none;
    z-index: 3;
  }

  .page--map.is-detail-open.is-detail-fullscreen .map-detail-frame {
    position: relative;
    z-index: 1;
    height: 100% !important;
    padding-bottom: calc(var(--nav-height) + max(30px, env(safe-area-inset-bottom))) !important;
    background:
      linear-gradient(180deg, rgba(250, 253, 255, 0.98), rgba(241, 248, 255, 0.98)) !important;
  }

  .page--map.is-detail-open.is-detail-fullscreen .map-detail-frame .bottom-sheet {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 251, 255, 0.96)) !important;
    padding-bottom: 24px !important;
  }
}

@media (max-width: 767px) {
  body.is-map-detail-open::before,
  body.is-record-compose-open::before {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 11980;
    height: calc(var(--nav-height) + max(16px, env(safe-area-inset-bottom)));
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(246, 251, 255, 0), rgba(246, 251, 255, 0.94) 30%, rgba(246, 251, 255, 0.99)),
      rgba(246, 251, 255, 0.9);
  }

  :root {
    --nav-height: 72px;
  }

  .bottom-nav {
    bottom: min(0px, calc(8px - env(safe-area-inset-bottom)));
    width: min(540px, 100%);
    padding: 8px 18px max(8px, env(safe-area-inset-bottom));
    gap: 6px;
    border-radius: 26px 26px 0 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    box-shadow:
      0 -10px 28px rgba(86, 118, 160, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      inset 0 -1px 0 rgba(255, 255, 255, 0.12);
  }

  .bottom-nav__active-indicator {
    left: 18px;
    top: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: calc((100% - 54px) / 4);
    border-radius: 20px;
    transform: translateX(calc(var(--bottom-nav-active-index, 0) * (100% + 6px)));
  }

  .app-shell.app-shell--map-route .hero-card--map {
    inset: 0 0 var(--nav-height) 0 !important;
  }

  body.is-map-detail-fullscreen .bottom-nav {
    bottom: min(0px, calc(8px - env(safe-area-inset-bottom)));
    width: min(540px, 100%);
  }

  .page--map.is-detail-open .card--sheet-host {
    top: calc(100dvh - var(--nav-height) - var(--detail-sheet-partial-height)) !important;
    bottom: var(--nav-height) !important;
  }

  .record-compose--modal:not(.is-collapsed) {
    align-items: end;
    padding: max(18px, env(safe-area-inset-top)) 12px calc(var(--nav-height) + 10px);
  }

  .record-compose--modal:not(.is-collapsed)::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    height: calc(var(--nav-height) + 58px);
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(246, 251, 255, 0), rgba(246, 251, 255, 0.7) 34%, rgba(246, 251, 255, 0.96)),
      radial-gradient(ellipse at center, rgba(70, 102, 148, 0.13) 0%, rgba(70, 102, 148, 0.06) 42%, rgba(70, 102, 148, 0) 76%);
  }

  .record-compose__panel {
    border-radius: 30px 30px 18px 18px;
    box-shadow:
      0 22px 46px rgba(42, 73, 118, 0.18),
      0 10px 22px rgba(69, 104, 150, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }

  .page--map .map-rail-shell .map-rail-shell__handle {
    bottom: -10px !important;
    width: 72px !important;
    height: 18px !important;
    padding: 0 !important;
    border: 1px solid rgba(183, 205, 232, 0.3) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.58) !important;
    box-shadow:
      0 8px 16px rgba(65, 95, 138, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(10px) saturate(125%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(125%) !important;
    touch-action: none !important;
    cursor: ns-resize;
  }

  .page--map .map-rail-shell__grip {
    width: 38px !important;
    height: 3px !important;
    border-radius: 999px;
    background: rgba(31, 49, 72, 0.28);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.52),
      0 4px 8px rgba(54, 82, 120, 0.08);
  }

  .page--map .map-rail-shell.is-resizing .map-rail-shell__grip {
    background: rgba(46, 111, 203, 0.42);
    transform: scaleX(1.08);
  }

  .page--map .place-rail {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: none;
    touch-action: pan-x !important;
    scroll-snap-type: x proximity;
  }

  .page--map .place-chip {
    touch-action: pan-x !important;
    scroll-snap-align: start;
  }

  .page--map .place-chip:hover,
  .page--map .place-chip:focus-visible,
  .page--map .place-chip.is-active {
    transform: none !important;
  }

  .page--map .searchbar__field {
    border-radius: 16px;
    overflow: visible;
  }

  .page--map .searchbar__field input,
  .page--map .draft-title-input,
  .page--map .place-title-inline-input,
  .page--map .place-address-inline-input {
    min-height: 44px;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    line-height: 1.35;
  }

  .page--map .searchbar__field input {
    padding-left: 2px !important;
    padding-right: 2px !important;
  }

  .page--map .draft-title-input,
  .page--map .place-title-inline-input,
  .page--map .place-address-inline-input {
    padding-left: 6px !important;
    padding-right: 6px !important;
    border-radius: 0 !important;
  }

  .page--map.is-detail-open .place-cover-picker {
    width: 100%;
    margin: 6px 0 0;
    padding: 8px 0 0;
    gap: 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .page--map.is-detail-open .place-cover-picker__toolbar {
    padding: 0;
  }

  .page--map.is-detail-open .place-cover-picker__row {
    gap: 3px;
    padding: 0 2px 2px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    touch-action: pan-x pan-y;
    scroll-snap-type: x proximity;
  }

  .page--map.is-detail-open .place-cover-picker__thumb {
    flex: 0 0 clamp(92px, 25vw, 112px);
    width: clamp(92px, 25vw, 112px);
    height: clamp(92px, 25vw, 112px);
    border: 0;
    border-radius: 4px;
    box-shadow: none;
    scroll-snap-align: start;
    touch-action: pan-x pan-y;
  }

  .page--map.is-detail-open .place-cover-picker__thumb.is-active {
    flex-basis: clamp(98px, 27vw, 120px);
    width: clamp(98px, 27vw, 120px);
    height: clamp(98px, 27vw, 120px);
    border: 0;
    box-shadow: inset 0 0 0 3px rgba(245, 192, 59, 0.9);
  }

  .page--map .searchbar--map,
  .page--map .map-rail-shell,
  .page--map .card--sheet-host,
  .page--map .map-floating-tools__button,
  .page--map .mobile-sheet-peek,
  .page--map .detail-sheet__shutter,
  .page--map .place-chip {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .map-pin--place.is-selected,
  .map-pin-name-overlay.is-selected,
  .tour-recommendation-pin--festival.is-active,
  .tour-recommendation-pin--festival.is-soon {
    animation: none;
  }
}

.entry-save-button:not(.place-edit-toggle),
.entry-save-button.place-edit-toggle.is-active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 64px;
  height: 40px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}
