:root {
  color-scheme: light;
  --ink: #172a42;
  --muted: #536781;
  --blue: #285cff;
  --deep-blue: #204edc;
  --pale-blue: #e9efff;
  --surface: #fff;
  --canvas: #f3f6fb;
  --line: #e0e7f2;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  background: var(--canvas);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
main:focus, h1:focus, h2:focus { outline: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; top: 12px; left: 12px; z-index: 10; transform: translateY(-160%); background: white; padding: 12px 16px; border-radius: 9px; }
.skip:focus { transform: translateY(0); }
.loading { padding: 32px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { height: 100vh; display: flex; position: sticky; top: 0; flex-direction: column; border-right: 1px solid var(--line); background: #fff; padding: 32px 16px 22px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 9px; margin-bottom: 43px; text-decoration: none; font-size: 19px; line-height: 1.11; letter-spacing: -.045em; font-weight: 780; }
.brand-icon { flex: none; width: 45px; height: 45px; display: grid; place-items: center; color: white; background: var(--blue); border-radius: 12px; box-shadow: 0 3px 0 #204cd6; }
.navigation { display: grid; gap: 5px; }
.nav-label { color: var(--muted); font-size: 13px; font-weight: 650; margin: 0 12px 6px; }
.nav-item { border-radius: 9px; display: flex; gap: 10px; min-height: 47px; align-items: center; padding: 9px 10px; color: #455976; font-size: 14px; line-height: 1.18; font-weight: 590; text-decoration: none; }
.nav-item[aria-current] { color: var(--deep-blue); background: #eaf0ff; font-weight: 730; }
.nav-icon { display: grid; place-items: center; width: 26px; height: 25px; flex: none; }
.nav-check { margin-left: auto; color: #168651; display: grid; place-items: center; }
.final-nav { min-height: 52px; margin-top: 9px; border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; padding-left: 14px; }
.final-nav > svg { margin-right: 4px; }
.rail-foot { margin-top: auto; padding: 16px 11px 0; border-top: 1px solid var(--line); }
.rail-foot strong { display: block; font-size: 15px; margin: 4px 0 8px; }
.foot-label { margin: 0; color: var(--muted); font-size: 13px; }
.shell-right { min-width: 0; }
.topbar { height: 75px; border-bottom: 1px solid var(--line); background: white; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px max(34px, calc((100% - 1150px) / 2)); }
.breadcrumb { display: inline-flex; align-items: center; gap: 8px; color: #435874; text-decoration: none; font-weight: 650; font-size: 14px; white-space: nowrap; }
.platform-picker { display: inline-flex; padding: 4px; gap: 3px; background: #f0f4fa; border: 1px solid #e8edf6; border-radius: 10px; }
.platform { min-height: 32px; padding: 5px 11px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #485d79; font-size: 13px; font-weight: 650; }
.platform[aria-pressed="true"] { background: #fff; border-color: #e0e7f3; color: var(--deep-blue); box-shadow: 0 2px 3px #2e466414; }
.platform svg { width: 16px; height: 16px; }
.platform-choice { margin-bottom: 17px; padding: 17px 20px; border: 1px solid #d6e2f4; border-radius: 12px; background: #fff; }
.platform-choice h2 { margin: 0; font-size: clamp(20px, 2.5vw, 27px); line-height: 1.15; letter-spacing: -.035em; }
.platform-choice p { margin: 6px 0 13px; color: var(--muted); line-height: 1.4; font-size: 14px; }
.platform-options { display: flex; flex-wrap: wrap; gap: 8px; }
.platform-option { display: flex; flex: 0 1 168px; align-items: center; flex-wrap: wrap; gap: 6px; justify-content: center; min-height: 44px; padding: 5px 8px; border: 1px solid #cedcf4; border-radius: 8px; color: #294e96; background: #edf3ff; font-weight: 700; }
.platform-option kbd { color: #546986; font-size: 12px; border-radius: 4px; padding: 3px 4px; background: white; }
.page { max-width: 1218px; margin: 0 auto; padding: 32px 34px 48px; }
.btn { min-height: 45px; padding: 10px 15px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; gap: 8px; border: 1px solid transparent; border-radius: 9px; font-size: 14px; line-height: 1.18; font-weight: 700; }
.btn > svg { flex: none; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .52; }
.primary { background: var(--blue); color: #fff; }
.secondary { background: #fff; color: #314b6e; border-color: #d8e2f0; }
.compact { min-height: 37px; padding: 7px 11px; font-size: 13px; }
.icon-button { min-width: 38px; }
.map-grid { margin-top: 30px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(225px, 28%); align-items: start; gap: 22px; }
.schedule { min-width: 0; }
.group-head { display: flex; align-items: center; gap: 12px; }
.group-head h2, .map-card h2 { margin: 0; letter-spacing: -.04em; }
.group-head h2 { font-size: clamp(22px, 2.15vw, 31px); line-height: 1.11; }
.section-marker { margin: 0 0 5px; font-size: 12px; font-weight: 730; color: var(--deep-blue); }
.block-symbol { width: 47px; height: 47px; display: grid; place-items: center; flex: none; border-radius: 11px; background: #e5edff; color: var(--deep-blue); }
.symbol-shortcuts { background: #edeaff; color: #6048bd; }
.symbol-files { background: #fff0d9; color: #865115; }
.symbol-excel { background: #dbf2e5; color: #187449; }
.schedule-description { color: var(--muted); line-height: 1.45; font-size: 14px; margin: 10px 0 14px; }
.lesson-list { list-style: none; padding: 0; margin: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.lesson-list li + li { border-top: 1px solid #e9eef5; }
.lesson-row { display: grid; grid-template-columns: 37px minmax(0, 1fr) auto 18px; gap: 11px; min-height: 65px; align-items: center; padding: 11px 13px; text-decoration: none; }
.lesson-row:focus-visible, .exam-row:focus-visible { outline-offset: -3px; }
.next-row { background: #f3f6ff; box-shadow: inset 3px 0 0 var(--blue); }
.lesson-number { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; color: #5d7190; background: #f0f4fa; font: 680 13px ui-monospace, Menlo, monospace; }
.next-row .lesson-number { background: #e1eaff; color: #204edc; }
.lesson-number.passed { color: #167849; background: #e2f5e9; }
.row-detail { display: grid; gap: 4px; min-width: 0; }
.row-detail strong { font-size: 15px; letter-spacing: -.014em; }
.row-detail span { line-height: 1.32; font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lesson-time { white-space: nowrap; display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }
.open-lesson { color: #617a99; }
.open-lesson > svg { display: block; }
.exam-row { display: flex; align-items: center; gap: 9px; min-height: 53px; padding: 9px 14px; color: var(--deep-blue); text-decoration: none; font-size: 14px; font-weight: 700; }
.map-side { display: grid; gap: 14px; }
.map-card { padding: 19px; border-radius: 12px; background: white; border: 1px solid var(--line); }
.map-card h2 { font-size: 17px; display: flex; align-items: center; gap: 7px; }
.status-count { margin: 10px 0 7px; display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.status-count strong { font-size: 35px; line-height: 1; letter-spacing: -.06em; }
.status-count span, .map-card p { color: var(--muted); font-size: 13px; line-height: 1.45; }
.map-card p { margin: 10px 0 0; }
.trackpad-reference { grid-column: 1 / -1; padding-block: 13px; }
.trackpad-reference summary { font-size: 13px; font-weight: 680; color: #435874; cursor: pointer; }
.trackpad-reference a { display: inline-block; margin-top: 8px; color: var(--deep-blue); font-size: 13px; }
.progress-bar { display: block; width: 100%; border: 0; height: 7px; background: #e7edf6; border-radius: 20px; overflow: hidden; accent-color: var(--blue); color: var(--blue); }
.progress-bar::-webkit-progress-bar { background: #e7edf6; border-radius: 20px; }
.progress-bar::-webkit-progress-value { background: var(--blue); border-radius: 20px; }
.progress-bar::-moz-progress-bar { background: var(--blue); }
.tip-card { background: #eff3ff; border-color: #e0e8fa; }
.tip-card h2 svg { color: var(--blue); flex: none; }
.tip-combo { display: flex; align-items: center; gap: 8px; margin: 14px 0 13px; color: #536d9e; font-size: 14px; }
.tip-combo kbd { background: #fff; border: 1px solid #ccd9f2; border-radius: 6px; box-shadow: 0 2px 0 #cbd8ef; padding: 6px 8px; font: 650 13px ui-monospace, Menlo, monospace; color: #20458f; }
.back-link { display: inline-flex; gap: 7px; align-items: center; margin-bottom: 19px; color: #506688; text-decoration: none; font-size: 14px; font-weight: 700; }
.learning-page { max-width: 1070px; }
.learning-page h1 { font-size: clamp(32px, 4vw, 51px); line-height: 1.03; margin: 0; letter-spacing: -.047em; }
.learning-marker { margin-bottom: 8px; }
.learning-intro { max-width: 65ch; color: var(--muted); font-size: 16px; line-height: 1.55; margin: 10px 0 19px; }
.phase-nav { padding: 0; margin: 0 0 16px; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.phase-tab { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 47px; border-radius: 8px; background: white; color: #4a6384; border: 1px solid var(--line); padding: 7px 10px; font-weight: 660; font-size: 13px; text-align: left; }
.phase-tab[aria-current] { background: #e8efff; border-color: #bfcefb; color: var(--deep-blue); }
.phase-tab:disabled { color: #687d96; background: #f6f8fc; }
.phase-count { background: #e9eef6; color: #435b7d; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 6px; flex: none; font-size: 12px; }
.phase-tab[aria-current] .phase-count { background: var(--blue); color: white; }
.stage { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.stage-title { font-size: clamp(22px, 2.5vw, 29px); margin: 0 0 10px; letter-spacing: -.047em; line-height: 1.16; }
.task-prompt { margin: 0 0 15px; color: #47617e; line-height: 1.48; }
.demo-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.demo-heading .stage-title { margin: 0; }
.demo-heading .btn { min-height: 40px; }
.demo-layout { display: grid; grid-template-columns: minmax(164px, 22%) minmax(0, 1fr); gap: 16px; align-items: start; }
.demo-sidebar { min-width: 0; }
.demo-timeline { display: grid; gap: 5px; margin: 9px 0 14px; padding: 0; list-style: none; }
.demo-step { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 41px; padding: 6px 7px; text-align: start; color: #415771; background: #f7f9fd; border: 1px solid #e7edf6; border-radius: 8px; font-size: 13px; font-weight: 630; }
.demo-step[aria-current="step"] { color: #1c47c7; background: #eaf0ff; border-color: #bdcdfd; }
.demo-step-number { display: grid; place-items: center; flex: none; width: 26px; height: 25px; border-radius: 5px; background: #eaf0fa; color: #526b89; font: 700 11px ui-monospace, Menlo, monospace; }
.demo-step[aria-current] .demo-step-number { background: var(--blue); color: #fff; }
.demo-visual { display: grid; gap: 10px; min-width: 0; padding: 13px; border: 1px solid #d5def0; border-radius: 13px; background: #edf2fb; }
.demo-caption { min-height: 24px; margin: 0; padding: 2px 2px 0; color: #243e63; font-weight: 670; font-size: 15px; line-height: 1.35; }
.demo-monitor { min-width: 0; padding: 5px; background: #223451; border: 1px solid #1d2c45; border-radius: 11px; }
.demo-monitor-label { min-height: 29px; padding: 2px 8px 7px; display: flex; align-items: center; gap: 7px; color: #f1f5ff; font-size: 12px; font-weight: 650; }
.demo-monitor-label svg { color: #b6caff; flex: none; }
.demo-frame > .basic-activity, .demo-frame > .office { border-radius: 7px; }
.activity-frame, .demo-frame { min-width: 0; }
.demo-frame { position: relative; }
.demo-cursor { position: absolute; width: 25px; height: 29px; pointer-events: none; z-index: 2; filter: drop-shadow(0 2px 2px #233b7350); }
.demo-cursor > svg { position: relative; display: block; }
.demo-transfer { position: absolute; z-index: 2; display: block; padding: 3px 7px; color: #164d3a; background: #bcf1d8; border: 1px solid #8abfab; border-radius: 5px; box-shadow: 0 3px 9px #183e3126; pointer-events: none; white-space: nowrap; font-size: 13px; font-weight: 720; }
.demo-click { position: absolute; left: -7px; top: -8px; width: 22px; height: 22px; border: 2px solid #285cff; border-radius: 50%; animation: demo-click 460ms 280ms var(--ease-out) both; }
.demo-keyboard .course-keyboard__key.is-pressed, .demo-keycap { animation: demo-key-press 310ms var(--ease-out) var(--press-delay, 0ms) both; }
@keyframes demo-click {
  0% { transform: scale(.92); opacity: 0; }
  18% { opacity: .9; }
  100% { transform: scale(1.65); opacity: 0; }
}
@keyframes demo-key-press {
  0% { transform: translateY(-2px); opacity: .58; }
  48% { transform: translateY(2px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.activity-frame:empty { display: none; }
.demo-controls, .stage-footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.demo-controls { gap: 5px; }
.demo-controls .btn { min-height: 34px; padding: 5px 8px; }
.playback-status { color: var(--muted); font-size: 12px; margin: 6px 0 0; }
.frame-count { color: var(--muted); font-size: 12px; font-weight: 690; }
.stage-footer { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.keyboard-panel { min-width: 0; background: #edf1f8; border: 1px solid #e1e8f4; border-radius: 10px; margin-top: 12px; padding: 3px 8px 8px; }
.keyboard-panel:not([open]) { padding-bottom: 3px; }
.keyboard-panel summary { width: fit-content; cursor: pointer; color: #385273; font-size: 13px; font-weight: 710; padding: 6px 4px; }
.keyboard-help { margin: 1px 4px 7px; color: #405978; font-size: 12px; line-height: 1.4; }
.keyboard-panel .course-keyboard { margin: 0; }
.demo-chord { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 1px 0 3px; }
.demo-keycap { display: inline-grid; place-items: center; min-width: 48px; min-height: 40px; padding: 3px 10px; background: #285cff; color: #fff; border: 1px solid #254ed8; border-radius: 8px; box-shadow: 0 3px 0 #193ba8; font-size: 20px; font-weight: 750; }
.chord-plus { font-size: 17px; color: #455f90; }
.demo-keyboard .course-keyboard { margin: 0 auto; max-width: 650px; padding: 7px; background: #d9e3f6; border: 1px solid #c8d5eb; border-radius: 10px; box-shadow: 0 3px 0 #bac8e1; }
.demo-keyboard .course-keyboard__row { gap: 4px; }
.demo-keyboard .course-keyboard__key { min-height: 26px; padding-block: 2px; color: #293f61; background: #fdfefe; border-color: #c1cee4; border-bottom-width: 2px; }
.demo-keyboard .course-keyboard__key small { color: #4f6486; }
.demo-keyboard .course-keyboard__key.is-pressed { color: #fff; background: #285cff; border-color: #214bdb; }
.demo-keyboard .course-keyboard__key.is-pressed small { color: #fff; }
.hint-box { margin: 0 0 12px; background: #fff5d9; border-inline-start: 3px solid #d7a53b; color: #624917; padding: 9px 11px; border-radius: 5px; font-size: 14px; line-height: 1.4; scroll-margin-top: 12px; }
.hint-box p { margin: 0; }
.hint-chord { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.hint-chord kbd { min-width: 28px; padding: 3px 6px; text-align: center; border-radius: 5px; border: 1px solid #c89a45; background: #fff; color: #654400; font-weight: 720; }
.basic-activity .practice-target { outline: 2px solid #bd8a26; outline-offset: 2px; background-color: #fffbef; }
.practice-footer { position: sticky; bottom: 0; z-index: 3; margin: 12px -22px -22px; padding: 10px 22px 12px; background: #fff; border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; box-shadow: 0 -6px 14px #142e4c0e; }
.practice-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.practice-summary { margin: 0 0 7px; font-size: 13px; line-height: 1.35; color: #4b6384; }
.practice-ready .practice-summary { font-weight: 720; color: #167248; }
.practice-review:not(:empty) { margin: 0 0 7px; padding: 6px 8px; }
.practice-review ul { margin: 0; gap: 4px; }
.criteria-list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.criteria-list li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.criteria-state { display: inline-flex; padding: 2px 5px; border-radius: 4px; color: #72470c; background: #ffefd3; font-size: 11px; font-weight: 680; white-space: nowrap; }
.criteria-pass { color: #167248; }
.criteria-pending { color: #9b561a; }
.criteria-list svg { flex: none; }
.feedback:not(:empty) { margin-top: 13px; padding: 12px; background: #f3f6fb; border-radius: 8px; }
.exam-result { padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.exam-result h3 { font-size: 16px; margin: 0; }
.exam-stage > .btn { margin-top: 4px; }
.quiz fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.quiz legend { padding: 0; margin: 0 0 12px; font-weight: 650; }
.quiz-option { display: flex; align-items: center; gap: 9px; min-height: 45px; border: 1px solid #e0e8f4; background: #f8faff; border-radius: 8px; padding: 8px 10px; margin: 0 0 7px; max-width: 530px; cursor: pointer; }
.quiz-option:has(:checked) { border-color: #adbefa; background: #eef3ff; }
.quiz-option input { accent-color: var(--blue); }
.quiz-feedback { margin: 9px 0 0; color: #355578; }
.quiz-feedback:empty { display: none; }
@media (hover: hover) {
  .nav-item:hover:not([aria-current]), .lesson-row:hover:not(.next-row), .exam-row:hover { background: #f0f4fb; }
  .breadcrumb:hover, .back-link:hover { color: var(--deep-blue); }
  .primary:hover:not(:disabled) { background: #204edc; }
  .secondary:hover:not(:disabled), .platform:hover:not([aria-pressed="true"]) { background: #f0f4ff; }
  .platform-option:hover { border-color: #9fb5f1; background: #e0ebff; }
  .demo-step:hover:not([aria-current]) { background: #eef3fd; }
}
@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 212px minmax(0, 1fr); }
  .topbar { padding-inline: 25px; }
  .page { padding-inline: 25px; }
  .map-grid { gap: 15px; }
}
@media (max-width: 870px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { height: auto; min-width: 0; position: static; padding: 10px 15px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { margin-bottom: 12px; padding-left: 0; font-size: 15px; }
  .brand-icon { width: 34px; height: 34px; border-radius: 8px; }
  .brand-icon svg { width: 20px; }
  .navigation { display: flex; overflow-x: auto; gap: 4px; padding: 1px 2px 7px; }
  .nav-label, .rail-foot { display: none; }
  .nav-item { white-space: nowrap; font-size: 12px; min-height: 32px; padding: 5px 8px; gap: 4px; }
  .nav-icon { width: 19px; height: auto; }
  .nav-icon svg { width: 15px; height: 15px; }
  .final-nav { margin: 0; border: 0; border-radius: 9px; }
  .final-nav > svg { width: 15px; margin-right: 0; }
  .topbar { height: auto; min-height: 54px; padding: 7px 15px; }
  .page { padding: 19px 15px 32px; }
}
@media (max-width: 570px) {
  .map-grid { grid-template-columns: 1fr; margin-top: 20px; }
  .map-side { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .map-card { padding: 13px; }
  .map-card h2 { font-size: 15px; }
  .lesson-row { grid-template-columns: 32px minmax(0, 1fr) auto 12px; gap: 8px; padding-inline: 9px; }
  .lesson-number { width: 31px; height: 31px; }
  .lesson-time { font-size: 11px; }
  .lesson-time svg { display: none; }
  .platform { padding-inline: 7px; min-height: 28px; font-size: 12px; gap: 4px; }
  .platform-choice { padding: 13px; }
  .platform-option { flex: 1 1 85px; min-height: 57px; }
  .breadcrumb { font-size: 13px; }
  .breadcrumb svg { display: none; }
  .stage { padding: 13px; }
  .practice-footer { margin-inline: -13px; margin-bottom: -13px; padding-inline: 13px; }
  .demo-layout { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .demo-timeline { display: flex; flex-wrap: wrap; gap: 4px; margin: 5px 0 7px; }
  .demo-step { min-height: 33px; width: auto; font-size: 12px; gap: 5px; }
  .demo-step-number { width: 20px; height: 19px; }
  .demo-visual { padding: 7px; }
  .demo-keyboard .course-keyboard__key { min-height: 25px; font-size: .54rem; }
  .demo-controls .btn { font-size: 12px; padding-inline: 6px; }
  .phase-nav { gap: 4px; }
  .phase-tab { padding-inline: 4px; gap: 4px; font-size: 11px; }
  .phase-count { width: 15px; height: 19px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-delay: 0ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
