:root { color-scheme: light; --lb-blue: #1d4ed8; --lb-ink: #172554; --lb-muted: #475569; --lb-line: #dbeafe; --lb-paper: #fff; }
* { box-sizing: border-box; }
body.lb-page { margin: 0; color: var(--lb-ink); background: #eff6ff; font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; }
.lb-page [hidden] { display: none !important; }
.lb-page a { color: #1e40af; text-underline-offset: .2em; }
.lb-page button, .lb-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid var(--lb-blue); border-radius: 10px; background: var(--lb-blue); color: white; padding: .65rem 1rem; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; }
.lb-page a.lb-button { color: white; }
.lb-page button.lb-secondary { color: #1e40af; background: white; border-color: #bfdbfe; }
.lb-page button:disabled { cursor: not-allowed; opacity: .55; }
.lb-page :focus-visible { outline: 3px solid #1d4ed8; outline-offset: 4px; }
.lb-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem max(1rem, calc((100vw - 1120px) / 2)); background: white; border-bottom: 1px solid var(--lb-line); }
.lb-brand { display: flex; }
.lb-brand img { object-fit: contain; max-width: 100%; }
.lb-nav nav { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.lb-nav nav a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; }
.lb-main { max-width: 1120px; margin: 0 auto; padding: 2rem 1rem; }
.lb-hero { padding: 2.3rem; border-radius: 22px; background: #172554; color: white; }
.lb-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.16; margin: .65rem 0 1rem; max-width: 18ch; letter-spacing: -.035em; }
.lb-hero p { color: #e0ecfc; max-width: 73ch; }
.lb-hero .lb-kicker { color: #9ee7f4; }
.lb-kicker { color: #22559b; font-size: .78rem; font-weight: 750; letter-spacing: .1em; }
.lb-card { background: white; border: 1px solid var(--lb-line); border-radius: 18px; margin: 1.2rem 0; padding: 1.5rem; min-width: 0; }
.lb-heading, .lb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.lb-heading { justify-content: space-between; margin-bottom: 1rem; }
.lb-card h2 { font-size: 1.3rem; line-height: 1.4; margin: .2rem 0 .8rem; }
.lb-card p { overflow-wrap: anywhere; }
.lb-muted, .lb-scroll-hint { color: var(--lb-muted); font-size: .9rem; }
.lb-score { font-size: 1.55rem; font-weight: 700; }
.lb-personal { border-left: 5px solid #2498aa; }
.lb-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0; align-items: center; }
.lb-tabs button { background: transparent; border-color: transparent; color: var(--lb-muted); }
.lb-tabs button[aria-pressed="true"] { color: #123c83; border-color: #c2d6f0; background: #e3eefd; }
.lb-tabs a { padding: .7rem; }
.lb-page label { display: flex; flex-direction: column; gap: .35rem; color: #243c59; font-weight: 600; max-width: 100%; }
.lb-page label.lb-check { flex-direction: row; align-items: center; font-size: .9rem; font-weight: 500; gap: .65rem; }
.lb-page input, .lb-page select, .lb-page textarea { font: inherit; min-height: 44px; width: 100%; max-width: 100%; min-width: 0; border: 1px solid #a6bbd4; border-radius: 8px; padding: .55rem .75rem; color: var(--lb-ink); background: white; }
.lb-page input[type="checkbox"] { width: 24px; height: 24px; min-height: 24px; flex-shrink: 0; }
.lb-check { min-height: 44px; }
.lb-wide-label { width: 100%; }
.lb-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--lb-line); border-radius: 10px; }
.lb-page table { border-collapse: collapse; min-width: 600px; width: 100%; text-align: left; }
.lb-page caption { text-align: left; padding: .9rem; color: var(--lb-muted); }
.lb-page th, .lb-page td { padding: .9rem 1rem; border-bottom: 1px solid var(--lb-line); }
.lb-page thead { background: #edf4fc; }
.lb-page tbody th { font-weight: 600; }
.lb-page tr.lb-own-row { background: #e8f7fa; }
.lb-message { padding: .8rem 1rem; border-radius: 10px; background: #e4eefc; overflow-wrap: anywhere; }
.lb-error { color: #8b211b; background: #fff2ef; }
.lb-message:empty { display: none; }
.lb-page details { margin-top: 1rem; }
.lb-page summary { cursor: pointer; min-height: 44px; padding: .6rem 0; }
.lb-page dialog { width: min(640px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; border: 1px solid #b1c6df; border-radius: 18px; padding: 1.5rem; color: var(--lb-ink); }
.lb-page dialog::backdrop { background: #071d37aa; }
.lb-page dialog label { margin: .9rem 0; }
.lb-page dialog p { overflow-wrap: anywhere; }
#lb-approved-rules, #lb-consent-text, #lb-eligibility-rules, #lb-eligibility-text { white-space: pre-wrap; }
.lb-review-item { border-top: 1px solid var(--lb-line); padding: 1rem 0; }
.lb-learning { background: #f4fbfc; }
.lb-footer { padding: .5rem; font-size: .85rem; color: var(--lb-muted); }
.lb-skip { position: absolute; left: 1rem; top: -100px; padding: 1rem; background: white; z-index: 20; }
.lb-skip:focus { top: 0; }
.lb-attempt-option { margin: .75rem 0; min-height: 48px; padding: .65rem; border: 1px solid var(--lb-line); border-radius: 10px; }
.lb-attempt-option input { width: 24px; height: 24px; min-height: 24px; flex-shrink: 0; }
.lb-question-palette { display: flex; flex-wrap: wrap; gap: .5rem; }
.lb-question-palette button[aria-current="step"] { outline: 3px solid #172554; outline-offset: 2px; }
.lb-question-palette button[data-answered="true"]::after { content: " answered"; font-size: .7rem; }
.lb-question-palette button[data-flagged="true"] { border: 3px dashed #7f4b00; }
@media (max-width: 540px) {
  .lb-main { padding: 1rem .75rem; }
  .lb-hero { padding: 1.5rem 1.1rem; border-radius: 16px; }
  .lb-card { padding: 1rem; }
  .lb-actions > label:not(.lb-check) { flex: 1 1 100%; }
  .lb-nav { padding: .75rem; }
  .lb-nav nav { font-size: .9rem; }
  .lb-heading { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .lb-page * { scroll-behavior: auto !important; } }
