:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --surface-2: #f3efe8;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5ded1;
  --brand: #8b5e34;
  --brand-dark: #6a4322;
  --good: #15803d;
  --warn: #b45309;
  --bad: #b91c1c;
  --shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
body.accessibility-mode { font-size: 19px; }
body.accessibility-mode .button, body.accessibility-mode input, body.accessibility-mode select, body.accessibility-mode textarea { min-height: 56px; font-size: 1.05rem; }
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; background: rgba(247, 244, 239, 0.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.brand { font-weight: 800; font-size: 1rem; }
.brand-block { display: grid; gap: 0.15rem; }
.subtle { color: var(--muted); font-size: 0.9rem; }
.header-actions, .lang-switch, .actions, .inline-form { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.mobile-nav { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.85rem 1rem 0; }
.nav-chip, .pill { padding: 0.6rem 0.9rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); white-space: nowrap; }
.nav-chip.active, .pill.active { background: var(--brand); color: white; border-color: var(--brand); }
.page-shell { max-width: 1220px; margin: 0 auto; padding: 1rem; display: grid; gap: 1rem; }
.card, .hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 1.1rem; box-shadow: var(--shadow); }
.hero-card { display: grid; gap: 1rem; align-items: start; }
.nested-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 0.85rem; margin-top: 0.8rem; }
.page-header { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.page-header h1 { margin: 0; }
.grid { display: grid; gap: 1rem; }
.grid.two-col { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.auto-fit { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.employee-picker, .section-grid { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.employee-tile, .section-card { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: center; background: var(--surface-2); border-radius: 18px; border: 1px solid var(--border); padding: 0.9rem; }
.employee-tile { width: 100%; text-align: left; cursor: pointer; }
.employee-card .button { margin-top: 0.75rem; width: 100%; }
.employee-row, .alexis-task, .section-top, .metric-row, .list-row, .lesson-row, .check-row { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.section-top { align-items: start; }
.lesson-row, .check-row, .radio-row { justify-content: start; }
.lesson-row.done { opacity: 0.7; }
.note { padding: 0.85rem; background: var(--surface-2); border-radius: 16px; border: 1px solid var(--border); }
.stack { display: grid; gap: 0.75rem; }
.button { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 14px; min-height: 44px; padding: 0.8rem 1rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.button.primary { background: var(--brand); color: white; border-color: var(--brand); }
.button.success { background: var(--good); color: white; border-color: var(--good); }
.button.warning { background: var(--warn); color: white; border-color: var(--warn); }
.button.ghost { background: transparent; }
.button.mini { min-height: 36px; padding: 0.5rem 0.8rem; border-radius: 12px; font-size: 0.95rem; }
.button.jumbo { min-height: 72px; border-radius: 18px; font-size: 1.08rem; width: 100%; }
.button.speaker { background: #1d4ed8; color: white; border-color: #1d4ed8; }
.big-number { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 800; }
.eyebrow { text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--muted); }
.progress { width: 100%; height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress.slim { height: 8px; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), #d1a676); }
.status { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 0.3rem 0.7rem; font-size: 0.82rem; font-weight: 700; background: #ede9e1; color: #5b5348; }
.status-green, .status-certified, .status-passed, .status-approved, .status-completed { background: rgba(21, 128, 61, 0.12); color: var(--good); }
.status-yellow, .status-in-progress, .status-assigned, .status-pending { background: rgba(180, 83, 9, 0.12); color: var(--warn); }
.status-red, .status-overdue, .status-expired, .status-needs-coaching, .status-retraining, .status-missed { background: rgba(185, 28, 28, 0.12); color: var(--bad); }
.flash-stack { display: grid; gap: 0.5rem; }
.flash { padding: 0.9rem 1rem; border-radius: 16px; font-weight: 600; }
.flash.success { background: rgba(21, 128, 61, 0.12); color: var(--good); }
.flash.warning { background: rgba(180, 83, 9, 0.12); color: var(--warn); }
.flash.error { background: rgba(185, 28, 28, 0.12); color: var(--bad); }
.filter-form { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: end; }
.filter-form input, .filter-form select { min-height: 44px; padding: 0.7rem 0.85rem; border: 1px solid var(--border); border-radius: 14px; background: white; }
label { display: grid; gap: 0.35rem; font-weight: 600; }
input, select, textarea { width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--border); border-radius: 14px; background: white; }
textarea { resize: vertical; }
.table-wrap { overflow-x: auto; }
.table-wrap.wide { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.data-table th, .data-table td { border-bottom: 1px solid var(--border); padding: 0.75rem 0.65rem; text-align: left; vertical-align: top; }
.data-table th { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.data-table.compact td, .data-table.compact th { padding: 0.55rem; }
.matrix-cell { display: grid; gap: 0.35rem; min-width: 100px; }
.formatted-text { line-height: 1.6; }
.avatar, .icon-badge { width: 48px; height: 48px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: white; background: var(--brand); flex: none; }
.icon-badge { background: #c08457; }
.icon-badge.xl { width: 88px; height: 88px; font-size: 2rem; margin: 0 auto; }
.alexis-shell { display: grid; gap: 1rem; }
.alexis-card { text-align: center; }
.big-copy { font-size: 1.2rem; line-height: 1.5; }
.empty { color: var(--muted); }
.right-stack { display: grid; gap: 0.4rem; justify-items: end; }
.quiz-card { border: 1px solid var(--border); border-radius: 18px; padding: 0.9rem; background: var(--surface-2); }
.radio-row { align-items: flex-start; width: 100%; }
.radio-row input[type="radio"] { width: auto; padding: 0; margin: 0.2rem 0 0 0; flex: none; }
.radio-row span { flex: 1; line-height: 1.45; }
.printable { background: white; max-width: 1000px; margin: 0 auto; padding: 1rem; }
@media (min-width: 860px) {
  .hero-card { grid-template-columns: 2fr 1fr; }
}
@media (max-width: 700px) {
  .page-shell { padding-bottom: 5rem; }
  .site-header { align-items: start; flex-direction: column; }
  .button, .pill, .nav-chip { font-size: 0.95rem; }
}
