/* v301 地图样式按钮 + 面板（v3 白色风格；不使用红色） */
.map-style-btn { position: absolute; right: 12px; top: calc(50% + 32px); z-index: 500; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid var(--hairline, rgba(0,0,0,.08)); box-shadow: 0 2px 8px rgba(0,0,0,.12);
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--v3-ink, #0A0A0A); padding: 0; }
.map-style-btn:active { transform: scale(.94); }
#view-map.sheet-open .map-style-btn { opacity: 0; pointer-events: none; }
.ms-sheet { position: fixed; inset: 0; z-index: 3000; }
.ms-sheet.hidden { display: none; }
.ms-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.32); }
.ms-panel { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 520px; background: #fff; color: #0A0A0A;
  border-radius: 20px 20px 0 0; padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 24px rgba(0,0,0,.12); }
.ms-grab { width: 36px; height: 4px; border-radius: 2px; background: #E5E5E5; margin: 0 auto 14px; }
.ms-panel h3 { font-size: 17px; font-weight: 600; margin: 0 0 14px; }
.ms-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 10px; }
.ms-opt { min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 0; border: 0; background: none; font-family: inherit; cursor: pointer; text-align: left; color: inherit; }
.ms-prev { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.ms-opt.on .ms-prev { border-color: #0A0A0A; }
.ms-prev i { position: absolute; left: 10%; top: 12%; width: 42%; height: 38%; border-radius: 6px; }
.ms-prev b { position: absolute; right: -10%; bottom: -12%; width: 62%; height: 46%; border-radius: 50%; }
.ms-prev em { position: absolute; left: -10%; top: 62%; width: 130%; height: 7%; transform: rotate(-18deg); }
.ms-opt.locked .ms-prev::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.28); }
.ms-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; white-space: nowrap; color: #737373; }
.ms-opt.locked .ms-tag { color: #0A0A0A; }
.ms-member { text-align: center; }
.ms-member p { font-size: 14px; line-height: 20px; color: #525252; margin: 0 0 20px; }
.ms-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: #0A0A0A; color: #fff; font-size: 12px; font-weight: 600; margin: 4px 0 12px; }
.ms-ok { width: 100%; height: 48px; border-radius: 999px; border: 0; background: #0A0A0A; color: #fff; font-size: 16px; font-weight: 600; font-family: inherit; cursor: pointer; }
/* 深色底图上，顶部渐隐改成深色 */
html[data-map-style=dark] #view-map .map-topfade { background: linear-gradient(rgba(20,21,24,.85), rgba(20,21,24,0)) !important; }
