:root {
  --emm-nav-space: 0px;
  --emm-app: #f3f4f6;
  --emm-panel: #f9fafb;
  --emm-canvas: #fff;
  --emm-ink: #1f2937;
  --emm-muted: #4b5563;
  --emm-border: #d1d5db;
  --emm-accent: #2563eb;
  --emm-blue: #3b82f6;
  --emm-red: #ef4444;
  --emm-green: #22c55e;
  --emm-purple: #9333ea;
  --emm-magenta: #db2777;
  --emm-amber: #f59e0b;
  --emm-gravity: #22c55e;
  --emm-normal: #db2777;
  --emm-friction: #ef4444;
  --emm-resultant: #9333ea;
  --emm-contact-resultant: #f59e0b;
  --emm-grid: #e5e7eb;
  --emm-proton: #ef4444;
  --emm-neutron: #9ca3af;
  --emm-electron: #3b82f6;
  font-family: "Segoe UI", "Noto Sans CJK TC", "Microsoft JhengHei", sans-serif;
  color: var(--emm-ink);
}

button, input, select { font: inherit; }
html[data-i18n-loading] body { visibility: hidden; }
body:has(> .emm-standalone-nav) { --emm-nav-space: 76px; }
html[lang="zh-Hant"] body { font-family: "Segoe UI", "Microsoft JhengHei", "Noto Sans CJK TC", sans-serif; }
:focus-visible { outline: 3px solid var(--emm-accent); outline-offset: 2px; }
.emm-standalone-nav {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 9999;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px;
  border: 1px solid var(--emm-border);
  border-radius: 10px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 2px 12px rgb(15 23 42 / 12%);
  font-size: 13px;
}
.emm-standalone-nav a { color: var(--emm-accent); text-decoration: none; padding: 4px; white-space: nowrap; }
.emm-standalone-nav select { border: 1px solid var(--emm-border); border-radius: 6px; background: white; padding: 4px; width: auto; flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) { .emm-standalone-nav * { scroll-behavior: auto; } }
