/* Shared colors and spacing keep the design easy to change. */
:root { --green: #285f4e; --green-light: #eaf1ed; --ink: #233b34; --muted: #687670; --border: #dfe5e0; --canvas: #f5f7f4; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; background: var(--canvas); color: var(--ink); font-size: 16px; line-height: 1.6; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid #bb852d; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.topbar { min-height: 88px; padding: 20px 5%; background: white; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 5px; color: var(--ink); font-size: 21px; letter-spacing: -.6px; text-decoration: none; font-weight: 600; }
.brand strong { color: var(--green); }
.brand-icon { margin-right: 8px; display: grid; place-items: center; background: var(--green); color: white; width: 37px; height: 37px; border-radius: 9px; font-family: monospace; font-size: 27px; }
.project-label, .eyebrow, .status-label, .session-label { font-size: 12px; font-weight: 650; letter-spacing: 1.5px; }
.project-label { color: var(--muted); border-left: 1px solid var(--border); padding-left: 28px; }
.level-badge { margin-left: auto; background: var(--green-light); color: var(--green); padding: 6px 12px; border-radius: 5px; font-size: 13px; }
.workspace { max-width: 1280px; margin: auto; padding: 40px 40px 20px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.eyebrow { color: var(--green); }
h1 { font-size: 26px; letter-spacing: -.8px; font-weight: 600; margin: 7px 0 4px; line-height: 1.35; }
.page-heading p:not(.eyebrow) { color: var(--muted); font-size: 15px; }
.session-label { color: var(--muted); font-family: monospace; }
.layout { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 26px; }
.sidebar { border: 1px solid var(--border); border-radius: 12px; background: #fff; overflow: hidden; align-self: start; }
.sidebar-heading { padding: 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.small-badge { background: #f1f4f1; border-radius: 4px; padding: 0 7px; color: var(--muted); font-size: 12px; }
.queue { padding: 10px; margin: 0; list-style: none; }
.queue li { display: flex; align-items: center; gap: 11px; padding: 12px 10px; border-radius: 6px; color: #63736b; font-size: 14px; }
.queue .number { font-family: monospace; color: #7a8880; font-size: 12px; }
.queue li.current { color: var(--green); background: var(--green-light); font-weight: 600; }
.queue .queue-status { margin-left: auto; font-size: 15px; }
.queue li.correct .queue-status { color: #267349; }.queue li.incorrect .queue-status { color: #a65036; }
.sidebar-note { margin: 4px 20px 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.sidebar-note .eyebrow { color: var(--muted); font-size: 11px; }.sidebar-note p { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.status-bar { display: flex; gap: 25px; align-items: center; background: white; border: 1px solid var(--border); border-radius: 10px; padding: 16px 24px; margin-bottom: 18px; }
.status-label { color: var(--muted); font-size: 10px; letter-spacing: 1.2px; }.status-bar p { font-size: 14px; margin-top: 3px; }
.progress-track { flex: 1; height: 5px; background: #edf0ed; border-radius: 10px; overflow: hidden; }.progress-track div { height: 100%; width: 0; background: var(--green); transition: width .3s; }
.score { border-left: 1px solid var(--border); padding-left: 24px; }.score p { font-size: 18px; }.score p span { font-size: 13px; color: var(--muted); }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 14px #273c3203; }
.panel-top { padding: 20px 26px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }.panel-top .eyebrow { font-size: 11px; color: var(--muted); }.outline-badge { border: 1px solid var(--border); padding: 3px 9px; border-radius: 5px; font-size: 12px; color: var(--muted); }
.start-content { padding: 18px 30px 31px; text-align: center; }.terminal-mark { width: 60px; height: 60px; display: grid; place-items: center; margin: 0 auto 20px; background: var(--green-light); color: var(--green); font-family: monospace; font-size: 36px; border-radius: 15px; border: 1px solid #d9e5dd; }
h2 { font-size: 44px; line-height: 1.12; letter-spacing: -1.8px; font-weight: 600; }.start-content > p { color: var(--muted); margin-top: 17px; font-size: 15px; }
.session-facts { display: flex; justify-content: center; gap: 0; margin: 27px 0; }.session-facts div { padding: 0 27px; border-right: 1px solid var(--border); }.session-facts div:last-child { border: 0; }.session-facts strong { display: block; font-size: 20px; font-weight: 600; }.session-facts span { font-size: 12px; color: var(--muted); }
.primary-button { display: inline-flex; justify-content: center; align-items: center; gap: 36px; border: 1px solid var(--green); border-radius: 7px; padding: 12px 22px; background: var(--green); color: white; font-weight: 550; font-size: 15px; transition: background .15s; }.primary-button:hover { background: #1c493b; }.primary-button span { font-size: 20px; line-height: 1; }.start-content .start-note { margin-top: 12px; font-size: 12px; }
.panel-bottom { background: #fafbf9; border-top: 1px solid var(--border); padding: 15px 22px; font-size: 12px; text-align: center; color: var(--muted); }.panel-bottom span { margin-right: 7px; }
.learning-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 20px 0 0; font-size: 12px; color: var(--muted); }.learning-note strong { font-weight: 600; color: #52675b; }.note-icon { font-size: 22px; color: var(--green); }
footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 35px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
/* A native disclosure keeps the learning story available without interrupting a ticket. */
.about-project { margin-top: 28px; border: 1px solid var(--border); border-radius: 10px; background: white; }
.about-project summary { padding: 16px 22px; cursor: pointer; color: var(--green); font-size: 15px; font-weight: 600; }
.about-project summary:focus-visible { outline: 3px solid #bb852d; outline-offset: 4px; border-radius: 8px; }
.about-content { padding: 6px 22px 24px; max-width: 1000px; }
.about-content h2 { font-size: 26px; letter-spacing: -.6px; margin-bottom: 12px; }
.about-content p { font-size: 16px; color: var(--muted); }
.about-skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: 22px 0; }
.about-skills h3 { font-size: 16px; margin-bottom: 6px; }
.about-content .about-note { font-size: 14px; padding-top: 16px; border-top: 1px solid var(--border); }
.author-credit { display: flex; flex-wrap: wrap; gap: 7px; font-size: 12px; }
.author-credit a { color: var(--green); text-underline-offset: 3px; }
@media (max-width: 640px) { .about-skills { grid-template-columns: 1fr; gap: 18px; } }
.ticket-content { padding: 10px 28px 28px; }.ticket-content h2 { font-size: 30px; letter-spacing: -.8px; margin: 8px 0 22px; }.request { padding: 18px 20px; background: #f4f6f3; border-left: 3px solid #c0d1c4; border-radius: 0 7px 7px 0; }.request-label { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 1.2px; }.request p { margin-top: 6px; }.ticket-content h3 { margin: 24px 0 12px; font-size: 16px; font-weight: 600; }
.answers { display: grid; gap: 10px; }.answer { text-align: left; display: flex; align-items: center; gap: 13px; background: white; border: 1px solid var(--border); border-radius: 7px; padding: 13px 15px; color: var(--ink); font-size: 15px; line-height: 1.5; }.answer-letter { border: 1px solid var(--border); border-radius: 4px; min-width: 27px; text-align: center; font-family: monospace; font-size: 12px; padding: 2px; }.answer:hover:not(:disabled) { background: #f3f7f3; border-color: var(--green); }.answer:disabled { cursor: default; opacity: 1; }.answer.correct { background: #eef6ef; border-color: #528565; }.answer.incorrect { background: #fff3ed; border-color: #b76a4d; }.answer-result { margin-left: auto; font-size: 12px; font-weight: 600; }
.feedback { margin-top: 20px; padding: 18px; background: #eef6ef; border-radius: 7px; font-size: 15px; }.feedback.incorrect { background: #fff3ed; }.feedback strong { display: block; margin-bottom: 5px; }.feedback p + p { margin-top: 8px; }.next-button { margin-top: 20px; }
.results-content { text-align: center; padding: 25px 30px 42px; }.results-content h2 { font-size: 34px; margin: 12px 0; }.result-score { margin: 15px 0; }.result-score strong { font-size: 76px; letter-spacing: -4px; color: var(--green); }.result-score span { font-size: 24px; margin-left: 10px; color: var(--muted); }.results-content > p:not(.eyebrow) { color: var(--muted); }.review-topics { margin: 24px auto; max-width: 480px; padding: 18px; background: #f4f6f3; border-radius: 7px; font-size: 14px; }.review-topics strong { display: block; margin-bottom: 5px; }.noscript { padding: 25px; background: white; text-align: center; }
/* Collapse the queue on small screens so the active ticket gets the space. */
@media (max-width: 850px) { .project-label { display: none; }.workspace { padding: 28px 22px 18px; }.layout { grid-template-columns: 210px minmax(0,1fr); gap: 18px; }.session-label { display: none; }.session-facts div { padding: 0 15px; }h2 { font-size: 38px; }footer { flex-direction: column; gap: 5px; } }
@media (max-width: 640px) { .topbar { padding: 17px 20px; min-height: 76px; gap: 10px; }.brand { font-size: 19px; }.level-badge { font-size: 10px; padding: 5px 7px; max-width: 110px; text-align: center; }.workspace { padding: 24px 16px 18px; }h1 { font-size: 23px; }.page-heading { margin-bottom: 22px; }.layout { display: block; }.sidebar { display: none; }.status-bar { padding: 13px 16px; gap: 14px; }.score { padding-left: 15px; }.panel-top { padding: 18px; }.panel-top .eyebrow { font-size: 10px; letter-spacing: 1px; }.outline-badge { font-size: 11px; }.start-content { padding: 20px 16px 30px; }h2 { font-size: 39px; }.desktop-break { display: none; }.session-facts div { padding: 0 16px; }.session-facts span { font-size: 11px; }.session-facts strong { font-size: 19px; }.panel-bottom { font-size: 12px; padding: 14px 18px; }.learning-note { align-items: flex-start; justify-content: flex-start; }.ticket-content { padding: 10px 18px 24px; }.ticket-content h2 { font-size: 28px; }.answer { font-size: 15px; padding: 12px; }.answer-result { font-size: 11px; }.results-content { padding: 20px 20px 32px; }.results-content h2 { font-size: 30px; }footer { margin-top: 28px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
