/* Shared foundation for the learner, account and operations workspaces. */
:root {
  color-scheme: light;
  --color-page: #f4f2ed;
  --color-surface: #fcfbf8;
  --color-surface-muted: #eceee9;
  --color-ink: #223742;
  --color-muted: #586a72;
  --color-line: #d5dcd9;
  --color-accent: #956529;
  --color-accent-soft: #f3e6cf;
  --color-success: #28674f;
  --color-success-soft: #e6f0e8;
  --color-warning: #8b5c16;
  --color-warning-soft: #f7edda;
  --color-danger: #a33f39;
  --color-danger-soft: #f7e8e4;
  --color-info: #315f78;
  --color-info-soft: #e7eef2;
  --font-body: "Avenir Next", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, monospace;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-compact: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-soft: 0 12px 36px rgb(34 55 66 / 7%);
  --shadow-dialog: 0 24px 80px rgb(34 55 66 / 20%);
  --duration-quick: 140ms;
  --duration-normal: 220ms;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); color: var(--color-ink); background: var(--color-page); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--color-info); outline-offset: 3px; }
::selection { color: var(--color-ink); background: var(--color-accent-soft); }
[hidden] { display: none !important; }
.sr-only, .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10000; top: 8px; left: 8px; padding: 12px 20px; border-radius: var(--radius-sm); color: var(--color-surface); background: var(--color-ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
