:root {
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-soft: #edf2f8;
  --surface-muted: #e4ebf4;
  --line: rgba(23, 38, 70, 0.12);
  --line-strong: rgba(23, 38, 70, 0.18);
  --text: #11213b;
  --text-soft: #526177;
  --text-muted: #72809a;
  --primary: #0b2c5d;
  --primary-strong: #081f45;
  --accent: #d64f1f;
  --accent-soft: rgba(214, 79, 31, 0.12);
  --success: #0f7b58;
  --shadow-sm: 0 8px 24px rgba(15, 31, 55, 0.08);
  --shadow-md: 0 14px 36px rgba(15, 31, 55, 0.1);
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Hanken Grotesk', 'Inter', system-ui, sans-serif;
  --header-height: 88px;
  --quick-actions-height: 50px;
  --header-gap: 12px;
  --main-gap: 16px;
  --workspace-width: minmax(0, 1fr);
  --ai-width: clamp(360px, 30vw, 480px);
  --transition-fast: 140ms ease;
  --transition-base: 220ms ease;
  /* Resource panel layout & spacing tokens */
  --resource-panel-pad-desktop: 24px 28px;
  --resource-panel-pad-laptop: 20px 20px;
  --resource-panel-pad-mobile: 16px;
  --spacing-title-context: 24px;
  --spacing-context-desc: 6px;
  --spacing-desc-tabs: 18px;
  --spacing-tabs-content: 20px;
  --spacing-counter-card: 12px;

  /* Learning workspace & card rhythm tokens (Phase 8.0.5) */
  --learning-workspace-pad-desktop: 24px 28px;
  --learning-workspace-pad-laptop: 20px 20px;
  --learning-workspace-pad-mobile: 16px;
  --card-pad-desktop: 20px 24px;
  --card-pad-mobile: 16px;
  --spacing-section-gap: 20px;
  --spacing-heading-content: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(11, 44, 93, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(214, 79, 31, 0.08), transparent 22%),
    var(--bg);
}

button,
a,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.is-hidden {
  display: none !important;
}

.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;
}
