/* OSZ's original blue/yellow palette; every rule is tenant-scoped. */
html.osz-brand {
  --ink: #191919;
  --muted: #596570;
  --forest: #191919;
  --green: #0064a2;
  --lime: #edce00;
  --line: #d9e1e6;
  --bg: #f5f7f9;
  --surface: #ffffff;
  --surface-raised: #f7f9fb;
  --surface-muted: #edf2f6;
  --green-soft: #e9f4fb;
  --green-border: #8dbbd7;
  --green-text: #005586;
}
html.osz-brand[data-theme="dark"] {
  --ink: #eef1f4;
  --muted: #b7c0c8;
  --forest: #1b2025;
  --green: #7ec5ee;
  --line: #414a53;
  --bg: #171b20;
  --surface: #23292f;
  --surface-raised: #2b333b;
  --surface-muted: #303a44;
  --green-soft: #203d50;
  --green-border: #527d98;
  --green-text: #a7d8f6;
}
html.osz-brand .tenant-body.signed-out {
  background-color: #0064a2;
  background-image: none;
}
html.osz-brand .auth-screen > p { color: #eef5fa; }
html.osz-brand .tenant-body .sidebar { background: #0064a2; border-right: 0; }
html.osz-brand .tenant-body .sidebar :is(nav a:not(.active), .sidebar-contact, .tenant-course-switch) { color: #e9eff4; }
html.osz-brand .tenant-body .sidebar nav a.active { background: #edce00; color: #0064a2; }
html.osz-brand .tenant-body .sidebar nav a:hover:not(.active) { background: #005586; }
html.osz-brand .tenant-body .platform-brand .brand-logo {
  width: 179px;
  height: 40px;
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
  flex: 0 0 auto;
  padding: 8px;
  box-sizing: content-box;
  background: #ffffff;
  border: 0;
  border-radius: 6px;
  filter: none;
  box-shadow: none;
}
html.osz-brand .tenant-body .sidebar .platform-brand,
html.osz-brand .tenant-body .auth-card > .platform-brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
html.osz-brand .tenant-body .sidebar .brand-wordmark :is(strong, small) { color: #e9eff4; }
html.osz-brand .tenant-body .auth-card .brand-wordmark strong { color: var(--ink); font-size: 1.125rem; }
html.osz-brand .tenant-body .auth-card .brand-wordmark small { color: var(--muted); }
html.osz-brand .tenant-body .button.primary { background: #0064a2; border-color: #0064a2; color: #ffffff; }
html.osz-brand .tenant-body .button.primary:hover { background: #005586; border-color: #005586; filter: none; }
html.osz-brand .tenant-body .tenant-course-card { border-top: 3px solid #0064a2; }
html.osz-brand .tenant-body :is(.eyebrow, .text-link, .text-button, .source-link) { color: var(--green-text); }
html.osz-brand .tenant-body :is(.tag, .study-view.active, .question-bookmark.is-saved, .note-saved-label, .oral-topic.current) {
  color: var(--green-text);
  background: var(--green-soft);
  border-color: var(--green-border);
}
html.osz-brand .tenant-body .tenant-category-selection .tenant-category-brand,
html.osz-brand .tenant-body.tenant-category-selection .tenant-category-brand { display: block; min-width: 0; }
html.osz-brand .tenant-category-selection .tenant-category-brand .brand-wordmark { display: none; }
html.osz-brand .tenant-category-selection .tenant-category-brand .platform-brand { margin: 0; padding: 0; }
html.osz-brand .tenant-body :is(button, a, input, select, textarea, summary):focus-visible { outline-color: #0064a2; }
html.osz-brand[data-theme="dark"] .tenant-body :is(input, select, textarea) { background-color: #1b2229; border-color: #526170; }
html.osz-brand[data-theme="dark"] .tenant-body .button.primary { background: #7ec5ee; border-color: #7ec5ee; color: #15252f; }
html.osz-brand[data-theme="dark"] .tenant-body .button.primary:hover { background: #a7d8f6; border-color: #a7d8f6; }
html.osz-brand[data-theme="dark"] .tenant-body :is(button, a, input, select, textarea, summary):focus-visible { outline-color: #edce00; }
@media (max-width: 700px) {
  html.osz-brand .tenant-body .platform-brand .brand-logo { width: 143px; height: 32px; max-height: 32px; padding: 6px; }
  html.osz-brand .tenant-body .tenant-category-selection .page > header,
  html.osz-brand .tenant-body.tenant-category-selection .page > header { gap: 12px; }
}
/* Keep the selected Excel tab and table headings readable in both themes. */
html.osz-brand .tenant-body .osz-import .osz-import-tabs button[aria-pressed="true"] { background: #0064a2; border-color: #0064a2; color: #ffffff; }
html.osz-brand .tenant-body .osz-import th { background: var(--surface); color: var(--ink); }
html.osz-brand[data-theme="dark"] .tenant-body .osz-import .osz-import-tabs button[aria-pressed="true"] { background: #7ec5ee; border-color: #7ec5ee; color: #15252f; }

/* Carry the blue and yellow identity from osz.pl through the learning views. */
html.osz-brand .tenant-body .auth-card { border-top: 6px solid #edce00; }
html.osz-brand .tenant-body .auth-card .button.primary { background: #edce00; border-color: #edce00; color: #191919; }
html.osz-brand .tenant-body .auth-card .button.primary:hover { background: #191919; border-color: #191919; color: #edce00; }
html.osz-brand .tenant-body .page > header { border-bottom: 4px solid #edce00; }
html.osz-brand .tenant-body .hero { background: #0064a2; border-color: #0064a2; }
html.osz-brand .tenant-body .hero::before { border-color: #edce00; opacity: .22; }
html.osz-brand .tenant-body .hero .eyebrow,
html.osz-brand .tenant-body .hero-tags svg { color: #edce00; }
html.osz-brand .tenant-body .hero :is(h1,h2,p) { color: #ffffff; }
html.osz-brand .tenant-body .sidebar :is(.sidebar-caption,.sidebar-contact .contact-name) { color: #ffffff; }
html.osz-brand .tenant-body .sidebar .nav-count { background: #005586; color: #ffffff; }
html.osz-brand .tenant-body .sidebar .active .nav-count { background: #0064a2; color: #ffffff; }
html.osz-brand .tenant-body .mode-card .icon-box { background: var(--green-soft); color: var(--green-text); }
html.osz-brand .tenant-body .progress-track > span { background: var(--green); }
html.osz-brand .tenant-body :is(.score-circle,.rule) { background: var(--green-soft); color: var(--green-text); }
html.osz-brand .tenant-body .oral-answer { border-left-color: #0064a2; }
html.osz-brand .tenant-body .oral-overview { border-top-color: #0064a2; }
html.osz-brand .tenant-body .answer.selected:not(.correct):not(.wrong) { background: var(--green-soft); border-color: var(--green); }
html.osz-brand .tenant-body .question-map button.current { outline-color: var(--green); }
html.osz-brand[data-theme="dark"] .tenant-body.signed-out { background: #191919; }
html.osz-brand[data-theme="dark"] .tenant-body :is(.sidebar,.hero) { background: #23292f; }
html.osz-brand[data-theme="dark"] .tenant-body .hero { border-color: #414a53; }
html.osz-brand[data-theme="dark"] .tenant-body .page > header { background: var(--surface); }
html.osz-brand[data-theme="dark"] .tenant-body :is(.question-notes,.history th) { background: var(--surface-raised); color: var(--ink); }
html.osz-brand[data-theme="dark"] .tenant-body :is(.history tbody tr:hover,.oral-topic:hover) { background: var(--surface-muted); }
html.osz-brand[data-theme="dark"] .tenant-body :is(.explanation:not(.bad),.oral-answer) { background: var(--green-soft); border-color: var(--green-border); color: var(--ink); }
