:root {
  --bg: #f5f6f8;
  --surface: #fff;
  --surface-secondary: #f8f9fb;
  --border: #e1e5ea;
  --border-strong: #cfd5dd;
  --text: #17191c;
  --text-secondary: #5f6875;
  --text-muted: #8b95a3;
  --primary: #0f6cbd;
  --primary-hover: #115ea3;
  --primary-soft: #eaf3fc;
  --success: #107c41;
  --success-soft: #e9f6ef;
  --warning: #986f0b;
  --warning-soft: #fff4ce;
  --danger: #c42b1c;
  --danger-soft: #fdf0ed;
  --radius-small: 6px;
  --radius-control: 8px;
  --radius-table: 10px;
  --radius-card: 12px;
  --radius-dialog: 14px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --control-height: 40px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .03), 0 4px 12px rgba(0, 0, 0, .025);
  font-family: "Segoe UI", system-ui, -apple-system, "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, input, textarea, select, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible, canvas:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 599px) {
  :root { --control-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
