/* ===== 設定與隱私：分組卡片（可愛簡約） ===== */
.stg{padding:4px 14px 28px;display:flex;flex-direction:column;gap:12px}
.stg-card{background:var(--cu-card);border-radius:var(--cu-r);box-shadow:var(--cu-sh);padding:6px 6px 8px;border:0}
.stg-h{display:flex;align-items:center;gap:8px;margin:0;padding:10px 12px 6px;font-size:15px;font-weight:900;color:var(--cu-ink);letter-spacing:.5px}
.stg-h>span:first-child{width:30px;height:30px;border-radius:11px;background:var(--cu-soft);display:grid;place-items:center;font-size:16px;flex:none}
.stg-h small{font-weight:600;color:var(--cu-mute);font-size:12.5px;margin-left:2px}
.stg-h em{margin-left:auto;font-style:normal;color:var(--cu-mute);font-size:20px;transition:transform .2s}
/* 帳號 */
.stg-me{display:flex;align-items:center;gap:12px;padding:6px 12px 10px}
.stg-me .hex.sm{width:52px!important;height:52px!important;font-size:26px!important;flex:none}
.stg-me>div{flex:1;min-width:0}.stg-me>div b{display:block;font-size:17px;font-weight:900;color:var(--cu-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stg-me>div small{display:block;font-size:12.5px;color:var(--cu-mute);margin-top:2px}
.stg-kv{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 12px;border-top:1px solid var(--cu-soft);font-size:14px}
.stg-kv span{color:var(--cu-mute);flex:none}.stg-kv b{font-weight:700;color:var(--cu-ink);text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;align-items:center;gap:6px;justify-content:flex-end}
.stg-kv .vf{font-size:11.5px}
.stg-acts{display:flex;flex-wrap:wrap;gap:8px;padding:10px 12px 6px}
.stg .chip.sm{min-height:30px!important;padding:0 10px!important;font-size:12.5px!important;box-shadow:none!important;background:var(--cu-soft)!important}
/* 列與開關 */
.stg-row,.stg-tog{display:flex;align-items:center;gap:12px;width:100%;padding:11px 12px;border:0;background:transparent;text-align:left;color:var(--cu-ink);text-decoration:none;font:inherit;border-top:1px solid var(--cu-soft)}
.stg-card .stg-row:first-child,.stg-h+.stg-row,.stg-h+.stg-tog,.stg-links .stg-row:first-child,#ntslot+.stg-sub,.stg-sub+.stg-row{border-top:0}
.stg-ic{width:34px;height:34px;border-radius:12px;background:var(--cu-soft);display:grid;place-items:center;font-size:16px;flex:none}
.stg-mid{flex:1;min-width:0;display:block}
.stg-mid b{display:block;font-size:15px;font-weight:800;line-height:1.25}
.stg-mid small{display:block;font-size:12.5px;color:var(--cu-mute);margin-top:2px;white-space:normal;line-height:1.35}
.stg-mid .vf{font-size:11px;vertical-align:middle;margin-left:4px}
.stg-row em{font-style:normal;color:var(--cu-mute);font-size:20px}
.stg-row .stg-meta{font-size:12px}
.stg-tog .sw{flex:none}
.stg-tog:active,.stg-row:active{background:var(--cu-soft)}
.stg-sub{display:flex;align-items:baseline;gap:8px;padding:12px 12px 6px}
.stg-sub b{font-size:13.5px;font-weight:800;color:var(--cu-mute);letter-spacing:.5px}
.stg-sub small{font-size:12px;color:var(--cu-mute);opacity:.85}
.stg-chips{padding:0 12px 10px!important;gap:8px}
.stg-empty{display:block;padding:4px 12px 12px;font-size:13px;color:var(--cu-mute);white-space:normal;line-height:1.5}
/* 介面顏色 */
.stg-ap .nt-set{margin:4px 6px 4px!important;border:0!important;background:var(--cu-soft)!important}
.stg-thms{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 6px;padding:2px 10px 8px}
.stg-thm{border:0;background:transparent;padding:4px 0 2px;display:flex;flex-direction:column;align-items:center;gap:5px;border-radius:14px;color:var(--cu-ink)}
.stg-thm i{width:46px;height:46px;border-radius:50%;background:linear-gradient(135deg,var(--t1) 0 50%,var(--t2) 50% 100%);box-shadow:inset 0 0 0 3px var(--tbg),0 3px 8px rgba(110,80,50,.15);position:relative;transition:transform .15s}
.stg-thm b{font-size:11.5px;font-weight:700;color:var(--cu-mute);white-space:nowrap}
.stg-thm.on i{box-shadow:inset 0 0 0 3px #fff,0 0 0 2.5px var(--t1),0 4px 10px rgba(110,80,50,.2);transform:scale(1.06)}
.stg-thm.on i::after{content:"✓";position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-weight:900;font-size:20px;text-shadow:0 1px 3px rgba(0,0,0,.35)}
.stg-thm.on b{color:var(--cu-ink)}
.stg-thm:active i{transform:scale(.94)}
/* 定位面板（沿用舊的 lvbox） */
.stg-loc .lvbox{margin:4px 6px 4px!important;background:var(--cu-soft)!important;border:0!important;border-radius:16px!important;padding:10px 12px!important}
.stg-loc .kv{font-size:13.5px}
/* 紀錄（可收合） */
.stg-fold summary{list-style:none;cursor:pointer}.stg-fold summary::-webkit-details-marker{display:none}
.stg-fold[open] summary em{transform:rotate(90deg)}
.stg-fold .rs{font-size:12px}
/* 登出／刪除 */
.stg-danger{display:flex;gap:10px;justify-content:center;padding:6px 0 0}
.stg-danger .chip{min-height:42px!important;padding:0 18px!important}
.stg-danger .stg-del{color:#c93a4a!important;background:#fff0f1!important}
.stg-ver{display:block;text-align:center;color:var(--cu-mute);font-size:11.5px;opacity:.7;padding-top:4px}
/* 夜晚 */
html.night .stg-kv,html.night .stg-row,html.night .stg-tog{border-top-color:#2e2650}
html.night .stg-thm i{box-shadow:inset 0 0 0 3px #2b2346,0 3px 8px rgba(0,0,0,.3)}
html.night .stg-thm.on i{box-shadow:inset 0 0 0 3px #221b3a,0 0 0 2.5px var(--t1),0 4px 10px rgba(0,0,0,.35)}
html.night .stg-danger .stg-del{background:#3a2430!important;color:#ff9aa6!important}
/* 位置精確度（大概／精準） */
.stg-seg{padding:10px 6px 6px}
.stg-segh{display:flex;flex-direction:column;gap:2px;margin-bottom:8px}.stg-segh b{font-size:14.5px;font-weight:800}.stg-segh small{font-size:12px;color:var(--cu-mute,#8a7466)}
.stg-segs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:4px;border-radius:16px;background:var(--cu-soft,#fff1e8)}
.stg-segs button{border:0;border-radius:12px;padding:9px 6px;background:transparent;color:var(--cu-ink,#3d2a20);font-size:14px;font-weight:800;display:flex;flex-direction:column;align-items:center;gap:2px}
.stg-segs button small{font-size:11px;font-weight:600;color:var(--cu-mute,#8a7466)}
.stg-segs button.on{background:#fff;box-shadow:0 3px 10px rgba(110,80,50,.12);color:var(--cu-brand,#c4513f)}
html.night .stg-segs{background:#2b2346}html.night .stg-segs button{color:#f3ecff}html.night .stg-segs button.on{background:#3a2f5c;color:#ffb3a7}
/* 新版47：編輯個人檔案整理成幾張卡片 */
.eds{margin:0 14px 12px;padding:14px 14px 12px;border-radius:18px;background:var(--surf);border:1px solid var(--line);box-shadow:0 2px 10px var(--sh)}
.eds h4{margin:0 0 6px;font-size:15.5px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.eds.pf{padding-top:14px}.eds.pf>label:first-of-type{margin-top:4px}
.eds .album{padding:6px 0 0!important;margin:0!important}
.edh{display:block;color:var(--mute);font-size:12px;margin:2px 0 4px}
.edh2{color:var(--mute);font-size:11.5px;font-weight:400;margin-left:4px}
.eds .qal{padding:4px 0 2px!important;margin:0!important}
.qalb{display:flex!important;align-items:center;justify-content:space-between}
.edmore{padding:0}
.edmore summary{list-style:none;cursor:pointer;padding:14px;font-weight:800;font-size:15px;display:flex;flex-direction:column;gap:2px}
.edmore summary::-webkit-details-marker{display:none}
.edmore summary::after{content:"▾";position:absolute;right:28px;margin-top:4px;color:var(--mute)}
.edmore[open] summary::after{content:"▴"}
.edmore summary small{font-weight:400;font-size:12px;color:var(--mute)}
.edmore>.pf{padding:0 14px 14px}
.pfc .pfm{display:flex;flex-wrap:wrap;gap:6px}
