/* owner: D — all paint follows the visitor's palette. */
.mission-grid { display: block; min-width: 0; }
.career-map {
  color: var(--text-main);
  background: var(--bg-card);
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  animation: map-arrive 450ms ease-out both;
}
.map-eyebrow { margin: 0 0 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.map-heading { margin: 0; font: 500 clamp(26px, 5vw, 38px)/1.1 Georgia, 'Times New Roman', serif; letter-spacing: -.035em; }
.map-intro { margin: 12px 0 16px; color: var(--text-muted); font-size: 14px; line-height: 1.6; max-width: 42ch; }
.map-viewport { overflow-x: auto; padding: 0; margin: 0; }
/* Five photographic floors; the stage reserves the original image ratio. */
.map-hotel-floors { --hotel-floor-number-size: 14px; width: 100%; min-width: 0; max-width: 100%; }
/* DD-m105: glass values copied from learner/mission/bridge.css:225–241. */
.hotel-navigation { position: absolute; z-index: 4; right: 12px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; box-sizing: border-box; width: 40px; padding: 2px 0; border-radius: 999px; cursor: auto; }
.hotel-navigation-scroll { display: flex; flex-direction: column; align-items: center; gap: 12px; box-sizing: border-box; width: 44px; padding: 6px; flex-shrink: 0; }
.hotel-navigation, .hotel-selected-floor, .map-hotel-floors .hotel-floor-name, .map-hotel-floors .hotel-floor-note {
  background: rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
@supports not ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) {
  .hotel-navigation, .hotel-selected-floor, .map-hotel-floors .hotel-floor-name, .map-hotel-floors .hotel-floor-note { background: rgba(53,20,61,.45); }
}
.hotel-selected-floor { display: none; }
@media (min-width: 900px) {
  .hotel-selected-floor { display: block; position: absolute; z-index: 4; left: 12px; top: 12px; max-width: calc(100% - 84px); padding: 7px 12px; border-radius: 999px; font-size: 13px; line-height: 1.5; font-weight: 600; white-space: nowrap; pointer-events: none; }
}
.map-hotel-floors .hotel-floor-picker { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-bottom: 4px; }
/* Move the heading toward 5; bottom padding preserves the rail height and button pitch. */
.hotel-floor-rail-label { display: block; flex: 0 0 12px; align-self: stretch; margin: 4px 0 -8px; text-align: center; font-size: 8px; line-height: 12px; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; pointer-events: none; }
.hotel-floor-current { position: absolute; right: 1px; top: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--bg-card); pointer-events: none; }
.hotel-floor-button[aria-pressed="true"] .hotel-floor-current { background: var(--on-accent); }
.map-hotel-floors .hotel-floor-button { position: relative; box-sizing: border-box; display: flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; min-width: 32px; height: 32px; min-height: 32px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: #ffffff; text-shadow: 0 1px 2px rgba(0,0,0,.45); font: inherit; cursor: pointer; }
/* The invisible 44px target is independent of the slim visual disc. */
.map-hotel-floors .hotel-floor-button::before, .hotel-camera-button::before { content: ''; position: absolute; inset: -6px; }
/* The heading shares the numbers' typography and inherited day/night rail ink. */
.map-hotel-floors .hotel-floor-number, .map-hotel-floors .hotel-floor-rail-label { font-family: inherit; font-weight: 750; color: inherit; font-variant-numeric: tabular-nums; }
.map-hotel-floors .hotel-floor-number { font-size: var(--hotel-floor-number-size); }
.map-hotel-floors .hotel-floor-button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.map-hotel-floors .hotel-floor-button.is-empty { color: #ffffff; }
.map-hotel-floors .hotel-floor-name { display: none; }
.map-hotel-floors .hotel-floor-lock { position: absolute; right: 0; bottom: 0; padding: 0; border: 0; background: transparent; color: #ffffff; opacity: .85; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
@media (min-width: 901px) {
  .map-hotel-floors .hotel-floor-name { position: absolute; right: calc(100% + 14px); display: block; pointer-events: none; white-space: nowrap; padding: 7px 12px; border-radius: 999px; font-size: 12px; opacity: 0; visibility: hidden; }
  .hotel-floor-button:is(:hover, :focus-visible) .hotel-floor-name { opacity: 1; visibility: visible; }
}
@media (max-width: 719px) { .hotel-navigation { width: 36px; } }
/* A short stage keeps every target visible in two independent glass columns.
   The stage height (rather than the outer window) selects this layout. */
@container (max-height: 479px) {
  .hotel-navigation { top: 12px; transform: none; width: auto; padding: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hotel-navigation-scroll { flex-direction: row-reverse; align-items: flex-start; gap: 8px; width: auto; padding: 0; }
  .hotel-navigation .hotel-floor-picker, .hotel-navigation .hotel-camera-controls {
    flex-shrink: 0; box-sizing: border-box; width: 44px; padding: 6px; border-radius: 999px;
    background: rgba(255,255,255,.16);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 2px 10px rgba(0,0,0,.18);
  }
  .map-hotel-floors .hotel-floor-name { display: none; }
  @supports not ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) {
    .hotel-navigation .hotel-floor-picker, .hotel-navigation .hotel-camera-controls { background: rgba(53,20,61,.45); }
  }
}
.map-hotel-floors .hotel-floor-stage { position: relative; width: 100%; aspect-ratio: 1448 / 1086; margin: 0; padding: 0; border: 0; border-radius: 0; }
.map-hotel-floors .hotel-floor-image, .map-hotel-floors .hotel-floor-overlay { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.map-hotel-floors .hotel-floor-image { object-fit: contain; }
.map-hotel-floors .hotel-floor-overlay { overflow: hidden; font-family: inherit; }
.map-hotel-floors .hotel-marker { cursor: pointer; outline: none; }
.map-hotel-floors .hotel-marker-badge, .map-hotel-floors .hotel-marker text, .map-hotel-floors .hotel-chip { pointer-events: none; }
.map-hotel-floors .hotel-marker-hit { pointer-events: fill; }
.map-hotel-floors .hotel-marker-focus { opacity: 0; pointer-events: none; }
.map-hotel-floors .hotel-marker:focus-visible .hotel-marker-focus { opacity: 1; }
.map-hotel-floors .hotel-floor-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.map-hotel-floors .hotel-floor-note { position: absolute; z-index: 4; left: 12px; top: 12px; box-sizing: border-box; max-width: calc(100% - 84px); display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border-radius: 16px; font-size: 13px; line-height: 1.5; pointer-events: none; }
@media (min-width: 900px) {
  /* Label: 13px × 1.5 line-height + 14px padding; leave an 8px gap. */
  .map-hotel-floors .hotel-floor-note { top: calc(12px + 13px * 1.5 + 14px + 8px); }
}
.hotel-marker-disc { filter: drop-shadow(0 2px 5px rgba(0,0,0,.3)); }
.hotel-marker-scrim, .hotel-marker-highlight, .hotel-marker-current, .hotel-marker-glyph, .hotel-marker-arrow-chip { pointer-events: none; }
.hotel-marker-current { filter: drop-shadow(0 0 3px var(--accent)); }
.hotel-marker-glyph { color: #ffffff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.hotel-marker.is-done .hotel-marker-glyph { color: #b5ffda; }
.hotel-marker.is-locked .hotel-marker-glyph { opacity: .85; }
.hotel-marker-arrow-chip { fill: color-mix(in srgb, var(--accent) 55%, black); }
.hotel-marker-number { font-weight: 650; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.hotel-marker-badge { stroke: rgba(255,255,255,.2); stroke-width: .5px; }
.hotel-location, .hotel-location * { pointer-events: none; }
.hotel-location-balloon { animation: hotel-location-arrive 300ms ease-out both; }
.hotel-location-surface { fill: var(--bg-card); stroke: var(--border-soft); stroke-width: 1px; }
.hotel-location-text { fill: var(--text-main); font: 600 12px sans-serif; }
.hotel-location-avatar-background { fill: var(--bg-panel); }
.hotel-store-stage[aria-busy="true"] .hotel-location-balloon,
.hotel-store-stage[data-store-intro] .hotel-location-balloon { animation-play-state: paused; }
@keyframes hotel-location-arrive { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .hotel-location-balloon { animation: none; } }
.hotel-marker-pulse { opacity: .45; transform-box: fill-box; transform-origin: center; animation: hotel-marker-pulse 2.8s ease-out infinite; pointer-events: none; }
@keyframes hotel-marker-pulse { 0%, 100% { opacity: .2; transform: scale(1); } 50% { opacity: .55; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .hotel-marker-pulse { animation: none; } }
.is-done { --state: var(--done); }
.is-progress { --state: var(--progress); }
.is-next { --state: var(--next); }
.is-locked { --state: var(--locked); }
.map-legend { display: flex; flex-wrap: wrap; gap: 12px 20px; list-style: none; margin: 12px 0 0; padding: 18px 0 0; border-top: 1px solid var(--border-soft); }
.map-legend li { display: flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.map-legend-mark { display: grid; place-items: center; width: 22px; height: 22px; color: var(--state); border: 1px solid var(--state); border-radius: 50%; font-size: 15px; }
.map-empty { font-size: 16px; line-height: 1.6; }
@keyframes map-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .career-map { animation: none; } }

/* Radial career map: families are spokes, levels are rings. */
.career-map--rings {
  min-width: 0; max-width: 100%; overflow: hidden; box-sizing: border-box; }
.career-map--rings .map-viewport,
.career-map--rings .map-area {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  overflow: hidden;
  position: relative;
}
.career-map--rings .map-canvas-wrap {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  max-height: 720px;
  overflow: hidden;
  background: var(--bg-panel);
  border-radius: 0;
}
.career-map--rings .career-rings-scene {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  font-family: inherit;
}
.career-map--rings .career-rings-scene text { pointer-events: none; }
.career-map--rings .career-core-node { pointer-events: none; }
.career-map--rings .career-node,
.career-map--rings .career-cluster {
  cursor: pointer;
  outline: none;
  transition: opacity 200ms ease;
}
.career-map--rings [data-cluster-member] { transition: opacity 200ms ease-out; }
.career-map--rings [data-node-hit],
.career-map--rings [data-cluster-hit] { transition: stroke 150ms ease; }
/* Child SVG filters retain the per-instance glows on hover. */
.career-map--rings .career-node:hover,
.career-map--rings [data-cluster-marker]:hover { filter: brightness(1.2); }
.career-map--rings .career-node:focus-visible [data-node-hit],
.career-map--rings .career-cluster:focus-visible [data-cluster-hit] {
  stroke: var(--text-main);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}
.career-map--rings .career-node-filter-dimmed {
  filter: grayscale(.55) saturate(.42) brightness(.60);
}
.career-map--rings .cluster-focus-ctx {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  max-width: calc(100% - 84px);
  margin: 0;
  padding: 6px 10px;
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-card));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 20px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .05em;
  color: var(--text-main);
  overflow-wrap: anywhere;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.career-map--rings .cluster-focus-ctx[hidden] { display: none; }

/* Status filters share the map palette without page-level toolbar styling. */
.career-map--rings .career-status-filter-select-wrap {
  display: inline-flex;
  align-items: center;
  position: relative;
  width: 220px;
  max-width: 100%;
  flex-shrink: 0;
}
.career-map--rings .career-status-filter-select-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(50%);
  overflow: hidden;
}
.career-map--rings .career-status-filter-dropdown-btn {
  width: 100%;
  min-height: 44px;
  padding: 0 32px 0 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent), color-mix(in srgb, var(--accent-2) 8%, transparent));
  color: var(--text-main);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.career-map--rings .career-status-filter-dropdown-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 62%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 16%, transparent);
}
.career-map--rings .career-status-filter-select-wrap.is-open .career-status-filter-dropdown-btn {
  border-color: color-mix(in srgb, var(--accent) 74%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 24%, transparent), 0 0 14px color-mix(in srgb, var(--accent) 20%, transparent);
}
.career-map--rings .career-status-filter-select-wrap::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-main);
  border-bottom: 2px solid var(--text-main);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}
.career-map--rings .career-status-filter-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  background: linear-gradient(155deg, var(--bg-panel), var(--bg-card));
  box-shadow: 0 4px 18px color-mix(in srgb, var(--text-main) 18%, transparent);
  z-index: 52;
}
.career-map--rings .career-status-filter-dropdown-menu[hidden] { display: none; }
.career-map--rings .career-status-filter-dropdown-option {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  border-radius: 9px;
  padding: 8px 10px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  user-select: none;
}
.career-map--rings .career-status-filter-dropdown-option:hover,
.career-map--rings .career-status-filter-dropdown-option.is-focused {
  color: var(--text-main);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.career-map--rings .career-status-filter-dropdown-option[aria-selected="true"] {
  color: var(--text-main);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, transparent), color-mix(in srgb, var(--accent) 10%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent);
}
.career-map--rings .career-status-filter-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
  flex-wrap: wrap;
}
.career-map--rings .career-status-filter {
  --state: var(--accent-2);
  appearance: none;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-main) 3%, transparent);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  min-height: 44px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease, transform .14s ease;
  white-space: nowrap;
}
.career-map--rings .career-status-filter:hover { border-color: var(--accent); color: var(--text-main); }
.career-map--rings .career-status-filter:active { transform: translateY(1px); }
.career-map--rings .career-status-filter-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--state);
  box-shadow: 0 0 6px var(--state);
  animation: career-rings-pulse-dot 2.8s ease-in-out infinite;
  opacity: .72;
  transition: opacity .18s ease, box-shadow .18s ease, transform .18s ease;
  flex-shrink: 0;
}
.career-map--rings .career-status-filter[data-state-filter="locked"] { --state: var(--locked); }
.career-map--rings .career-status-filter[data-state-filter="unlocked"] { --state: var(--next); }
.career-map--rings .career-status-filter[data-state-filter="in_progress"] { --state: var(--progress); }
.career-map--rings .career-status-filter[data-state-filter="completed"] { --state: var(--done); }
.career-map--rings .career-status-filter.is-active,
.career-map--rings .career-status-filter[aria-pressed="true"] {
  --state: var(--accent);
  color: var(--text-main);
  border-color: color-mix(in srgb, var(--accent) 52%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, transparent), color-mix(in srgb, var(--accent) 10%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 14%, transparent), 0 0 14px color-mix(in srgb, var(--accent) 20%, transparent);
}
.career-map--rings .career-status-filter.is-active .career-status-filter-dot,
.career-map--rings .career-status-filter[aria-pressed="true"] .career-status-filter-dot {
  opacity: 1;
  box-shadow: 0 0 10px var(--state);
  transform: scale(1.08);
}
.career-map--rings .career-status-filter:not(.is-active):not([aria-pressed="true"]) { opacity: .84; }
.career-map--rings .career-filter-strip { display: none; }

/* Floating controls retain the source placement with 44px touch targets. */
.career-map--rings .map-controls {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 10;
}
.career-map--rings .map-ctrl-btn,
.career-map--rings .fam-sel-btn,
.career-map--rings .family-return-btn-map {
  box-sizing: border-box;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  transition: background .15s, color .15s, border-color .15s;
  backdrop-filter: blur(10px);
  user-select: none;
  -webkit-user-select: none;
}
.career-map--rings .map-ctrl-btn:hover {
  background: color-mix(in srgb, var(--accent) 15%, var(--bg-card));
  color: var(--text-main);
  border-color: var(--accent);
}
.career-map--rings .family-selector {
  position: absolute;
  right: 14px;
  left: 14px;
  bottom: calc(14px + 44px * 3 + 5px * 2 + 12px);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  max-height: none;
  overflow: visible;
  pointer-events: none;
  scrollbar-width: none;
}
.career-map--rings .family-selector::-webkit-scrollbar { display: none; }
.career-map--rings .fam-sel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  max-width: 44px;
  gap: 0;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: auto;
  -webkit-touch-callout: none;
  touch-action: pan-y;
}
.career-map--rings .fam-sel-btn:hover,
.career-map--rings .fam-sel-btn--expanded {
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-card));
  border-color: currentColor;
}
.career-map--rings .fam-sel-btn--active {
  background: color-mix(in srgb, var(--accent) 12%, var(--bg-card));
  border-color: currentColor;
}
.career-map--rings .fam-sel-letter {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: inherit;
  line-height: 1;
  letter-spacing: -.02em;
}
.career-map--rings .fam-sel-full-label { display: none; }
/* Container-based mobile layout: real-size family names stay outside the SVG. */
.career-map--rings .map-canvas-wrap--mobile {
  aspect-ratio: auto;
  height: min(70vh, 560px);
}
.career-map--rings .family-selector--mobile {
  position: static;
  flex-direction: row;
  align-items: stretch;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 12px;
  gap: 8px;
  pointer-events: auto;
  touch-action: pan-y;
}
.career-map--rings .family-selector--mobile .fam-sel-btn {
  flex: 1 1 130px;
  width: auto;
  min-width: 0;
  max-width: 100%;
  height: auto;
  min-height: 44px;
  padding: 8px 12px;
  gap: 8px;
  white-space: normal;
}
.career-map--rings .family-selector--mobile .fam-sel-full-label {
  display: block;
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.career-map--rings .family-selector--mobile .fam-sel-floating-label { display: none; }
.career-map--rings .fam-sel-floating-label {
  position: absolute;
  right: 52px;
  top: 0;
  transform: translateY(-50%);
  z-index: 40;
  display: block;
  box-sizing: border-box;
  max-width: min(260px, calc(100% - 52px));
  background: color-mix(in srgb, var(--bg-card) 96%, transparent);
  border: 1px solid var(--border-soft);
  border-right: 3px solid currentColor;
  border-radius: 8px;
  font-family: inherit;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  padding: 7px 10px;
  box-shadow: 0 4px 18px color-mix(in srgb, var(--text-main) 24%, transparent);
  white-space: normal;
  overflow-wrap: anywhere;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .14s ease;
}
.career-map--rings .fam-sel-floating-label.is-visible { opacity: 1; visibility: visible; }
.career-map--rings .family-floating-banner {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--bg-card) 88%, transparent);
  border: 1px solid var(--border-soft);
  border-left: 4px solid currentColor;
  border-radius: 12px;
  box-shadow: 0 4px 24px color-mix(in srgb, var(--text-main) 24%, transparent), 0 0 20px color-mix(in srgb, var(--accent) 8%, transparent);
  backdrop-filter: blur(12px);
  animation: career-rings-banner 280ms ease-out;
  max-width: calc(100% - 132px);
  width: max-content;
  pointer-events: none;
}
.career-map--rings .family-banner-letter { display: none; }
.career-map--rings .family-banner-name {
  min-width: 0;
  max-width: 240px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-main);
  text-align: center;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.career-map--rings .family-return-btn-map {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 15;
  flex-shrink: 0;
  animation: career-rings-return 280ms ease-out;
}
.career-map--rings .family-return-btn-map:hover {
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-card));
  border-color: var(--accent);
  color: var(--text-main);
}
.career-map--rings .family-return-btn-map svg { width: 14px; height: 14px; pointer-events: none; }
.career-map--rings button:focus-visible,
.career-map--rings .career-status-filter-dropdown-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@keyframes career-rings-banner {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes career-rings-return {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes career-rings-pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}
@media (max-width: 900px) {
  .career-map--rings .map-canvas-wrap { aspect-ratio: auto; height: min(70vh, 560px); }
  .career-map--rings .family-selector { gap: 5px; }
  .career-map--rings .fam-sel-floating-label { max-width: min(220px, calc(100% - 52px)); }
  .career-map--rings .career-status-filter-select-wrap,
  .career-map--rings .career-status-filter-bar { display: none; }
  .career-map--rings .career-filter-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 8px;
    min-width: 0;
    background: color-mix(in srgb, var(--bg-panel) 92%, transparent);
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(12px);
  }
  .career-map--rings .career-filter-strip .career-status-filter {
    flex: 1;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
    letter-spacing: .04em;
  }
}
@media (max-width: 600px) {
  .career-map--rings .family-floating-banner { padding: 9px 10px; }
  .career-map--rings .family-banner-name { max-width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .career-map--rings *,
  .career-map--rings *::before,
  .career-map--rings *::after { animation: none !important; transition: none !important; }
}

.map-state-icon { display: inline-block; flex: 0 0 auto; vertical-align: middle; }
.map-hotel-floors .hotel-floor-note { display: flex; align-items: center; gap: 6px; }

/* Registered store scene; legacy floors retain their original ratio and layout. */
.map-hotel-floors .hotel-store-stage {
  container-type: size;
  aspect-ratio: auto;
  height: clamp(240px, calc(100dvh - 88px), 650px);
  min-height: 240px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0;
  background: var(--bg-panel);
  touch-action: none;
  cursor: grab;
  isolation: isolate;
}
.hotel-store-stage:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.hotel-store-world { position: absolute; left: 0; top: 0; width: 3200px; height: 2133.333px; transform-origin: 0 0; }
.hotel-store-world[hidden] { display: none; }
.hotel-store-world .hotel-city-image { position: absolute; z-index: 0; inset: 0; width: 3200px; height: 2133.333px; pointer-events: none; }
.hotel-store-floor { position: absolute; z-index: 1; left: 0; top: 0; transform-origin: 0 0; }
.hotel-store-floor .hotel-floor-image { pointer-events: none; user-select: none; -webkit-user-drag: none; }
.hotel-store-floor .hotel-floor-overlay { overflow: visible; }
.hotel-camera-controls { display: flex; flex-direction: column; align-items: center; gap: 12px; border: 0; padding-top: 0; }
.hotel-camera-button { position: relative; box-sizing: border-box; display: grid; place-items: center; flex: 0 0 32px; width: 32px; min-width: 32px; height: 32px; min-height: 32px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: #ffffff; text-shadow: 0 1px 2px rgba(0,0,0,.45); cursor: pointer; }
.hotel-camera-button svg { width: 16px; height: 16px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.hotel-floor-button:hover, .hotel-camera-button:hover { background: rgba(255,255,255,.16); }
.hotel-retry-button { min-width: 44px; min-height: 44px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border-soft); background: var(--bg-card); color: var(--text-main); font: inherit; font-size: 13px; cursor: pointer; }
.hotel-camera-button:focus-visible, .hotel-retry-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.hotel-image-status { position: absolute; z-index: 3; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; background: var(--bg-panel); color: var(--text-main); }
.hotel-image-status[hidden] { display: none; }
.hotel-loading-spinner { width: 28px; height: 28px; border: 3px solid var(--border-soft); border-top-color: var(--accent); border-radius: 50%; animation: hotel-loading 1s linear infinite; }
@keyframes hotel-loading { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hotel-loading-spinner { animation-duration: 2s; } }

/* DD-m116 — one CSS clock, with geometry/timetables in hotel-ambient.js. */
@property --ambient-direction { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --ambient-bob { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --ambient-idle { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --ambient-from { syntax: '<number>'; inherits: true; initial-value: 0; }
.hotel-ambient { --ambient-duration: 48s; position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hotel-ambient-street { z-index: 0; }
.hotel-ambient-clients { z-index: 1; }
.hotel-store-floor > .hotel-floor-overlay { z-index: 2; pointer-events: none; }
.hotel-store-floor { pointer-events: none; }
.hotel-store-floor .hotel-marker { pointer-events: auto; }
.hotel-ambient-sprite {
  transform: var(--ambient-still);
  animation: var(--ambient-path) var(--ambient-duration) linear var(--ambient-delay) infinite;
}
.hotel-ambient-facing {
  transform: scaleX(var(--ambient-facing));
  transform-box: view-box;
  transform-origin: 0px 0px;
  animation: var(--ambient-face) var(--ambient-duration) steps(1, end) var(--ambient-delay) infinite;
}
.hotel-ambient-body { transform: translateY(calc(var(--ambient-bob) * 1px)); }
.hotel-ambient-idle {
  transform-box: view-box;
  transform-origin: 0px 0px;
  transform: rotate(calc(var(--ambient-idle) * 1deg));
}
.hotel-ambient-limb {
  transform-box: view-box;
  transform-origin: 0px 0px;
  transform: rotate(calc(var(--swing) * var(--ambient-direction)));
}
.hotel-ambient-left-leg, .hotel-ambient-right-arm { --swing: 26deg; }
.hotel-ambient-right-leg, .hotel-ambient-left-arm { --swing: -26deg; }
/* Wheel motion follows the path's drive/hold segments, on the same clock. */
.hotel-ambient-hub {
  transform-box: fill-box;
  transform-origin: center;
  transform: rotate(calc(var(--ambient-from) * 1deg));
}
.hotel-ambient-parked .hotel-ambient-hub { animation: none; }
.hotel-ambient-parked { animation: none; }
.hotel-ambient-hit { pointer-events: auto; cursor: default; }
.hotel-ambient-sprite.is-culled { visibility: hidden; }
/* --ambient-to is the jump apex, converted from 14 screen px to sprite px. */
.is-hopping .hotel-ambient-person { transform-box: view-box; transform-origin: 0px 0px; animation: hotel-ambient-hop .6s ease-out; }
@keyframes hotel-ambient-hop {
  0%, 100% { transform: translateY(0) scaleY(1); }
  40% { transform: translateY(calc(-1 * var(--ambient-to, 14px))) scaleY(1); animation-timing-function: ease-in; }
  80% { transform: translateY(0) scaleY(1); }
  87% { transform: translateY(0) scaleY(.9); }
}
.is-running .hotel-ambient-idle { animation: none; transform: rotate(6deg); }
.is-running .hotel-ambient-left-leg, .is-running .hotel-ambient-right-arm { --swing: 42deg; }
.is-running .hotel-ambient-right-leg, .is-running .hotel-ambient-left-arm { --swing: -42deg; }
.is-running .hotel-ambient-limb { animation: hotel-ambient-run .32s linear infinite; }
@keyframes hotel-ambient-run {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(var(--swing)); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(calc(var(--swing) * -1)); }
}
.hotel-ambient-sprite.is-culled, .hotel-ambient-sprite.is-culled * { animation-play-state: paused; }
.hotel-ambient[data-paused="true"] * { animation-play-state: paused; }
.is-honking > use { transform-box: fill-box; transform-origin: center; animation: hotel-car-tap .2s ease-out; }
@keyframes hotel-car-tap { 50% { transform: scale(1.025); } }
@media (prefers-reduced-motion: reduce) {
  .hotel-ambient-sprite { animation: none; transform: var(--ambient-still); }
  .hotel-ambient-limb, .hotel-ambient-body, .hotel-ambient-hub { animation: none; transform: none; }
  .hotel-ambient-facing, .hotel-ambient-idle { animation: none; }
  .is-running .hotel-ambient-idle { transform: none; }
  .is-running .hotel-ambient-limb { animation: none; transform: none; }
  .is-hopping .hotel-ambient-person { animation: none; transform: none; }
  .hotel-ambient-pedestrian .hotel-ambient-hit, .hotel-ambient-client .hotel-ambient-hit { pointer-events: none; }
  .is-honking > use { animation: none; }
}
/* End DD-m116 ambient scene. */

/* Gesture ownership includes hits and labels, even when their pan handler returns. */
.career-rings-scene, .career-rings-scene *, .hotel-floor-stage, .hotel-floor-stage *,
.career-map--rings .map-canvas-wrap {
  touch-action: none;
  overscroll-behavior: none;
}
.map-controls button, .hotel-floor-stage button { touch-action: manipulation; }
.hotel-navigation { max-height: calc(100% - 24px); }

/* Phone landscape can leave less height than a vertical control stack. */
.career-map--rings .map-canvas-wrap { container-type: size; }
@container (max-height: 179px) {
  .career-map--rings .map-controls { flex-direction: row; bottom: 10px; right: 10px; }
}
@container (max-height: 279px) {
  .hotel-navigation .hotel-floor-picker, .hotel-navigation .hotel-camera-controls { gap: 4px; }
}
@container (max-height: 211px) {
  .hotel-navigation-scroll { flex-direction: column; gap: 12px; }
  .hotel-navigation .hotel-floor-picker, .hotel-navigation .hotel-camera-controls {
    flex-direction: row; width: auto; gap: 12px;
  }
}

/* The drone covers the stage; registered world layers receive its last frame. */
.hotel-store-intro { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; background: transparent; }
/* Preserve the live loading label and busy state while the photograph replaces it. */
.hotel-store-stage[data-store-intro-loading] .hotel-image-status { opacity: 0; pointer-events: none; }
.hotel-store-intro img { position: absolute; left: 0; top: 0; width: 1448px; height: auto; max-width: none; transform-origin: 0 0; pointer-events: none; }
.hotel-store-intro .hotel-intro-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; pointer-events: none; }
.hotel-store-world > .hotel-intro-full,
.hotel-store-world > .hotel-intro-step { position: absolute; z-index: 1; left: 0; top: 0; width: 1448px; height: 1086px; max-width: none; transform-origin: 0 0; pointer-events: none; }
.hotel-store-stage[data-store-intro] .hotel-navigation,
.hotel-store-stage[data-store-intro] .hotel-selected-floor,
.hotel-store-stage[data-store-intro] .hotel-marker,
.hotel-store-stage[data-store-intro] .hotel-ambient-hit { pointer-events: none; }
.hotel-ambient[data-time="day"] :is(.hotel-ambient-headlights, .hotel-ambient-taillights, .hotel-ambient-lamp-glow) { display: none; }
