/* 星图：聊天设置顶部头像区 ↔ 星图（css/modules/star_map.css）
   类名统一用 smap- 前缀，避免和站内其它模块撞名 */

.kkt-profile-section.smap-host { position: relative; width: 100%; box-sizing: border-box; }

/* 进入 / 退出：只有文字，没有底和边，颜色跟随页面的灰 */
.smap-bar { position: absolute; top: 4px; right: 6px; z-index: 6; display: flex; align-items: center; transition: top .3s, right .3s; }
.smap-open .smap-bar { top: 12px; right: 8px; }
.smap-toggle, .smap-fab {
    position: relative; width: auto; height: auto; margin: 0; padding: 6px 8px;
    border: 0; border-radius: 0; background: none; box-shadow: none; -webkit-appearance: none; appearance: none;
    color: #9a9aa2; font-family: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
    font-style: italic; font-weight: 500; font-size: 12px; line-height: 1; letter-spacing: .1em; cursor: pointer;
    -webkit-tap-highlight-color: transparent; transition: color .3s, opacity .2s;
}
.smap-fab { display: none; }
.smap-open .smap-fab { display: block; }
.smap-fab:active { opacity: .5; }
.smap-toggle:active { opacity: .5; }
.smap-host[data-smap-theme="dark"] .smap-toggle, .smap-host[data-smap-theme="dark"] .smap-fab { color: rgba(255, 255, 255, .62); }
.smap-tl { display: block; animation: smapFade .5s ease both; }
.smap-dot { position: absolute; top: 3px; right: 1px; width: 9px; height: 9px; border-radius: 50%; background: #ff7a9c; border: 1.5px solid #fff; animation: smapBlink 1.6s ease-in-out infinite; }
.smap-dot[hidden] { display: none; }
@keyframes smapBlink { 50% { transform: scale(1.35); opacity: .65; } }

/* 打开星图时隐藏原头像和名字 */
.smap-open > .kkt-profile-avatar, .smap-open > .kkt-profile-name { display: none; }
.smap-host { isolation: isolate; }
.smap-open.smap-host { margin-bottom: 10px; }

/* 舞台 */
.smap-stage { position: relative; width: 100%; height: 380px; color: #fff; user-select: none; -webkit-user-select: none; animation: smapIn .7s cubic-bezier(.2, .8, .2, 1) both; }
.smap-stage[hidden] { display: none; }
@keyframes smapIn { from { opacity: 0; transform: scale(.55); filter: blur(14px); } to { opacity: 1; transform: none; filter: none; } }
.smap-stage.smap-closing { pointer-events: none; animation: smapOut .32s cubic-bezier(.4, 0, .8, .3) both; }
@keyframes smapOut { from { opacity: 1; transform: scale(1); filter: blur(0); } to { opacity: 0; transform: scale(.88); filter: blur(10px); } }

/* 背景：多团错位的高斯柔光叠在一起，中间深、往外慢慢散开，没有任何边界 */
.smap-bg {
    position: absolute; z-index: -1; left: -12%; right: -12%; top: -16%; bottom: -12%; pointer-events: none;
    background:
        radial-gradient(ellipse 58% 52% at 50% 46%, rgba(172,174,226,0.36) 0%, rgba(172,174,226,0.349) 10%, rgba(172,174,226,0.319) 20%, rgba(172,174,226,0.275) 30%, rgba(172,174,226,0.223) 40%, rgba(172,174,226,0.17) 50%, rgba(172,174,226,0.122) 60%, rgba(172,174,226,0.083) 70%, rgba(172,174,226,0.053) 80%, rgba(172,174,226,0.032) 90%, rgba(172,174,226,0.018) 100%),
        radial-gradient(ellipse 46% 42% at 47% 44%, rgba(92,100,174,0.54) 0%, rgba(92,100,174,0.522) 10%, rgba(92,100,174,0.471) 20%, rgba(92,100,174,0.398) 30%, rgba(92,100,174,0.313) 40%, rgba(92,100,174,0.231) 50%, rgba(92,100,174,0.159) 60%, rgba(92,100,174,0.102) 70%, rgba(92,100,174,0.061) 80%, rgba(92,100,174,0.034) 90%, rgba(92,100,174,0.018) 100%),
        radial-gradient(ellipse 34% 32% at 53% 42%, rgba(38,44,110,0.72) 0%, rgba(38,44,110,0.696) 10%, rgba(38,44,110,0.628) 20%, rgba(38,44,110,0.53) 30%, rgba(38,44,110,0.418) 40%, rgba(38,44,110,0.308) 50%, rgba(38,44,110,0.212) 60%, rgba(38,44,110,0.136) 70%, rgba(38,44,110,0.082) 80%, rgba(38,44,110,0.046) 90%, rgba(38,44,110,0.024) 100%),
        radial-gradient(ellipse 28% 26% at 43% 50%, rgba(32,38,102,0.58) 0%, rgba(32,38,102,0.561) 10%, rgba(32,38,102,0.506) 20%, rgba(32,38,102,0.427) 30%, rgba(32,38,102,0.337) 40%, rgba(32,38,102,0.248) 50%, rgba(32,38,102,0.171) 60%, rgba(32,38,102,0.11) 70%, rgba(32,38,102,0.066) 80%, rgba(32,38,102,0.037) 90%, rgba(32,38,102,0.019) 100%),
        radial-gradient(ellipse 22% 22% at 57% 52%, rgba(48,54,122,0.36) 0%, rgba(48,54,122,0.348) 10%, rgba(48,54,122,0.314) 20%, rgba(48,54,122,0.265) 30%, rgba(48,54,122,0.209) 40%, rgba(48,54,122,0.154) 50%, rgba(48,54,122,0.106) 60%, rgba(48,54,122,0.068) 70%, rgba(48,54,122,0.041) 80%, rgba(48,54,122,0.023) 90%, rgba(48,54,122,0.012) 100%),
        radial-gradient(ellipse 22% 17% at 61% 14%, rgba(130,118,205,0.24) 0%, rgba(130,118,205,0.232) 10%, rgba(130,118,205,0.209) 20%, rgba(130,118,205,0.177) 30%, rgba(130,118,205,0.139) 40%, rgba(130,118,205,0.103) 50%, rgba(130,118,205,0.071) 60%, rgba(130,118,205,0.045) 70%, rgba(130,118,205,0.027) 80%, rgba(130,118,205,0.015) 90%, rgba(130,118,205,0.008) 100%);
    filter: blur(12px); animation: smapBreath 14s ease-in-out infinite alternate;
}
.smap-host[data-smap-theme="dark"] .smap-bg {
    background:
        radial-gradient(ellipse 58% 52% at 50% 46%, rgba(80,88,160,0.34) 0%, rgba(80,88,160,0.33) 10%, rgba(80,88,160,0.302) 20%, rgba(80,88,160,0.26) 30%, rgba(80,88,160,0.21) 40%, rgba(80,88,160,0.161) 50%, rgba(80,88,160,0.115) 60%, rgba(80,88,160,0.078) 70%, rgba(80,88,160,0.05) 80%, rgba(80,88,160,0.03) 90%, rgba(80,88,160,0.017) 100%),
        radial-gradient(ellipse 46% 42% at 47% 44%, rgba(62,70,148,0.5) 0%, rgba(62,70,148,0.483) 10%, rgba(62,70,148,0.436) 20%, rgba(62,70,148,0.368) 30%, rgba(62,70,148,0.29) 40%, rgba(62,70,148,0.214) 50%, rgba(62,70,148,0.147) 60%, rgba(62,70,148,0.095) 70%, rgba(62,70,148,0.057) 80%, rgba(62,70,148,0.032) 90%, rgba(62,70,148,0.017) 100%),
        radial-gradient(ellipse 34% 32% at 53% 42%, rgba(34,40,108,0.7) 0%, rgba(34,40,108,0.677) 10%, rgba(34,40,108,0.611) 20%, rgba(34,40,108,0.515) 30%, rgba(34,40,108,0.406) 40%, rgba(34,40,108,0.299) 50%, rgba(34,40,108,0.206) 60%, rgba(34,40,108,0.132) 70%, rgba(34,40,108,0.079) 80%, rgba(34,40,108,0.045) 90%, rgba(34,40,108,0.023) 100%),
        radial-gradient(ellipse 28% 26% at 43% 50%, rgba(28,34,100,0.56) 0%, rgba(28,34,100,0.541) 10%, rgba(28,34,100,0.489) 20%, rgba(28,34,100,0.412) 30%, rgba(28,34,100,0.325) 40%, rgba(28,34,100,0.239) 50%, rgba(28,34,100,0.165) 60%, rgba(28,34,100,0.106) 70%, rgba(28,34,100,0.064) 80%, rgba(28,34,100,0.036) 90%, rgba(28,34,100,0.019) 100%),
        radial-gradient(ellipse 22% 22% at 57% 52%, rgba(44,50,120,0.34) 0%, rgba(44,50,120,0.329) 10%, rgba(44,50,120,0.297) 20%, rgba(44,50,120,0.25) 30%, rgba(44,50,120,0.197) 40%, rgba(44,50,120,0.145) 50%, rgba(44,50,120,0.1) 60%, rgba(44,50,120,0.064) 70%, rgba(44,50,120,0.039) 80%, rgba(44,50,120,0.022) 90%, rgba(44,50,120,0.011) 100%),
        radial-gradient(ellipse 22% 17% at 61% 14%, rgba(110,100,190,0.2) 0%, rgba(110,100,190,0.193) 10%, rgba(110,100,190,0.175) 20%, rgba(110,100,190,0.147) 30%, rgba(110,100,190,0.116) 40%, rgba(110,100,190,0.085) 50%, rgba(110,100,190,0.059) 60%, rgba(110,100,190,0.038) 70%, rgba(110,100,190,0.023) 80%, rgba(110,100,190,0.013) 90%, rgba(110,100,190,0.007) 100%);
}
@keyframes smapBreath { from { transform: scale(1); } to { transform: scale(1.04); } }
.smap-canvas {
    position: absolute; left: 0; top: 0; width: 100%; height: 100%; touch-action: none; cursor: grab;
    -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 40%, #000 50%, rgba(0, 0, 0, .5) 78%, transparent 100%);
            mask-image: radial-gradient(ellipse 60% 62% at 50% 40%, #000 50%, rgba(0, 0, 0, .5) 78%, transparent 100%);
}
.smap-canvas:active { cursor: grabbing; }
.smap-core { display: none; }

/* ===== 柔和浅色玻璃（低饱和）：所有浮层共用 ===== */
.smap-stage, .smap-bar {
    --g-bg: rgba(250, 249, 252, .9);
    --g-line: rgba(140, 144, 178, .22);
    --g-shadow: 0 10px 28px rgba(80, 84, 130, .16);
    --g-text: #4f526b;
    --g-sub: #8a8ea6;
    --g-soft: rgba(124, 130, 176, .1);
    --g-soft2: rgba(124, 130, 176, .18);
    --g-pri: #8a90b6;
    --g-danger: #b3858f;
    --g-input: rgba(255, 255, 255, .75);
    --g-scheme: light;
}

/* Starlight 菜单：挂在右上角按钮正下方 */
.smap-bar .smap-menu {
    position: absolute; right: 0; top: calc(100% + 2px); z-index: 7; min-width: 150px; padding: 5px; box-sizing: border-box;
    border-radius: 14px; background: var(--g-bg); border: 1px solid var(--g-line); box-shadow: var(--g-shadow);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: smapUp .2s ease both;
}
.smap-bar .smap-menu[hidden] { display: none; }
.smap-bar .smap-menu button {
    display: flex; align-items: center; width: 100%; margin: 0; padding: 8px 10px; border: 0; border-radius: 10px;
    background: none; color: var(--g-text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.smap-bar .smap-menu button:active { background: var(--g-soft); }
.smap-bar .smap-menu button svg { flex: none; width: 16px; height: 16px; margin-right: 11px; fill: none; stroke: #9a9ec4; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* 顶部提示条（邀请 / 连线） */
.smap-banner {
    position: absolute; top: 46px; left: 50%; transform: translateX(-50%); z-index: 4;
    max-width: 92%; white-space: nowrap; box-sizing: border-box; display: flex; align-items: center; font-size: 11.5px; color: var(--g-text);
    padding: 4px 5px 4px 12px; border-radius: 99px; background: var(--g-bg); border: 1px solid var(--g-line);
    box-shadow: 0 3px 12px rgba(80, 84, 130, .14); animation: smapFade .3s ease both;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.smap-banner[hidden] { display: none; }
.smap-pulse { width: 6px; height: 6px; border-radius: 50%; background: #9a9ec4; margin-right: 7px; box-shadow: 0 0 8px #9a9ec4; animation: smapBlink 1.4s ease-in-out infinite; }
.smap-stage .smap-mini { border: 0; background: var(--g-soft2); color: var(--g-text); border-radius: 99px; font: inherit; font-size: 11px; padding: 2px 10px; margin: 0 0 0 6px; cursor: pointer; }
@keyframes smapFade { from { opacity: 0; } to { opacity: 1; } }

/* 底部信息区 */
.smap-info { color: #565a78; position: absolute; left: 8px; right: 8px; bottom: 26px; text-align: center; pointer-events: none; }
.smap-days-t { font-size: 12px; letter-spacing: .12em; opacity: .8; }
.smap-days-n { line-height: 1.15; margin: 2px 0 8px; }
.smap-days-n b { font-size: 36px; font-weight: 300; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.smap-hms { font-style: normal; font-size: 11px; margin-left: 9px; opacity: .6; letter-spacing: .02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.smap-hms i { font-style: normal; }
.smap-days-n span { font-size: 13px; margin-left: 4px; opacity: .8; }
.smap-chips { display: flex; flex-wrap: nowrap; justify-content: center; gap: 5px; }
.smap-chips span { font-size: 10.5px; padding: 3px 8px; flex: 0 1 auto; min-width: 0; border-radius: 99px; background: rgba(255, 255, 255, .62); border: 1px solid rgba(140, 144, 178, .22); white-space: nowrap; }
.smap-chips b { font-weight: 600; font-variant-numeric: tabular-nums; }

.smap-card-open .smap-info, .smap-sheet-open .smap-info { opacity: 0; pointer-events: none; }

/* 星星卡片：浅色柔雾，居中 */
.smap-stage .smap-card {
    position: absolute; left: 0; right: 0; margin: 0 auto; bottom: 14px; z-index: 5;
    width: min(290px, calc(100% - 28px)); box-sizing: border-box; padding: 16px 18px 14px; color: var(--g-text);
    background: var(--g-bg); box-shadow: var(--g-shadow); border: 1px solid var(--g-line); border-radius: 20px;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); animation: smapUp .25s ease both;
}
.smap-stage .smap-card[hidden], .smap-stage .smap-sheet[hidden] { display: none; }
@keyframes smapUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.smap-stage .smap-x { position: absolute; top: 9px; right: 11px; width: 24px; height: 24px; padding: 0; margin: 0; border: 0; border-radius: 50%; background: var(--g-soft); color: var(--g-sub); font-size: 11px; cursor: pointer; }
.smap-card-t { font-size: 16px; font-weight: 600; padding-right: 28px; line-height: 1.35; }
.smap-card-t::before { content: '✦'; color: #a3a7cc; font-size: 12px; margin-right: 6px; vertical-align: 1px; }
.smap-card-s { font-size: 11.5px; color: var(--g-sub); margin-top: 4px; }
.smap-card-n { font-size: 13px; line-height: 1.65; margin-top: 11px; padding: 9px 12px; border-radius: 12px; background: var(--g-soft); word-break: break-word; }
.smap-card-w { font-size: 10.5px; color: var(--g-sub); opacity: .85; margin-top: 10px; }
.smap-card-a { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* 按钮：柔和的灰紫，不再黑底 */
.smap-stage .smap-btn {
    margin: 0; border: 0; background: var(--g-soft); color: var(--g-text);
    border-radius: 99px; padding: 6px 15px; font: inherit; font-size: 12.5px; line-height: 1.4; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.smap-stage .smap-btn:active { transform: scale(.95); }
.smap-stage .smap-btn.pri { background: var(--g-pri); color: #fff; font-weight: 600; }
.smap-stage .smap-btn.danger { color: var(--g-danger); }

/* 小抽屉（点亮表单 / 星座 / 相遇日） */
.smap-stage .smap-sheet {
    position: absolute; left: 0; right: 0; margin: 0 auto; bottom: 14px; z-index: 6;
    width: min(320px, calc(100% - 24px)); max-height: 92%; overflow-y: auto; box-sizing: border-box; color: var(--g-text);
    padding: 18px 18px 16px; border-radius: 22px;
    background: var(--g-bg); border: 1px solid var(--g-line); box-shadow: var(--g-shadow);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); animation: smapUp .28s ease both;
}
.smap-sheet-t { font-size: 14.5px; font-weight: 600; text-align: center; margin-bottom: 14px; }
.smap-stage .smap-sheet input, .smap-stage .smap-sheet textarea, .smap-stage .smap-sheet select {
    display: block; width: 100%; box-sizing: border-box; margin: 0 0 10px; padding: 9px 12px; font: inherit; font-size: 13.5px; line-height: 1.4;
    color: var(--g-text); background: var(--g-input); border: 1px solid var(--g-line); border-radius: 12px;
    outline: none; resize: none; color-scheme: var(--g-scheme); -webkit-appearance: none; appearance: none; min-height: 38px;
}
@media (pointer: coarse) { .smap-stage .smap-sheet input[type="text"], .smap-stage .smap-sheet input:not([type]), .smap-stage .smap-sheet textarea { font-size: 16px; } } /* 防 iOS 聚焦自动放大 */
.smap-stage .smap-sheet input::placeholder, .smap-stage .smap-sheet textarea::placeholder { color: #a9acbf; }
.smap-stage .smap-sheet input:focus, .smap-stage .smap-sheet textarea:focus, .smap-stage .smap-sheet select:focus { border-color: #9a9ec4; }
.smap-stage .smap-sheet select { padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, #9a9ec4 50%), linear-gradient(135deg, #9a9ec4 50%, transparent 50%); background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.smap-stage .smap-sheet input[type="checkbox"] { display: inline-block; width: 16px; height: 16px; min-height: 0; margin: 0 8px 0 0; padding: 0; vertical-align: middle; accent-color: var(--g-pri); -webkit-appearance: auto; appearance: auto; }
.smap-r2 { display: flex; gap: 8px; }
.smap-r2 > input { flex: 1.25; min-width: 0; }
.smap-r2 > select { flex: 1; min-width: 0; }
.smap-stage .smap-sheet input[type="date"], .smap-stage .smap-sheet select { font-size: 13.5px; white-space: nowrap; padding-left: 10px; padding-right: 10px; text-align: left; }
.smap-stage .smap-sheet input[type="date"]::-webkit-date-and-time-value { text-align: left; min-height: 0; }
.smap-stage .smap-sheet select { padding-right: 26px; }
.smap-sheet-hint { font-size: 11px; line-height: 1.55; color: var(--g-sub); text-align: center; margin: 0 0 12px; }
.smap-sheet-a { display: flex; justify-content: center; gap: 10px; margin-top: 4px; }
.smap-sheet-a .smap-btn { min-width: 84px; padding: 8px 18px; font-size: 13px; }
.smap-rows { max-height: 150px; overflow-y: auto; margin-bottom: 10px; }
.smap-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; margin-bottom: 7px; border-radius: 12px; background: var(--g-soft); cursor: pointer; }
.smap-rows.tall { max-height: 250px; }
.smap-tag { flex: none; font-size: 10px; color: var(--g-sub); background: var(--g-soft2); padding: 1px 8px; border-radius: 99px; white-space: nowrap; }
.smap-row b { font-size: 13.5px; font-weight: 600; display: block; }
.smap-row small { display: block; font-size: 11px; color: var(--g-sub); margin-top: 2px; }
.smap-stage .smap-x2 { flex: none; border: 0; background: var(--g-soft); color: var(--g-danger); font: inherit; font-size: 10.5px; padding: 3px 9px; margin: 0; border-radius: 99px; cursor: pointer; white-space: nowrap; }
.smap-empty { font-size: 12px; color: var(--g-sub); text-align: center; padding: 12px 6px; line-height: 1.7; }
.smap-switch { display: flex; align-items: center; justify-content: center; font-size: 10.5px; color: var(--g-sub); margin: 12px 0 0; cursor: pointer; }
.smap-stage .smap-sheet .smap-switch input[type="checkbox"] { width: 13px; height: 13px; margin: 0 6px 0 0; }

.smap-host[data-smap-theme="dark"] .smap-info { color: #fff; }
.smap-host[data-smap-theme="dark"] .smap-days-n b { text-shadow: 0 0 16px rgba(255, 255, 255, .55); }
.smap-host[data-smap-theme="dark"] .smap-chips span { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .16); }

/* 夜间：浮层换成深灰蓝霧面 */
.smap-host[data-smap-theme="dark"] .smap-stage, .smap-host[data-smap-theme="dark"] .smap-bar {
    --g-bg: rgba(44, 46, 68, .92); --g-line: rgba(255, 255, 255, .12); --g-shadow: 0 10px 28px rgba(0, 0, 0, .4);
    --g-text: #dcdeef; --g-sub: #9b9eb6; --g-soft: rgba(255, 255, 255, .07); --g-soft2: rgba(255, 255, 255, .14);
    --g-pri: #7f86b8; --g-danger: #d79aa6; --g-input: rgba(255, 255, 255, .06); --g-scheme: dark;
}

@media (max-width: 360px) { .smap-chips { gap: 4px; } .smap-chips span { font-size: 9.5px; padding: 3px 6px; } }

@media (prefers-reduced-motion: reduce) { .smap-stage, .smap-card, .smap-sheet, .smap-banner, .smap-bg, .smap-menu { animation: none; } }

/* 星空色彩微調：日間保持柔和的深靛紫霧感；夜間加深成近黑藍紫 */
.smap-host[data-smap-theme="light"] .smap-bg {
    background:
        radial-gradient(ellipse 58% 54% at 49% 47%, rgba(22, 24, 64, .72) 0%, rgba(31, 34, 83, .63) 28%, rgba(52, 55, 112, .43) 52%, rgba(89, 87, 145, .22) 74%, rgba(113, 108, 160, .07) 91%, transparent 100%),
        radial-gradient(ellipse 32% 27% at 60% 17%, rgba(177, 168, 225, .3) 0%, rgba(142, 137, 202, .18) 48%, transparent 100%),
        radial-gradient(ellipse 42% 34% at 42% 70%, rgba(58, 65, 137, .32) 0%, rgba(86, 87, 153, .16) 62%, transparent 100%);
}
.smap-host[data-smap-theme="dark"] .smap-bg {
    background:
        radial-gradient(ellipse 58% 54% at 49% 47%, rgba(3, 5, 19, .96) 0%, rgba(5, 9, 31, .91) 30%, rgba(10, 16, 48, .76) 55%, rgba(20, 26, 67, .43) 78%, rgba(26, 30, 70, .12) 94%, transparent 100%),
        radial-gradient(ellipse 34% 28% at 60% 17%, rgba(88, 82, 160, .26) 0%, rgba(53, 56, 119, .14) 55%, transparent 100%),
        radial-gradient(ellipse 44% 36% at 42% 70%, rgba(17, 28, 76, .48) 0%, rgba(22, 31, 76, .2) 65%, transparent 100%);
}

/* Starlight 天數設定開關 */
.smap-bar .smap-menu button.smap-menu-setting {
    justify-content: space-between;
    gap: 14px;
}
.smap-menu-switch {
    position: relative;
    display: inline-block;
    flex: none;
    width: 30px;
    height: 17px;
    border-radius: 99px;
    background: rgba(124, 130, 176, .28);
    transition: background .2s ease;
}
.smap-menu-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(30, 32, 60, .2);
    transition: transform .2s ease;
}
.smap-menu-setting.is-on .smap-menu-switch { background: #858dbb; }
.smap-menu-setting.is-on .smap-menu-switch::after { transform: translateX(13px); }
.smap-host[data-smap-theme="dark"] .smap-menu-setting.is-on .smap-menu-switch { background: #969fdb; }
