/* Tomorrow Lab interface: original styling inspired by clear, task-focused UI. */
:root {
  --surface: #101827;
  --surface-raised: #162137;
  --edge: #34445f;
  --text-soft: #becbe0;
  --accent-soft: #d2c8ff;
}
body { background: radial-gradient(ellipse at 60% 0%, #182343 0, transparent 38%), #080e1a; }
.shell { max-width: 1440px; padding-inline: clamp(20px, 5vw, 72px); }
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: auto; min-height: 84px; gap: 24px;
  background: #080e1af5; backdrop-filter: blur(18px);
  border-color: var(--edge);
}
.brand { font: 700 12px/1.4 var(--sans); letter-spacing: .075em; white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: #292755; border: 1px solid #847cce; }
.brand-monogram b, .brand-monogram i { font-size: 14px; }
.topbar nav { gap: 5px; margin: 0; }
.topbar nav a { padding: 10px 13px; color: var(--text-soft); border-radius: 9px; font-size: 13px; }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { background: #202c42; color: #fff; }
.top-cta { padding: 11px 16px; border-radius: 10px; border-color: #61708c; color: #f4f7ff; }
.top-cta:hover { background: #202c42; }
.hero { padding-top: 64px; gap: 32px; }
.hero-text { color: var(--text-soft); font-size: 16px; }
.eyebrow, .muted { color: #c2b5ff; font-size: 11px; letter-spacing: .095em; line-height: 1.6; }
.micro-note { font-size: 12px; color: var(--text-soft); }
.hero-meta span { font-size: 10px; color: var(--text-soft); }
.button { border-radius: 11px; font-size: 14px; min-height: 46px; }
.signal-ticker { border-color: var(--edge); }
.ticker-label, .ticker-link { font-size: 11px; }
.ticker-track span { font-size: 12px; }
.progress-band { margin: 16px 0 28px; padding: 22px 24px; border: 1px solid var(--edge); border-radius: 18px; background: var(--surface); gap: 24px; }
.progress-title strong { font-size: 15px; }
.progress-title small { font-size: 12px; line-height: 1.5; color: var(--text-soft); }
.progress-icon { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; background: #1a3342; color: #8ef4eb; }
.meter-label { gap: 12px; font-size: 11px; color: var(--text-soft); }
.track { height: 7px; background: #2a3850; }
.reset-button { display: inline-block; padding: 10px; color: var(--text-soft); font-size: 12px; }
.account-panel { margin: 28px 0 16px; padding: 24px; border: 1px solid #605f8c; border-radius: 18px; background: linear-gradient(110deg, #1b2440, #121c2e); gap: 18px; }
.account-copy { flex-basis: 320px; gap: 8px; }
.account-copy::before { content: 'YOUR LEARNING SPACE'; color: #c9bdff; font: 500 10px/1.5 var(--mono); letter-spacing: .1em; }
.account-copy strong { font: 700 19px/1.4 var(--display); }
.account-copy span, .account-actions small { font-size: 13px; color: var(--text-soft); }
.account-actions { max-width: 520px; gap: 8px; }
.account-actions button, .account-actions a { min-height: 42px; padding: 10px 14px; border-radius: 10px; border-color: #687b98; font-size: 13px; background: #202d45; }
.account-actions a[href="/api/auth/login"] { background: #5645b4; border-color: #baadff; color: #fff; font-weight: 700; }
.account-actions small a { min-height: auto; border: 0; background: none; padding: 0 3px; color: #b5edff; text-decoration: underline; }
.account-actions button[data-account="delete"] { color: #ffcdc7; border-color: #b08391; background: transparent; }
.account-status { font-size: 13px; line-height: 1.6; }
#account-history { padding: 18px; border: 1px solid var(--edge); border-radius: 12px; background: #0c1424; }
#account-history strong { font-size: 14px; }
#account-history p { margin: 12px 0 0; font-size: 13px; }
.daily-signal { border-color: #58618b; border-radius: 24px; padding: 32px; gap: 28px; }
.signal-copy h2 { font-size: clamp(25px, 3vw, 36px); line-height: 1.25; }
.signal-copy p, .signal-task p { font-size: 14px; line-height: 1.8; color: var(--text-soft); }
.signal-task { border: 1px solid #566087; background: #111b30e8; border-radius: 15px; padding: 24px; }
.signal-label { color: #b9f6ef; font-size: 11px; }
.signal-meta { font-size: 11px; color: var(--text-soft); }
.signal-links a { font-size: 11px; color: #d0c6ff; overflow-wrap: anywhere; }
.signal-archive { border-color: var(--edge); }
.signal-archive summary { padding: 20px 0; font-size: 13px; }
.signal-archive summary span { font-size: 11px; color: var(--text-soft); }
.archive-item { padding: 22px; border: 1px solid var(--edge); border-radius: 14px; background: var(--surface); }
.archive-meta { font-size: 11px; }
.archive-item h3 { font-size: 19px; line-height: 1.4; }
.archive-item p { font-size: 14px; line-height: 1.75; }
.archive-item a { font-size: 12px; color: #d0c6ff; }
.section-heading { gap: 24px; padding-top: 78px; padding-bottom: 28px; }
.section-heading h2, .method-heading h2, .sources-copy h2, .assessment-heading h2 { font-size: clamp(32px, 3.5vw, 46px); letter-spacing: -.045em; line-height: 1.15; }
.section-heading p, .method-heading > p, .sources-copy > p, .assessment-heading p, .news-heading p { color: var(--text-soft); font-size: 15px; line-height: 1.75; }
.catalog-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 290px); align-items: start; gap: 24px; margin-bottom: 26px; }
.category-filters { gap: 8px; }
.filter-chip, .news-filter { min-height: 40px; padding: 9px 14px; border-radius: 10px; border-color: #61718f; background: #101a2d; color: #e5edfb; font-size: 13px; }
.filter-chip.active, .news-filter.active { color: #f5f3ff; background: #3b326f; border-color: #ac9df0; box-shadow: inset 0 0 0 1px #ac9df040; }
.filter-chip:hover, .news-filter:hover { background: #263450; color: #fff; }
.filter-chip.active:hover, .news-filter.active:hover { background: #493c89; }
.course-search { width: 100%; min-width: 0; border-radius: 12px; background: #101a2d; border-color: #778ba9; padding-inline: 15px; }
.course-search input { height: 46px; font-size: 15px; color: #f0f5ff; }
.course-search input::placeholder { color: #bbc8dd; }
.course-search > span { color: #c9d7ed; }
.course-grid { gap: 22px; }
.course-card { border: 1px solid var(--edge); border-radius: 18px; background: var(--surface); box-shadow: 0 12px 28px #03071240; }
.course-card:hover { transform: translateY(-3px); border-color: #7d77b2; box-shadow: 0 18px 38px #03071260; }
.course-toggle:focus-visible { outline-offset: -4px; border-radius: 17px; }
.course-thumb { aspect-ratio: 1.85; }
.course-card-copy { padding: 23px; }
.course-card-meta { gap: 12px; font-size: 10px; color: #c1cde1; line-height: 1.6; }
.course-card-meta > span:first-child { color: #d2c8ff; }
.course-card-title { font: 700 21px/1.35 var(--display); letter-spacing: -.035em; margin-top: 12px; }
.course-card-subtitle { font-size: 14px; line-height: 1.7; color: var(--text-soft); margin-top: 9px; min-height: 48px; }
.course-progress { margin-top: 22px; font-size: 11px; color: #bbc9df; gap: 12px; }
.course-progress-track { height: 5px; }
.course-open-label { padding-top: 16px; margin-top: 19px; color: #c9bdff; font-size: 13px; }
.course-open-label b { font-size: 18px; }
.course-card.open { grid-column: 1 / -1; border-color: #a196e1; transform: none; }
.course-card.open .course-toggle { display: grid; grid-template-columns: minmax(200px, .38fr) minmax(0, 1fr); }
.course-card.open .course-thumb { height: 100%; min-height: 250px; aspect-ratio: auto; }
.course-card.open .course-card-copy { padding: 28px 32px; }
.course-card.open .course-card-title { font-size: 28px; }
.course-card.open .course-card-subtitle { min-height: 0; }
.course-card.open .course-progress { max-width: 520px; }
.course-card.open .week-detail { padding: 28px; border-color: var(--edge); }
.week-detail .week-intro { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 24px; padding: 20px; margin-bottom: 20px; border-radius: 12px; background: #182338; border-color: #3e4e69; }
.week-intro p { font-size: 14px; line-height: 1.8; color: var(--text-soft); max-width: none; }
.week-detail .deliverable { margin: 0; font-size: 12px; color: #d2c8ff; }
.deliverable b { font-size: 10px; color: #bbc9df; margin-bottom: 6px; }
.week-detail .day-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; overflow: visible; padding: 0; gap: 12px; }
.week-detail .day-card { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; padding: 20px; border-radius: 12px; border-color: #40516d; background: #101a2d; }
.day-check { width: 24px; height: 24px; margin-top: 1px; border-radius: 8px; border-color: #879bb9; }
.day-check:checked { background: #8ef4eb; border-color: #8ef4eb; }
.day-check:checked::after { color: #092028; font-size: 16px; line-height: 24px; }
.day-card:has(.day-check:checked) { background: #132a31; border-color: #559c98; }
.day-content { min-width: 0; }
.day-content h4 { font: 700 14px/1.5 var(--sans); margin-bottom: 8px; }
.day-content p { font-size: 13px; line-height: 1.75; color: var(--text-soft); margin-bottom: 10px; }
.day-content a { display: inline; font: 500 11px/1.7 var(--sans); color: #a4f2ee; overflow-wrap: anywhere; }
.week-detail .day-duration { grid-column: 3; grid-row: 1; font-size: 10px; line-height: 1.6; color: #c2cfe3; margin: 2px 0 0; white-space: nowrap; }
.week-detail .week-assignment { display: grid; grid-template-columns: 150px minmax(0, 1fr); padding: 22px; gap: 20px; margin-top: 20px; border: 1px solid #66839b; border-radius: 13px; background: #1b3449; }
.week-assignment span { font-size: 11px; color: #b3f5ee; line-height: 1.7; }
.week-assignment p { font-size: 14px; line-height: 1.8; color: #e7f0ff; }
.empty-search { border: 1px dashed #6c7c98; border-radius: 16px; padding: 32px; background: var(--surface); color: var(--text-soft); font-size: 15px; }
.method-section { padding: 78px 0; }
.rhythm-grid { gap: 18px; }
.rhythm-grid article { padding: 26px; border-radius: 16px; background: var(--surface); border-color: var(--edge); }
.rhythm-time { font-size: 18px; color: #a4f2ee; }
.rhythm-time small, .rhythm-number { font-size: 11px; color: var(--text-soft); }
.rhythm-grid h3 { font-size: 22px; margin-top: 38px; }
.rhythm-grid p { max-width: none; font-size: 14px; line-height: 1.8; color: var(--text-soft); }
.assessment-section { padding: 40px; border: 1px solid #5a5686; border-radius: 24px; background: linear-gradient(125deg, #181e36, #101827); margin: 12px 0 80px; }
.assessment-heading { align-items: center; gap: 24px; margin-bottom: 30px; }
.assessment-heading h2 { margin-top: 10px; }
.assessment-score { border-color: #62658a; border-radius: 14px; padding: 16px; background: #1a2540; }
.assessment-score b { font-size: 19px; }
.assessment-score small { font-size: 11px; color: var(--text-soft); white-space: normal; line-height: 1.5; max-width: 190px; }
.score-glyph { width: 42px; height: 42px; border-radius: 12px; background: #34305d; color: #d5ccff; }
.quiz-card { max-width: none; padding: 32px; border-radius: 18px; background: #0d1626; border-color: #4e607e; box-shadow: none; }
.quiz-topline { align-items: center; flex-wrap: wrap; gap: 12px; }
.quiz-count { font-size: 11px; color: #d1c5ff; line-height: 1.7; }
.quiz-topline > span:first-child { padding: 5px 10px; background: #28264c; border: 1px solid #7970b1; border-radius: 7px; }
.quiz-card h3 { max-width: 900px; font: 700 clamp(20px, 2vw, 27px)/1.5 var(--display); margin: 24px 0; letter-spacing: -.025em; }
.quiz-options { gap: 12px; }
.quiz-option { min-height: 78px; align-items: center; padding: 18px; gap: 14px; font-size: 15px; line-height: 1.6; border-radius: 12px; border-color: #657b9b; background: #162136; color: #eff4ff; }
.option-key { width: 30px; height: 30px; flex-basis: 30px; border-radius: 9px; font-size: 12px; background: #2c3b54; color: #f1f6ff; }
.quiz-option:hover:not(:disabled) { border-color: #c2b4ff; background: #232e48; transform: translateY(-1px); }
.quiz-option.selected { border-color: #c2b4ff; background: #302956; box-shadow: inset 0 0 0 1px #c2b4ff; }
.quiz-option.correct { border-color: #8ee8bb; background: #153a31; color: #d6ffeb; box-shadow: none; }
.quiz-option.incorrect { border-color: #ffb0a4; background: #422930; color: #ffe4df; box-shadow: none; }
.quiz-feedback { padding: 20px; gap: 14px; font-size: 14px; line-height: 1.8; border: 1px solid transparent; border-radius: 12px; margin-top: 20px; }
.quiz-feedback.is-correct { background: #153a31; color: #d6ffeb; border-color: #579b7d; }
.quiz-feedback.is-incorrect { background: #422930; color: #ffe4df; border-color: #aa746f; }
.quiz-controls { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--edge); }
.quiz-action { min-width: 160px; justify-content: center; min-height: 46px; font-size: 14px; background: #5947bf; }
.quiz-action:hover { background: #6652d2; }
.quiz-action:disabled { background: #28364f; color: #c4d1e5; }
.quiz-card > p[role="alert"] { padding: 14px; color: #ffd2c8; border: 1px solid #ae8079; border-radius: 10px; font-size: 14px; line-height: 1.7; }
.quiz-result { padding: 24px 8px; }
.quiz-result strong { font-size: 64px; color: #d9d2ff; }
.quiz-result p { font-size: 15px; line-height: 1.75; max-width: 600px; }
.sources-section { gap: 48px; padding: 20px 0 76px; }
.sources-copy .independent-note { font-size: 12px; line-height: 1.7; color: var(--text-soft); }
.source-stack { gap: 10px; }
.source-card { padding: 18px; border-radius: 12px; background: var(--surface); border-color: var(--edge); }
.source-card strong { font-size: 14px; line-height: 1.5; }
.source-card small { font-size: 12px; color: var(--text-soft); }
.source-card a { font-size: 11px; }
.source-logo { width: 38px; height: 38px; border-radius: 11px; font-size: 12px; }
.capstone-banner { border-radius: 20px; padding: 30px; border: 1px solid #7774a5; }
.capstone-banner h2 { font-size: 26px; line-height: 1.3; }
.capstone-banner p { font-size: 14px; line-height: 1.75; color: #e0e8fa; }
.news-page-section { padding-top: 60px; }
.news-heading p { max-width: 760px; }
.news-filters { gap: 10px; margin-top: 26px; margin-bottom: 28px; }
.news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.news-card { padding: 28px; border: 1px solid var(--edge); border-radius: 18px; background: var(--surface); box-shadow: none; }
.news-card-meta { align-items: center; gap: 12px; margin-bottom: 20px; }
.news-tag { border-radius: 7px; padding: 6px 10px; font: 600 11px/1.4 var(--sans); letter-spacing: .035em; }
.news-tag-ai { background: #28264c; color: #d1c5ff; }
.news-tag-quantum { background: #16313c; color: #cdfaf5; }
.news-tag-leadership { background: #3b2634; color: #ffd1c3; }
.news-date { color: var(--text-soft); font-size: 12px; }
.news-page .news-card h2, .news-card h3 { font: 700 24px/1.4 var(--display); letter-spacing: -.03em; margin-bottom: 16px; }
.news-card > p { font-size: 15px; line-height: 1.85; color: var(--text-soft); }
.news-card .news-challenge, .news-card .news-question { padding: 18px; border-radius: 10px; border-top: 0; margin-top: 16px; font-size: 14px; line-height: 1.8; }
.news-card .news-challenge { background: #242443; color: #e8e3ff; border-left: 3px solid #bfb0ff; }
.news-card .news-question { background: #16313c; color: #cdfaf5; border-left: 3px solid #8aece4; }
.news-card .news-question::first-line { font-size: inherit; }
.news-source { align-self: start; margin-top: 24px; padding-top: 12px; color: #d1c5ff; font-size: 12px; line-height: 1.7; }
footer { font-size: 12px; gap: 24px; min-height: 96px; }
:where(button, a, input):focus-visible { outline: 2px solid #8ef4eb; outline-offset: 4px; }
@media (max-width: 1000px) {
  .topbar { gap: 14px; }
  .topbar nav a { padding-inline: 9px; }
  .hero { grid-template-columns: 1fr 1fr; gap: 22px; }
  .hero h1 { font-size: clamp(44px, 6vw, 62px); }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-toolbar { grid-template-columns: 1fr; gap: 16px; }
  .course-search { width: min(100%, 420px); }
  .assessment-heading { flex-direction: column; align-items: flex-start; }
  .progress-band { grid-template-columns: 1fr 1fr; }
  .reset-button { justify-self: start; }
  .week-detail .day-duration { grid-column: 2; grid-row: auto; }
}
@media (max-width: 720px) {
  .topbar { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 14px 0 10px; min-height: 0; }
  .topbar nav { display: flex; grid-column: 1 / -1; grid-row: 2; overflow-x: auto; padding: 4px 0; gap: 4px; width: 100%; }
  .topbar nav a { flex: 0 0 auto; padding: 9px 12px; font-size: 12px; }
  .brand { font-size: 11px; }
  .top-cta { font-size: 12px; }
  .hero { display: block; padding: 44px 0 32px; }
  .hero h1 { font-size: clamp(39px, 8.8vw, 59px); }
  .hero-text { font-size: 15px; }
  .hero-art { height: 340px; margin-top: 32px; }
  .hero-meta { gap: 18px; }
  .hero-meta span { font-size: 9px; }
  .signal-ticker { gap: 12px; }
  .ticker-label { font-size: 9px; }
  .ticker-link { font-size: 11px; white-space: nowrap; }
  .account-panel, .progress-band { padding: 20px; }
  .progress-band { grid-template-columns: 1fr; gap: 16px; }
  .account-actions { max-width: none; width: 100%; }
  .account-copy strong { font-size: 18px; }
  .daily-signal { display: block; padding: 24px; }
  .signal-task { margin-top: 22px; padding: 20px; }
  .signal-copy p, .signal-task p { font-size: 14px; }
  .section-heading { display: block; padding-top: 56px; }
  .section-heading p { margin: 16px 0 0; }
  .course-search { width: 100%; }
  .course-grid { grid-template-columns: 1fr; gap: 18px; }
  .course-card-copy { padding: 22px; }
  .course-card-title { font-size: 21px; }
  .course-card.open .course-toggle { display: block; }
  .course-card.open .course-thumb { min-height: 0; height: auto; aspect-ratio: 1.85; }
  .course-card.open .course-card-copy { padding: 22px; }
  .course-card.open .course-card-title { font-size: 23px; }
  .course-card.open .week-detail { padding: 18px; }
  .week-detail .week-intro { grid-template-columns: 1fr; padding: 18px; gap: 16px; }
  .week-detail .day-grid { grid-template-columns: 1fr; }
  .week-detail .day-card { padding: 18px; grid-template-columns: 24px minmax(0, 1fr); }
  .week-detail .day-duration { grid-column: 2; grid-row: auto; }
  .week-detail .week-assignment { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .method-section { padding: 56px 0; }
  .rhythm-grid { grid-template-columns: 1fr; }
  .rhythm-grid article { min-height: 0; }
  .rhythm-grid h3 { margin-top: 22px; }
  .assessment-section { padding: 24px 18px; margin-bottom: 56px; border-radius: 20px; }
  .assessment-heading { gap: 20px; }
  .assessment-heading p { font-size: 14px; }
  .quiz-card { padding: 22px 16px; }
  .quiz-options { grid-template-columns: 1fr; }
  .quiz-option { min-height: 68px; padding: 15px; font-size: 14px; }
  .quiz-count { font-size: 10px; }
  .quiz-feedback { display: block; padding: 16px; }
  .quiz-feedback b { display: block; margin-bottom: 6px; }
  .quiz-action { width: 100%; }
  .sources-section { grid-template-columns: 1fr; gap: 24px; padding-bottom: 56px; }
  .source-card { grid-template-columns: 38px minmax(0, 1fr); padding: 16px; }
  .source-card a { grid-column: 2; justify-self: start; }
  .capstone-banner { padding: 22px; }
  .capstone-banner h2 { font-size: 23px; }
  .news-page-section { padding-top: 44px; }
  .news-page .news-heading h1 { font-size: 43px; }
  .news-grid { grid-template-columns: 1fr; gap: 18px; }
  .news-card { padding: 22px; }
  .news-page .news-card h2, .news-card h3 { font-size: 22px; }
  .news-card > p { font-size: 14px; }
  .news-filters { flex-wrap: wrap; }
  footer { padding-block: 24px; height: auto; }
  footer > span { display: block; flex-basis: 100%; order: 3; font-size: 11px; }
  :where(#path,#assessments,#sources,#daily-signal,.course-card) { scroll-margin-top: 130px; }
}
@media (min-width: 721px) {
  :where(#path,#assessments,#sources,#daily-signal,.course-card) { scroll-margin-top: 105px; }
}
@media (prefers-reduced-motion: reduce) {
  .course-card:hover, .quiz-option:hover:not(:disabled) { transform: none; }
}
