:root {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  color: #eef8ff;
  background: #07121d;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
button { font: inherit; }

#scene-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  background: #081724;
}

#app { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
#app > *, #fatal-error, .interactive-panel { pointer-events: auto; }
#app .decorative-layer, #app [aria-hidden="true"], .decorative-layer, [aria-hidden="true"] { pointer-events: none; }

.screen {
  position: absolute;
  inset: 0;
  min-width: 1000px;
  min-height: 600px;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 18%, rgb(56 155 198 / 16%), transparent 27%),
    linear-gradient(135deg, #07131f 0%, #0b2232 56%, #07131d 100%);
}

.screen::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgb(129 216 242 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(129 216 242 / 5%) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 84%);
  pointer-events: none;
}

.brand-lockup {
  position: absolute;
  z-index: 2;
  top: 38px;
  left: clamp(40px, 4.2vw, 68px);
  display: grid;
  gap: 3px;
  padding-left: 18px;
  border-left: 3px solid #41c6ee;
}

.brand-lockup__eyebrow { color: #63d3f3; font-size: 10px; letter-spacing: .18em; }
.brand-lockup strong { font-size: 21px; letter-spacing: .04em; }
.brand-lockup > span:last-child { color: #98b4c5; font-size: 13px; letter-spacing: .12em; }

.primary-button, .secondary-button, .utility-button, .back-button, .training-complete {
  border: 0;
  color: #fff;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.primary-button:hover, .secondary-button:hover, .utility-button:hover, .back-button:hover, .training-complete:hover,
.entry-card:hover, .module-card:hover { transform: translateY(-3px); }

.primary-button:focus-visible, .secondary-button:focus-visible, .utility-button:focus-visible,
.back-button:focus-visible, .training-complete:focus-visible, .entry-card:focus-visible, .module-card:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 220px;
  padding: 18px 22px;
  background: #09a9db;
  box-shadow: 0 16px 42px rgb(0 143 191 / 28%);
  font-weight: 700;
  letter-spacing: .08em;
}

.primary-button--small { width: auto; min-width: 180px; }
.secondary-button { padding: 14px 22px; border: 1px solid #3f7187; background: rgb(10 33 47 / 80%); }

.utility-button {
  position: absolute;
  z-index: 3;
  top: 42px;
  right: clamp(40px, 4.2vw, 68px);
  display: grid;
  gap: 4px;
  justify-items: center;
  background: transparent;
  font-size: 13px;
}

.utility-button span { color: #4dc9ed; font-size: 28px; line-height: 1; }

.back-button {
  position: absolute;
  z-index: 3;
  bottom: 35px;
  left: clamp(40px, 4.2vw, 68px);
  padding: 10px 0;
  background: transparent;
  color: #9fc3d4;
}

.screen--cover {
  background:
    linear-gradient(90deg, rgb(11 24 31 / 34%) 0%, rgb(11 24 31 / 13%) 54%, rgb(255 255 255 / 3%) 100%),
    url("../../产品原型概念图各个目录的图片/主界面/1.png") center center / cover no-repeat,
    #dfe3e4;
}

.screen--cover::before { background: none; }

.screen--cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgb(3 13 20 / 5%) 0%, transparent 54%, rgb(3 13 20 / 20%) 100%);
  pointer-events: none;
}

.lab-grid {
  display: none;
}

.cover-content { position: absolute; z-index: 2; bottom: 19.7%; left: 15.25%; }
.cover-kicker, .cover-content h1, .cover-subtitle, .cover-index {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.screen--cover .primary-button { width: 168px; min-height: 54px; padding: 0 20px; justify-content: center; font-size: 18px; letter-spacing: .04em; }

.screen--dashboard { padding: 0 6vw; }
.dashboard-heading { position: absolute; top: 24%; left: 7.2%; }
.dashboard-heading p, .workspace-title > span { margin: 0 0 8px; color: #4cc9ed; font-size: 11px; font-weight: 700; letter-spacing: .2em; }
.dashboard-heading h1, .workspace-title h1 { margin: 0 0 12px; font-size: 40px; }
.dashboard-heading > span, .workspace-title p { color: #8eabba; }

.entry-grid { position: absolute; top: 47%; right: 7%; left: 7%; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.entry-card, .module-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(91 203 233 / 26%);
  color: #effaff;
  background: linear-gradient(135deg, rgb(15 54 72 / 94%), rgb(9 31 46 / 95%));
  cursor: pointer;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.entry-card { min-height: 225px; padding: 30px 32px; }
.entry-card:hover, .module-card:hover { border-color: #59d4f4; background: linear-gradient(135deg, rgb(19 83 105 / 96%), rgb(9 40 57 / 96%)); }
.entry-card__number { position: absolute; top: 22px; right: 24px; color: #315c70; font-size: 44px; font-weight: 800; }
.entry-card__label { display: block; margin-bottom: 38px; color: #50caec; font-size: 12px; letter-spacing: .14em; }
.entry-card strong { display: block; margin-bottom: 10px; font-size: 28px; }
.entry-card > span:not(.entry-card__number):last-of-type { color: #97b3c2; font-size: 14px; }
.entry-card i { position: absolute; right: 27px; bottom: 25px; color: #5dd7f5; font-size: 22px; font-style: normal; }
.screen-footer { position: absolute; right: 7%; bottom: 4%; left: 7%; display: flex; justify-content: space-between; color: #496a7b; font-size: 10px; letter-spacing: .18em; }

.workspace-title { position: absolute; z-index: 2; top: 20%; left: clamp(40px, 6vw, 96px); }
.placeholder-stage {
  position: absolute;
  top: 37%;
  right: 12%;
  left: 12%;
  display: grid;
  justify-items: center;
  padding: 42px;
  border: 1px solid rgb(91 203 233 / 20%);
  background: rgb(8 29 42 / 72%);
  text-align: center;
}
.placeholder-stage__mark { display: grid; width: 62px; height: 62px; place-items: center; border: 1px solid #52cdec; color: #52cdec; font-size: 25px; }
.placeholder-stage strong { margin-top: 18px; font-size: 25px; }
.placeholder-stage p { margin: 8px 0 24px; color: #8eabba; }

.module-grid {
  position: absolute;
  top: 39%;
  right: 5.5%;
  left: 5.5%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.module-card { min-height: 320px; padding: 24px; }
.module-card__number { color: #4bc8eb; font-size: 12px; letter-spacing: .18em; }
.module-card__symbol { display: block; width: 72px; height: 72px; margin: 42px 0 30px; border: 2px solid #69d9f5; border-radius: 50%; box-shadow: inset 0 0 0 10px rgb(105 217 245 / 6%); }
.module-card--chemical .module-card__symbol { border-radius: 12px 50% 50% 50%; transform: rotate(45deg); }
.module-card--animal .module-card__symbol { width: 85px; border-radius: 50% 50% 38% 38%; }
.module-card--fire .module-card__symbol { border-width: 0 0 2px; border-radius: 52% 48% 50% 12%; background: linear-gradient(135deg, transparent 45%, rgb(105 217 245 / 34%)); transform: rotate(-40deg); }
.module-card strong { display: block; min-height: 52px; font-size: 20px; line-height: 1.35; }
.module-card > span:nth-last-of-type(1) { color: #91adbb; font-size: 13px; line-height: 1.6; }
.module-card i { position: absolute; right: 22px; bottom: 20px; color: #52caec; font-size: 12px; font-style: normal; }

.screen--training { background: radial-gradient(circle at 58% 50%, #16394a, #07131e 65%); }
.training-target { position: absolute; z-index: 3; top: 25px; left: 50%; display: grid; min-width: 360px; justify-items: center; padding: 12px 35px; border: 1px solid rgb(82 205 237 / 32%); background: rgb(7 27 40 / 88%); transform: translateX(-50%); }
.training-target span { color: #55cdeb; font-size: 10px; letter-spacing: .18em; }
.training-target strong { margin-top: 4px; font-size: 16px; }
.task-panel { position: absolute; z-index: 2; top: 0; bottom: 0; left: 0; width: clamp(280px, 19vw, 312px); padding: 54px 28px 30px; border-right: 1px solid rgb(94 204 231 / 22%); background: rgb(5 20 31 / 92%); }
.task-panel__eyebrow { color: #50c9ec; font-size: 10px; letter-spacing: .2em; }
.task-panel h1 { margin: 13px 0; font-size: 24px; line-height: 1.4; }
.task-panel p { color: #8faab8; font-size: 13px; line-height: 1.7; }
.task-panel ol { margin: 40px 0 0; padding: 0; list-style: none; counter-reset: task; }
.task-panel li { position: relative; margin: 0 0 25px; padding-left: 37px; color: #6f8a98; font-size: 13px; counter-increment: task; }
.task-panel li::before { position: absolute; left: 0; content: "0" counter(task); color: #426575; }
.task-panel li.is-active { color: #eaf9ff; }
.task-panel li.is-active::before { color: #56d1f1; }
.task-panel .back-button { right: 28px; bottom: 25px; left: 28px; text-align: left; }
.training-stage { position: absolute; top: 50%; left: calc(50% + 140px); display: grid; justify-items: center; color: #7697a7; transform: translate(-50%, -50%); }
.focus-reticle { width: 92px; height: 92px; margin-bottom: 20px; border: 1px solid rgb(93 210 238 / 32%); border-radius: 50%; box-shadow: 0 0 0 14px rgb(93 210 238 / 3%), inset 0 0 0 14px rgb(93 210 238 / 3%); }
.training-stage p { margin: 0 0 5px; color: #bdd2dc; font-size: 15px; }
.training-stage span { font-size: 11px; }
.status-panel { position: absolute; top: 105px; right: 28px; display: grid; width: 180px; gap: 5px; padding: 16px 18px; border-left: 2px solid #4fcbed; background: rgb(6 24 36 / 78%); }
.status-panel span, .status-panel small { color: #668795; font-size: 10px; letter-spacing: .12em; }
.status-panel strong { font-size: 15px; }
.training-complete { position: absolute; right: 30px; bottom: 28px; padding: 14px 21px; background: #079dcb; }

.screen--result { display: grid; place-items: center; }
.result-card { position: relative; z-index: 2; display: grid; width: min(680px, 70vw); justify-items: center; padding: 44px 55px; border: 1px solid rgb(94 210 239 / 28%); background: rgb(7 27 40 / 90%); box-shadow: 0 28px 70px rgb(0 0 0 / 30%); text-align: center; }
.result-card__label { color: #53cceb; font-size: 10px; letter-spacing: .23em; }
.result-score { display: flex; align-items: baseline; margin: 22px 0 10px; }
.result-score strong { color: #66d8f3; font-size: 68px; line-height: 1; }
.result-score span { color: #6e8e9c; }
.result-card h1 { margin: 10px 0; font-size: 26px; }
.result-card p { margin: 0; color: #8ba8b7; }
.result-actions { display: flex; gap: 14px; margin-top: 32px; }

#fatal-error { position: absolute; z-index: 5; top: 50%; left: 50%; width: min(90vw, 32rem); padding: 2rem; border: 1px solid rgb(255 255 255 / 18%); background: #6e1d28; text-align: center; transform: translate(-50%, -50%); }
[hidden] { display: none !important; }

/* Task 8: theory reader, question bank and fixed ten-question practice. */
.screen--theory { min-width: 900px; min-height: 560px; color: #173044; background: #e8eef1; }
.theory-topbar { position: relative; z-index: 3; display: grid; height: 88px; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 42px; border-bottom: 1px solid #bfd0d8; background: rgb(245 249 251 / 96%); }
.theory-topbar > div { display: grid; }
.theory-topbar > div strong { font-size: 23px; }
.theory-topbar > div span { color: #6b8390; font-size: 11px; letter-spacing: .08em; }
.theory-topbar nav { display: flex; gap: 6px; padding: 5px; border-radius: 8px; background: #dce7ec; }
.theory-topbar nav button, .theory-exit { padding: 10px 17px; border: 0; border-radius: 5px; background: transparent; color: #456273; cursor: pointer; }
.theory-topbar nav button.is-active { background: #087da4; box-shadow: 0 5px 15px rgb(8 125 164 / 24%); color: #fff; }
.theory-topbar nav small { font-size: 10px; }
.theory-exit { justify-self: end; border: 1px solid #9bb1bc; }
.theory-layout { position: absolute; z-index: 2; inset: 88px 0 0; display: grid; grid-template-columns: 330px 1fr; }
.theory-sidebar { min-height: 0; padding: 25px 16px 22px 28px; border-right: 1px solid #c5d4dc; background: #f4f8fa; }
.theory-count { display: flex; align-items: baseline; gap: 9px; margin: 0 12px 17px; color: #6e8794; }
.theory-count strong { color: #0785af; font-size: 29px; }
.theory-directory { height: calc(100% - 58px); padding-right: 8px; overflow-y: auto; }
.theory-directory section + section { margin-top: 20px; }
.theory-directory h2 { margin: 0 10px 7px; color: #58717e; font-size: 12px; line-height: 1.45; }
.theory-sidebar ol { margin: 0; padding: 0; list-style: none; }
.theory-sidebar li button { display: grid; width: 100%; grid-template-columns: 35px 1fr; align-items: center; padding: 11px 10px; border: 0; border-left: 3px solid transparent; background: transparent; color: #45616f; cursor: pointer; text-align: left; }
.theory-sidebar li button.is-active { border-left-color: #0a9aca; background: #dceff5; color: #102d3e; }
.theory-sidebar small { color: #8ba0aa; }
.theory-article { min-width: 0; overflow-y: auto; padding: 48px clamp(45px, 7vw, 110px) 70px; background: #fff; }
.theory-eyebrow { color: #078cb9; font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.theory-article h1, .question-bank h1, .practice-shell h1, .practice-result h1 { margin: 11px 0 27px; color: #122c3d; font-size: 32px; }
.theory-objective { padding: 19px 23px; border-left: 4px solid #09a2d4; background: #eaf6fa; }
.theory-objective strong { color: #087fa7; }
.theory-objective p { margin: 7px 0 0; line-height: 1.7; }
.theory-body { margin-top: 30px; color: #405a68; font-size: 16px; line-height: 2; white-space: normal; }
.question-bank, .practice-shell, .practice-result { position: absolute; z-index: 2; inset: 88px 0 0; overflow-y: auto; padding: 32px 5vw 55px; }
.question-bank > header, .practice-shell > header { display: flex; align-items: center; justify-content: space-between; }
.question-bank > header h1, .practice-shell > header h1 { margin-bottom: 12px; }
.question-bank > header > strong { color: #0786af; font-size: 35px; }
.question-bank > header small { color: #718995; font-size: 13px; }
.question-filter { display: flex; gap: 7px; padding: 11px 0 16px; overflow-x: auto; }
.question-filter button { flex: 0 0 auto; padding: 8px 12px; border: 1px solid #b9cbd4; border-radius: 18px; background: #f7fafb; color: #506b78; cursor: pointer; }
.question-filter button.is-active { border-color: #078ab5; background: #078ab5; color: #fff; }
.question-bank__body { display: grid; grid-template-columns: minmax(400px, 1fr) minmax(360px, .8fr); gap: 18px; min-height: 0; }
.question-bank__body > ol { height: calc(100vh - 245px); margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.question-bank__body li button { display: grid; width: 100%; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; margin-bottom: 8px; padding: 15px; border: 1px solid #c8d7de; background: #fff; color: #1b3747; cursor: pointer; text-align: left; }
.question-bank__body li button > span { color: #078dbb; font-weight: 700; }
.question-bank__body li div { display: grid; gap: 5px; }
.question-bank__body li small { color: #77909b; }
.question-bank__body li i { color: #078dbb; font-size: 11px; font-style: normal; }
.question-detail { position: relative; align-self: start; max-height: calc(100vh - 245px); overflow-y: auto; padding: 26px; border-top: 4px solid #079cca; background: #fff; box-shadow: 0 14px 35px rgb(34 70 86 / 14%); }
.question-detail__close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; color: #6b818c; cursor: pointer; font-size: 25px; }
.question-detail > span { color: #078db7; font-size: 11px; }
.question-detail h2 { margin: 14px 28px 20px 0; font-size: 21px; line-height: 1.55; }
.question-detail ul { padding-left: 24px; color: #49616d; line-height: 1.9; list-style: none; }
.question-detail p { padding: 12px 14px; background: #edf6f9; line-height: 1.65; }
.practice-progress { display: flex; gap: 8px; }
.practice-progress button { width: 38px; height: 38px; border: 1px solid #aabfc9; border-radius: 50%; background: #fff; color: #34515f; cursor: pointer; }
.practice-progress button.is-active { border-color: #087fa8; background: #087fa8; color: #fff; }
.practice-progress button.is-correct { box-shadow: inset 0 0 0 3px #39a86b; }
.practice-progress button.is-wrong { box-shadow: inset 0 0 0 3px #d45d58; }
.practice-card { width: min(1020px, 90vw); margin: 20px auto; padding: 35px 48px 28px; border-radius: 9px; background: #fff; box-shadow: 0 15px 45px rgb(30 65 83 / 14%); }
.practice-card > span { color: #078db8; font-size: 12px; }
.practice-card h2 { margin: 17px 0 25px; font-size: 23px; line-height: 1.55; }
.theory-options { display: grid; gap: 10px; padding: 0; border: 0; }
.theory-options legend { margin-bottom: 10px; color: #718894; font-size: 12px; }
.theory-options label { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #c6d5dc; border-radius: 5px; cursor: pointer; }
.theory-options label:has(input:checked) { border-color: #078fbd; background: #e9f7fb; }
.theory-options label.is-answer-correct { border-color: #278b58; background: #e7f6ed; }
.theory-options label.is-user-wrong { border-color: #bd4945; background: #fff0ef; }
.theory-options label em { margin-left: auto; color: #294451; font-size: 12px; font-style: normal; font-weight: 700; }
.theory-options label.is-answer-correct em::before { content: "✓ "; }
.theory-options label.is-user-wrong em::before { content: "✕ "; }
.theory-options input { width: 18px; height: 18px; accent-color: #078fbd; }
.theory-fill { display: grid; gap: 9px; }
.theory-fill input { padding: 13px; border: 1px solid #9eb4bf; }
.theory-fill small { color: #445e6b; font-weight: 700; }
.practice-card footer { display: flex; justify-content: center; margin-top: 24px; }
.practice-card footer button, .practice-result__actions button { min-width: 130px; padding: 11px 20px; border: 0; border-radius: 4px; background: #078fbd; color: #fff; cursor: pointer; }
.practice-feedback { margin-top: 22px; padding: 17px 20px; border-left: 4px solid; background: #edf5f7; line-height: 1.6; }
.practice-feedback.is-correct { border-color: #2fa86a; }
.practice-feedback.is-wrong { border-color: #d45450; }
.practice-feedback p { margin: 7px 0 0; }
.practice-result { display: grid; justify-items: center; text-align: center; }
.practice-result h1 { margin-bottom: 4px; }
.practice-score { display: flex; align-items: baseline; color: #078db7; }
.practice-score strong { font-size: 67px; }
.practice-score span { font-size: 20px; }
.practice-result > ol { width: min(850px, 86vw); margin: 18px 0; padding: 0; list-style: none; text-align: left; }
.practice-result li { display: grid; grid-template-columns: 45px 1fr auto; gap: 10px; padding: 11px 16px; border-bottom: 1px solid #ccd9df; background: #fff; }
.practice-result li.is-correct small { color: #218959; }
.practice-result li.is-wrong small { color: #bb4642; }
.practice-result__actions { display: flex; gap: 12px; }

@media (max-width: 1100px) {
  .question-bank__body { grid-template-columns: 1fr; }
  .question-detail { position: fixed; z-index: 4; top: 130px; right: 5vw; bottom: 40px; left: 5vw; max-height: none; }
}

/* Task 7: training overlays intentionally sit above, and never replace, #scene-canvas. */
.modal-layer { position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; padding: 24px; background: rgb(2 10 17 / 72%); backdrop-filter: blur(5px); }
.training-modal { display: flex; width: min(760px, calc(100vw - 48px)); max-height: min(680px, calc(100vh - 40px)); flex-direction: column; overflow: hidden; border: 1px solid rgb(93 210 238 / 48%); border-radius: 10px; background: #f7fbfd; box-shadow: 0 30px 90px rgb(0 0 0 / 45%); color: #102231; }
.training-modal > header { flex: 0 0 auto; padding: 18px 25px 14px; background: #0a1d2e; color: #f5fbff; }
.training-modal > header span { color: #58d0f1; font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.training-modal h2 { margin: 4px 0 0; font-size: 22px; }
.training-modal form { display: flex; min-height: 0; flex: 1; flex-direction: column; }
.training-modal__body { min-height: 0; overflow-y: auto; padding: 24px 27px; overscroll-behavior: contain; line-height: 1.65; }
.training-modal__body > p { margin: 0 0 20px; white-space: pre-line; }
.training-modal fieldset { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.training-modal legend, .modal-field > span { margin-bottom: 12px; font-weight: 700; }
.modal-choice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #cad9e0; border-radius: 6px; background: #fff; cursor: pointer; }
.modal-choice:has(input:checked) { border-color: #088fbc; background: #e7f7fc; }
.modal-choice input { width: 18px; height: 18px; accent-color: #078fbd; }
.modal-field { display: grid; }
.modal-field input, .modal-field textarea, .modal-match select { width: 100%; padding: 11px 12px; border: 1px solid #9eb2bd; border-radius: 4px; background: #fff; color: #102231; }
.modal-field textarea { min-height: 120px; resize: vertical; }
.modal-match { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(180px, 1fr); align-items: center; gap: 18px; }
.storyboard-list { display: grid; gap: 14px; margin: 0; padding-left: 24px; }
.storyboard-list li { padding-left: 7px; }
.training-modal footer { display: flex; flex: 0 0 auto; justify-content: flex-end; padding: 14px 24px; border-top: 1px solid #d8e3e8; background: #edf4f7; }
.modal-submit { min-width: 132px; padding: 11px 20px; border: 0; border-radius: 4px; background: #078fbd; color: #fff; cursor: pointer; font-weight: 700; }
.modal-submit:disabled { cursor: not-allowed; opacity: .45; }

.training-hud { position: fixed; z-index: 12; inset: 0; pointer-events: none; }
.training-hud__objective { position: absolute; top: 22px; left: 50%; display: grid; min-width: min(620px, 50vw); justify-items: center; padding: 11px 28px; border: 1px solid rgb(95 211 240 / 45%); border-radius: 6px; background: rgb(7 27 42 / 90%); box-shadow: 0 10px 30px rgb(0 0 0 / 20%); transform: translateX(-50%); }
.training-hud__objective span, .training-hud__score span, .training-hud__direction span { color: #63d3f3; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.training-hud__objective strong { margin-top: 3px; font-size: 15px; }
.training-hud__tasks { position: absolute; top: 0; bottom: 0; left: 0; width: clamp(270px, 20vw, 330px); overflow: hidden; padding: 50px 22px 112px; border-right: 1px solid rgb(94 204 231 / 27%); background: rgb(5 20 31 / 91%); pointer-events: auto; }
.training-hud__tasks > span { color: #52caec; font-size: 10px; letter-spacing: .2em; }
.training-hud__tasks h2 { margin: 9px 0 25px; font-size: 21px; line-height: 1.4; }
.training-hud__tasks ol { height: calc(100% - 75px); margin: 0; padding: 0 7px 0 0; overflow-y: auto; list-style: none; }
.training-hud__tasks li { display: grid; grid-template-columns: 52px 29px 1fr; align-items: start; gap: 5px; margin-bottom: 7px; padding: 10px 9px; border-left: 3px solid transparent; color: #809aa7; }
.training-hud__tasks li strong { font-size: 12px; font-weight: 500; line-height: 1.45; }
.training-hud__tasks .task-state { padding: 2px 4px; border: 1px solid currentColor; border-radius: 3px; font-size: 10px; text-align: center; }
.training-hud__tasks .task-index { color: #5a7887; font-size: 11px; }
.training-hud__tasks .is-current { border-left-color: #56d1f1; background: rgb(65 198 238 / 12%); color: #effaff; }
.training-hud__tasks .is-complete { color: #bcefdc; }
.training-hud__tasks .is-error { border-left-color: #ffbd63; background: rgb(255 167 52 / 12%); color: #ffe4bd; }
.training-hud__score, .training-hud__direction { position: absolute; top: 96px; right: 24px; display: grid; min-width: 150px; gap: 4px; padding: 13px 16px; border-left: 3px solid #55ceed; background: rgb(5 22 34 / 86%); text-align: right; }
.training-hud__score strong { font-size: 27px; }
.training-hud__direction { top: 178px; border-left-color: #98b8c8; }
.training-hud__direction strong { font-size: 15px; }
.training-hud__actions { position: absolute; right: 24px; bottom: 24px; display: flex; gap: 9px; pointer-events: auto; }
.training-hud__actions button, .ai-assistant button { padding: 10px 14px; border: 1px solid #49758a; border-radius: 4px; background: rgb(6 29 43 / 91%); color: #edfaff; cursor: pointer; }

.ai-assistant { position: fixed; z-index: 14; right: 24px; bottom: 84px; width: min(310px, calc(100vw - 48px)); padding: 18px; border: 1px solid rgb(82 205 237 / 38%); border-radius: 8px; background: rgb(6 24 37 / 94%); box-shadow: 0 20px 55px rgb(0 0 0 / 34%); }
.ai-assistant h2 { margin: 0; font-size: 19px; }
.ai-assistant > p { margin: 5px 0 14px; color: #83a5b5; font-size: 11px; }
.ai-assistant__topics { display: grid; gap: 7px; }
.ai-assistant button { width: 100%; text-align: left; }
.ai-assistant button[aria-pressed="true"] { border-color: #62d2ef; background: #0a6787; }
.ai-assistant__answer { margin-top: 13px; padding: 12px; border-left: 3px solid #58cae9; background: #0b2130; color: #cfe6ef; font-size: 12px; line-height: 1.65; }

.score-report { position: absolute; z-index: 15; inset: clamp(18px, 3vw, 46px); display: grid; grid-template-columns: minmax(0, 1fr) 270px; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; border: 1px solid rgb(92 207 235 / 32%); border-radius: 9px; background: rgb(246 250 252 / 97%); box-shadow: 0 30px 80px rgb(0 0 0 / 42%); color: #132634; }
.score-report > header { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 18px 26px; border-bottom: 1px solid #d5e1e7; }
.score-report > header span { color: #087da5; font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.score-report h1 { margin: 3px 0 0; font-size: 25px; }
.score-report__total { display: flex; align-items: baseline; gap: 8px; }
.score-report__total strong { color: #087fa8; font-size: 42px; line-height: 1; }
.score-report__total small { color: #687d88; }
.score-report__table-wrap { min-height: 0; overflow: auto; padding: 10px 18px 22px 24px; }
.score-report table { width: 100%; border-collapse: collapse; font-size: 12px; }
.score-report th { position: sticky; z-index: 1; top: 0; padding: 13px 9px; background: #e9f2f6; text-align: left; white-space: nowrap; }
.score-report td { padding: 12px 9px; border-bottom: 1px solid #dce7eb; line-height: 1.5; vertical-align: top; }
.score-report td:nth-child(1), .score-report td:nth-child(5), .score-report td:nth-child(6) { white-space: nowrap; }
.score-report tr.is-deducted td { background: #fff6e8; }
.score-result-mark { display: inline-grid; width: 19px; height: 19px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-weight: 800; }
.is-pass .score-result-mark { color: #087d61; }
.is-deducted .score-result-mark { color: #a25900; }
.score-report__summary { min-height: 0; overflow-y: auto; padding: 22px; border-left: 1px solid #d2e0e6; background: #edf4f7; }
.score-report__summary > div { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #ccdbe1; }
.score-report__summary span { color: #617783; font-size: 12px; }
.score-report__summary > div strong { font-size: 19px; }
.score-report__summary p { margin: 24px 0 0; color: #405864; font-size: 13px; line-height: 1.7; }
.score-report__summary p strong { display: block; margin-bottom: 7px; color: #102634; }

.training-modal :focus-visible, .training-hud button:focus-visible, .ai-assistant button:focus-visible, .score-report :focus-visible { outline: 3px solid #ffd166; outline-offset: 3px; }

@media (max-height: 720px) {
  .training-modal { max-height: calc(100vh - 24px); }
  .training-modal > header { padding-block: 11px; }
  .training-modal__body { padding-block: 16px; }
  .training-hud__tasks { padding-top: 34px; }
  .training-hud__tasks h2 { margin-bottom: 14px; }
  .training-hud__objective { top: 12px; }
}

@media (max-width: 900px) {
  .score-report { grid-template-columns: 1fr; grid-template-rows: auto minmax(230px, 1fr) auto; }
  .score-report__summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid #d2e0e6; border-left: 0; }
  .score-report__summary p { grid-column: 1 / -1; margin-top: 4px; }
}

@media (max-width: 1350px), (max-height: 760px) {
  .brand-lockup { top: 26px; }
  .brand-lockup strong { font-size: 18px; }
  .utility-button { top: 27px; }
  .dashboard-heading { top: 21%; }
  .dashboard-heading h1, .workspace-title h1 { font-size: 34px; }
  .entry-grid { top: 43%; gap: 20px; }
  .entry-card { min-height: 200px; padding: 24px 27px; }
  .entry-card__label { margin-bottom: 29px; }
  .workspace-title { top: 17%; }
  .module-grid { top: 34%; gap: 14px; }
  .module-card { min-height: 290px; padding: 20px; }
  .module-card__symbol { width: 58px; height: 58px; margin: 29px 0 22px; }
  .module-card strong { font-size: 17px; }
  .task-panel { width: 280px; padding-top: 42px; }
  .task-panel ol { margin-top: 28px; }
  .task-panel li { margin-bottom: 19px; }
  .training-stage { left: calc(50% + 125px); }
  .result-card { padding: 31px 45px; }
}
