
html[data-theme="dark"] {
  --peach: #191114;
  --cream: #241a1e;
  --rose: #ff8fa8;
  --ink: #f2e2e6;
  --ink-soft: #c3a4ad;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] body { color: var(--ink); background-color: var(--peach); }

html[data-theme="dark"] .home {
  background:
    radial-gradient(120% 80% at 50% 0%, #2d1d24 0%, transparent 55%),
    radial-gradient(90% 60% at 10% 100%, #23161b 0%, transparent 60%),
    var(--peach);
}
html[data-theme="dark"] .home::before { background: rgba(255, 160, 190, 0.05); }
html[data-theme="dark"] .home::after  { background: rgba(255, 160, 190, 0.04); }

html[data-theme="dark"] .brand { color: #edd2d9; }
html[data-theme="dark"] .brand small { color: #b79aa3; }

html[data-theme="dark"] .btn-ghost {
  color: #f0d6dd; background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .clock p,
html[data-theme="dark"] .clock p.sep { color: #fff6f9; text-shadow:
  0 1px 0 rgba(255, 143, 168, 0.55), 0 3px 0 rgba(255, 143, 168, 0.38),
  0 6px 0 rgba(214, 110, 140, 0.28), 0 9px 14px rgba(255, 120, 160, 0.28),
  0 16px 30px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .date-line { color: #dbb9c3; }
html[data-theme="dark"] .date-line .pill {
  background: rgba(255, 255, 255, 0.07); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .date-line .greet { color: #ff9fb6; }
html[data-theme="dark"] .tip { color: #a3858f; }
html[data-theme="dark"] .site-footer { color: #8f747d; }
html[data-theme="dark"] .site-footer .sf-beian { color: #c2929f; border-bottom-color: rgba(255,159,182,.45); }
html[data-theme="dark"] .site-footer .sf-beian:hover { color: #ff9fb6; }

html[data-theme="dark"] .who {
  background: rgba(255, 255, 255, 0.08); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  color: #f0d6dd;
}

html[data-theme="dark"] .login-page,
html[data-theme="dark"] .au-wrap {
  background:
    radial-gradient(80% 60% at 15% 10%, #2a1b21 0%, transparent 60%),
    radial-gradient(70% 60% at 90% 90%, #221519 0%, transparent 60%),
    var(--peach);
}

html[data-theme="dark"] .login-card {
  background: rgba(36, 26, 30, 0.94);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.55);
}
html[data-theme="dark"] .login-head h1 { color: #f2dfe4; }
html[data-theme="dark"] .login-head p { color: #b79aa3; }

html[data-theme="dark"] .field label { color: #d3aeb8; }
html[data-theme="dark"] .field .input-wrap { border-bottom-color: rgba(255, 255, 255, 0.2); }
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea { color: var(--ink); }
html[data-theme="dark"] .field input::placeholder,
html[data-theme="dark"] .field textarea::placeholder { color: #8d727b; }
html[data-theme="dark"] .field .input-wrap select { color: var(--ink); }
html[data-theme="dark"] .field .input-wrap select option { background: #2a1e22; color: #f2e2e6; }

html[data-theme="dark"] .form-error {
  background: rgba(255, 92, 124, 0.12); border-color: rgba(255, 120, 150, 0.35); color: #ff9cb2;
}
html[data-theme="dark"] .form-note {
  background: rgba(70, 190, 130, 0.12); border-color: rgba(100, 210, 150, 0.32); color: #7fd6a5;
}
html[data-theme="dark"] .form-note.is-err {
  background: rgba(255, 92, 124, 0.12); border-color: rgba(255, 120, 150, 0.35); color: #ff9cb2;
}
html[data-theme="dark"] .login-foot { color: #a98b93; }
html[data-theme="dark"] .login-foot a { color: #ff9aae; }
html[data-theme="dark"] .login-foot .foot-sep { color: #6f5760; }

html[data-theme="dark"] .hint-box {
  background: rgba(255, 143, 168, 0.08); border-color: rgba(255, 143, 168, 0.22); color: #c6a3ac;
}
html[data-theme="dark"] .hint-box summary { color: #ff9fb6; }

html[data-theme="dark"] .nf-card h1 { color: #f2dfe4; }
html[data-theme="dark"] .nf-tip { color: #b79aa3; }
html[data-theme="dark"] .nf-code { color: #ff8fab; text-shadow: 0 2px 0 rgba(255, 143, 168, .25), 0 10px 26px rgba(255, 114, 149, .35); }
html[data-theme="dark"] .nf-loader .shadow { background: rgba(255, 143, 168, 0.35); }

html[data-theme="dark"] .au-site-brand { color: #edd2d9; }
html[data-theme="dark"] .au-mark { box-shadow: 0 10px 18px rgba(255, 114, 149, 0.45); }
html[data-theme="dark"] .au-brand small { color: #b79aa3; }

html[data-theme="dark"] .au-card {
  background: #241a1e;
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.6);
}
html[data-theme="dark"] .au-panel {
  background: rgba(36, 26, 30, 0.97);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.6);
}
@media (max-width: 780px) {
  html[data-theme="dark"] .au-card { background: none; border: none; box-shadow: none; }
}

html[data-theme="dark"] .au-form h1,
html[data-theme="dark"] .au-sheet h3,
html[data-theme="dark"] .fp-card h3 { color: #ff9db2; }

html[data-theme="dark"] .au-seg { background: rgba(255, 143, 168, 0.12); }
html[data-theme="dark"] .au-seg button { color: #c0a0aa; }
html[data-theme="dark"] .au-seg button.is-on {
  background: #33252a; color: #ff9db2; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .au-field input {
  color: var(--ink); border-bottom-color: rgba(255, 255, 255, 0.2);
}
html[data-theme="dark"] .au-field label { color: var(--ink-soft); }
html[data-theme="dark"] .au-field input:focus ~ label,
html[data-theme="dark"] .au-field input:valid ~ label,
html[data-theme="dark"] .au-field input[readonly] ~ label,
html[data-theme="dark"] .au-field input:disabled ~ label,
html[data-theme="dark"] .au-field.is-opt input:focus ~ label,
html[data-theme="dark"] .au-field.is-opt input:not(:placeholder-shown) ~ label { color: #ff9db2; }
html[data-theme="dark"] .au-field.is-opt input:valid ~ label { color: var(--ink-soft); }
html[data-theme="dark"] .au-field input::placeholder { color: #8d727b; }
html[data-theme="dark"] .au-field input:-webkit-autofill,
html[data-theme="dark"] .au-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink); caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px #241a1e inset;
}
html[data-theme="dark"] .au-code-btn { color: #ff9db2; }
html[data-theme="dark"] .au-code-btn:disabled { color: #876c74; }
html[data-theme="dark"] .au-second-tip { color: #d79aa9; }
html[data-theme="dark"] .au-cap {
  background: #fff; box-shadow: 0 0 0 1px rgba(255, 143, 168, 0.3), 0 6px 14px rgba(0, 0, 0, 0.4);
}
html[data-theme="dark"] .pw-eye { color: #b58e9a; }
html[data-theme="dark"] .pw-eye:hover { background: rgba(255, 143, 168, 0.12); color: #ff9db2; }
html[data-theme="dark"] .pw-eye[data-open="1"] { color: #ff9db2; }

html[data-theme="dark"] .au-msg {
  background: rgba(255, 92, 124, 0.12); border-color: rgba(255, 120, 150, 0.34); color: #ff9cb2;
}
html[data-theme="dark"] .au-msg.is-ok {
  background: rgba(70, 190, 130, 0.12); border-color: rgba(100, 210, 150, 0.3); color: #7fd6a5;
}
html[data-theme="dark"] .au-closed-text { color: #c3a4ad; }

html[data-theme="dark"] .au-links { color: #b79aa3; }
html[data-theme="dark"] .au-links a { color: #ff9aae; border-bottom-color: rgba(255, 143, 168, 0.45); }
html[data-theme="dark"] .au-links span { color: #6f5760; }

html[data-theme="dark"] .au-side h2 { color: #f2dfe4; }
html[data-theme="dark"] .au-side p { color: #b79aa3; }
html[data-theme="dark"] .au-switch {
  background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 154, 176, 0.6); color: #ff9db2;
}
html[data-theme="dark"] .au-switch:hover { background: #ff9db6; color: #2b1b21; }
html[data-theme="dark"] .au-num { color: #ffb3c6; text-shadow: 0 3px 0 rgba(255, 143, 168, .25), 0 14px 26px rgba(0, 0, 0, .5); }

html[data-theme="dark"] .au-sheet { background: #241a1e; }
html[data-theme="dark"] .au-sheet-sub { color: #b79aa3; }
html[data-theme="dark"] .au-steps li { color: #b79aa3; border-top-color: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .au-steps li::before { background: #ff9db6; }
html[data-theme="dark"] .au-sheet-foot { color: #a98b93; }
html[data-theme="dark"] .au-sheet-foot a { color: #ff9aae; border-bottom-color: rgba(255, 143, 168, 0.45); }
html[data-theme="dark"] .au-sheet-foot span { color: #6f5760; }

html[data-theme="dark"] .fp-card {
  background: rgba(36, 26, 30, 0.97);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.6);
}
html[data-theme="dark"] .fp-card .au-modal-sub { color: #b79aa3; }
html[data-theme="dark"] .fp-card .au-modal-foot { color: #a98b93; }
html[data-theme="dark"] .fp-card .au-modal-foot a { color: #ff9aae; border-bottom-color: rgba(255, 143, 168, 0.45); }
html[data-theme="dark"] .fp-card .au-modal-foot span { color: #6f5760; }

html[data-theme="dark"] .rescue-box {
  background: rgba(36, 26, 30, 0.95); border-color: rgba(255, 143, 168, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .rescue-head { color: #ff8fa8; }
html[data-theme="dark"] .rescue-tip { color: #c0a0a8; }
html[data-theme="dark"] .rescue-tip b { color: #ff9db2; }
html[data-theme="dark"] .rescue-row input {
  background: #2a1e22; border-color: rgba(255, 255, 255, 0.14); color: #f2e2e6;
}
html[data-theme="dark"] .rescue-row input:focus { border-color: #e79bb0; box-shadow: 0 0 0 3px rgba(255, 143, 168, 0.18); }
html[data-theme="dark"] .rescue-link { color: #b58e9a; }

html[data-theme="dark"] .msg-hint { color: #b79aa3; }
html[data-theme="dark"] .msg-off-text { color: #b79aa3; }
html[data-theme="dark"] .msg-sw-card {
  background: rgba(36, 26, 30, 0.94); border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .msg-sw-t { color: #d3aeb8; }
html[data-theme="dark"] .msg-sw-v { color: #a98b93; }
html[data-theme="dark"] .msg-sw-v.is-on { color: #ff9db2; }
html[data-theme="dark"] .msg-sw-btn { background: #3a2a30; }
html[data-theme="dark"] .msg-sw-btn i { background: #f6e7ea; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); }

.theme-toggle {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  width: 42px; height: 42px; padding: 0;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.9);
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(200, 140, 155, 0.18);
  color: #8a5a68; font-size: 17px; line-height: 1; cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.theme-toggle:hover { transform: translateY(-2px); }
.theme-toggle .tt-sun,
.theme-toggle .tt-moon { pointer-events: none; }
.theme-toggle .tt-moon { display: none; }
html[data-theme="dark"] .theme-toggle {
  background: rgba(36, 26, 30, 0.92); border-color: rgba(255, 255, 255, 0.14);
  color: #f0cbd6; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .theme-toggle .tt-sun { display: none; }
html[data-theme="dark"] .theme-toggle .tt-moon { display: block; }

@media (max-width: 560px) {
  .theme-toggle { right: 12px; bottom: 12px; width: 38px; height: 38px; font-size: 15px; }
}

html[data-theme="dark"] ::-webkit-scrollbar { width: 10px; height: 10px; }
html[data-theme="dark"] ::-webkit-scrollbar-track { background: #1d1418; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #3d2c33; border-radius: 5px; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #4d3942; }

html[data-theme="dark"] {
  --bg: #120e11;
  --panel: #1e171b;
  --pink: #ff8fa8;
  --pink-soft: rgba(255, 143, 168, 0.13);
  --ink: #efe0e4;
  --ink-2: #c0a2ab;
  --ink-3: #93777f;
  --line: rgba(255, 255, 255, 0.11);
  --shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .main { background: var(--bg); color: var(--ink); }

html[data-theme="dark"] .sidebar { background: #191216; border-right: 1px solid rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .topbar { background: rgba(25, 18, 22, 0.92); border-bottom-color: var(--line); }
html[data-theme="dark"] .card { border-color: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .kpi { background: var(--panel); border-color: rgba(255, 255, 255, 0.08); }

html[data-theme="dark"] .nav a:hover,
html[data-theme="dark"] .side-foot a:hover { background: rgba(255, 255, 255, 0.06); }
html[data-theme="dark"] .nav a.active {
  background: linear-gradient(135deg, rgba(255, 143, 168, 0.2), rgba(255, 143, 168, 0.1));
  color: #ff9db2; box-shadow: inset 0 0 0 1px rgba(255, 143, 168, 0.32);
}

html[data-theme="dark"] .btn-ghost { background: rgba(255, 255, 255, 0.07); color: var(--ink-2); }
html[data-theme="dark"] .btn-danger {
  background: rgba(255, 92, 124, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 120, 150, 0.36); color: #ff9cb2;
}
html[data-theme="dark"] .btn.copied {
  background: rgba(255, 143, 168, 0.18); box-shadow: inset 0 0 0 1px rgba(255, 143, 168, 0.4); color: #ffc2d0;
}

html[data-theme="dark"] #userSearch,
html[data-theme="dark"] #uvSearch,
html[data-theme="dark"] #msgSearch,
html[data-theme="dark"] #memoSearch,
html[data-theme="dark"] #fkUser,
html[data-theme="dark"] #fkPass,
html[data-theme="dark"] #fkReply {
  background: #241b1f; border-color: rgba(255, 255, 255, 0.12); color: var(--ink);
}
html[data-theme="dark"] #userSearch::placeholder,
html[data-theme="dark"] #uvSearch::placeholder,
html[data-theme="dark"] #msgSearch::placeholder,
html[data-theme="dark"] #memoSearch::placeholder,
html[data-theme="dark"] #fkUser::placeholder,
html[data-theme="dark"] #fkPass::placeholder,
html[data-theme="dark"] #fkReply::placeholder { color: #8a7079; }
html[data-theme="dark"] #userSearch:focus,
html[data-theme="dark"] #uvSearch:focus,
html[data-theme="dark"] #msgSearch:focus,
html[data-theme="dark"] #memoSearch:focus,
html[data-theme="dark"] #fkUser:focus,
html[data-theme="dark"] #fkPass:focus,
html[data-theme="dark"] #fkReply:focus {
  border-color: rgba(255, 143, 168, 0.6); box-shadow: 0 0 0 3px rgba(255, 143, 168, 0.18);
}

html[data-theme="dark"] .side-logout,
html[data-theme="dark"] .side-menu-btn { background: rgba(255, 255, 255, 0.07); color: var(--ink-2); }
html[data-theme="dark"] .side-menu-btn[aria-expanded="true"] {
  background: rgba(255, 143, 168, 0.15); box-shadow: inset 0 0 0 1px rgba(255, 143, 168, 0.35); color: #ff9db2;
}
html[data-theme="dark"] .side-menu {
  background: #1e171b; box-shadow: 0 18px 42px rgba(0, 0, 0, 0.6), inset 0 0 0 1px var(--line);
}

html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background-color: #241b1f; color: var(--ink); border-color: rgba(255, 255, 255, 0.12);
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #8a7079; }
html[data-theme="dark"] select option { background: #241b1f; color: var(--ink); }

html[data-theme="dark"] table { border-color: var(--line); }
html[data-theme="dark"] th { background: rgba(255, 255, 255, 0.05); color: var(--ink-2); }
html[data-theme="dark"] td { border-color: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.03); }

html[data-theme="dark"] .modal { background: #20191d; border-color: rgba(255, 255, 255, 0.1); }
html[data-theme="dark"] .modal-mask { background: rgba(0, 0, 0, 0.62); }
html[data-theme="dark"] .modal-foot { border-top-color: var(--line); }
html[data-theme="dark"] .modal-msg { color: var(--ink-2); }
html[data-theme="dark"] .confirm-text { color: var(--ink); }

html[data-theme="dark"] .ms-shell,
html[data-theme="dark"] .ms-split,
html[data-theme="dark"] .ms-overview,
html[data-theme="dark"] .ms-card,
html[data-theme="dark"] .ms-seg {
  background: var(--panel); border-color: rgba(255, 255, 255, 0.09);
}
html[data-theme="dark"] .ms-list { background: #1b1417; border-right-color: var(--line); }
html[data-theme="dark"] .toolrow { border-bottom-color: var(--line); }
html[data-theme="dark"] .toolrow input[type="search"],
html[data-theme="dark"] .toolrow select,
html[data-theme="dark"] .ms-list-tools input[type="search"],
html[data-theme="dark"] .ms-list-tools select {
  background: #241b1f; border-color: rgba(255, 255, 255, 0.12); color: var(--ink);
}

html[data-theme="dark"] .ms-bypass-btn {
  background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 143, 168, 0.35); color: var(--ink-2);
}
html[data-theme="dark"] .ms-bypass-btn:hover { background: rgba(255, 143, 168, 0.12); border-color: rgba(255, 143, 168, 0.5); }
html[data-theme="dark"] .ms-bypass-btn.on {
  background: rgba(255, 143, 168, 0.16); border-color: rgba(255, 143, 168, 0.45); color: #ff9db2;
}
html[data-theme="dark"] .uv-bulk-count { background: rgba(255, 143, 168, 0.14); color: #ff9db2; }
html[data-theme="dark"] .bp-list { background: transparent; border-color: var(--line); }
html[data-theme="dark"] .bp-row:hover { background: rgba(255, 143, 168, 0.1); }
html[data-theme="dark"] .bp-nm { color: var(--ink); }

html[data-theme="dark"] table tbody tr,
html[data-theme="dark"] .uv-table tbody tr,
html[data-theme="dark"] .uv-table td,
html[data-theme="dark"] .log-table tbody tr,
html[data-theme="dark"] .entry-table tbody tr { background: transparent; }
html[data-theme="dark"] table tbody tr:nth-child(even),
html[data-theme="dark"] .uv-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.03); }
html[data-theme="dark"] table thead th,
html[data-theme="dark"] .uv-table thead th,
html[data-theme="dark"] .table-wrap.scroll thead th { background: #1a1317; color: var(--ink-2); }
html[data-theme="dark"] tbody tr:hover td { background: rgba(255, 143, 168, 0.08); }
html[data-theme="dark"] .tfoot { background: rgba(255, 255, 255, 0.03); border-top-color: var(--line); }
html[data-theme="dark"] .tfoot .pg-jump input[type="number"] {
  background: #241b1f; border-color: rgba(255, 255, 255, 0.12); color: var(--ink-2);
}

html[data-theme="dark"] .ms-table tbody tr:nth-child(odd),
html[data-theme="dark"] .ms-table tbody tr { background: transparent; }
html[data-theme="dark"] .ms-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.03); }
html[data-theme="dark"] .ms-table tbody tr:hover { background: rgba(255, 143, 168, 0.08); }
html[data-theme="dark"] .ms-table tbody tr:hover td,
html[data-theme="dark"] .ms-table tbody tr:hover td:first-child,
html[data-theme="dark"] .ms-table tbody tr:hover td:last-child { background: rgba(255, 143, 168, 0.08); }
html[data-theme="dark"] .ms-table tbody tr:nth-child(even) td:first-child,
html[data-theme="dark"] .ms-table tbody tr:nth-child(even) td:last-child { background: rgba(255, 255, 255, 0.03); }
html[data-theme="dark"] .ms-table tbody tr:has(.ms-sel:checked) { background: rgba(255, 143, 168, 0.1); }
html[data-theme="dark"] .ms-table tbody tr:has(.ms-sel:checked):hover { background: rgba(255, 143, 168, 0.14); }
html[data-theme="dark"] .ms-table td .tag,
html[data-theme="dark"] .ms-table .tag { background: rgba(255, 255, 255, 0.07); color: var(--ink-2); }

html[data-theme="dark"] .tfoot .tr-bulk .uv-bulk-count {
  background: rgba(255, 143, 168, 0.16); color: #ff9db2;
}
html[data-theme="dark"] .tfoot .tr-bulk.is-empty .uv-bulk-count {
  background: rgba(255, 255, 255, 0.06); color: var(--ink-3);
}

html[data-theme="dark"] .lv-table tbody tr:hover { background: rgba(255, 143, 168, 0.08); }
html[data-theme="dark"] .plain-table tbody tr:hover { background: rgba(255, 143, 168, 0.08); }
html[data-theme="dark"] tbody tr:hover td { background: rgba(255, 143, 168, 0.08); }

html[data-theme="dark"] .listbar,
html[data-theme="dark"] .view-switch,
html[data-theme="dark"] .memo-list,
html[data-theme="dark"] .msg-card,
html[data-theme="dark"] .setcard {
  background: var(--panel); border-color: rgba(255, 255, 255, 0.09);
}
html[data-theme="dark"] .msg-card.unread { background: #241b1f; border-color: rgba(255, 143, 168, 0.3); }
html[data-theme="dark"] .msg-chip,
html[data-theme="dark"] .memo-sort-btn {
  background: rgba(255, 255, 255, 0.07); color: var(--ink-2); border-color: rgba(255, 255, 255, 0.1);
}
html[data-theme="dark"] .msg-chip.on { background: rgba(255, 143, 168, 0.18); color: #ff9db2; border-color: rgba(255, 143, 168, 0.35); }
html[data-theme="dark"] .view-switch .on,
html[data-theme="dark"] .view-switch .is-on { background: rgba(255, 143, 168, 0.18); color: #ff9db2; }
html[data-theme="dark"] .msg-del { background: rgba(255, 255, 255, 0.07); color: var(--ink-2); }
html[data-theme="dark"] .msg-card .btn,
html[data-theme="dark"] .msg-acts .btn { background: rgba(255, 255, 255, 0.07); color: var(--ink-2); }
html[data-theme="dark"] .msg-card .btn-danger,
html[data-theme="dark"] .msg-card .msg-del,
html[data-theme="dark"] .msg-acts .msg-del {
  background: rgba(255, 92, 124, 0.14); color: #ff9cb2;
}
html[data-theme="dark"] .log-pre {
  background: #171114; color: var(--ink-2); border-color: rgba(255, 255, 255, 0.1);
}
html[data-theme="dark"] .setcard.is-static { background: var(--panel); }

html[data-theme="dark"] .tog-track,
html[data-theme="dark"] .uv-switch-track,
html[data-theme="dark"] .reg-switch-track { background: #3a2a30; }
html[data-theme="dark"] .ms-switches .ms-swf { color: var(--ink-2); }

html[data-theme="dark"] .memo-dot {
  background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22);
}
html[data-theme="dark"] .memo-x { background: rgba(255, 255, 255, 0.08); color: var(--ink-2); }
html[data-theme="dark"] .memo-x:hover { background: rgba(255, 92, 124, 0.18); color: #ff9cb2; }

html[data-theme="dark"] .sw { color: var(--ink-2); }
html[data-theme="dark"] .sw i { background: #3a2a30; }
html[data-theme="dark"] .sw i::after { background: #e3d3d7; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
html[data-theme="dark"] .sw.on i { background: var(--pink); }

html[data-theme="dark"] .efield {
  background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1);
}
html[data-theme="dark"] .efield-danger { background: rgba(255, 92, 124, 0.1); border-color: rgba(255, 120, 150, 0.3); }
