/* 一期一会 v35 — shared visual system. Functional layouts remain in style.css. */
:root {
  --primary: #426b55; --primary-rgb: 66,107,85; --primary-dark: #2d503d;
  --primary-bg: #e8efe7; --bg: #f7f8f5; --surface: #fff; --surface-strong: #fff;
  --fg: #28372e; --muted: #6b766d; --ink: #243c30; --ink-soft: #365443;
  --hover: #edf0e9; --line: #e1e6dd; --sel-bg: #dce9db; --glass: rgba(255,255,255,.95);
  --shadow-sm: 0 2px 8px #263b2d05; --shadow-md: 0 10px 30px #263b2d0a;
  --shadow-lg: 0 20px 64px #20372c24; --side-w: 224px;
  --r-s: 10px; --r-m: 16px; --r-l: 24px;
  color-scheme: light;
}
body { background: var(--bg); user-select: auto; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #71957b; outline-offset: 4px; }
button, .btn, input, select { font-size: 14px; }
.btn { border-radius: 10px; min-height: 42px; box-shadow: none; font-weight: 600; }
.btn:hover { box-shadow: none; border-color: #b5c7b7; }
.btn.primary { box-shadow: none; }
.btn.primary:hover { background: var(--primary-dark); box-shadow: none; }
.btn.ghost { background: #fff; }
.btn.small { min-height: 36px; }
.btn:disabled { cursor: not-allowed; }
input, select { background: #fafbf8; border-radius: 9px; min-height: 46px; }
input::placeholder { opacity: 1; color: #808a81; }
input:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px #426b5515; }
.icon-btn { border-radius: 10px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1200; padding: 12px 20px; background: #fff; border: 2px solid var(--primary); border-radius: 10px; }
.skip-link:focus { top: 12px; }

/* Application frame */
.shell { gap: 0; padding: 0; align-items: flex-start; }
.sidebar { top: 0; height: 100dvh; margin: 0; padding: 34px 18px 22px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--fg); box-shadow: none; }
.brand-mini { padding: 0 8px 38px; gap: 10px; }
.brand-seal { background: var(--primary); border-radius: 12px; box-shadow: none; width: 38px; height: 38px; }
.brand-type { font-size: 19px; letter-spacing: .12em; }
.brand-type small { font-family: sans-serif; font-size: 8px; letter-spacing: .15em; color: var(--muted); opacity: 1; }
.nav-caption { font-size: 10px; letter-spacing: .06em; color: #616d60; padding: 0 12px; margin-bottom: 16px; }
.sidenav { flex: 0; gap: 7px; }
.sidenav a { color: var(--muted); opacity: 1; padding: 13px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.sidenav a:hover { background: #f4f6f1; color: var(--fg); }
.sidenav a.active { color: var(--primary-dark); background: var(--primary-bg); box-shadow: none; font-weight: 650; }
.sidenav a.active::after { width: 4px; height: 18px; right: auto; left: -18px; border-radius: 0 3px 3px 0; background: var(--primary); box-shadow: none; }
.sidebar-note { position: relative; margin: auto 6px 26px; padding: 22px 16px; border-radius: 12px; background: #f4f5ee; }
.sidebar-note > span { font-size: 10px; letter-spacing: .2em; color: #6a7a62; }
.sidebar-note p { font-family: 'Songti SC', SimSun, serif; font-size: 14px; line-height: 1.9; margin-top: 12px; }
.sidebar-note i { position: absolute; right: 14px; top: 12px; font-size: 27px; font-style: normal; color: #b0bd9c; }
.sidebar-foot { padding: 16px 8px 0; border-top: 1px solid var(--line); }
.sidebar .avatar { background: var(--primary-bg); color: var(--primary); border: none; }
.disk-hint { color: var(--muted); opacity: 1; font-size: 11px; }
.workspace { flex: 1; min-width: 0; min-height: 100dvh; display: flex; flex-direction: column; }
.workspace-top { height: 76px; padding: 0 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; background: #ffffff80; }
.workspace-top strong { font-weight: 500; color: var(--fg); }
.workspace-top > span > span { margin: 0 14px; color: #abb4a9; }
.private-label { display: inline-flex; align-items: center; gap: 7px; color: var(--primary); font-size: 11px; white-space: nowrap; }
.private-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #749374; }
.view { padding: 32px 42px 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; min-height: calc(100dvh - 76px); }
.site-footer { margin-top: auto; padding: 0 42px 24px; color: var(--muted); font-size: 11px; text-align: center; }
.beian-link { color: inherit; text-decoration: none; transition: color .16s ease; }
.beian-link:hover { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.login-beian { display: inline-block; margin-top: 10px; color: #5d6b58; font-size: 11px; }
.page { max-width: 1260px; padding-bottom: 136px; }
.page-title { font-size: 29px; line-height: 1.3; letter-spacing: -.03em; font-weight: 650; }
.page-eyebrow { color: #5c6b56; font-size: 10px; font-weight: 600; letter-spacing: .18em; margin-bottom: 9px; }
.page-lead { font-size: 13px; color: var(--muted); margin-top: 8px; }
.page-head { gap: 20px; align-items: center; margin-bottom: 22px; }
.head-actions { gap: 8px; }
.section-title { font-size: 16px; font-weight: 650; }
.panel { padding: 24px; border: 1px solid var(--line); background: #fff; border-radius: 16px; box-shadow: none; }

/* Archive: editorial introduction, album shelf, photo timeline */
.archive-welcome { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 208px; margin-bottom: 26px; background: #eeefe5; border-radius: 18px; overflow: hidden; }
.archive-welcome-copy { padding: 22px 30px; }
.archive-welcome h1 { font-family: 'Songti SC', SimSun, serif; font-size: clamp(26px,2.5vw,34px); line-height: 1.35; letter-spacing: .06em; font-weight: 500; margin: 6px 0 8px; }
.archive-welcome p { font-size: 11.5px; color: #73816d; line-height: 1.65; }
.welcome-link { display: inline-flex; align-items: center; gap: 24px; margin-top: 22px; color: var(--primary-dark); font-size: 12px; border-bottom: 1px solid #a9baa2; padding-bottom: 5px; }
.welcome-link:hover { color: #152f20; border-color: currentColor; }
.archive-art { position: relative; min-width: 0; }
.archive-art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.art-caption { position: absolute; bottom: 22px; left: 26px; font-size: 9px; letter-spacing: .18em; color: #fff; }
.art-stamp { position: absolute; top: 24px; right: 24px; border: 1px solid #536c5555; padding: 9px 5px; font-family: SimSun, serif; line-height: 1.4; font-size: 13px; color: #546e58; }
.album-strip-wrap { margin: 0 -4px 24px; padding: 4px 4px 14px; border-bottom: 1px solid var(--line); }
.album-strip { gap: 16px; }
.album-card { width: 174px; padding: 7px; border-radius: 12px; }
.album-card.active { background: #fff; border-color: #97b094; box-shadow: none; }
.album-card:hover { background: #fff; box-shadow: none; }
.album-cover { border-radius: 8px; }
.album-empty-cover { background: #e9eee2; color: #819178; }
.album-empty-cover small { opacity: 1; font-size: 11px; }
.album-name { font-size: 13px; margin-top: 10px; }
.album-count { opacity: 1; color: var(--muted); font-size: 11px; }
.album-card.new .album-count { opacity: 1; }
.album-card.new .album-cover { background: #f0f3ed; border-color: #b9c9b5; }
.album-more { opacity: .85; width: 28px; height: 28px; }
.sort-toggle { border-radius: 9px; background: #edf0e9; box-shadow: none; border-color: transparent; }
.sort-toggle button { border-radius: 6px; min-height: 32px; font-size: 12px; }
.sort-toggle button.active { color: var(--fg); background: #fff; box-shadow: 0 1px 4px #20372c12; }
.day-title { font-family: inherit; font-size: 14px; font-weight: 600; }
.day-head .cnt { font-size: 11px; opacity: 1; color: var(--muted); }
.day-head { padding: 12px 0; }
.tl-group { margin-bottom: 25px; }
/* 屏幕外的日期分组跳过布局与绘制：不引入虚拟列表也能让几千张的时间线滚动顺畅 */
.tl-group { content-visibility: auto; contain-intrinsic-size: auto 320px; }
.jitem, .jitem img { border-radius: 8px; }
.jitem { background: #e6ebdf; }
.empty { opacity: 1; color: var(--muted); padding: 50px 24px; border: 1px dashed #cdd8c8; border-radius: 16px; background: #f0f3ec; }
.empty > svg { color: #79916f; opacity: 1; margin-bottom: 18px; }
.empty h3 { font-size: 17px; font-weight: 500; color: var(--fg); margin-bottom: 10px; }
.empty p { font-size: 13px; line-height: 1.8; }
.empty.small-empty { background: transparent; border: 0; padding: 34px 16px; }

/* Music discovery and shared listening */
.music-hero { background: #e7ecdf; border: 1px solid #dce5d5; color: var(--fg); box-shadow: none; padding: 38px; border-radius: 18px; }
.music-hero::after { right: -80px; bottom: -160px; border-color: #9dac8c40; box-shadow: 0 0 0 48px #9dac8c10, 0 0 0 96px #9dac8c0b; }
.inverse-heading .page-eyebrow { color: #6b805d; }
.inverse-heading .page-lead, .music-hero .page-lead { color: #66765f; }
.music-hero .page-title { font-family: 'Songti SC', SimSun, serif; font-size: 36px; letter-spacing: .04em; font-weight: 500; }
.music-hero .search-box { border: 1px solid #c5d1bd; border-radius: 12px; box-shadow: 0 4px 16px #455d3206; background: #fff; }
.search-box, .search-box.block { background: #fff; border-radius: 10px; box-shadow: none; }
.search-box:focus-within, .search-box.block:focus-within { border-color: #71957b; box-shadow: 0 0 0 3px #71957b66; }
.search-box input { border: 0; min-width: 0; }
.search-box input:focus, .search-box input:focus-visible { outline: none; outline-offset: 0; box-shadow: none; }
.search-box input::-webkit-search-cancel-button { cursor: pointer; }
.music-hint, .music-source-note { color: #4f5f49; font-size: 12px; }
.music-source-note { flex: 1; min-width: 0; }
.vip-filter { background: #ffffffa8; border-color: #c8d5c0; box-shadow: 0 1px 5px #455d320d; }
.vip-filter button { color: #5c6d54; }
.vip-filter button:hover { background: #ffffffd9; color: var(--primary-dark); }
.vip-filter button.active { background: var(--primary-dark); color: #fff; box-shadow: 0 2px 8px #29463733; }
.vip-filter button.active[data-vip-filter="only"] { background: linear-gradient(135deg, #b9881f, #d8ab38); color: #fff; box-shadow: 0 2px 8px #78540a3d; }
.resolver-select {
  background-color: #fff; border: 1px solid #c5d1bd; color: #31442c; box-shadow: 0 1px 5px #455d320f;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23788a6e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.resolver-select:hover { border-color: #9fb492; }
.resolver-select:focus-visible { outline: none; border-color: #71957b; box-shadow: 0 0 0 3px #71957b66; }
#song-section { max-width: none; }
.song-row { background: #ffffff80; border-radius: 10px; padding: 11px 14px; gap: 14px; }
.song-row .row-cover { border-radius: 8px; box-shadow: none; }
.song-row.playing, .song-row.playing:hover { background: var(--primary-bg); border-color: #c3d5c0; }
.song-row .row-btn { visibility: visible; opacity: .8; }
.song-row .row-btn:hover { opacity: 1; }
.song-row .song-artist { opacity: .8; }
.search-state { padding: 36px; color: var(--muted); text-align: center; }

/* Account and administration: readable information, consistent panels */
.user-card { background: #e8eddf; color: var(--fg); border: 1px solid #d6e0ce; box-shadow: none; border-radius: 16px; padding: 28px; margin: 26px 0 20px; }
.user-card::after { border-color: #94aa8125; box-shadow: 0 0 0 40px #94aa8109; }
.user-card .me-presence { color: #63735c; font-size: 12px; }
.user-card .au-role-badge { color: var(--primary-dark); background: #fff9; }
.user-name-row strong { font-size: 26px; overflow-wrap: anywhere; }
.user-name-row .admin-role-entry { width: 34px; height: 34px; border: 1px solid #afc2a6; color: var(--primary); background: #fff8; }
.user-name-row .admin-role-entry:hover { background: #fff; color: var(--primary-dark); }
.me-overview-grid { gap: 20px; margin-bottom: 20px; }
.me-card-heading > div > span, .security-kicker { font-size: 10px; }
.me-card-note, .quota-numbers span, .me-account-list dt, .me-account-list dd { font-size: 12px; }
.me-card-heading { margin-bottom: 18px; }
.me-account-list > div { padding: 12px 0; }
.me-section-heading p, .password-settings > p, .session-settings-head p { font-size: 12px; line-height: 1.7; }
.password-form label { font-size: 12px; gap: 7px; }
.password-settings h5, .session-settings h5 { font-size: 15px; }
.password-tip, .password-field button, .session-main small { font-size: 11px; }
.session-main strong { font-size: 13px; }
.session-row { padding: 13px 0; }
.session-current, .session-revoke, .me-safe-badge { font-size: 11px; }
.session-revoke { min-height: 34px; }
.me-signout-row strong, .text-btn { font-size: 13px; }
.me-signout-row span { font-size: 12px; }
.admin-console-body > .panel { padding: 24px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.admin-console-body > .panel:first-child { padding-top: 24px; }
.admin-console-head h3 { font-size: 30px; }
.admin-console-close span, .admin-console-head p, .hint-text { font-size: 12px; }
.security-panel::before { display: none; }
.security-metrics > div { background: #f3f6ee; border-radius: 10px; }
.security-metrics span, .security-card-head span, .security-empty { font-size: 12px; }
.security-card, .security-log-wrap { border-radius: 10px; }
.lockdown-card { background: #f8faf5; border-radius: 12px; }
.lockdown-copy strong { font-size: 14px; }
.lockdown-copy small { font-size: 12px; white-space: normal; }
.lockdown-state { font-size: 11px; }
.admin-users-row { flex-wrap: wrap; }

/* Player and overlays */
.player-bar { left: calc(var(--side-w) + 26px); right: 26px; bottom: 20px; height: 78px; border-radius: 14px; background: #fff; color: var(--fg); border: 1px solid #d7e0d2; box-shadow: 0 10px 40px #243c301c; }
.player-bar .icon-btn { color: var(--primary-dark); }
.player-bar .icon-btn:hover { background: var(--primary-bg); }
.player-bar .pb-play { background: var(--primary); color: #fff !important; }
.player-bar .pb-play:hover { background: var(--primary-dark) !important; }
.pb-cover { border-radius: 9px; }
.pb-progress { background: #dbe2d4; }
.pb-fill { background: var(--primary); }
.p-artist, .p-time { opacity: 1; color: var(--muted); }
.player-page .p-time { color: #d6dfd2; }
.pp-bg { filter: blur(70px) saturate(45%) brightness(.35); }
.pp-lyric p { font-family: inherit; }
.select-bar { background: #fffffff5; border-color: #ccd9c6; border-radius: 14px; }
.select-bar .sel-done { background: var(--primary); box-shadow: none; }
.upload-menu, .ctx-menu { background: #fff; border-radius: 12px; }
.upload-menu button { font-size: 13px; min-height: 42px; }
.modal-card, .upload-card, .cover-picker-card { background: #fff; border-radius: 18px; }
.upload-summary, .cover-picker-hint, .upload-destination { font-size: 13px; }
.upload-actions, .cover-picker-actions { border-top-color: var(--line); }
.editor-kicker { color: var(--primary); }
.lb-info {
  background: rgba(10, 12, 16, .84); color: rgba(255, 255, 255, .82);
  border-top: 1px solid rgba(255, 255, 255, .07);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
#toast { background: var(--ink); border-radius: 12px; }

/* Login */
.login-wrap { grid-template-columns: 1.1fr 1fr; gap: 0; padding: 0; background: #fafbf8; }
.login-scene { margin: 20px; min-height: calc(100dvh - 40px); padding: 32px; border-radius: 18px; background: #dfe7d6; box-shadow: none; color: #263e2e; }
.login-scene::after { display: block; opacity: 1; background: linear-gradient(90deg, #e7eddfed, #e7eddf66 58%, transparent); mask-image: none; }
.login-landscape { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
.login-scene-top, .login-scene-foot { opacity: 1; font-size: 9px; }
.login-scene-foot { color: #edf2e8; }
.login-scene-copy { align-self: flex-start; margin-top: -120px; }
.scene-caption { display: block; font-size: 11px; letter-spacing: .12em; margin-bottom: 28px; color: #5e7358; }
.scene-mark { font-size: clamp(34px,4.2vw,64px); font-weight: 500; line-height: 1.4; letter-spacing: .08em; margin-bottom: 18px; }
.login-scene-copy p { font-family: inherit; font-size: 13px; line-height: 1.9; letter-spacing: .04em; color: #51694b; opacity: 1; }
.login-panel { padding: 42px; background: transparent; }
.login-card { max-width: 352px; }
.login-logo { border-radius: 13px; width: 46px; height: 46px; background: var(--primary); box-shadow: none; }
.login-eyebrow { font-size: 10px; font-weight: 500; color: var(--muted); }
.brand { font-size: 36px; font-weight: 500; }
.brand-sub { opacity: 1; color: var(--muted); font-size: 12px; margin-bottom: 30px; }
.login-tabs { width: 100%; padding: 4px; border-radius: 10px; gap: 4px; }
.tab-btn { flex: 1; border-radius: 7px; min-height: 38px; }
.tab-btn.active { color: var(--primary-dark); }
.login-card form input { background: #fff; min-height: 48px; }
.login-card .btn.block { border-radius: 10px; min-height: 48px; }
.login-note { opacity: 1; color: #73806e; font-size: 11px; line-height: 1.7; }
.form-err { min-height: 20px; }

/* Tablet and phone */
@media (min-width: 1500px) { .view { padding: 40px 64px 0; } .workspace-top { padding: 0 64px; } }
@media (min-width: 961px) and (max-width: 1180px) {
  :root { --side-w: 200px; }
  .view { padding: 28px 26px 0; } .workspace-top { padding: 0 26px; }
  .archive-welcome-copy { padding: 26px; }
  .page-head { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 960px) {
  body { background: var(--bg); }
  .shell { display: block; }
  .sidebar { display: none; }
  .topbar { background: #fffffff2; height: 62px; color: var(--fg); }
  .topbar .brand-mini { padding: 0; }
  .workspace-top { height: 48px; padding: 0 24px; font-size: 11px; }
  .view { padding: 24px 24px 0; }
  .site-footer { padding: 0 20px calc(92px + env(safe-area-inset-bottom)); }
  .tabbar { left: 0; right: 0; bottom: 0; background: #fffffff5; color: var(--muted); border-radius: 0; border: 0; border-top: 1px solid var(--line); box-shadow: 0 -4px 20px #253e2c05; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .tabbar a { opacity: 1; color: var(--muted); font-size: 11px; gap: 4px; border-radius: 9px; }
  .tabbar a.active { background: #eaf0e4; color: var(--primary-dark); }
  .tabbar a.active .nav-svg { color: var(--primary); }
  .page { padding-bottom: 185px; }
  .player-bar { left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); height: 68px; }
}
@media (max-width: 820px) {
  .login-wrap { display: block; }
  .login-scene { display: none; }
  .login-panel { min-height: 100dvh; background: #f4f6ef; padding: 36px 24px; }
  .login-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px; max-width: 420px; }
  .me-security-grid, .me-overview-grid { grid-template-columns: 1fr; }
  .password-settings { padding: 0 0 24px; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .workspace-top { padding: 0 18px; } .workspace-top > span > span { margin: 0 8px; }
  .private-label { font-size: 10px; }
  .view { padding: 18px 16px 0; }
  .archive-welcome { grid-template-columns: 1fr .8fr; min-height: 228px; margin-bottom: 28px; border-radius: 12px; }
  .archive-welcome-copy { padding: 24px 18px; }
  .archive-welcome .page-eyebrow { font-size: 8px; letter-spacing: .1em; }
  .archive-welcome h1 { font-size: 27px; line-height: 1.4; margin: 8px 0 10px; }
  .archive-welcome p { font-size: 11px; }
  .welcome-link { gap: 12px; font-size: 11px; margin-top: 16px; }
  .archive-art img { object-position: 64% center; }
  .art-caption { display: none; } .art-stamp { right: 12px; top: 16px; font-size: 11px; }
  .page-title { font-size: 25px; } .page-lead { font-size: 12px; }
  .page-head { gap: 18px; }
  .head-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 8px; align-items: stretch; }
  .head-actions .sort-toggle { grid-column: 1 / -1; width: 100%; margin-bottom: 2px; }
  .sort-toggle button { flex: 1; min-height: 36px; }
  .page-head .btn { font-size: 13px; padding: 10px 14px; }
  /* 手机上 4 个按钮实宽超过可用宽度时，主操作「上传」会被 margin-left:auto 挤到第二行右端。
     改成网格：排序占一行、三个次操作平分一行、上传独占一行。 */
  .head-actions > .btn { justify-content: center; padding: 10px 6px; font-size: 12.5px; white-space: nowrap; }
  .head-actions > .sel-album { grid-column: 1 / -1; width: 100%; }
  .upload-menu-wrap { grid-column: 1 / -1; width: 100%; margin-left: 0; }
  .upload-menu-wrap > #btn-upload { width: 100%; justify-content: center; }
  .upload-menu { right: 0; left: auto; transform-origin: top right; }
  .album-card { width: 143px; } .album-strip { gap: 10px; }
  .album-name { font-size: 12px; }
  .empty { padding: 32px 18px; } .empty h3 { font-size: 16px; }
  .music-hero { padding: 26px 20px; margin: 0 0 24px; border-radius: 14px; }
  .music-hero .page-title { font-size: 28px; line-height: 1.5; }
  .music-filter-row { gap: 12px; } .music-hint { line-height: 1.8; }
  .music-hero .search-box input { font-size: 13px; }
  .song-row { padding: 9px 6px; gap: 8px; }
  .song-row .row-cover { width: 40px; height: 40px; }
  .song-row .song-title { font-size: 13px; }
  .user-card { padding: 22px 18px; } .user-name-row { flex-wrap: wrap; }
  .user-name-row strong { font-size: 23px; }
  .user-card .me-presence { font-size: 10px; flex-wrap: wrap; }
  .me-overview-card, .me-security-panel { padding: 20px 18px; }
  .me-section-heading { gap: 8px; } .me-section-heading h4 { font-size: 19px; }
  .me-safe-badge { font-size: 10px; }
  .me-signout-row { align-items: flex-start; } .me-signout-row .btn { flex-shrink: 0; }
  .admin-console-body > .panel { padding: 18px 14px; }
  .admin-console-body > .panel:first-child { padding-top: 18px; }
  .security-metrics { grid-template-columns: 1fr 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .select-bar { bottom: calc(82px + env(safe-area-inset-bottom)); }
  body:has(#player-bar:not([hidden])) .select-bar { bottom: calc(160px + env(safe-area-inset-bottom)); }
  .player-bar .pb-info { flex: 1; width: auto; }
  .player-bar .pb-center { flex: 0; }
  .player-bar .pb-right { flex: 0; }
  .player-bar .p-time, .player-bar .pb-progress { display: none; }
  .upload-mask, .cover-picker-mask { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* v75 一起听沉浸房间：深色面板内保持深色控件，避免浅色皮肤覆盖 */
.room-stage .search-box, .room-stage .search-box.block { background: #ffffff10; border: 1px solid #ffffff24; box-shadow: none; }
.room-stage .search-box:focus-within { border-color: #7ed69488; box-shadow: 0 0 0 3px #7ed69426; }
.room-stage .search-box input { color: #eef5ea; background: transparent; }
.room-stage .search-box input::placeholder { color: #ffffff6b; }
.room-stage .search-box svg { color: #ffffff8f; }
.room-stage .resolver-select {
  background-color: #ffffff10; border: 1px solid #ffffff24; color: #e9f1e4; box-shadow: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23cfd8c9' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.room-stage .resolver-select:hover { border-color: #ffffff45; }
.room-stage .resolver-select:focus-visible { border-color: #7ed69488; box-shadow: 0 0 0 3px #7ed69426; }
.room-stage .vip-filter { background: #ffffff12; border-color: #ffffff24; box-shadow: none; }
.room-stage .vip-filter button { color: #ffffffb3; }
.room-stage .vip-filter button:hover { background: #ffffff1c; color: #fff; }
.room-stage .vip-filter button.active { background: #e9f1e4; color: #1d2f26; box-shadow: none; }
.room-stage .vip-filter button.active[data-vip-filter="only"] { background: linear-gradient(135deg, #c9992e, #e0b64a); color: #fff; }

/* ============================================================
   v96 体验增强：互动 / 收藏 / 那年今日 / 房间历史 / 下载进度 / 深色模式
   ============================================================ */

/* ---------- 顶栏主题开关 ---------- */
.workspace-top-right { display: inline-flex; align-items: center; gap: 12px; }
.theme-toggle { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fff; transition: color .16s, border-color .16s, background .16s; }
.theme-toggle:hover { color: var(--primary-dark); border-color: rgba(var(--primary-rgb), .3); background: var(--primary-bg); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .ic-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
html[data-theme="dark"] .theme-toggle .ic-moon { display: none; }

/* ---------- 我的收藏开关 ---------- */
.fav-toggle svg { width: 16px; height: 16px; }
.fav-toggle.active { color: var(--primary-dark); border-color: rgba(var(--primary-rgb), .38); background: var(--primary-bg); }
.fav-toggle.active svg { stroke: #c9992e; fill: #f0c95c; }

/* ---------- 时间线互动徽标 ---------- */
.media-social { position: absolute; right: 7px; bottom: 7px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 2.5px 8px; border-radius: 999px; background: rgba(14,18,16,.54); color: #fff; font-size: 10.5px; font-weight: 650; letter-spacing: .02em; backdrop-filter: blur(5px); pointer-events: none; }
.media-social .soc-faved { color: #f2c14e; }

/* ---------- 那年今日 ---------- */
.memories-card { margin: 2px 0 22px; padding: 16px 20px 12px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(135deg, #eef3e7, #fbfaf5 70%); }
.memories-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.memories-kicker { color: var(--primary); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.memories-head h3 { font-size: 17px; letter-spacing: -.02em; }
.memories-head h3 small { color: var(--muted); font-size: 12px; font-weight: 500; }
.memories-row { display: flex; align-items: center; gap: 12px; padding: 5px 0; }
.memories-years { flex: 0 0 58px; color: var(--muted); font-size: 11px; font-weight: 700; }
.memories-thumbs { display: flex; align-items: center; gap: 8px; overflow: hidden; }
.memory-thumb { position: relative; width: 60px; height: 60px; flex: 0 0 auto; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--hover); transition: transform .16s var(--ease), box-shadow .16s; }
.memory-thumb:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.memory-thumb img { width: 100%; height: 100%; object-fit: cover; }
.memory-thumb .v-play { position: absolute; right: 4px; bottom: 4px; width: 15px; height: 15px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.55)); }
.memories-more { color: var(--muted); font-size: 12px; font-weight: 700; padding-left: 2px; }

/* ---------- 灯箱互动按钮 ---------- */
.lb-btn { position: relative; }
.lb-btn .lb-count { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; border-radius: 999px; background: #fff; color: #23282a; font-size: 10px; font-weight: 800; line-height: 1; }
.lb-like.on { color: #ff9d87; }
.lb-like.on svg { fill: currentColor; }
.lb-fav.on { color: #f2c14e; }
.lb-fav.on svg { fill: currentColor; }

/* ---------- 灯箱评论面板 ---------- */
.lb-comments {
  position: fixed; z-index: 8; top: 10px; right: 10px; bottom: 10px; width: min(390px, calc(100vw - 20px));
  display: flex; flex-direction: column; padding: 24px;
  border: 1px solid rgba(255,255,255,.7); border-radius: 22px; color: var(--fg); background: rgba(251,250,247,.97);
  box-shadow: -20px 0 70px rgba(0,0,0,.28); backdrop-filter: blur(24px); animation: drawerIn .25s var(--ease);
}
.comments-open .lb-stage, .comments-open .lb-top, .comments-open .lb-info { padding-right: 410px; }
.lb-comments-list { flex: 1; overflow-y: auto; margin: 18px 0 12px; display: flex; flex-direction: column; gap: 14px; }
.lb-comment { display: flex; gap: 10px; }
.lb-comment-avatar { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--primary-bg); color: var(--primary-dark); font-size: 12px; font-weight: 800; }
.lb-comment-body { flex: 1; min-width: 0; }
.lb-comment-meta { display: flex; align-items: center; gap: 8px; }
.lb-comment-meta strong { font-size: 12px; }
.lb-comment-meta > span { color: var(--muted); font-size: 10px; }
.lb-comment-del { margin-left: auto; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); opacity: .55; }
.lb-comment-del:hover { color: var(--danger); background: var(--danger-bg); opacity: 1; }
.lb-comment-del svg { width: 13px; height: 13px; }
.lb-comment-body p { margin-top: 3px; font-size: 13px; line-height: 1.6; word-break: break-word; white-space: pre-wrap; }
.lb-comments-empty { color: var(--muted); font-size: 12px; text-align: center; padding: 26px 0; }
.lb-comments-input { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.lb-comments-input input { flex: 1; min-width: 0; }
@media (max-width: 960px) {
  .comments-open .lb-stage, .comments-open .lb-top, .comments-open .lb-info { padding-right: 24px; }
}
@media (max-width: 640px) {
  .lb-comments { inset: auto 0 0; width: 100%; max-height: 88dvh; border-radius: 24px 24px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); animation-name: drawerUp; }
}

/* ---------- 房间：播放队列 / 最近听过 切换 ---------- */
.room-panel-tabs { display: inline-flex; align-items: center; gap: 4px; }
.room-panel-tab { padding: 6px 12px; border-radius: 999px; color: #ffffffa6; font-size: 13px; font-weight: 650; transition: background .16s, color .16s; }
.room-panel-tab:hover { color: #fff; background: #ffffff14; }
.room-panel-tab.active { color: #fff; background: #ffffff26; }
.room-panel-tab .cnt-inline { font-weight: 400; opacity: .75; }
.room-light .room-panel-tab { color: #6b766d; }
.room-light .room-panel-tab:hover { color: var(--fg); background: #ffffffb8; }
.room-light .room-panel-tab.active { color: var(--primary-dark); background: var(--primary-bg); }
.q-again { color: var(--primary); }

/* ---------- 上传提示 / 下载进度 ---------- */
.upload-note { margin: 0 0 12px; padding: 10px 13px; border-radius: 12px; background: var(--primary-bg); color: var(--primary-dark); font-size: 12px; line-height: 1.65; }
.dl-box { position: fixed; right: 18px; bottom: 18px; z-index: 1300; width: min(300px, calc(100vw - 36px)); padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-md); transition: opacity .3s, transform .3s; }
.dl-box.done { opacity: 0; transform: translateY(6px); }
.dl-box-text { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 12px; color: var(--fg); }
.dl-box-bar { height: 5px; border-radius: 999px; background: var(--hover); overflow: hidden; }
.dl-box-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--primary); transition: width .12s linear; }

/* ============================================================
   深色模式（html[data-theme="dark"]）
   变量整体切换 + 对少量硬编码浅色面的定点覆盖
   ============================================================ */
html[data-theme="dark"] {
  --primary: #8fc3a4;
  --primary-rgb: 143, 195, 164;
  --primary-dark: #add6bd;
  --primary-bg: #22332a;
  --bg: #121614;
  --surface: #1a201c;
  --surface-strong: #202721;
  --fg: #e3e8e0;
  --muted: #99a599;
  --ink: #0d1210;
  --ink-soft: #1a231d;
  --hover: #242c26;
  --line: #2b342d;
  --sel-bg: #33473a;
  --glass: rgba(18, 22, 20, .9);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-lg: 0 20px 64px rgba(0, 0, 0, .6);
  --danger: #f0918a;
  --danger-bg: #3a2523;
  color-scheme: dark;
}
html[data-theme="dark"] .sidebar { background: var(--surface); }
html[data-theme="dark"] .topbar { background: rgba(26, 32, 28, .95); }
html[data-theme="dark"] .workspace-top { background: rgba(26, 32, 28, .5); }
html[data-theme="dark"] .sidebar-note { background: #1e2621; }
html[data-theme="dark"] .sidebar-note > span { color: #8fa383; }
html[data-theme="dark"] .sidebar-note i { color: #55705d; }
html[data-theme="dark"] .sidenav a:hover { background: #222a24; }
html[data-theme="dark"] .sidenav a.active { color: var(--primary); }
html[data-theme="dark"] .skip-link { background: var(--surface); }
html[data-theme="dark"] .theme-toggle { background: var(--surface); }
html[data-theme="dark"] .theme-toggle:hover { background: var(--primary-bg); }
html[data-theme="dark"] .btn.ghost { background: var(--surface); border-color: var(--line); }
html[data-theme="dark"] .btn.ghost:hover { background: var(--hover); }
html[data-theme="dark"] .btn { border-color: var(--line); }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { background: #171d19; color: var(--fg); border-color: var(--line); }
html[data-theme="dark"] input::placeholder { color: #7d887d; }
html[data-theme="dark"] .panel { background: var(--surface); }
html[data-theme="dark"] .search-box, html[data-theme="dark"] .search-box.block { background: #171d19; border-color: var(--line); }
html[data-theme="dark"] .search-box:focus-within { background: #1b221d; }
html[data-theme="dark"] .album-card.active, html[data-theme="dark"] .album-card:hover { background: var(--surface); }
html[data-theme="dark"] .album-card.new .album-cover { border-color: rgba(255, 255, 255, .18); }
html[data-theme="dark"] .modal-card, html[data-theme="dark"] .ctx-menu, html[data-theme="dark"] .upload-menu { background: var(--surface); }
html[data-theme="dark"] .archive-welcome { background: #1b231d; }
html[data-theme="dark"] .memories-card { background: linear-gradient(135deg, #1c2620, #171d1a 70%); }
html[data-theme="dark"] .song-row { background: rgba(35, 43, 37, .55); }
html[data-theme="dark"] .song-row.playing, html[data-theme="dark"] .song-row.playing:hover { background: var(--primary-bg); border-color: #33513f; }
html[data-theme="dark"] .music-hero { background: #1e2720; border-color: #2c3a30; }
html[data-theme="dark"] .music-hero .search-box { background: #151a17; border-color: #33413a; }
html[data-theme="dark"] .player-bar { background: var(--surface); border-color: var(--line); }
html[data-theme="dark"] #toast { background: #e8ede6; color: #161a17; }
html[data-theme="dark"] .lb-editor, html[data-theme="dark"] .lb-comments { background: rgba(23, 28, 25, .97); border-color: rgba(255, 255, 255, .12); }
html[data-theme="dark"] .lb-btn .lb-count { background: #e8ede6; color: #1c211e; }
html[data-theme="dark"] .login-wrap { background: #141915; }
html[data-theme="dark"] .login-card form input { background: #171d19; }
html[data-theme="dark"] .login-logo { background: var(--primary); }
html[data-theme="dark"] .login-note, html[data-theme="dark"] .login-beian { color: #8b978b; }
html[data-theme="dark"] .upload-note { color: #cfe4d6; }
html[data-theme="dark"] .security-metrics > div { background: rgba(255, 255, 255, .045); }
html[data-theme="dark"] .security-card { background: rgba(255, 255, 255, .035); }
html[data-theme="dark"] .lockdown-card { background: #1e2621; }
html[data-theme="dark"] .admin-console { background: rgba(24, 30, 26, .97); border-color: rgba(255, 255, 255, .12); }
html[data-theme="dark"] .admin-console-close:hover { background: var(--hover); color: var(--fg); }
html[data-theme="dark"] .admin-console .btn:not(.primary):not(.danger):hover { background: var(--hover); }
html[data-theme="dark"] .security-log-wrap { background: rgba(255, 255, 255, .03); }
html[data-theme="dark"] .room-stage.room-light { background: linear-gradient(160deg, #1d251f 0%, #182019 52%, #141b16 100%); box-shadow: none; }
html[data-theme="dark"] .room-light .room-topbar { border-bottom-color: var(--line); }
html[data-theme="dark"] .room-light .room-topbar-sub { color: var(--muted); }
html[data-theme="dark"] .room-light .room-chip { background: rgba(255, 255, 255, .07); border-color: var(--line); color: var(--fg); }
html[data-theme="dark"] .room-light .room-now-sub { color: var(--muted); }
html[data-theme="dark"] .room-light .room-now-album, html[data-theme="dark"] .room-light .room-now-by { color: #8b978b; }
html[data-theme="dark"] .room-light .room-lyric-mini p { color: #8b978b; }
html[data-theme="dark"] .room-light .room-lyric-mini p.active { color: var(--primary); }
html[data-theme="dark"] .room-light .p-time, html[data-theme="dark"] .room-light .room-volume { color: var(--muted); }
html[data-theme="dark"] .room-light .room-progress-bar { background: #2c352e; }
html[data-theme="dark"] .room-light .room-progress-thumb { background: #e8ede6; border-color: #4c5a50; }
html[data-theme="dark"] .room-light .room-btn { border-color: var(--line); background: rgba(255, 255, 255, .06); color: var(--fg); }
html[data-theme="dark"] .room-light .room-btn:hover { background: rgba(255, 255, 255, .12); border-color: #3a463d; }
html[data-theme="dark"] .room-light .room-panel { background: rgba(26, 32, 28, .82); border-color: var(--line); }
html[data-theme="dark"] .room-light .room-panel-title { color: var(--fg); }
html[data-theme="dark"] .room-light .room-panel-title .cnt-inline { color: var(--muted); }
html[data-theme="dark"] .room-stage.room-light .search-box, html[data-theme="dark"] .room-stage.room-light .search-box.block { background: #171d19; border-color: var(--line); box-shadow: none; }
html[data-theme="dark"] .room-stage.room-light .search-box input { color: var(--fg); }
html[data-theme="dark"] .room-stage.room-light .search-box input::placeholder { color: #7d887d; }
html[data-theme="dark"] .room-stage.room-light .search-box svg { color: var(--muted); }
html[data-theme="dark"] .room-stage.room-light .resolver-select { background-color: #171d19; border-color: var(--line); color: var(--fg); }
html[data-theme="dark"] .room-stage.room-light .vip-filter { background: rgba(255, 255, 255, .07); border-color: var(--line); }
html[data-theme="dark"] .room-stage.room-light .vip-filter button { color: var(--muted); }
html[data-theme="dark"] .room-stage.room-light .vip-filter button:hover { background: rgba(255, 255, 255, .1); color: var(--fg); }
html[data-theme="dark"] .room-stage.room-light .song-row { background: rgba(255, 255, 255, .05); }
html[data-theme="dark"] .room-stage.room-light .song-row:hover { background: rgba(255, 255, 255, .1); }
html[data-theme="dark"] .room-stage.room-light .song-row .song-artist { color: var(--muted); }
html[data-theme="dark"] .room-stage.room-light .song-row .row-idx, html[data-theme="dark"] .room-stage.room-light .song-row .row-dur { color: #86927f; }
html[data-theme="dark"] .room-stage.room-light .empty.small-empty { color: var(--muted); border-color: var(--line); background: rgba(255, 255, 255, .04); }
html[data-theme="dark"] .room-light .room-queue-table th { background: rgba(255, 255, 255, .05); color: var(--muted); border-bottom-color: var(--line); }
html[data-theme="dark"] .room-light .room-queue-table td { color: var(--fg); border-bottom-color: #232b25; }
html[data-theme="dark"] .room-light .room-queue-table tr:hover td { background: rgba(255, 255, 255, .05); }
html[data-theme="dark"] .room-light .col-id, html[data-theme="dark"] .room-light .col-artist, html[data-theme="dark"] .room-light .col-album { color: #86927f; }
html[data-theme="dark"] .room-light .q-ph { background: #222a24; color: var(--muted); }
html[data-theme="dark"] .room-light .q-empty-row td { color: #7d887d; }
html[data-theme="dark"] .room-light .room-chat-empty { color: #7d887d; }
html[data-theme="dark"] .room-light .room-chat-input-row input { background: #171d19; border-color: var(--line); color: var(--fg); }
html[data-theme="dark"] .room-light .room-chat-input-row input::placeholder { color: #7d887d; }
/* v96 深色模式修正：房间浅色态对比度 */
html[data-theme="dark"] .room-stage.room-light { color: var(--fg); }
html[data-theme="dark"] .room-light .room-panel { color: var(--fg); }
html[data-theme="dark"] .room-stage.room-light .vip-filter button.active { background: #2f5741; color: #dff0e4; }
html[data-theme="dark"] .room-stage.room-light .vip-filter button.active[data-vip-filter="only"] { background: linear-gradient(135deg, #8a6512, #b9881f); color: #fff; }
html[data-theme="dark"] .room-light .room-btn.primary { background: #3d7a58; color: #eaf6ee; border-color: transparent; }
html[data-theme="dark"] .room-light .room-btn.primary:hover { background: #4a8c67; }
html[data-theme="dark"] .room-light .q-remove { color: var(--muted); }
html[data-theme="dark"] .room-light .col-by { color: var(--primary); }
/* v96 深色模式修正 2：主按钮/排序切换/灯箱信息条/移动端登录卡 */
html[data-theme="dark"] .btn.primary { color: #0f2418; }
html[data-theme="dark"] .sort-toggle button.active { background: #2f3a33; color: var(--fg); box-shadow: none; }
html[data-theme="dark"] .lb-info { background: #171c19; color: var(--fg); }
html[data-theme="dark"] .user-name-row .admin-role-entry:hover { background: var(--hover); color: var(--primary); }
@media (max-width: 820px) {
  html[data-theme="dark"] .login-panel { background: #141915; }
  html[data-theme="dark"] .login-card { background: var(--surface); border-color: var(--line); }
}
/* v96 深色模式修正 3：我的空间用户卡 */
html[data-theme="dark"] .user-card { background: linear-gradient(135deg, #1f2a23, #16211b); color: var(--fg); border-color: var(--line); }
html[data-theme="dark"] .user-card .me-presence { color: var(--muted); }
html[data-theme="dark"] .user-card .admin-role-entry { color: var(--muted); border-color: var(--line); background: rgba(255,255,255,.05); }
html[data-theme="dark"] .user-card .au-role-badge { background: var(--primary-bg); color: var(--primary); }

/* v115：暗色下漏覆盖的白底 / 近黑字 —— 上传弹窗、封面选择器、移动端底栏、空状态、编辑工具条 */
html[data-theme="dark"] .upload-card,
html[data-theme="dark"] .cover-picker-card { background: var(--surface); border-color: var(--line); color: var(--fg); }
html[data-theme="dark"] .tabbar { background: rgba(18, 22, 20, .96); border-top-color: var(--line); box-shadow: 0 -4px 20px rgba(0, 0, 0, .45); }
html[data-theme="dark"] .tabbar a { color: var(--muted); }
html[data-theme="dark"] .tabbar a.active { background: var(--primary-bg); color: var(--primary-dark); }
html[data-theme="dark"] .empty { background: #1b221d; border-color: var(--line); }
html[data-theme="dark"] .empty > svg { color: #7f9a86; }
html[data-theme="dark"] .empty.small-empty { background: transparent; border-color: transparent; }
html[data-theme="dark"] .select-bar { background: rgba(24, 30, 26, .97); border-color: var(--line); color: var(--fg); }
html[data-theme="dark"] .select-bar .sel-mode-label { color: var(--fg); }
html[data-theme="dark"] .select-bar .btn.ghost-dark { background: var(--surface); border-color: var(--line); color: var(--fg); }
html[data-theme="dark"] .select-bar .btn.ghost-dark:hover { background: var(--hover); }
html[data-theme="dark"] .sort-toggle { background: #1b221d; }
html[data-theme="dark"] .sort-toggle button { color: var(--muted); }
html[data-theme="dark"] .upload-errors { background: var(--danger-bg); color: var(--danger); }

/* v97 下载进度：ZIP 流式输出没有 Content-Length，用不确定进度条代替冻结的 0% */
.dl-box.unknown .dl-box-bar i { width: 42%; animation: dlSlide 1.15s ease-in-out infinite; }
@keyframes dlSlide { 0% { margin-left: -45%; } 100% { margin-left: 100%; } }

/* v119：播放线路默认收起 —— 它只在"某条线路出问题"时才需要，普通成员不必先面对三个陌生选项 */
.resolver-toggle {
  min-height: 34px; padding: 0 12px; border: 1px solid #c5d1bd; border-radius: 9px;
  background: #fff; color: #5c6d54; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.resolver-toggle:hover { border-color: #9fb492; color: var(--primary-dark); }
.resolver-toggle[aria-expanded="true"] { background: var(--primary-bg); border-color: #97b094; color: var(--primary-dark); }

/* v119：管理操作记录 */
.admin-audit { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.audit-row {
  display: grid; grid-template-columns: 132px 76px 96px minmax(0, 1fr); gap: 10px; align-items: baseline;
  padding: 8px 10px; border-radius: 10px; background: rgba(243, 240, 234, .62); font-size: 12px;
}
.audit-time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.audit-actor { overflow: hidden; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.audit-action { color: var(--primary-dark); font-weight: 600; white-space: nowrap; }
.audit-target { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .audit-row { grid-template-columns: 1fr 1fr; gap: 4px 10px; }
  .audit-target { grid-column: 1 / -1; }
}
html[data-theme="dark"] .resolver-toggle { background: #171d19; border-color: var(--line); color: var(--muted); }
html[data-theme="dark"] .resolver-toggle[aria-expanded="true"] { background: var(--primary-bg); border-color: #3a4d41; color: var(--primary-dark); }
html[data-theme="dark"] .audit-row { background: rgba(255, 255, 255, .04); }

/* v126：桌面端管理台里的表单不该铺满整个面板宽度（原来输入框能拉到 1000px+） */
.admin-console-body .add-user-row { max-width: 780px; }
.admin-console-body .add-user-row input { max-width: 190px; }
.admin-console-body .music-credential-row input { max-width: 520px; }
.admin-console-body .quota { max-width: 520px; }
