html, body.hub-body { height: 100%; margin: 0; }
body.hub-body { font-family: "DM Sans", system-ui, sans-serif; background: #0b1220; color: #14202b; }

.hub-top {
  position: fixed; top: 0; left: 0; right: 0; height: 58px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 10px; z-index: 5000; background: #0b1220;
  border-bottom: 1px solid #1d2a3d; box-sizing: border-box;
}
.hub-brand-mini {
  color: #e8b84a; font-weight: 800; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.hub-search { display: flex; flex: 1; gap: 6px; min-width: 0; }
.hub-top input {
  flex: 1; min-width: 70px; border: 0; border-radius: 8px;
  padding: 9px 12px; font-size: 14px; background: #f4f7fb;
}
.hub-top button, .hub-top a.hub-btn {
  border: 0; border-radius: 8px; padding: 9px 11px; font-weight: 800;
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.hub-top .ghost, .confirm-bar .ghost { background: #1a2740; color: #e8eef6; }
.hub-top .gold, .confirm-bar .gold, .hub-btn { background: #e8b84a; color: #1b1b1b; }

.confirm-bar {
  position: fixed; top: 58px; left: 0; right: 0; z-index: 4700;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 10px 12px; background: #132033; color: #e8eef6; font-size: 13px; font-weight: 600;
}
body.drawer-open .confirm-bar { right: min(360px, 100%); }
.confirm-bar[hidden] { display: none !important; }
.confirm-bar button { border: 0; border-radius: 8px; padding: 8px 12px; font-weight: 800; cursor: pointer; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; }

#map {
  position: fixed; top: 58px; left: 0; right: 0; bottom: 0; background: #d5dde6;
  transition: right .2s ease, top .2s ease;
}
body.drawer-open #map { right: min(360px, 100%); }
body.has-confirm #map { top: 108px; }

.hub-drawer {
  position: fixed; top: 58px; right: 0; left: auto; bottom: 0; width: min(360px, 100%);
  background: #f4f6f8; z-index: 5000; display: flex; flex-direction: column;
  box-shadow: -18px 0 40px rgba(11,18,32,.18);
}
.hub-drawer-head {
  flex: 0 0 auto; padding: 14px 16px 12px; background: #0b1220; color: #fff;
  box-sizing: border-box;
}
.hub-drawer-head p { margin: 0 0 6px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #e8b84a; font-weight: 800; }
.hub-drawer-head h2 {
  font-family: "Barlow Condensed", sans-serif; font-size: 1.42rem; line-height: 1.15;
  margin: 0 0 6px; overflow: visible;
}
.hub-drawer-head .sub { color: #9fb0c3; font-size: 12px; line-height: 1.4; margin: 0; font-weight: 400; letter-spacing: 0; text-transform: none; }
.hub-drawer-body { padding: 14px 16px 28px; overflow: auto; flex: 1; }
.hub-drawer label { display: block; font-weight: 700; font-size: 12px; margin: 10px 0 6px; color: #3d4b58; }
.hub-drawer input, .hub-drawer select, .hub-drawer textarea, .add-form input, .add-form select, .add-form textarea {
  width: 100%; box-sizing: border-box; border: 1px solid #dbe3ea; border-radius: 8px;
  padding: 10px 11px; font: inherit; background: #fff;
}
.howto { background: #fff; border: 1px solid #e6ebf0; border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.howto ol { margin: 8px 0 0; padding-left: 1.1rem; color: #5b6770; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.chip { border: 1px solid #dbe3ea; background: #fff; border-radius: 999px; padding: 7px 11px; font-weight: 700; font-size: 12px; cursor: pointer; }
.chip.on { background: #0b1220; color: #fff; border-color: #0b1220; }
.hub-go { width: 100%; border: 0; border-radius: 10px; background: #1f6fbf; color: #fff; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 12px; cursor: pointer; }
.craft-note { font-size: 12px; color: #5b6770; margin: 12px 0; }
.spot, .detail-block { background: #fff; border: 1px solid #e6ebf0; border-radius: 12px; padding: 11px 12px; margin-bottom: 8px; }
.spot h3, .detail-block h3 { font-family: "Barlow Condensed", sans-serif; font-size: 1.12rem; margin: 0 0 2px; color: #0e3a66; }
.spot .km { font-size: 10px; font-weight: 800; color: #1f6fbf; letter-spacing: .04em; text-transform: uppercase; }
.spot p { margin: 5px 0 0; font-size: 12px; color: #5b6770; }
.spot button, .detail-block button, .media-card button {
  margin-top: 8px; width: 100%; border: 0; border-radius: 8px; background: #0b1220; color: #fff;
  font-weight: 800; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; padding: 8px; cursor: pointer;
}

.hub-panel {
  position: fixed; z-index: 5100; width: min(320px, calc(100% - 24px));
  max-height: calc(100dvh - 78px); overflow: hidden; background: #fff;
  border-radius: 16px; box-shadow: 0 22px 50px rgba(11,18,32,.28);
  padding: 0; display: flex; flex-direction: column; border: 1px solid #e8edf2;
}
.hub-panel.place { left: 12px; top: 70px; right: auto; }
.panel-top { padding: 12px 14px 10px; border-bottom: 1px solid #eef2f6; flex: 0 0 auto; }
.panel-top .hub-close { float: none; }
.panel-scroll { padding: 0 0 16px; overflow: auto; flex: 1; min-height: 0; }
#locBody { padding: 0 14px 4px; }
.hub-panel h2 { font-family: "Barlow Condensed", sans-serif; font-size: 1.32rem; line-height: 1.12; margin: 4px 0 0; color: #0e3a66; }
.hub-meta { color: #5b6770; font-size: 12.5px; margin: 4px 0; }
.hub-close { float: right; border: 0; background: #f3f7fb; border-radius: 6px; padding: 4px 8px; cursor: pointer; font-weight: 800; font-size: 11px; }
.hub-check { display: block; width: 100%; margin-top: 10px; border: 0; border-radius: 8px; background: #1f6fbf; color: #fff; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 10px; cursor: pointer; }
.hub-warn { background: #f7f4ea; border: 1px solid #ead9a8; border-radius: 8px; padding: 8px 10px; font-size: 12px; margin: 8px 0; }
.facts { display: grid; gap: 8px; margin: 10px 0; }
.fact { background: #f6f8fb; border-radius: 8px; padding: 8px 10px; }
.fact span { display: block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #1f6fbf; margin-bottom: 2px; }
.fact p { margin: 0; font-size: 12.5px; color: #314049; }
.airport-pop { max-width: 260px; font-size: 13px; }
.airport-pop b { display: block; margin-bottom: 4px; }

.legend {
  position: fixed; bottom: 14px; left: 12px; right: auto; z-index: 4000;
  background: rgba(255,255,255,.95); border-radius: 10px; padding: 10px 12px;
  font-size: 11px; box-shadow: 0 6px 20px rgba(0,0,0,.12); width: 200px;
}
.legend p { margin: 8px 0 0; color: #5b6770; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }

.modal {
  position: fixed; inset: 0; z-index: 6000; background: rgba(11,18,32,.55);
  display: grid; place-items: center; padding: 16px;
}
.modal[hidden] { display: none !important; }
.modal-card {
  background: #fff; width: min(560px, 100%); max-height: min(88dvh, 820px);
  overflow: auto; border-radius: 16px; padding: 20px 20px 24px;
}
.kicker { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #1f6fbf; font-weight: 800; margin: 0 0 4px; }
.help-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.help-tabs button { border: 1px solid #dbe3ea; background: #fff; border-radius: 999px; padding: 7px 12px; font-weight: 700; cursor: pointer; }
.help-tabs button.on { background: #0b1220; color: #fff; border-color: #0b1220; }
.help-pane h3 { margin: 0 0 8px; font-size: 1rem; }
.help-pane ul { margin: 0; padding-left: 1.1rem; color: #5b6770; }
.help-pane li { margin-bottom: 6px; }
.add-form { display: grid; gap: 8px; margin-top: 10px; }
.media-card { margin-top: 10px; background: #f6f7f9; border-radius: 10px; padding: 10px; }
.loc-preview { width: 100%; height: 128px; object-fit: cover; display: block; background: #d5dde6; }
.pin-acc {
  border: 1px solid #e6ebf0;
  border-radius: 12px;
  margin: 8px 0;
  overflow: hidden;
  background: #fff;
}
.pin-acc-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #f4f7fb;
  border: 0;
  padding: 12px 14px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0e3a66;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.pin-acc-pm::before { content: "+"; font-size: 1.25rem; line-height: 1; font-weight: 700; }
.pin-acc.open .pin-acc-pm::before { content: "−"; }
.pin-acc-body { display: none; padding: 10px 12px 14px; }
.pin-acc.open .pin-acc-body { display: block; }
.pin-embed {
  aspect-ratio: 9 / 16;
  width: 100%;
  height: auto;
  max-height: min(520px, 70vh);
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  margin: 8px 0 10px;
}
.pin-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.share-status { font-size: 12px; color: #1f6fbf; font-weight: 700; min-height: 1.2em; }
.panel-scroll h3 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #5b6770; margin: 14px 0 6px; }
.spot-actions { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-top: 8px; }
.spot-actions button { margin-top: 0; }
.ghost-spot {
  border: 1px solid #dbe3ea !important; background: #fff !important; color: #0e3a66 !important;
  width: auto; padding: 8px 10px; border-radius: 8px; font-weight: 800; font-size: 11px;
  letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
}
#savePin { width: 100%; margin: 0 0 8px; }
.why-join {
  background: #0b1220; color: #e8eef6; border-radius: 12px; padding: 12px 13px; margin: 0 0 12px;
}
.why-join.in { background: #132033; }
.why-join b { display: block; color: #e8b84a; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.why-join p { margin: 0; font-size: 12.5px; color: #c5d0dc; line-height: 1.4; }
.why-join a { display: inline-block; margin-top: 8px; color: #0b1220; background: #e8b84a; font-weight: 800; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; border-radius: 8px; padding: 8px 10px; }
.saved-head { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #5b6770; margin: 14px 0 8px; }
.saved-chip {
  display: block; width: 100%; text-align: left; margin: 0 0 6px; border: 1px solid #e6ebf0;
  background: #fff; border-radius: 8px; padding: 8px 10px; font-weight: 700; cursor: pointer; color: #0e3a66;
}
.map-floats {
  position: fixed; top: 70px; left: 12px; z-index: 4050;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
body.has-confirm .map-floats { top: 118px; }
.map-float {
  border: 0; border-radius: 999px; padding: 8px 12px; font-weight: 800; font-size: 11px;
  letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
  background: #fff; color: #0b1220; box-shadow: 0 8px 24px rgba(11,18,32,.18);
}
.map-float.gold { background: #e8b84a; }
.ai-msg { border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.ai-msg.user { background: #e8f1fb; }
.ai-msg.bot { background: #f4f6f8; }
.ai-msg.sys { background: #f7f4ea; }

.hub-dock { display: none; }

@media (max-width: 860px) {
  .hub-top {
    height: calc(52px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 8px 0;
  }
  .hub-brand-mini { display: none; }
  .hub-top #btnHelp, .hub-top #btnAi { display: none; }
  .hub-top input { font-size: 16px; padding: 10px 12px; }
  .hub-top button, .hub-top a.hub-btn { padding: 10px 10px; min-height: 42px; }
  #map {
    top: calc(52px + env(safe-area-inset-top));
    bottom: calc(58px + env(safe-area-inset-bottom));
    right: 0; left: 0;
  }
  body.drawer-open #map { right: 0; left: 0; }
  body.has-confirm #map { top: calc(96px + env(safe-area-inset-top)); }
  body.drawer-open .confirm-bar { right: 0; }
  .confirm-bar { top: calc(52px + env(safe-area-inset-top)); }
  .hub-drawer {
    top: auto; left: 0; right: 0; width: 100%;
    height: min(74dvh, 640px);
    bottom: calc(58px + env(safe-area-inset-bottom));
    transform: translateY(110%);
    transition: transform .22s ease;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 40px rgba(11,18,32,.28);
  }
  body.drawer-open .hub-drawer { transform: none; }
  .hub-panel.place {
    left: 0; right: 0; width: 100%;
    top: auto; bottom: calc(58px + env(safe-area-inset-bottom));
    max-height: 78dvh; border-radius: 18px 18px 0 0;
  }
  .legend { display: none; }
  #btnMenu { display: none; }
  .map-floats {
    top: auto;
    left: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom));
  }
  body.has-confirm .map-floats { top: auto; }
  .hub-dock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 5200;
    background: #0b1220;
    border-top: 1px solid #1d2a3d;
    padding: 6px 6px max(8px, env(safe-area-inset-bottom));
  }
  .hub-dock button {
    border: 0; background: transparent; color: #e8eef6;
    font-weight: 800; font-size: 10px; letter-spacing: .06em;
    text-transform: uppercase; padding: 10px 4px; min-height: 44px; cursor: pointer;
  }
  .hub-dock button:focus { color: #e8b84a; }
  .hub-drawer input, .hub-drawer select, .add-form input, .add-form textarea { font-size: 16px; }
}
@media (min-width: 861px) {
  #btnMenu { display: none; }
}

.hub-top {
  height: 64px;
  background: #0d1624;
  border-bottom: 1px solid #1c2a3d;
  padding: 0 14px;
  gap: 10px;
}
.hub-brand-mini {
  display: flex;
  align-items: center;
  max-width: 168px;
}
.hub-brand-mini img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
}
.hub-top input {
  background: #fff;
  border-radius: 8px;
  color: #15202b;
  font-weight: 600;
}
.hub-top .gold { background: #e8b84a; color: #1b1b1b; border-radius: 8px; }
#map { top: 64px; background: #c8dcc0; }
body.has-confirm #map { top: 114px; }
.confirm-bar { top: 64px; background: #0d1624; }
body.drawer-open .confirm-bar,
body.drawer-open #map { right: min(380px, 100%); }

.hub-drawer {
  top: 64px;
  width: min(380px, 100%);
  background: #0d1624;
  color: #e8eef6;
  box-shadow: -18px 0 40px rgba(7, 11, 18, .35);
}
.hub-drawer-head { background: #0d1624; }
.hub-drawer label { color: #c5d4e4; }
.hub-drawer input, .hub-drawer select, .hub-drawer textarea {
  background: #132033;
  border-color: #1c2a3d;
  color: #e8eef6;
}
.howto { background: #132033; border-color: #1c2a3d; color: #c5d4e4; }
.howto ol { color: #9fb0c3; }
.chip { background: #132033; border-color: #1c2a3d; color: #e8eef6; }
.chip.on { background: #e8b84a; color: #1b1b1b; border-color: #e8b84a; }
.hub-go { background: #e8b84a; color: #1b1b1b; }
.craft-note { color: #9fb0c3; }
.spot, .detail-block {
  background: #132033;
  border-color: #1c2a3d;
}
.spot h3, .detail-block h3 { color: #fff; }
.spot .km { color: #e8b84a; }
.spot p { color: #9fb0c3; }
.spot button, .detail-block button, .media-card button {
  background: #e8b84a; color: #1b1b1b;
}

.hub-panel {
  background: #0d1624;
  border: 1px solid #1c2a3d;
  color: #e8eef6;
  border-radius: 16px;
  box-shadow: 0 22px 50px rgba(7, 11, 18, .45);
}
.panel-top { border-bottom-color: #1c2a3d; }
.hub-panel h2 { color: #fff; }
.hub-meta { color: #9fb0c3; }
.kicker { color: #e8b84a; }
.hub-close { background: #132033; color: #e8eef6; }
.hub-check { background: #e8b84a; color: #1b1b1b; }
.hub-warn { background: #2a2416; border-color: #e8b84a; color: #f0e6c8; }
.fact { background: #132033; }
.fact span { color: #e8b84a; }
.fact p { color: #d7e6f7; }
.loc-preview { height: 150px; border-radius: 0; }
.pin-acc { background: #132033; border-color: #1c2a3d; }
.pin-acc-btn { background: #132033; color: #e8eef6; }
.ghost-spot {
  border-color: #1c2a3d !important;
  background: #132033 !important;
  color: #e8eef6 !important;
}
#savePin { background: #e8b84a !important; color: #1b1b1b !important; border: 0 !important; }
.saved-head { color: #9fb0c3; }
.saved-chip { background: #132033; border-color: #1c2a3d; color: #e8eef6; }
.media-card { background: #132033; }
.share-status { color: #e8b84a; }
.add-form input, .add-form select, .add-form textarea {
  background: #132033; border-color: #1c2a3d; color: #e8eef6;
}

.legend {
  background: #0d1624;
  color: #e8eef6;
  border: 1px solid #1c2a3d;
  width: 220px;
  box-shadow: 0 12px 32px rgba(7, 11, 18, .35);
}
.legend b { display: block; margin-bottom: 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #e8b84a; }
.legend div { display: flex; align-items: center; gap: 8px; margin: 5px 0; }
.legend p { color: #9fb0c3; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot.gold { background: #e8b84a; }
.dot.orange { background: #fb923c; }
.dot.red { background: #ef4444; }
.dot.green { background: #22c55e; }
.dot.purple { background: #a855f7; }
.dot.blue { background: #3b82f6; }

.euk-pin { background: none !important; border: 0 !important; }
.euk-pin svg { display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,.45)); }
.euk-air-dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #fb923c;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
  transform: rotate(45deg);
}

.leaflet-bar { border: 0 !important; box-shadow: 0 8px 24px rgba(7,11,18,.3) !important; }
.leaflet-bar a {
  background: #0d1624 !important;
  color: #e8b84a !important;
  border-bottom-color: #1c2a3d !important;
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
}
.leaflet-bar a:hover { background: #132033 !important; }
.leaflet-control-attribution { background: rgba(13,22,36,.75) !important; color: #9fb0c3 !important; }
.leaflet-control-attribution a { color: #e8b84a !important; }
.leaflet-popup-content-wrapper { background: #0d1624; color: #e8eef6; border-radius: 12px; }
.leaflet-popup-tip { background: #0d1624; }
.leaflet-popup-content { color: #e8eef6; margin: 12px 14px; }
.map-float { background: #0d1624; color: #e8eef6; }
.map-float.gold { background: #e8b84a; color: #1b1b1b; }

.modal-card { background: #0d1624; color: #e8eef6; }
.help-pane ul { color: #9fb0c3; }
.help-tabs button { background: #132033; border-color: #1c2a3d; color: #e8eef6; }
.help-tabs button.on { background: #e8b84a; color: #1b1b1b; border-color: #e8b84a; }

@media (max-width: 860px) {
  .hub-top { height: calc(58px + env(safe-area-inset-top)); }
  .hub-brand-mini { display: none; }
  #map { top: calc(58px + env(safe-area-inset-top)); }
  .confirm-bar { top: calc(58px + env(safe-area-inset-top)); }
  .hub-drawer { top: auto; }
}

body.hub2 {
  --bar: 58px;
  --gap: 10px;
  --safe: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --hub-gold: #e8b84a;
  --hub-navy: #0d1624;
  overflow: hidden;
}
body.hub2 #map {
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 1;
}
body.hub2 .leaflet-control-zoom { display: none !important; }
.hub2-bar {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  pointer-events: none;
}
.hub2-bar > * { pointer-events: auto; }
.hub2-bar-top {
  top: var(--safe-top);
  height: calc(var(--bar) + 8px);
  padding-top: 8px;
}
.hub2-bar-bot {
  bottom: var(--safe);
  height: calc(var(--bar) + 8px);
  padding-bottom: 8px;
}
.hub2-icon {
  width: var(--bar);
  height: var(--bar);
  flex-shrink: 0;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(13, 22, 36, 0.18);
  font: 800 11px/1.15 "DM Sans", system-ui, sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--hub-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;
}
.hub2-icon.is-on { background: var(--hub-gold); color: #1b1b1b; }
@keyframes hub2Flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.hub2-flash { animation: hub2Flash 1.15s ease-in-out infinite; }
.hub2-search {
  flex: 1;
  min-width: 0;
  height: var(--bar);
  display: flex;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(13, 22, 36, 0.18);
}
.hub2-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: 600 16px/1.2 "DM Sans", system-ui, sans-serif;
  padding: 0 14px;
  outline: none;
  color: var(--hub-navy);
  text-align: center;
}
.hub2-search button {
  width: 52px;
  border: 0;
  background: transparent;
  font: 800 13px "DM Sans", system-ui, sans-serif;
  color: var(--hub-navy);
  cursor: pointer;
}
.hub2-util {
  flex: 1;
  min-width: 0;
  height: var(--bar);
  display: flex;
  background: var(--hub-gold);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(13, 22, 36, 0.18);
  overflow: hidden;
}
.hub2-util-go {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #1b1b1b;
  font: 800 15px "DM Sans", system-ui, sans-serif;
  cursor: pointer;
}
.hub2-util-plus {
  width: 52px;
  border: 0;
  border-left: 1px solid rgba(27, 27, 27, 0.2);
  background: transparent;
  color: #1b1b1b;
  font: 800 22px/1 "DM Sans", system-ui, sans-serif;
  cursor: pointer;
}
.hub2-util.is-on { background: var(--hub-navy); }
.hub2-util.is-on .hub2-util-go,
.hub2-util.is-on .hub2-util-plus { color: #fff; }
.hub2-stage {
  position: fixed;
  left: 10px;
  right: 10px;
  top: calc(var(--safe-top) + var(--bar) + 16px);
  bottom: calc(var(--safe) + var(--bar) + 16px);
  z-index: 30;
  background: #fff;
  color: #14202b;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(13, 22, 36, 0.18);
  overflow: auto;
  padding: 16px 14px 14px;
  display: none;
  flex-direction: column;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.hub2-stage-stack { overflow: hidden; }
body.hub2-m-hub .hub2-stage[data-panel="hub"],
body.hub2-m-map .hub2-stage[data-panel="map"],
body.hub2-m-find .hub2-stage[data-panel="find"],
body.hub2-m-more .hub2-stage[data-panel="more"],
body.hub2-m-add .hub2-stage[data-panel="add"],
body.hub2-m-util .hub2-stage[data-panel="util"],
body.hub2-m-chat .hub2-stage[data-panel="chat"] {
  display: flex;
}
.hub2-h { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 6px; color: var(--hub-navy); }
.hub2-sub { color: #5b6770; font-size: 14px; margin: 0 0 16px; }
.hub2-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #e6ebf0;
  font-weight: 700;
}
.hub2-row button, .hub2-act, .hub2-ghost {
  border: 0;
  background: #eef2f7;
  border-radius: 999px;
  padding: 8px 14px;
  font: 800 13px "DM Sans", system-ui, sans-serif;
  cursor: pointer;
  color: var(--hub-navy);
}
.hub2-row button.is-on { background: var(--hub-gold); color: #1b1b1b; }
.hub2-act {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  padding: 14px;
  border-radius: 14px;
  margin-top: 8px;
  box-sizing: border-box;
}
.hub2-act-go { background: var(--hub-gold); color: #1b1b1b; }
.hub2-kind {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0e3a66;
  margin: 16px 0 8px;
}
.hub2-bases { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.hub2-bases button {
  height: 44px;
  border: 1px solid #e6ebf0;
  border-radius: 12px;
  background: #fff;
  font: 800 13px "DM Sans", system-ui, sans-serif;
  cursor: pointer;
}
.hub2-bases button.is-on { border-color: var(--hub-gold); background: #fff6df; color: #1b1b1b; }
.hub2-nav-row { display: flex; gap: 8px; margin: 12px 0 16px; }
.hub2-ghost { flex: 1; height: 48px; border-radius: 14px; }
.hub2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 12px; flex-shrink: 0; }
.hub-dash {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 4px 0 8px;
}
.hub-dash-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: #eef2f7;
  color: var(--hub-navy);
  font: 800 14px "DM Sans", system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}
.hub-dash-btn.gold { background: var(--hub-gold); color: #1b1b1b; }
.hub-fly-below { margin-top: 4px; }
.hub2-stage[data-panel="map"] .hub-fly-below {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.chat-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
  flex-shrink: 0;
}
.chat-tabs button {
  flex: 1;
  border: 1px solid #d7e0ea;
  background: #eef2f7;
  border-radius: 999px;
  padding: 10px;
  font: 800 13px "DM Sans", system-ui, sans-serif;
  color: var(--hub-navy);
  cursor: pointer;
}
.chat-tabs button.is-on {
  background: var(--hub-navy);
  color: #fff;
  border-color: var(--hub-navy);
}
.chat-pane {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.chat-pane[hidden] { display: none !important; }
#dmList .spot {
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.hub2-grid button {
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #eef2f7;
  font: 800 13px "DM Sans", system-ui, sans-serif;
  cursor: pointer;
}
.hub2-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; font-weight: 700; margin: 16px 0 12px; }
.hub2-tip { background: #eef2f7; border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.hub2-stage label { display: block; font-weight: 700; font-size: 12px; margin: 10px 0 6px; color: #3d4b58; }
.hub2-stage input, .hub2-stage select, .hub2-stage textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  padding: 10px 11px;
  font: inherit;
  background: #fff;
  color: #14202b;
}
.hub2-stage .howto, .hub2-stage .why-join { margin-bottom: 12px; }
.hub2-stage .why-join a { color: #1b1b1b; }
.scan-status {
  position: fixed;
  top: calc(var(--safe-top) + var(--bar) + 10px);
  left: 10px;
  right: 10px;
  z-index: 42;
  background: #0d1624;
  color: #fff;
  border-radius: 16px;
  padding: 12px 14px 14px;
  box-shadow: 0 8px 24px rgba(13, 22, 36, 0.22);
  box-sizing: border-box;
}
.scan-status[hidden] { display: none !important; }
.scan-status p { margin: 0 0 10px; font-size: 13px; font-weight: 700; }
.scan-track {
  height: 6px;
  border-radius: 99px;
  background: #1a2740;
  overflow: hidden;
}
.scan-bar {
  display: block;
  height: 100%;
  width: 36%;
  border-radius: 99px;
  background: var(--hub-gold);
}
.scan-status.is-work .scan-bar { animation: scanSlide 1.1s ease-in-out infinite; }
.scan-status.is-done .scan-bar { width: 100%; background: #4ade80; animation: none; }
@keyframes scanSlide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(350%); }
}
body.hub2 .confirm-bar {
  top: calc(var(--safe-top) + var(--bar) + 10px);
  left: 10px;
  right: 10px;
  width: auto;
  z-index: 35;
  border-radius: 16px;
  padding: 8px 10px;
  font-size: 12px;
  gap: 6px;
  box-sizing: border-box;
}
body.hub2 .confirm-bar span { flex: 1 1 100%; }
body.hub2 .hub-panel.place {
  left: 10px;
  right: 10px;
  top: calc(var(--safe-top) + var(--bar) + 16px);
  bottom: calc(var(--safe) + var(--bar) + 16px);
  width: auto;
  max-height: none;
  z-index: 32;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.hub2.has-confirm .hub-panel.place {
  top: calc(var(--safe-top) + var(--bar) + 96px);
}
body.hub2 .legend, body.hub2 .hub-dock, body.hub2 .map-floats { display: none !important; }

@media (min-width: 800px) {
  .hub2-bar-top,
  .hub2-bar-bot {
    left: 50%;
    width: min(430px, calc(100vw - 24px));
    transform: translateX(-50%);
    padding-left: 0;
    padding-right: 0;
  }
  .hub2-stage,
  body.hub2 .hub-panel.place {
    left: 50%;
    right: auto;
    width: min(430px, calc(100vw - 24px));
    transform: translateX(-50%);
  }
  body.hub2 .confirm-bar {
    left: 50%;
    right: auto;
    width: min(430px, calc(100vw - 24px));
    transform: translateX(-50%);
  }
  .scan-status {
    left: 50%;
    right: auto;
    width: min(430px, calc(100vw - 24px));
    transform: translateX(-50%);
  }
}

.more-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.more-view[hidden] { display: none !important; }
.more-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
.hub2-back {
  align-self: flex-start;
  border: 0;
  background: #eef2f7;
  border-radius: 999px;
  padding: 6px 12px;
  font: 800 12px "DM Sans", system-ui, sans-serif;
  color: var(--hub-navy);
  cursor: pointer;
  margin-bottom: 8px;
}
.hub-disc-card {
  background: #0b1220;
  border-radius: 14px;
  padding: 8px;
  margin: 0;
  height: 100%;
  max-height: 100%;
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hub-disc-card h3 {
  margin: 6px 0 0;
  font-size: 0.95rem;
  color: #fff;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hub-disc-card .hub-meta { flex-shrink: 0; color: #9fb0c3; }
.hub-disc-frame {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  container-type: size;
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
}
.hub-disc-frame iframe,
.hub-disc-frame video {
  border: 0;
  display: block;
  width: min(100cqw, calc(100cqh * 16 / 9));
  height: min(100cqh, calc(100cqw * 9 / 16));
  max-width: 100%;
  max-height: 100%;
  background: #000;
  object-fit: contain;
}
@supports not (width: 1cqw) {
  .hub-disc-frame iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 100%;
  }
}
.hub-disc-card .hub2-act { margin-top: 6px; padding: 10px; flex-shrink: 0; }
.hub-disc-feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}
.hub-flights-head { flex-shrink: 0; }
.hub-flights-head .hub2-h { margin: 0 0 6px; font-size: 1.15rem; }
.hub-flights-head input { margin: 0 0 8px; }
.hub-clip-add { flex-shrink: 0; font-size: 13px; font-weight: 700; }
.hub-clip-add summary { cursor: pointer; padding: 6px 0; }
.more-view[data-more="flights"] { overflow: hidden; min-height: 0; }
.chat-wall { display: flex; flex-direction: column; gap: 10px; }
.chat-row {
  background: #f4f7fb;
  border-radius: 12px;
  padding: 10px 12px;
}
.chat-row.mine { background: #fff6df; }
.chat-row b { font-size: 13px; color: var(--hub-navy); }
.chat-row span { float: right; font-size: 11px; color: #5b6770; }
.chat-row p { margin: 6px 0 0; font-size: 14px; }
.chat-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-shrink: 0;
}
.chat-form input {
  flex: 1;
  margin: 0;
}
.chat-form .hub-go {
  width: auto;
  margin: 0;
  padding: 10px 14px;
  white-space: nowrap;
}
.chat-lock { padding: 12px 0; }
#aiLog.ai-log {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ai-msg { border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.ai-msg.user { background: #fff6df; align-self: flex-end; }
.ai-msg.bot, .ai-msg.sys { background: #f4f7fb; }
.hub2-stage .help-card { padding: 0; box-shadow: none; max-height: none; overflow: visible; background: transparent; }
.hub2-stage .help-card h2 { font-size: 1.05rem; }
body.hub2 .modal {
  padding: calc(var(--safe-top) + var(--bar) + 16px) 10px calc(var(--safe) + var(--bar) + 16px);
  place-items: stretch;
}
body.hub2 .modal-card {
  width: min(430px, 100%);
  max-height: 100%;
  margin: 0 auto;
}
