/* 生成元：gen_ui.py（Radix Colors MIT を土台に WCAG 2.2 AA へ調整）。ダークが既定、ライトは <html data-app-theme="light"> */
/* WorldMap UI tokens — 色以外の段階表 */
:root{
  color-scheme: dark;
  /* 文字 */
  --wm-font: Inter, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", sans-serif;
  --wm-font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --wm-font-figure: var(--wm-font); /* 日付・件数・時刻などの数字（2026-11-24 UIはInterに決定。会社の書体はロゴだけ） */
  --wm-text-xs: 12px;  /* 補足 */
  --wm-text-sm: 13px;  /* 補助の文字・ラベル */
  --wm-text-md: 14px;  /* 本文・ボタン */
  --wm-text-lg: 16px;  /* 一覧の題名 */
  --wm-text-xl: 20px;  /* ダイアログの見出し */
  --wm-text-2xl: 24px; /* ページの見出し */
  --wm-text-3xl: 32px; /* 読む画面の題名（質問・ガイド） */
  --wm-weight-regular: 400; --wm-weight-medium: 500; --wm-weight-bold: 600;
  --wm-leading: 1.6; --wm-leading-tight: 1.4;
  /* 余白（4pxの格子） */
  --wm-space-1: 4px; --wm-space-2: 8px; --wm-space-3: 12px; --wm-space-4: 16px; --wm-space-5: 20px;
  --wm-space-6: 24px; --wm-space-8: 32px; --wm-space-12: 48px; --wm-space-16: 64px;
  /* 角丸 */
  --wm-radius-sm: 5px; --wm-radius-md: 9px; --wm-radius-lg: 16px; --wm-radius-full: 999px;
  /* 大きさ */
  --wm-control-h: 44px; --wm-row-h: 52px;
  /* 動き（Open Propsのease-3・ease-out-3と同じカーブ） */
  --wm-ease: cubic-bezier(.25,0,.3,1); --wm-ease-out: cubic-bezier(0,0,.3,1);
  --wm-dur-fast: 120ms; --wm-dur: 200ms;
}
:root{
  --wm-bg: #111111;
  --wm-panel: #222222;
  --wm-field: #191919;
  --wm-hover: #1f1f1f;
  --wm-selected: #3a3a3a;
  --wm-surface: #3a3a3a;
  --wm-surface-hover: #484848;
  --wm-surface-active: #606060;
  --wm-separator: #3a3a3a;
  --wm-line: #7b7b7b;
  --wm-text: #eeeeee;
  --wm-text-muted: #b4b4b4;
  --wm-text-disabled: #606060;
  --wm-placeholder: #b4b4b4;
  --wm-accent: #ff531c;
  --wm-accent-hover: #ff6b3c;
  --wm-on-accent: #202020;
  --wm-danger: #ca244d;
  --wm-danger-hover: #d42a55;
  --wm-on-danger: #ffffff;
  --wm-danger-text: #ff5c7a;
  --wm-status-todo: #6e6e6e;
  --wm-status-doing: #70b8ff;
  --wm-status-review: #ffca16;
  --wm-status-done: #3dd68c;
  --wm-status-overdue: #ff5c7a;
  --wm-link: #70b8ff;
  --wm-selected-mark: #eeeeee;
  --wm-scrim: rgba(0,0,0,.62);
  --wm-toast: #3a3a3a;
  --wm-on-toast: #eeeeee;
  --wm-load-cell: #2a2a2a;
  --wm-load-near: #ffc53d;
  --wm-on-load-near: #202020;
  --wm-load-over: #ca244d;
  --wm-on-load-over: #ffffff;
  --wm-load-ok-bar: #7b7b7b;
  --wm-project-blue: #0090ff;
  --wm-project-violet: #6e56cf;
  --wm-project-pink: #d6409f;
  --wm-project-teal: #12a594;
  --wm-project-green: #46a758;
  --wm-project-amber: #ffc53d;
  --wm-project-brown: #ad7f58;
  --wm-project-gray: #6e6e6e;
}
:root[data-app-theme="light"]{
  color-scheme: light;
  --wm-bg: #f4f4f4;
  --wm-panel: #ffffff;
  --wm-field: #f0f0f0;
  --wm-hover: #eeeeee;
  --wm-selected: #e2e2e2;
  --wm-surface: #e8e8e8;
  --wm-surface-hover: #e0e0e0;
  --wm-surface-active: #d9d9d9;
  --wm-separator: #d9d9d9;
  --wm-line: #838383;
  --wm-text: #202020;
  --wm-text-muted: #646464;
  --wm-text-disabled: #bbbbbb;
  --wm-placeholder: #646464;
  --wm-accent: #ff531c;
  --wm-accent-hover: #ff6b3c;
  --wm-on-accent: #202020;
  --wm-danger: #ca244d;
  --wm-danger-hover: #d42a55;
  --wm-on-danger: #ffffff;
  --wm-danger-text: #ca244d;
  --wm-status-todo: #8d8d8d;
  --wm-status-doing: #0d6dc3;
  --wm-status-review: #c96a00;
  --wm-status-done: #207c54;
  --wm-status-overdue: #ca244d;
  --wm-link: #0d6dc3;
  --wm-selected-mark: #202020;
  --wm-scrim: rgba(17,17,17,.28);
  --wm-toast: #202020;
  --wm-on-toast: #fcfcfc;
  --wm-load-cell: #e8e8e8;
  --wm-load-near: #ffc53d;
  --wm-on-load-near: #202020;
  --wm-load-over: #ca244d;
  --wm-on-load-over: #ffffff;
  --wm-load-ok-bar: #838383;
  --wm-project-blue: #0588f0;
  --wm-project-violet: #654dc4;
  --wm-project-pink: #cf3897;
  --wm-project-teal: #0d9b8a;
  --wm-project-green: #3e9b4f;
  --wm-project-amber: #c96a00;
  --wm-project-brown: #a07553;
  --wm-project-gray: #838383;
}
@media (prefers-reduced-motion: reduce){:root{--wm-dur-fast:0ms;--wm-dur:0ms}}
