/* Academy study pages. The host theme owns everything outside the course. */
.epd-web [data-epd-content][data-view]:not([data-view="home"]) {
  --study-ink: var(--epd-ink, #142d39);
  --study-muted: var(--epd-muted, #466273);
  --study-accent: var(--epd-teal, #096b62);
  --study-blue: var(--epd-blue, #254c7b);
  --study-border: var(--epd-edge, #d6e1e3);
  --study-pale: var(--epd-pale, #f2f7f7);
  color: var(--study-ink);
  font-size: clamp(1rem, .98rem + .15vw, 1.1rem);
  line-height: 1.55;
  padding-block: clamp(20px, 3vw, 46px) clamp(30px, 4vw, 60px);
  min-width: 0;
  overflow-wrap: break-word;
}
.epd-web :where([data-view]:not([data-view="home"],[data-epd-tool-view])) :where(h1,h2,h3,p,ul,fieldset) { margin: 0; }
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) :is(h1,h2,h3) { font-family: inherit; color: var(--study-ink); text-transform: none; }
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) :is(h1,.head>h2,.gr-hangar>h2,.lobby-training>h2,.gr-score>h2) {
  margin: .13em 0 .26em; font-size: clamp(2rem, 3.4vw, 3.3rem); font-weight: 730;
  line-height: 1.08; letter-spacing: -.045em;
}
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) :where(h2) { font-size: clamp(1.42rem, 2.3vw, 2rem); line-height: 1.18; letter-spacing: -.035em; }
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) :where(h3,.briefing-title) { font-size: clamp(1.14rem, 1.5vw, 1.34rem); line-height: 1.26; letter-spacing: -.024em; }
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) :where(p) { line-height: 1.56; }
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) :where(small,.meta,.muted,.src) { color: var(--study-muted); font-size: .91em; line-height: 1.45; }
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) .src { overflow-wrap: anywhere; }
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) .src a { color: var(--study-blue); text-decoration: underline; text-underline-offset: .15em; }
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) .head { margin-bottom: clamp(20px, 3vw, 34px); }
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) .head p { color: var(--study-muted); max-width: 68ch; font-size: 1.09em; }
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) :is(.kicker,.lobby-track-name) {
  display: block; color: var(--study-accent); font-size: .82em; line-height: 1.4; font-weight: 710; letter-spacing: .055em;
}
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) .section { margin: clamp(25px, 3.5vw, 44px) 0 14px; }
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) :is(.actions,.chips,.row,.between,.web-copy,.lobby-tools) {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px 12px;
}
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) .actions { margin-block: 16px; }
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) .between { justify-content: space-between; }
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) :is(.storage,.notice,.briefing,.panel,.store-preview) {
  box-sizing: border-box; min-width: 0; border: 1px solid var(--study-border);
  border-radius: 11px; padding: clamp(15px, 2.1vw, 26px); margin-block: 14px; background: #fff;
}
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) :is(.storage,.notice,.briefing) { background: var(--study-pale); }
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) .briefing { border-inline-start: 3px solid var(--study-accent); }
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) .briefing-title { margin: 6px 0; }
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) .panel>p { margin-block: .55em; }
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) .panel>:last-child { margin-bottom: 0; }
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) button {
  display: inline-flex; justify-content: center; align-items: center; gap: .45em; margin: 0; min-height: 44px; max-width: 100%;
  padding: .62em .98em; border: 1px solid #96abad; border-radius: 6px; background: #fff;
  color: var(--study-ink); font-family: inherit; font-size: 1em; font-weight: 650;
  line-height: 1.28; letter-spacing: -.012em; text-transform: none; text-shadow: none; box-shadow: none;
  white-space: normal; overflow-wrap: anywhere; text-align: center; cursor: pointer; appearance: none;
}
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) button:is(.primary,.lobby-play,.gr-primary,.gr-hangar-button) {
  color: white; background: var(--study-accent); border-color: var(--study-accent);
}
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) button.back {
  display: inline-flex; justify-content: flex-start; gap: .24em; min-height: 42px; padding: .3em 0;
  margin: 0 0 12px; color: var(--study-blue); background: none; border: 0; border-radius: 2px; font-size: .94em;
}
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) .direction-chevron { display: inline-block; width: 1em; height: 1em; flex: none; }
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) .back .direction-chevron { transform: rotate(180deg); }
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) .chipbtn { border-radius: 26px; font-size: .95em; }
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) .chipbtn.sel { border-color: var(--study-accent); background: #dff0ed; color: #064c45; }
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) :is(button,input,select,textarea,summary,a):focus-visible {
  outline: 3px solid #216caa; outline-offset: 3px;
}
@media (hover:hover) {
  .epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) button:not(:disabled):hover { border-color: var(--study-accent); background-color: #edf6f4; color: #104e49; }
  .epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) button:is(.primary,.lobby-play,.gr-primary,.gr-hangar-button):not(:disabled):hover { background: #07564e; color: white; }
}
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) button:disabled { opacity: 1; color: #617077; border-color: #d5dfe1; background: #edf1f2; cursor: default; }
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) :is(input:not([type=checkbox]),select,textarea) {
  display: block; width: 100%; min-width: 0; min-height: 47px; margin: 0; padding: 9px 12px;
  background-color: #fff; color: var(--study-ink); border: 1px solid #879fa3; border-radius: 6px; font: inherit;
  line-height: 1.4; box-shadow: none; height: auto;
}
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) select { appearance: auto; background-image: none; padding-inline-end: 6px; }
/* Keep the copyable summary at its natural wrapped height, also after rotation or zoom. */
.epd-web .epd-share-sheet { display: grid; grid-template-columns: minmax(0,1fr); }
.epd-web [data-view="stats"] .epd-share-sheet > :is(.epd-share-size,textarea) {
  grid-area: 1/1; width: 100%; max-width: none; max-height: none; min-height: 0;
  padding: 9px 12px; border: 1px solid transparent; font: inherit; line-height: 1.4;
  white-space: pre-wrap; overflow-wrap: anywhere; letter-spacing: inherit;
}
.epd-web .epd-share-size { visibility: hidden; pointer-events: none; }
.epd-web [data-view="stats"] .epd-share-sheet > textarea {
  align-self: stretch; margin: 0; border-color: #879fa3; resize: none; overflow: hidden;
}
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) :is(label,legend) { display: block; color: var(--study-ink); font: inherit; font-weight: 650; margin: 0; }
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) .stackform { display: grid; gap: 9px 15px; align-content: start; }
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) .stackform button { justify-self: start; }
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) .stackform [role="alert"] { color: #953f30; font-weight: 650; }
/* Shared session controls, including the native WordPress home and the offline home. */
.epd-web [data-view] .notice.epd-session-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  width: 100%; min-width: 0; margin: 15px 0; padding: 13px clamp(12px, 2vw, 20px);
  border: 1px solid #c6ddd4; border-inline-start: 4px solid var(--epd-teal);
  border-radius: 8px; background: #eaf6ef; color: #174b43;
}
.epd-web [data-view="home"] .notice.epd-session-banner { margin-bottom: 0; }
.epd-web .epd-session-copy { flex: 1 1 18rem; min-width: 0; overflow-wrap: anywhere; }
.epd-web [data-view] .epd-session-copy p { margin: .25em 0 0; line-height: 1.5; }
.epd-web .epd-session-actions {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px;
  min-width: 0; max-width: 100%;
}
.epd-web [data-view] .epd-session-actions button[data-action] {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center;
  min-width: 0; min-height: 44px; height: auto; max-width: 100%;
  margin: 0; padding: .55em .85em; border: 1px solid #608b80; border-radius: 6px;
  background: white; color: #12574d; box-shadow: none; appearance: none; cursor: pointer;
  font: 650 1rem/1.35 var(--epd-body-font); letter-spacing: normal; text-align: center;
  white-space: normal; overflow-wrap: anywhere; text-decoration: none; text-transform: none;
}
.epd-web [data-view] .epd-session-actions button.epd-session-primary {
  background: var(--epd-teal); color: white; border-color: var(--epd-teal);
}
.epd-web [data-view] .epd-session-actions button:focus-visible { outline: 3px solid #216caa; outline-offset: 3px; }
@media (hover:hover) {
  .epd-web [data-view] .epd-session-actions button[data-action]:hover { background: #f2faf6; color: #104d44; border-color: #286e5f; }
  .epd-web [data-view] .epd-session-actions button.epd-session-primary:hover { background: #07534b; color: white; border-color: #07534b; }
}
@container epd-portal (max-width: 600px) {
  .epd-web .epd-session-copy, .epd-web .epd-session-actions { flex-basis: 100%; }
}
/* Shared disclosure rows in the question bank, practice, simulations, results and hangar. */
.epd-web [data-view] details[data-fold] {
  --fold-gutter: clamp(14px, 2.8cqi, 22px);
  --fold-knob: 30px;
  box-sizing: border-box; min-inline-size: 0; max-inline-size: 100%;
  margin: 10px 0; border: 1px solid #becfce; border-radius: 12px; background: #fff;
}
.epd-web [data-view] details[data-fold] > summary {
  position: relative; display: flex; align-items: center; gap: 10px;
  box-sizing: border-box; inline-size: 100%; min-block-size: 56px;
  padding-block: 12px; padding-inline: var(--fold-gutter) calc(var(--fold-gutter) + var(--fold-knob) + 12px);
  margin: 0; border: 0; border-radius: 11px; background: transparent;
  color: var(--study-ink); font: inherit; font-weight: 680; line-height: 1.38;
  white-space: normal; overflow-wrap: anywhere; text-align: start;
  list-style: none; cursor: pointer; touch-action: manipulation;
}
.epd-web [data-view] details[data-fold] > summary::marker { content: ""; }
.epd-web [data-view] details[data-fold] > summary::-webkit-details-marker { display: none; }
.epd-web [data-view] details[data-fold] > summary::before { content: none; }
.epd-web [data-view] details[data-fold] > summary::after {
  content: ""; box-sizing: border-box; position: absolute; top: 50%; inset-inline-end: var(--fold-gutter);
  width: var(--fold-knob); height: var(--fold-knob); margin: 0; border: 1px solid #c8dbd7; border-radius: 50%;
  background: #eff6f4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%23195550' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 17px 17px no-repeat;
  transform: translateY(-50%); pointer-events: none;
}
.epd-web [data-view] details[data-fold][open] { border-color: #a5c4be; }
.epd-web [data-view] details[data-fold][open] > summary {
  border-radius: 11px 11px 0 0; border-bottom: 1px solid #ceded9; background: #edf6f2; color: #174c44;
}
.epd-web [data-view] details[data-fold][open] > summary::after {
  border-color: #aacdc2; background-color: #dceee7; transform: translateY(-50%) rotate(180deg);
}
@media (hover:hover) {
  .epd-web [data-view] details[data-fold] > summary:hover { color: #104d44; background-color: #e7f3ee; }
}
.epd-web [data-view] details[data-fold] > summary:focus-visible { outline: 3px solid #216caa; outline-offset: 2px; z-index: 1; }
.epd-web [data-view] details[data-fold] > :is(p,.briefing,.map) {
  margin: 12px var(--fold-gutter); min-inline-size: 0; overflow-wrap: anywhere;
}
.epd-web [data-view] details[data-fold] > .src {
  border-top: 1px solid #e0e8e6; margin-block: 14px 0; padding-block: 11px 14px;
}
.epd-web [data-view] details[data-fold] > .src a { white-space: normal; overflow-wrap: anywhere; }
.epd-web [data-view] details[data-fold="index"] > .examnav { padding: 14px var(--fold-gutter); }
.epd-web [data-view] details[data-fold="answer"] .gr-answer-symbol { flex-shrink: 0; }
.epd-web [data-view] details[data-fold="answer"] > summary > span:last-child { flex: 1; min-inline-size: 0; }
/* Distinguish named tools at a glance; long question rows keep the space for their text. */
.epd-web details[data-fold="explain"] { --fold-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6C9 4.3 5.8 4 2.5 4.8v13.6c3.5-.9 6.6-.4 9.5 1.5 2.9-1.9 6-2.4 9.5-1.5V4.8C18.2 4 15 4.3 12 6Zm0 0v13.9'/%3E%3C/svg%3E"); }
.epd-web details[data-fold="rules"] { --fold-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4h10l3 3v13H5V4h2Zm2 5h6m-6 4h7m-7 4h5'/%3E%3C/svg%3E"); }
.epd-web details[data-fold="map"] { --fold-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 6 6-3 6 3 6-3v15l-6 3-6-3-6 3V6Zm6-3v15m6-12v15'/%3E%3C/svg%3E"); }
.epd-web details[data-fold="index"] { --fold-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.8 4h6v6h-6Zm10.4 0h6v6h-6ZM3.8 14h6v6h-6Zm10.4 0h6v6h-6Z'/%3E%3C/svg%3E"); }
.epd-web details[data-fold="rewards"] { --fold-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 2.8 2.6 5.4 6 .9-4.3 4.2 1 5.9-5.3-2.8-5.3 2.8 1-5.9-4.3-4.2 6-.9Z'/%3E%3C/svg%3E"); }
.epd-web [data-view] details:is([data-fold="explain"],[data-fold="rules"],[data-fold="map"],[data-fold="index"],[data-fold="rewards"]) > summary::before {
  content: ""; position: static; display: block; flex: 0 0 21px; width: 21px; height: 21px; margin: 0; border: 0;
  background: #286b60; -webkit-mask: var(--fold-icon) center / contain no-repeat; mask: var(--fold-icon) center / contain no-repeat;
}
@media (forced-colors: active) {
  .epd-web [data-view] details[data-fold] > summary::after { forced-color-adjust: none; border-color: ButtonText; background: ButtonFace; width: 11px; height: 11px; border-width: 0 2px 2px 0; border-radius: 0; inset-inline-end: calc(var(--fold-gutter) + 8px); transform: translateY(-65%) rotate(45deg); }
  .epd-web [data-view] details[data-fold][open] > summary::after { transform: translateY(-25%) rotate(225deg); }
}
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) .tag { display: inline-block; padding: .12em .51em; border-radius: 4px; font-size: .83em; font-weight: 710; color: #14584c; background: #e2f2e9; }
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) .tag.blue { background: #e5eef8; color: #254c7b; }
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) .tag.amber { background: #faf0db; color: #7b4e0a; }
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) .meter { height: 7px; width: 100%; border-radius: 10px; background: #dce6e8; overflow: hidden; margin: 12px 0 7px; }
.epd-web [data-view]:not([data-view="home"],[data-epd-tool-view]) .meter i { display: block; height: 100%; background: var(--study-accent); border-radius: inherit; }

/* A course overview keeps the practice form beside the course outline. */
.epd-web .lobby-training {
  display: grid; min-width: 0; align-content: center; gap: 6px 5%;
  background: linear-gradient(112deg,#edf5f2,#f6f8f7 72%); border: 1px solid var(--study-border);
  border-inline-start: 4px solid var(--study-accent); border-radius: 10px; padding: clamp(19px,3.3vw,42px);
}
.epd-web .lobby-training>p { color: var(--study-muted); max-width: 62ch; }
.epd-web .lobby-trainer { display: grid; gap: 8px; align-content: center; margin-top: 16px; min-width: 0; }
.epd-web .lobby-trainer button { justify-self: start; margin-top: 4px; }
.epd-web .lobby-exams { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,340px),1fr)); gap: 14px; }
.epd-web .lobby-exam {
  display: grid; grid-template-columns: minmax(0,1fr) auto; align-content: start; align-items: center; gap: 12px;
  border: 1px solid var(--study-border); border-radius: 10px; padding: clamp(16px,2vw,25px); background: white;
}
.epd-web .lobby-exam p { margin-top: 3px; color: var(--study-muted); }
.epd-web [data-view] .lobby-exam details[data-fold] { grid-column: 1/-1; margin: 0; }
.epd-web .lobby-tools button { justify-content: flex-start; min-height: 46px; }
.epd-web .lobby-filters { margin: 12px 0 22px; }
.epd-web .lobby-case-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,265px),1fr)); align-items: stretch; gap: 16px; }
.epd-web [data-view] button.lobby-case {
  display: flex; flex-direction: column; gap: 0; position: relative; width: 100%; max-width: none; padding: 0;
  margin: 0; overflow: hidden; border: 1px solid var(--study-border); border-radius: 10px; background: #fff; text-align: left;
}
.epd-web .lobby-case .lobby-case-map { display: grid; align-content: center; overflow: hidden; width: 100%; background: #f4f7f1; }
.epd-web .lobby-case-map svg { width: 100%; height: auto; max-height: 155px; display: block; }
.epd-web .lobby-case-copy { display: grid; align-content: start; gap: 7px; padding: 15px 17px; width: 100%; color: var(--study-ink); }
.epd-web .lobby-case-over { display: flex; align-items: center; gap: 10px; color: var(--study-muted); font-size: .89em; font-weight: 530; }
.epd-web .lobby-case-copy strong { font-size: 1.2em; line-height: 1.26; letter-spacing: -.023em; }
.epd-web .lobby-case-foot { display: inline-flex; align-items: center; gap: 5px; font-size: .92em; color: var(--study-accent); }

/* Documents, diagrams and answers share one normal scrolling surface. */
.epd-web .game-shell { min-width: 0; }
.epd-web .game-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.epd-web [data-view] .game-toolbar button.back { margin: 0; }
.epd-web .game-clock { display: inline-block; padding: 4px 10px; font-size: .94em; font-weight: 700; font-variant-numeric: tabular-nums; color: #693f08; background: #fcf1d7; border-radius: 5px; }
.epd-web .game-progress { display: grid; align-items: center; grid-template-columns: max-content minmax(0,1fr); gap: 15px; border-bottom: 1px solid var(--study-border); padding: 5px 0 17px; margin-bottom: 21px; }
.epd-web .game-progress-label { color: var(--study-muted); font-variant-numeric: tabular-nums; font-size: .94em; font-weight: 650; }
.epd-web .game-track { display: grid; grid-template-columns: repeat(var(--stages),minmax(0,1fr)); align-items: center; gap: 2px; }
.epd-web .game-track i { height: 4px; background: #dce7e8; border-radius: 2px; }
.epd-web .game-track i.answered { background: #55a999; }
.epd-web .game-track i.here { background: #154e67; height: 7px; }
.epd-web .game-stage { min-width: 0; margin-bottom: 18px; }
.epd-web [data-view="session"]:not([data-view="home"]) .game-stage .qtitle { line-height: 1.21; font-size: clamp(1.5rem,1.1rem + 1.35vw,2.18rem); font-weight: 680; letter-spacing: -.038em; margin: 0 0 12px; color: var(--study-ink); }
.epd-web .game-context { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; color: var(--study-muted); font-size: .93em; }
.epd-web .game-context strong { font-weight: 700; color: var(--study-accent); }
.epd-web .game-case-data { padding: 14px 15px; margin: 16px 0; border-inline-start: 3px solid #518a9c; background: #edf5f8; }
.epd-web .game-case-data p { margin: 4px 0 0; }
.epd-web .game-map svg { display: block; width: 100%; max-width: 640px; height: auto; margin-inline: auto; }
.epd-web .game-options { display: grid; min-width: 0; gap: 9px; }
.epd-web [data-view] button.game-answer {
  display: grid; width: 100%; grid-template-columns: 32px minmax(0,1fr); justify-content: stretch;
  align-items: center; gap: 12px; text-align: left; border: 1px solid #a9bcc1; border-radius: 7px;
  min-height: 54px; padding: 11px 14px; background: #fff; color: var(--study-ink); font-weight: 530; line-height: 1.43;
}
.epd-web [data-view] button.game-answer.chosen { border-color: var(--study-accent); background: #e8f4f0; box-shadow: inset 2px 0 var(--study-accent); }
.epd-web [data-view] button.game-answer.good { border-color: #6d9e7e; background: #edf7ef; color: #164831; }
.epd-web [data-view] button.game-answer.bad { border-color: #cb8f80; background: #fff1eb; color: #713222; }
.epd-web [data-view] button.game-answer:disabled:not(.good):not(.bad) { background: #f7f9f9; color: #4e626b; }
.epd-web .game-letter { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border: 1px solid #b7c9c9; border-radius: 6px; color: #294657; font-size: .88em; font-weight: 750; background: #f3f7f7; }
.epd-web :is(.chosen,.good) .game-letter { background: #136558; color: white; border-color: #136558; }
.epd-web .bad .game-letter { background: #8a4336; color: white; border-color: #8a4336; }
.epd-web .game-answer-copy small { display: block; margin-top: 2px; font-size: .84em; font-weight: 730; color: inherit; }
.epd-web .game-certainty { min-width: 0; border: 0; padding: 0; margin: 18px 0 0; }
.epd-web .game-certainty .chips { margin-top: 6px; }
.epd-web .game-advance,.epd-web .game-exam-actions { margin: 15px 0 0; }
.epd-web .game-exam-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.epd-web [data-view] .game-feedback { background: #eef7ef; border-color: #9cbdab; margin: 16px 0 0; }
.epd-web [data-view] .game-feedback.warn { background: #fdf3e8; border-color: #d4ad84; }
.epd-web .game-feedback h2 { display: flex; align-items: center; gap: 8px; }
.epd-web .feedback-mark { color: var(--study-accent); display: inline-flex; }
.epd-web .game-feedback.warn .feedback-mark { color: #8f4b1b; }
.epd-web .berry-feedback { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; margin: 10px 0 3px; font-weight: 650; }
.epd-web .berry-feedback small { font-weight: 450; }
.epd-web .game-feedback .game-right { margin: 8px 0; }
.epd-web [data-view] .game-feedback details[data-fold] { margin: 13px 0 0; }
.epd-web .game-index { margin: 20px 0 0; }
.epd-web .examnav { display: grid; grid-template-columns: repeat(auto-fill,minmax(42px,1fr)); gap: 5px; padding: 12px; }
.epd-web [data-view] button.num { width: 100%; min-height: 42px; padding: 3px; font-variant-numeric: tabular-nums; font-size: .92em; }
.epd-web [data-view] button.num.done { background: #dcefe8; }
.epd-web [data-view] button.num.current { border-color: var(--study-blue); box-shadow: inset 0 0 0 1px var(--study-blue); }

/* The student's study journal and earned benefits. */
.epd-web [data-view="stats"] :is(.numbers,.grid),.epd-web :is(.gr-dashboard,.gr-haul,.gr-goals,.livery-grid) {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,215px),1fr)); gap: 13px;
}
.epd-web [data-view="stats"] .stat { padding: 15px 19px; border: 1px solid var(--study-border); border-radius: 9px; background: var(--study-pale); }
.epd-web [data-view="stats"] .stat b { display: block; font-variant-numeric: tabular-nums; font-size: 2em; line-height: 1.2; letter-spacing: -.04em; }
.epd-web [data-view="stats"] .grid>.panel { margin: 0; }
.epd-web [data-view] button.reward-strip {
  width: 100%; margin: 15px 0; padding: 14px 16px; text-align: left; gap: 10px;
  justify-content: start; background: #f6f4ea; border-color: #dcd8bd;
}
.epd-web .reward-strip>img { width: 47px; height: auto; }
.epd-web .reward-strip-copy { display: grid; gap: 2px; }
.epd-web .xp-chip { margin-inline-start: auto; font-size: .91em; color: #614c13; white-space: nowrap; }
.epd-web [data-view="review"]>.panel { background: var(--study-pale); }
.epd-web :is(.gr-dashboard,.livery-grid,.gr-goals) { margin-block: 13px 20px; }
.epd-web :is(.gr-balance,.gr-rank,.gr-goal,.gr-rewards,.gr-score,.livery-card) { padding: clamp(15px,2vw,26px); border: 1px solid var(--study-border); border-radius: 11px; min-width: 0; background: #fff; }
.epd-web .gr-balance { display: flex; justify-content: space-between; align-items: center; background: #edf6ef; }
.epd-web .gr-balance>div { display: grid; }
.epd-web .gr-balance strong,.epd-web .gr-score-body strong { font-size: clamp(2.1rem,4vw,3.25rem); line-height: 1.04; margin-block: 4px; letter-spacing: -.045em; }
.epd-web .gr-balance>img { width: clamp(42px,8vw,78px); height: auto; }
.epd-web .gr-balance h2,.epd-web .gr-rank h2 { font-size: 1.28em; margin: 2px 0; }
.epd-web .gr-rank { display: grid; align-content: center; gap: 3px; background: #eff3f8; }
.epd-web :is(.gr-rank-heading,.gr-section-title,.gr-goal .gr-progress,.gr-combo,.combo-track,.combo-slots,.gr-counts,.gr-actions) { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.epd-web :is(.gr-rank-heading,.gr-section-title,.gr-combo) { justify-content: space-between; }
.epd-web .gr-rank-heading,.epd-web .gr-rank p,.epd-web .gr-combo,.epd-web .gr-points,.epd-web .gr-section-title>span { color: var(--study-muted); font-size: .94em; }
.epd-web .combo-slots { display: inline-flex; gap: 3px; }
.epd-web .combo-slots i { display: grid; place-items: center; width: 22px; height: 22px; background: #eff2f0; border-radius: 50%; }
.epd-web .combo-slots i img { opacity: .28; filter: grayscale(.8); }
.epd-web .combo-slots i.filled { background: #ffe6d3; }
.epd-web .combo-slots i.filled img { opacity: 1; filter: none; }
.epd-web [data-view] .store-preview { background: #f8f5ed; border-color: #e2dcc6; }
.epd-web .store-stamp { display: block; text-transform: none; font-size: .84em; font-weight: 650; color: #715526; }
.epd-web .store-preview h3 { margin: 3px 0; }
.epd-web .gr-goals { grid-template-columns: repeat(auto-fit,minmax(min(100%,285px),1fr)); }
.epd-web .gr-goal { display: grid; align-items: start; grid-template-columns: 37px minmax(0,1fr); gap: 12px; }
.epd-web .gr-seal,.epd-web .gr-round-icon,.epd-web .gr-answer-symbol { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; background: #edf2f4; border-radius: 50%; color: var(--study-blue); }
.epd-web .gr-goal.complete .gr-seal,.epd-web .gr-answer-symbol.corretta { background: #dbefe4; color: #166347; }
.epd-web .gr-goal h3 { margin: 3px 0 6px; }
.epd-web .gr-goal .gr-progress { font-size: .89em; color: var(--study-muted); }
.epd-web .gr-goal .meter { margin: 8px 0 0; }
.epd-web .gr-section-title { margin: 25px 0 10px; }
.epd-web .liveries .section { margin-bottom: 10px; }
.epd-web .livery-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,185px),1fr)); }
.epd-web .livery-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.epd-web .livery-card.is-equipped { border-color: #6b9c91; }
.epd-web .livery-preview { display: grid; place-items: center; min-height: 90px; }
.epd-web .sample-base { background: #f4ede3; }
.epd-web .sample-fulmine { background: #f5edc7; }
.epd-web .sample-laguna { background: #e0f1e9; }
.epd-web .sample-aurora { background: #edeaf4; }
.epd-web .livery-preview img { display: block; width: 120px; height: auto; object-fit: contain; }
.epd-web .lv-fulmine { filter: sepia(.52) saturate(2.3) hue-rotate(4deg) contrast(1.04); }
.epd-web .lv-laguna { filter: hue-rotate(146deg) saturate(1.7); }
.epd-web .lv-aurora { filter: hue-rotate(253deg) saturate(1.6) contrast(1.04); }
.epd-web .livery-body { display: flex; flex-direction: column; align-items: stretch; flex: 1; gap: 7px; padding: 14px; }
.epd-web .livery-body p { font-size: .94em; color: var(--study-muted); margin-bottom: 6px; }
.epd-web [data-view] .livery-body button { margin-top: auto; }
.epd-web .gr-result { max-width: 980px; }
.epd-web .gr-score { border-color: #b1d5c5; background: #eaf5ed; }
.epd-web .gr-score.gr-retry { background: #faf2e9; border-color: #e2c9a9; }
.epd-web .gr-score-label,.epd-web .gr-score-body { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.epd-web .gr-score-label { font-size: .94em; color: var(--study-muted); }
.epd-web .gr-score-body { margin-top: 15px; }
.epd-web .gr-score-body>div:first-child { display: grid; }
.epd-web .gr-counts>span { padding: 3px 8px; background: #ffffffaf; border-radius: 3px; }
.epd-web .gr-rewards { margin: 12px 0; }
.epd-web .gr-rewards h2 { margin: 0 0 12px; }
.epd-web .gr-haul { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.epd-web .gr-haul>div { display: flex; align-items: center; gap: 8px; border: 1px solid var(--study-border); border-radius: 6px; padding: 10px; }
.epd-web .gr-haul img { width: 38px; height: auto; }
.epd-web .gr-haul strong,.epd-web .gr-haul span { display: block; line-height: 1.28; }
.epd-web .gr-haul strong { font-size: 1.45em; }
.epd-web .gr-haul span { font-size: .85em; }
.epd-web .gr-bonuses { list-style: none; margin: 12px 0; padding: 0; }
.epd-web .gr-bonuses li { display: flex; justify-content: space-between; gap: 6px; border-bottom: 1px solid var(--study-border); margin: 0; padding: 5px 0; }
.epd-web .gr-bonuses li>span { display: inline-flex; align-items: center; gap: 5px; }
.epd-web .gr-combo-earned,.epd-web [data-view] .gr-hangar-button { margin-top: 9px; }
.epd-web .gr-answer-symbol { width: 25px; height: 25px; }
.epd-web .gr-answer-symbol.errata { background: #f6e0db; color: #8c4438; }
.epd-web .gr-answer-symbol .badge-icon { width: 16px; height: 16px; }
.epd-web [data-view] .gr-actions { margin: 16px 0; }

@container epd-portal (min-width: 840px) {
  .epd-web .lobby-training { grid-template-columns: minmax(0,1.25fr) minmax(270px,.75fr); }
  .epd-web .lobby-training>:not(.lobby-trainer) { grid-column: 1; }
  .epd-web .lobby-trainer { grid-column: 2; grid-row: 1/4; margin: 0; }
  .epd-web .game-shell { display: grid; gap: 0 clamp(25px,4vw,68px); grid-template-columns: minmax(0,.97fr) minmax(0,1.03fr); align-items: start; }
  .epd-web .game-shell>.game-toolbar,.epd-web .game-shell>.game-progress { grid-column: 1/-1; }
  .epd-web .game-shell>.game-stage { grid-column: 1; grid-row: 3 / span 6; margin: 0; }
  .epd-web .game-shell>:is(.game-options,.game-certainty,.game-feedback,.game-advance,.game-exam-actions,.game-index,.actions) { grid-column: 2; min-width: 0; }
  .epd-web .game-shell>.game-stage.game-submit { grid-column: 1/-1; grid-row: 1; max-width: 70ch; }
  .epd-web [data-view="classHub"] { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; }
  .epd-web [data-view="classHub"]>:not(.stackform) { grid-column: 1/-1; justify-self: start; }
  .epd-web [data-view="classHub"] .stackform { margin: 0; }
  .epd-web [data-view="catalog"] form.stackform { grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; align-items: end; }
  .epd-web [data-view="catalog"] form.stackform>label:nth-of-type(1) { grid-area: 1/1; }
  .epd-web [data-view="catalog"] form.stackform>label:nth-of-type(2) { grid-area: 1/2; }
  .epd-web [data-view="catalog"] form.stackform>input { grid-area: 2/1; }
  .epd-web [data-view="catalog"] form.stackform>select { grid-area: 2/2; }
  .epd-web [data-view="catalog"] form.stackform>button { grid-area: 2/3; }
}
@container epd-portal (max-width: 600px) {
  .epd-web .lobby-exam { grid-template-columns: minmax(0,1fr); }
  .epd-web .lobby-exam-start { justify-self: start; }
  .epd-web [data-view="stats"] .numbers { grid-template-columns: 1fr; gap: 6px; }
  .epd-web [data-view="stats"] .stat { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; }
  .epd-web [data-view="stats"] .stat b { font-size: 1.5em; }
  .epd-web .game-stage .briefing { padding: 12px; }
  .epd-web .gr-haul img { width: 29px; }
}
@container epd-portal (max-width: 390px) {
  .epd-web .lobby-tools button { width: 100%; }
  .epd-web .livery-grid { grid-template-columns: minmax(0,1fr); }
  .epd-web .livery-card { display: grid; grid-template-columns: minmax(64px,26%) minmax(0,1fr); }
  .epd-web .livery-preview img { width: 100%; }
  .epd-web .livery-body { padding: 12px; }
  .epd-web .game-track { gap: 1px; }
}

.epd-web .game-feedback .berry-feedback { display: flex; gap: 5px 16px; align-items: center; flex-wrap: wrap; }
.epd-web .berry-feedback .reward-fruit { display: inline-flex; align-items: center; gap: 4px; }
.epd-web .berry-feedback :is(.reward-combo-line,.reward-session-note) { flex-basis: 100%; }
.epd-web .gr-bonuses li { flex-wrap: wrap; }

@media (max-width: 480px) {
  .epd-web .gr-haul { grid-template-columns: minmax(0,1fr); }
}

.epd-web .lobby-scenarios .epd-missioni-invito {
  min-width: 0; margin: 16px 0; padding: 12px 17px; border: 1px solid #b4d7d0;
  border-inline-start: 4px solid #18736b; border-radius: 8px; background: #eef8f4;
}
.epd-web .epd-missioni-invito a {
  display: inline-flex; align-items: center; gap: .6em; min-height: 44px; margin: 0;
  color: #10564e; font: 710 1.17rem/1.25 var(--epd-body-font); text-decoration: underline; text-underline-offset: .2em;
}
.epd-web .epd-missioni-invito p { margin: 0; color: #284b46; font: 490 1rem/1.45 var(--epd-body-font); }
