:root {
  color-scheme: light;
  --ink: #192e30;
  --muted: #647477;
  --surface: #f4f6f5;
  --white: #fff;
  --line: #e1e7e4;
  --dark: #122729;
  --lime: #c3ef73;
  --green: #2a6852;
  --orange: #a15732;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--surface); line-height: 1.55; }
button, input { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .58; }
a { color: inherit; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #468d75; outline-offset: 4px; }
h1:focus, [tabindex="-1"]:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.23; }
h1 { font-size: clamp(1.85rem, 3vw, 2.75rem); letter-spacing: -.045em; font-weight: 750; }
h2 { font-size: 1.35rem; letter-spacing: -.025em; }
h3 { font-size: 1.06rem; }
.icon { width: 1.35rem; height: 1.35rem; flex-shrink: 0; vertical-align: middle; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 3rem; padding: .8rem 1.3rem; border-radius: .65rem; border: 1px solid transparent; font-size: .95rem; font-weight: 650; text-decoration: none; transition: background .15s, transform .15s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.primary { background: var(--lime); color: #1b3426; }
.primary:hover:not(:disabled) { background: #b5e65e; }
.secondary { background: white; border-color: #d2ddd7; color: var(--ink); }
.secondary:hover:not(:disabled) { background: #eef2ee; }
.incorrect { background: #fff5ed; color: #904725; border-color: #eedbcc; }
.incorrect:hover:not(:disabled) { background: #fdebdc; }
.text-button { background: transparent; border: 0; padding: .55rem .2rem; color: var(--green); font-size: .92rem; font-weight: 650; }
.text-button:hover { text-decoration: underline; }
.eyebrow { display: block; margin-bottom: .8rem; color: var(--green); font-size: .75rem; font-weight: 750; letter-spacing: .13em; }
.muted { color: var(--muted); font-size: .9rem; }
.brand { display: inline-flex; gap: .8rem; align-items: center; text-decoration: none; }
.brand-mark { width: 2.65rem; height: 2.65rem; border-radius: .7rem; display: inline-flex; justify-content: center; align-items: center; background: var(--lime); color: #1b3728; font: 700 1.5rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: -.13em; padding-right: .15em; flex-shrink: 0; }
.brand-text { font-size: 1.2rem; line-height: 1.1; font-weight: 750; letter-spacing: -.025em; }
.brand-text > span { display: block; font-size: .9rem; font-weight: 450; margin-top: .2rem; letter-spacing: .01em; opacity: .72; }
.workspace { display: flex; min-height: 100vh; }
.sidebar { width: 15.5rem; background: var(--dark); color: #f4f6f5; padding: 2.2rem 1.35rem 1.2rem; display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 10; }
.sidebar .brand { margin-left: .45rem; }
.sidebar-label { margin: 3rem .75rem .8rem; color: #94a8a7; font-size: .75rem; font-weight: 600; letter-spacing: .12em; }
.main-nav { display: grid; gap: .4rem; }
.nav-item { border: 0; background: transparent; color: #b2c0bf; border-radius: .65rem; min-height: 3.1rem; padding: .8rem .9rem; display: flex; align-items: center; gap: .8rem; font-size: .94rem; text-align: left; }
.nav-item.active { color: var(--lime); background: #263f3e; }
.nav-item:hover { background: #213a3a; color: #e3f5d8; }
.sidebar-note { margin: auto .75rem 2.2rem; padding-top: 4rem; }
.note-symbol { font: 500 2rem ui-monospace, monospace; color: #739b87; letter-spacing: -.1em; }
.sidebar-note p { color: #d5e0db; margin: .65rem 0 .6rem; font-size: 1.02rem; line-height: 1.5; }
.sidebar-note > span:last-child { font-size: .8rem; color: #92aaa6; }
.home-link { color: #a7bdb4; font-size: .8rem; margin: 0 .75rem 1.2rem; text-decoration: none; }
.home-link:hover { color: var(--lime); }
.profile { padding: 1.2rem .35rem 0; border-top: 1px solid #304648; display: flex; gap: .65rem; align-items: center; }
.avatar { display: grid; place-items: center; border-radius: 50%; width: 2.35rem; height: 2.35rem; background: #40574c; color: #d7efc6; flex-shrink: 0; font-weight: 700; }
.profile > div { display: grid; min-width: 0; flex: 1; }
.profile strong { font-size: .92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile div span { color: #a4b8b0; font-size: .75rem; }
.icon-button { display: grid; place-items: center; background: none; color: #a4b8b0; border: 0; padding: .4rem; border-radius: .4rem; min-width: 2.5rem; min-height: 2.5rem; }
.icon-button:hover { color: white; background: #314846; }
.main-wrap { margin-left: 15.5rem; width: calc(100% - 15.5rem); min-width: 0; }
.topbar { min-height: 5.25rem; padding: 1.2rem 3.2rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: #fafcfa; }
.topbar > span:first-child { font-size: .75rem; letter-spacing: .1em; color: #788783; font-weight: 600; }
.level-tag { font-size: .8rem; font-weight: 550; padding: .35rem .8rem; border: 1px solid #dbe4de; border-radius: 2rem; color: #40594c; background: #f0f5ef; }
main { max-width: 78rem; margin: auto; padding: 2.8rem 3.2rem 3rem; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-bottom: 2rem; }
.page-heading p { color: var(--muted); margin-top: .8rem; font-size: .96rem; max-width: 42rem; }
.heading-stamp { display: grid; place-items: center; background: #e9efe9; border: 1px solid #dbe5d9; width: 4.4rem; height: 4.4rem; border-radius: 1.15rem; transform: rotate(7deg); color: #66805d; flex-shrink: 0; }
.heading-stamp .icon { width: 2.1rem; height: 2.1rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2.6rem; }
.stat-card { border: 1px solid var(--line); background: white; border-radius: .85rem; padding: 1.15rem 1.25rem 1.1rem; }
.stat-label { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .82rem; color: #5b6f68; }
.stat-label .icon { width: 1.05rem; height: 1.05rem; color: #7e9384; }
.stat-card > strong { display: block; font-size: 2rem; letter-spacing: -.04em; line-height: 1.3; margin: .65rem 0 .3rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.stat-card > span { color: #7e8984; font-size: .75rem; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-heading p { font-size: .9rem; color: var(--muted); margin-top: .4rem; }
.all-topics { display: flex; align-items: center; gap: .55rem; border: 1px solid #dce4dc; border-radius: .65rem; padding: .6rem .8rem; font-size: .85rem; background: white; color: #50625a; white-space: nowrap; min-height: 2.75rem; }
.all-topics.selected { border-color: #95ac87; background: #eaf2e2; color: #35523c; }
.all-topics .icon { width: 1rem; height: 1rem; }
.all-topics > span { background: #dce9d1; padding: .05rem .35rem; border-radius: .3rem; font-size: .75rem; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .95rem; }
.topic-card { padding: 1.2rem 1.3rem 1.05rem; border: 1px solid var(--line); border-radius: .8rem; text-align: left; background: white; color: var(--ink); transition: border-color .15s, background .15s, transform .15s; min-height: 11.15rem; }
.topic-card:hover { border-color: #99b49b; transform: translateY(-2px); }
.topic-card.selected { border-color: #72945d; background: #f1f7e9; box-shadow: inset 0 0 0 1px #72945d; }
.topic-top { display: flex; align-items: center; gap: .6rem; margin-bottom: .95rem; }
.topic-icon { display: grid; place-items: center; height: 2.35rem; width: 2.35rem; border-radius: .6rem; background: #eef1f2; color: #496269; }
.topic-kubernetes { background: #eaf1fb; color: #4e75ad; }
.topic-terraform { background: #f1ebfa; color: #8867b7; }
.topic-ansible { background: #faeeee; color: #ad6b6b; }
.topic-aws { background: #fcf2e4; color: #b68637; }
.topic-containers { background: #eaf3f9; color: #538cac; }
.topic-networking { background: #e9f4f2; color: #5a9185; }
.topic-cicd { background: #f9eee9; color: #bb8162; }
.topic-observability { background: #f2f3e7; color: #95944e; }
.topic-code { font: 600 .7rem ui-monospace, SFMono-Regular, Consolas, monospace; color: #9aa59e; letter-spacing: .035em; }
.topic-checkbox { margin-left: auto; width: 1.1rem; height: 1.1rem; border: 1px solid #d4ddd5; border-radius: .3rem; display: grid; place-items: center; }
.topic-card.selected .topic-checkbox { background: #456b39; color: white; border-color: #456b39; }
.topic-checkbox .icon { width: .85rem; height: .85rem; }
.topic-card h3 { font-size: 1.04rem; margin-bottom: .35rem; font-weight: 650; letter-spacing: -.02em; }
.topic-card p { font-size: .83rem; color: #728078; line-height: 1.4; }
.topic-count { display: block; margin-top: .85rem; font-size: .75rem; color: #68786c; }
.start-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: #e9efdf; border: 1px solid #d9e3cf; border-radius: .85rem; padding: 1.1rem 1.3rem; margin-top: 1rem; }
.start-bar > div { display: grid; gap: .2rem; }
.start-label { font-size: .95rem; font-weight: 600; }
.start-bar div > span:last-child { color: #6b7962; font-size: .8rem; }
.start-button { padding-left: 1.5rem; padding-right: 1.5rem; }
.start-button .icon { width: 1.1rem; height: 1.1rem; }
.recent-section { margin-top: 2.5rem; }
.empty-history { display: flex; align-items: center; gap: 1.1rem; padding: 1.5rem; border: 1px dashed #d5ddd5; border-radius: .8rem; background: #f9fbf8; }
.empty-history > .icon { width: 2rem; height: 2rem; color: #99a991; }
.empty-history strong { font-size: .95rem; font-weight: 550; }
.empty-history p { color: var(--muted); margin-top: .25rem; font-size: .85rem; }
.history-list { border: 1px solid var(--line); border-radius: .85rem; overflow: hidden; background: white; }
.history-row { display: flex; align-items: center; gap: 1rem; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: white; color: var(--ink); padding: 1rem 1.25rem; text-align: left; }
.history-row:last-child { border-bottom: 0; }
.history-row:hover { background: #f6f9f2; }
.history-symbol { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; background: #eef3e9; color: #6e8461; border-radius: .6rem; flex-shrink: 0; }
.history-main { flex: 1; min-width: 0; }
.history-main > strong { display: block; font-size: .95rem; font-weight: 600; }
.history-main > span { display: block; font-size: .8rem; color: var(--muted); margin-top: .25rem; }
.history-score { text-align: center; min-width: 4rem; margin-left: auto; }
.history-score > strong { display: block; font-size: 1.2rem; font-weight: 650; }
.history-score > strong > span { color: #94a295; font-size: .92rem; font-weight: 400; }
.history-score > span { color: #85917e; font-size: .75rem; }
.score-tag { padding: .3rem .55rem; font-size: .8rem; background: #faf0e6; color: #a77d4d; border-radius: .4rem; min-width: 3.2rem; text-align: center; }
.score-tag.good { background: #ecf4e4; color: #56803d; }
.resume-banner { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.3rem; border-radius: .8rem; background: #e8f0e7; border: 1px solid #cedfc9; margin: -1rem 0 2rem; }
.resume-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; background: #d6e7c8; color: #527142; border-radius: 50%; flex-shrink: 0; }
.resume-banner > div { flex: 1; }
.resume-banner strong { font-size: .95rem; font-weight: 650; }
.resume-banner p { color: #698162; font-size: .8rem; margin-top: .2rem; }
.app-footer { display: flex; gap: 1rem; justify-content: space-between; max-width: 78rem; margin: auto; padding: 0 3.2rem 1.5rem; color: #8e9c93; font-size: .75rem; }
.training-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.training-layout { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; align-items: start; gap: 1.5rem; }
.question-panel { background: white; border: 1px solid var(--line); border-radius: 1rem; padding: 2rem; min-width: 0; }
.question-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; align-items: center; margin-bottom: 1.7rem; color: #8a968c; font-size: .8rem; }
.topic-pill { display: inline-flex; gap: .45rem; align-items: center; padding: .35rem .65rem; border-radius: .4rem; color: #59734a; background: #edf3e6; font-size: .8rem; font-weight: 550; }
.topic-pill .icon { width: 1rem; height: 1rem; }
.question-panel > h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.3; letter-spacing: -.035em; margin-bottom: 1.1rem; }
.question-text { color: #4f615a; line-height: 1.8; font-size: 1.02rem; }
.question-text p + p { margin-top: .9rem; }
.reveal-box { border-top: 1px solid var(--line); padding-top: 1.8rem; margin-top: 2rem; }
.reveal-box p { color: #899384; font-size: .9rem; margin-bottom: 1.1rem; }
.reveal-button { min-width: 9rem; }
.session-panel { background: #eff3ec; border: 1px solid #dce4d6; border-radius: .9rem; padding: 1.4rem; }
.session-panel .eyebrow { color: #8c9a80; font-size: .7rem; }
.session-panel h2 { font-size: 1.15rem; margin-bottom: 1.1rem; }
.session-progress-count { display: flex; align-items: baseline; gap: .5rem; }
.session-progress-count strong { font-size: 2.3rem; font-weight: 600; letter-spacing: -.045em; }
.session-progress-count > span { color: #7c8b71; font-size: .8rem; }
progress { display: block; width: 100%; height: .4rem; border: 0; margin: .6rem 0 1.1rem; appearance: none; background: #dce4d4; border-radius: 1rem; overflow: hidden; }
progress::-webkit-progress-bar { background: #dce4d4; }
progress::-webkit-progress-value { background: #8ab35b; border-radius: 1rem; }
progress::-moz-progress-bar { background: #8ab35b; border-radius: 1rem; }
.session-numbers { margin: 0; }
.session-numbers > div { display: flex; justify-content: space-between; gap: 1rem; margin: .7rem 0; }
.session-numbers dt { color: #6f7f66; display: flex; align-items: center; gap: .5rem; font-size: .85rem; }
.session-numbers dd { margin: 0; font-size: .95rem; font-weight: 600; }
.small-dot { height: .45rem; width: .45rem; border-radius: 50%; }
.correct-dot { background: #78a855; }
.incorrect-dot { background: #c88b5e; }
.session-topics { border-top: 1px solid #dce4d6; margin-top: 1.3rem; padding-top: 1.2rem; }
.session-topics > span { font-size: .7rem; font-weight: 650; color: #8c9a80; letter-spacing: .08em; }
.session-topics p { font-size: .9rem; color: #627353; margin-top: .35rem; }
.saving-note { display: flex; gap: .5rem; border-top: 1px solid #dce4d6; padding-top: 1.1rem; margin-top: 1.2rem; color: #849575; }
.saving-note .icon { width: 1rem; height: 1rem; margin-top: .15rem; }
.saving-note p { font-size: .8rem; line-height: 1.5; }
.return-topics { font-size: .8rem; margin-top: .9rem; }
.revealed-answer { border-top: 1px solid var(--line); padding-top: 1.7rem; margin-top: 1.8rem; scroll-margin-top: 1.5rem; }
.answer-prose { color: #42534c; line-height: 1.8; overflow-wrap: anywhere; }
.answer-prose p + p { margin-top: 1rem; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88em; padding: .15em .35em; border-radius: .25rem; background: #eef2e9; color: #42603a; overflow-wrap: anywhere; white-space: pre-wrap; }
.key-points { margin-top: 1.4rem; background: #f4f7f0; padding: 1.1rem 1.2rem; border: 1px solid #e5ebdd; border-radius: .6rem; }
.key-points h3 { font-size: .95rem; margin-bottom: .85rem; }
.key-points ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .7rem; }
.key-points li { display: flex; gap: .6rem; color: #5e7252; font-size: .9rem; }
.key-points .icon { width: 1rem; height: 1rem; margin-top: .2rem; color: #7d9f60; }
.sources { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: baseline; margin-top: 1.2rem; font-size: .8rem; }
.sources > span { color: #8a9781; }
.sources a { color: #52723f; text-underline-offset: .2em; overflow-wrap: anywhere; }
.self-grade { margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.self-grade h3 { font-size: 1.12rem; }
.self-grade > p { font-size: .85rem; color: #8a9781; margin-top: .5rem; }
.grade-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.2rem; }
.grade-actions .button { flex: 1; white-space: nowrap; font-size: .9rem; }
.deck-complete { text-align: center; padding: 2rem 0; }
.complete-icon { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: #ecf5df; color: #6d8f49; margin: 0 auto 1.5rem; }
.complete-icon .icon { height: 2rem; width: 2rem; }
.deck-complete h2 { font-size: 1.7rem; }
.deck-complete p { color: #7c8b71; margin: 1rem auto 1.5rem; max-width: 30rem; }
.history-page-card { border-radius: 1rem; }
.history-page-card > .section-heading { margin-top: 2.5rem; }
.load-more { display: flex; margin: 1.5rem auto; }
.empty-large { text-align: center; padding: 3rem 1.5rem; border: 1px dashed #d4dfcd; border-radius: 1rem; }
.empty-large > .icon { width: 3rem; height: 3rem; color: #9aaf8a; margin-bottom: 1rem; }
.empty-large p { color: #85967a; margin: .8rem 0 1.5rem; }
.result-hero { display: flex; align-items: center; gap: 2.2rem; padding: 2rem; background: #eaf0e2; border: 1px solid #d8e3cb; border-radius: 1rem; margin: 1rem 0 2.5rem; }
.result-circle { border: .45rem solid #b8d296; border-radius: 50%; width: 8.2rem; height: 8.2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.result-circle strong { font-size: 2.4rem; line-height: 1.1; letter-spacing: -.05em; font-weight: 650; }
.result-circle > span { color: #7c906b; font-size: .75rem; margin-top: .25rem; }
.result-message h2 { font-size: 1.5rem; }
.result-message > p { color: #6b7f5b; font-size: .95rem; max-width: 35rem; margin-top: .7rem; }
.result-counts { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 1rem; color: #65745b; font-size: .9rem; }
.result-counts b { font-size: 1.1rem; font-weight: 650; }
.green-text { color: #547b39; }
.orange-text { color: #a3724c; }
.review-question { border: 1px solid var(--line); border-radius: .75rem; background: white; margin-bottom: .8rem; overflow: hidden; }
.review-question summary { display: flex; align-items: center; gap: .8rem; padding: 1.15rem 1.3rem; cursor: pointer; list-style: none; }
.review-question summary::-webkit-details-marker { display: none; }
.review-status { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: .55rem; background: #eef4e6; color: #779652; flex-shrink: 0; }
.review-incorrect .review-status { background: #fcf1e8; color: #b98a60; }
.review-title { display: grid; gap: .3rem; flex: 1; }
.review-title > span { font-size: .75rem; color: #87967c; }
.review-title > strong { font-size: .98rem; font-weight: 600; }
.review-label { font-size: .8rem; color: #7d8d70; }
.review-incorrect .review-label { color: #b18661; }
.details-plus { color: #96a48b; font-size: 1.5rem; margin-left: .5rem; }
.review-question[open] .details-plus { transform: rotate(45deg); }
.review-body { padding: 0 1.5rem 1.5rem; }
.review-prompt { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.3rem 0; margin-bottom: 1.3rem; color: #40573c; }
.review-prompt p + p { margin-top: .8rem; }
.login-page { display: grid; grid-template-columns: 1.08fr 1fr; min-height: 100vh; }
.login-intro { background: var(--dark); color: #f4f6ef; padding: 2.4rem 4rem 2rem; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.login-intro::after { content: ''; position: absolute; width: 30rem; height: 30rem; border: 1px solid #2a4640; border-radius: 50%; bottom: -20rem; right: -10rem; box-shadow: 0 0 0 5rem #183130, 0 0 0 calc(5rem + 1px) #29433d; pointer-events: none; }
.login-intro .brand { position: relative; z-index: 1; }
.intro-content { margin: auto 0; padding: 4rem 0 3rem; position: relative; z-index: 1; }
.light { color: #93b49b; }
.intro-content h1 { font-size: clamp(2.8rem, 4.7vw, 4.8rem); letter-spacing: -.055em; line-height: 1.1; font-weight: 650; margin: 1.2rem 0 1.6rem; }
.intro-content h1 > span { color: var(--lime); }
.intro-content > p { color: #a3b7ae; font-size: 1rem; line-height: 1.8; }
.intro-topics { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.8rem 0 2rem; max-width: 30rem; }
.intro-topics > span { border: 1px solid #3a5149; color: #b6c8b6; border-radius: .4rem; padding: .25rem .6rem; font-size: .75rem; }
.terminal-card { border: 1px solid #3b5147; border-radius: .8rem; padding: 1.1rem 1.25rem 1.4rem; background: #102220; max-width: 29rem; box-shadow: 0 15px 25px #06181530; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.terminal-top { display: flex; gap: .4rem; align-items: center; margin-bottom: 1.4rem; }
.terminal-top > span { width: .45rem; height: .45rem; background: #4b6253; border-radius: 50%; }
.terminal-top > span:first-child { background: #9a7a63; }
.terminal-top > span:nth-child(2) { background: #a19a60; }
.terminal-top > span:nth-child(3) { background: #76955b; }
.terminal-top > i { color: #718c78; font-size: .7rem; margin-left: auto; font-style: normal; }
.terminal-card p { color: #c7dcac; font-size: .78rem; margin-top: .5rem; overflow-wrap: anywhere; }
.terminal-card b, .terminal-check { color: #b9df7f; }
.terminal-card .terminal-dim { color: #718a77; font-size: .75rem; }
.cursor { display: inline-block; margin-left: .2rem; color: var(--lime); }
.intro-bottom { display: flex; flex-wrap: wrap; gap: 1rem; color: #7c9b86; font-size: .8rem; z-index: 1; }
.login-form-side { display: flex; flex-direction: column; padding: 2.3rem 3.5rem 2rem; background: #f7f9f5; }
.back-home { align-self: flex-end; font-size: .8rem; color: #8b9b82; text-decoration: none; }
.login-card { max-width: 26rem; width: 100%; margin: auto; padding: 3.5rem 0; }
.login-card .eyebrow { color: #8c9e7e; }
.login-card h2 { font-size: 2rem; letter-spacing: -.04em; }
.login-description { color: #7b8b6f; font-size: .96rem; line-height: 1.7; margin: 1rem 0 2rem; }
form label { display: block; font-size: .92rem; font-weight: 600; margin-bottom: .6rem; }
form input { display: block; background: white; width: 100%; padding: .9rem 1rem; color: #2d4426; border: 1px solid #d7e0cd; border-radius: .6rem; min-height: 3.25rem; }
form input::placeholder { color: #a7b39b; }
.pin-input { letter-spacing: .5em; font-size: 1.1rem; }
.field-hint { font-size: .78rem; color: #8a987e; margin: .55rem 0 1.25rem; }
.login-submit { width: 100%; margin-top: .5rem; min-height: 3.3rem; }
.form-error { font-size: .85rem; color: #a24b30; margin-bottom: .5rem; }
.form-error:empty { display: none; }
.login-footnote { border-top: 1px solid #e1e7d9; margin-top: 1.8rem; padding-top: 1.4rem; display: flex; justify-content: center; align-items: flex-start; gap: .6rem; color: #8b9c7c; }
.login-footnote .icon { width: 1.1rem; height: 1.1rem; margin-top: .15rem; }
.login-footnote p { font-size: .8rem; }
.login-bottom { text-align: center; color: #9eac92; font-size: .8rem; }
.notice { position: fixed; bottom: 1.5rem; left: 50%; transform: translate(-50%, 1rem); z-index: 100; background: #1b3a31; color: #eef9e7; padding: .9rem 1.3rem; border-radius: .7rem; box-shadow: 0 4px 30px #10272025; max-width: min(40rem, calc(100% - 2rem)); font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.notice.visible { opacity: 1; transform: translate(-50%, 0); }
.notice-error { background: #8c4432; }
.boot-screen { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 1.5rem; padding: 2rem; }
.boot-screen h1 { font-size: 1.7rem; }
.boot-screen p { color: var(--muted); max-width: 32rem; }
.noscript { text-align: center; padding: 2rem; }
@media (min-width: 1600px) { .login-intro { padding-left: max(4rem, calc((100vw - 1350px) / 2)); } }
@media (max-width: 1250px) {
  .sidebar { width: 13.75rem; padding-left: 1rem; padding-right: 1rem; }
  .main-wrap { margin-left: 13.75rem; width: calc(100% - 13.75rem); }
  main { padding-left: 2rem; padding-right: 2rem; }
  .topbar, .app-footer { padding-left: 2rem; padding-right: 2rem; }
  .stat-card { padding: 1rem; }
  .stat-label { font-size: .78rem; }
  .stat-label .icon { display: none; }
  .training-layout { grid-template-columns: minmax(0, 1fr) 14rem; gap: 1rem; }
  .question-panel { padding: 1.5rem; }
  .login-intro { padding-left: 3rem; padding-right: 3rem; }
  .login-form-side { padding-left: 2.5rem; padding-right: 2.5rem; }
}
@media (max-width: 1000px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-label .icon { display: block; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .training-layout { grid-template-columns: minmax(0, 1fr); }
  .session-panel { display: none; }
  .heading-stamp { display: none; }
  .start-bar { align-items: stretch; flex-direction: column; gap: .9rem; }
  .start-bar > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; }
  .page-heading { align-items: flex-start; }
  .result-hero { gap: 1.5rem; padding: 1.5rem; }
  .login-intro { padding: 2.2rem; }
  .login-form-side { padding-left: 2rem; padding-right: 2rem; }
  .intro-content h1 { font-size: 3.3rem; }
  .terminal-card { padding: 1rem; }
  .terminal-card p { font-size: .7rem; }
}
@media (max-width: 760px) {
  .workspace { display: block; }
  .sidebar { position: static; width: 100%; padding: 1rem 1.1rem 0; display: grid; grid-template-columns: 1fr auto; gap: .8rem 1rem; }
  .sidebar .brand { margin: 0; }
  .sidebar .brand-mark { width: 2.35rem; height: 2.35rem; font-size: 1.3rem; }
  .brand-text { font-size: 1.05rem; }
  .brand-text > span { font-size: .8rem; }
  .sidebar-label, .sidebar-note, .sidebar > .home-link { display: none; }
  .profile { padding: 0; border: 0; grid-column: 2; grid-row: 1; }
  .profile .avatar, .profile div span { display: none; }
  .profile strong { max-width: 6.5rem; font-size: .85rem; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; display: flex; gap: .5rem; }
  .nav-item { flex: 1; justify-content: center; border-radius: .55rem .55rem 0 0; min-height: 2.9rem; padding: .65rem .8rem; font-size: .87rem; }
  .nav-item .icon { height: 1.1rem; width: 1.1rem; }
  .main-wrap { margin: 0; width: 100%; }
  .topbar { padding: .85rem 1.25rem; min-height: 3.75rem; }
  .topbar > span:first-child { font-size: .65rem; letter-spacing: .07em; }
  .level-tag { font-size: .7rem; padding: .25rem .5rem; }
  main { padding: 1.8rem 1.2rem 2rem; }
  .page-heading { margin-bottom: 1.5rem; }
  .page-heading p { font-size: .9rem; }
  .eyebrow { font-size: .67rem; }
  .stats-grid { gap: .7rem; margin-bottom: 2rem; }
  .stat-card > strong { font-size: 1.9rem; }
  .stat-card > span { font-size: .7rem; }
  .topic-grid { gap: .7rem; }
  .topic-card { padding: 1rem; }
  .section-heading { gap: .75rem; }
  .section-heading h2 { font-size: 1.22rem; }
  .section-heading p { font-size: .83rem; }
  .all-topics { padding: .5rem .65rem; font-size: .78rem; }
  .all-topics .icon { display: none; }
  .app-footer { padding: 0 1.25rem 1.25rem; font-size: .7rem; }
  .resume-banner { flex-wrap: wrap; padding: 1rem; }
  .resume-banner > div { min-width: 60%; }
  .resume-banner .button { width: 100%; }
  .empty-history { padding: 1.1rem; }
  .history-row { padding: 1rem; gap: .7rem; }
  .history-main > strong { font-size: .9rem; }
  .history-symbol { display: none; }
  .history-main > span { font-size: .75rem; }
  .question-panel { padding: 1.3rem; }
  .training-page-heading h1 { font-size: 1.8rem; }
  .training-page-heading > .button { padding: .65rem .9rem; min-height: 2.65rem; font-size: .85rem; }
  .question-meta { font-size: .75rem; margin-bottom: 1.25rem; }
  .question-text, .answer-prose { font-size: .97rem; }
  .self-grade .button { padding-left: .9rem; padding-right: .9rem; font-size: .85rem; }
  .result-hero { align-items: flex-start; }
  .result-circle { width: 6rem; height: 6rem; border-width: .35rem; }
  .result-circle strong { font-size: 1.8rem; }
  .result-message h2 { font-size: 1.25rem; }
  .result-message > p { font-size: .87rem; }
  .result-counts { gap: .5rem .8rem; font-size: .8rem; }
  .result-answers .section-heading { align-items: flex-start; }
  .review-question summary { padding: 1rem; gap: .65rem; }
  .review-label { display: none; }
  .review-title > strong { font-size: .9rem; }
  .review-body { padding: 0 1rem 1rem; }
  .review-body .answer-prose { font-size: .9rem; }
  .login-page { grid-template-columns: 1fr; }
  .login-intro { padding: 1.5rem 1.5rem 1.8rem; }
  .intro-content { padding: 2rem 0 .8rem; }
  .intro-content h1 { font-size: 2.7rem; margin-top: 1rem; }
  .intro-content h1 br:nth-child(2) { display: none; }
  .intro-content h1 > span::before { content: ' '; }
  .intro-content > p { font-size: .9rem; }
  .intro-content > p > br { display: none; }
  .terminal-card, .intro-topics, .intro-bottom, .intro-content .eyebrow { display: none; }
  .login-form-side { padding: 2rem 1.5rem; }
  .back-home { display: none; }
  .login-card { max-width: 32rem; padding: .2rem 0 2rem; }
  .login-card h2 { font-size: 1.7rem; }
  .login-description { margin-bottom: 1.5rem; font-size: .9rem; }
}
@media (max-width: 440px) {
  .topic-grid { grid-template-columns: 1fr; }
  .topic-card { min-height: auto; position: relative; padding-left: 4.5rem; padding-right: 2.6rem; }
  .topic-top { margin: 0; }
  .topic-icon { position: absolute; top: 1rem; left: 1rem; }
  .topic-code { display: none; }
  .topic-checkbox { position: absolute; right: 1rem; top: 1.4rem; }
  .topic-count { margin-top: .4rem; }
  .topic-card p { font-size: .8rem; }
  .stats-grid { gap: .6rem; }
  .stat-card { padding: .9rem; }
  .stat-label { font-size: .73rem; }
  .stat-label .icon { display: none; }
  .stat-card > span { font-size: .67rem; }
  .section-heading { align-items: flex-start; }
  .section-heading > div { flex: 1; }
  .all-topics { margin-top: .1rem; }
  .all-topics > span { display: none; }
  .history-row { padding: .9rem; }
  .score-tag { display: none; }
  .page-heading { flex-direction: column; }
  .result-hero { gap: 1rem; padding: 1.25rem; flex-direction: column; }
  .result-circle { width: 5.5rem; height: 5.5rem; }
  .app-footer span:last-child { display: none; }
  .grade-actions { flex-direction: column; }
  .notice { font-size: .85rem; bottom: .8rem; padding: .8rem 1rem; width: calc(100% - 2rem); }
  .intro-content h1 { font-size: 2.4rem; }
  .key-points { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
