/* Menu 3 chế độ giao diện gắn vào chính nút [data-theme-toggle] (theme.js). Dùng chung website và Admin. */
.theme-menu{position:fixed;z-index:2147483000;display:grid;gap:4px;max-height:calc(100dvh - 16px);overflow-y:auto;overscroll-behavior:contain;padding:6px;border-radius:14px;border:1px solid var(--theme-menu-line);background:var(--theme-menu-bg);color:var(--theme-menu-text);box-shadow:0 18px 40px rgba(0,0,0,.28);font:inherit;font-size:14px;line-height:1.35}
.theme-menu[hidden]{display:none}
html[data-theme="dark"] .theme-menu{--theme-menu-bg:#141414;--theme-menu-line:rgba(214,184,139,.35);--theme-menu-text:#f5f3ee;--theme-menu-muted:#b9b3a8;--theme-menu-hover:rgba(214,184,139,.12);--theme-menu-accent:#d6b88b}
html[data-theme="light"] .theme-menu{--theme-menu-bg:#ffffff;--theme-menu-line:#d8dee5;--theme-menu-text:#1b2838;--theme-menu-muted:#586579;--theme-menu-hover:#fff6e6;--theme-menu-accent:#9a6a1c}
.theme-menu-item{display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:10px;width:100%;padding:9px 10px;border:0;border-radius:10px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.theme-menu-item:hover{background:var(--theme-menu-hover)}
.theme-menu-item:focus-visible{outline:2px solid var(--theme-menu-accent);outline-offset:1px}
.theme-menu-item[aria-checked="true"]{background:var(--theme-menu-hover);box-shadow:inset 3px 0 0 var(--theme-menu-accent)}
.theme-menu-icon svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme-menu-item[aria-checked="true"] .theme-menu-icon{color:var(--theme-menu-accent)}
.theme-menu-text{display:grid;gap:2px;min-width:0}
.theme-menu-text strong{font-weight:650}
.theme-menu-text small{color:var(--theme-menu-muted);font-size:12px}
.theme-menu-state{color:var(--theme-menu-muted);font-size:12px;white-space:nowrap}
@media (max-width: 280px) {
  .theme-menu { gap: 2px; padding: 4px; overflow-x: hidden; }
  .theme-menu-item { grid-template-columns: 12px minmax(0, 1fr); gap: 2px; padding: 5px 2px; font-size: 11px; }
  .theme-menu-icon svg { width: 12px; height: 12px; }
  .theme-menu-text small, .theme-menu-state { display: none; }
  .theme-menu-text strong { font-size: 11px; line-height: 1.15; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion:no-preference){.theme-menu{animation:theme-menu-in .12s ease-out}@keyframes theme-menu-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}}
