/* Shared EAD palette; loaded after the existing layout and footer styles. */
body[data-ead-role] {
  --bg: #f4f7fa;
  --panel: #fff;
  --panel-2: #edf3f9;
  --line: #d5e0eb;
  --text: #172b42;
  --muted: #596b7e;
  --soft: #65788c;
  --brand: #14538b;
  --gold: #ffc331;
  --cyan: #2369ac;
  --green: #258258;
  --danger: #aa2638;
  --shadow: none;
  --radius: 8px;
  background: var(--bg);
  color: var(--text);
  color-scheme: light;
  line-height: 1.6;
}
body[data-ead-role] * { letter-spacing: 0; }
.ead-topbar { background: #fff; border-bottom: 1px solid var(--line); backdrop-filter: none; }
.ead-brand strong, .ead-sidebar-head strong, .ead-metric strong { color: #082b58; }
.ead-brand small, .ead-sidebar-head small { color: var(--muted); }
.ead-public-nav a, .ead-side-nav a { background: #fff; border-color: var(--line); color: #24496f; border-radius: 6px; }
.ead-public-nav a:hover, .ead-side-nav a:hover { color: #082b58; background: #edf3f9; border-color: #adc4dc; }
.ead-side-nav a.active { color: #082b58; background: #fff3cc; border-color: #e1bc52; }
.ead-workspace { background: transparent; border-color: transparent; border-radius: 0; box-shadow: none; }
.ead-card, .ead-sidebar { background: #fff; border-color: var(--line); box-shadow: none; }
.ead-auth h1, .ead-page-head h1, .ead-card h2, .ead-card h3 {
  color: #082b58; font-family: Manrope,system-ui,sans-serif; line-height: 1.3;
  overflow-wrap: anywhere;
}
.ead-auth h1, .ead-page-head h1 { font-size: 28px; }
.ead-card h2 { font-size: 21px; }
.ead-card h3 { font-size: 17px; }
.ead-kicker { color: #14538b; }
.ead-form label { color: #304e6d; }
.ead-form input, .ead-form select, .ead-form textarea,
.ead-order-filters input, .ead-order-filters select {
  color: var(--text); background: #fff; border-color: #c6d3df; border-radius: 6px;
  min-height: 44px; font-size: 16px;
}
.ead-form input::placeholder, .ead-form textarea::placeholder { color: #67798b; opacity: 1; }
.ead-toolbar input, .ead-toolbar select {
  width: min(270px,100%); min-height: 44px; padding: 9px 12px;
  border: 1px solid #c6d3df; border-radius: 6px; background: #fff; color: var(--text); font: inherit;
}
.ead-form input[type=checkbox], .ead-form input[type=radio] { width: auto; min-height: 0; accent-color: #14538b; }
.ead-form input[type=file] { max-width: 100%; font-size: 13px; }
.ead-btn { border-radius: 6px; min-height: 44px; line-height: 1.4; font-family: inherit; font-weight: 800; }
.ead-btn.primary, .ead-btn.gold { color: #082b58; background: #ffc331; border: 1px solid #ffc331; }
.ead-btn.primary:hover, .ead-btn.gold:hover { background: #ffd05a; }
.ead-btn.ghost { color: #24496f; background: #fff; border-color: #c6d3df; }
.ead-btn.ghost:hover { background: #edf3f9; }
.ead-btn:hover { transform: none; filter: none; }
.ead-btn:disabled { opacity: .55; cursor: not-allowed; }
.ead-btn.danger { color: #aa2638; background: #fff0f2; border-color: #e9b9c0; }
.ead-btn.danger:hover { background: #ffe4e9; }
.ead-error { color: #aa2638; }
.ead-toast { border-color: #a9d8bd; background: #edf8f1; color: #245e42; border-radius: 6px; }
.ead-metric, .ead-product-card, .ead-module, .ead-action-card, .ead-lesson-row,
.ead-access-grid div { color: var(--text); background: #fff; border-color: var(--line); border-radius: 8px; }
.ead-metric strong { font-size: 30px; }
.ead-cards { grid-template-columns: repeat(auto-fill,minmax(min(260px,100%),1fr)); }
.ead-product-card img, .ead-course-card img { background: #edf3f9; border-radius: 6px; object-fit: contain; }
.ead-product-card h3, .ead-product-card p, .ead-action-card, .ead-lesson-row { overflow-wrap: anywhere; }
.ead-badge { color: #52667c; background: #f4f7fa; border-color: var(--line); }
.ead-badge.ok { color: #256243; background: #eef8f2; border-color: #b7dac6; }
.ead-badge.warn { color: #795509; background: #fff7df; border-color: #e4cf8e; }
.ead-badge.danger { color: #a12436; background: #fff0f2; border-color: #e9b9c0; }
.ead-table-wrap { border-color: var(--line); border-radius: 6px; }
table { background: #fff; }
th { color: #304e6d; background: #edf3f9; }
td { color: var(--text); }
th, td { border-color: var(--line); }
.ead-orders-table tr { background: #fff; }
.ead-order-page img { filter: none; }
.ead-progress { background: #e4ecf4; border-color: #d5e0eb; }
.ead-progress span { background: #258258; }
.ead-divider { background: var(--line); }
.ead-empty, .ead-loading { color: var(--muted); border-color: #bdcddd; border-radius: 8px; }
.ead-loading span { border-color: #d5e0eb; border-top-color: #14538b; }
.student-spotlight, .ead-learning-focus, .ead-learning-note { background: #edf4fc; border-color: #bdcfe2; }
.ead-learning-note { border-radius: 6px; }
.ead-lesson-row.done { background: #eff8f2; border-color: #b7dac6; }
.admin-risk { background: #fff8e4; border-color: #e4cf8e; }
.cert-card, .certificate-preview { background: #fff; color: var(--text); border-color: var(--line); border-radius: 8px; }
.cert-card p, .cert-card .ead-badge { color: #44546a; }
.page-footer { color: var(--muted); background: #fff; border-color: var(--line); border-radius: 8px; box-shadow: none; backdrop-filter: none; }
.page-footer::before { display: none; }
.page-footer a, .page-footer a:hover, .page-footer a:focus-visible { color: #14538b; }
:is(a,button,input,select,textarea):focus-visible { outline: 3px solid #2369ac; outline-offset: 3px; }
@media(max-width:720px) {
  .ead-auth h1, .ead-page-head h1 { font-size: 24px; }
  .ead-workspace { padding: 0; }
  .ead-cards { grid-template-columns: minmax(0,1fr); }
  .ead-public-nav a { padding: 10px 12px; }
  .ead-lesson-row > *, .ead-grid > * { min-width: 0; }
}
@media(prefers-reduced-motion:reduce) { .ead-btn { transition: none; } }
