/* The laptop workshop uses its own in-page controls; no OS window styling leaks. */
.lp-module {
  --lp-ink: #132c53;
  --lp-paper: #fffdf5;
  color: var(--lp-ink);
}
.lp-module *,
.laptop-map-card * {
  box-sizing: border-box;
}
.lp-module h1 {
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  line-height: 1.08;
  margin: 8px 0 18px;
}
.lp-module h2 {
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  line-height: 1.2;
}
.lp-module p {
  line-height: 1.6;
}
.lp-module button {
  min-height: 48px;
  border: 2px solid var(--lp-ink);
  border-radius: 12px;
  background: #ffe443;
  color: var(--lp-ink);
  padding: 12px 20px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--lp-ink);
  line-height: 1.3;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
.lp-module button:hover:not(:disabled) {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--lp-ink);
}
.lp-module button:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--lp-ink);
}
.lp-module button:disabled {
  opacity: 0.65;
  cursor: default;
  box-shadow: none;
}
.lp-module
  :is(button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 4px solid #2169b0;
  outline-offset: 4px;
}
.lp-module button.lp-secondary {
  background: var(--lp-paper);
  box-shadow: 2px 2px 0 var(--lp-ink);
}
.lp-module .lp-caption {
  color: #465775;
  font-size: 0.93rem;
  line-height: 1.5;
}
.lp-eyebrow {
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin: 0;
}
.lp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  align-items: center;
  padding: 32px;
  gap: 20px;
  border: 3px solid var(--lp-ink);
  border-radius: 24px;
  background: #89ddff;
  box-shadow: 6px 6px 0 var(--lp-ink);
}
.lp-hero p {
  max-width: 620px;
}
.lp-illustration {
  width: 100%;
  max-width: 280px;
  height: auto;
}
.lp-progress {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr);
  gap: 12px 24px;
  align-items: center;
  margin: 28px 0;
  padding: 22px;
  border: 2px solid var(--lp-ink);
  border-radius: 16px;
  background: var(--lp-paper);
}
.lp-progress > span {
  grid-column: 1 / -1;
  color: #465775;
  font-size: 0.95rem;
}
.lp-progress progress {
  width: 100%;
  height: 18px;
  accent-color: #26754b;
  border: 2px solid var(--lp-ink);
  border-radius: 10px;
  overflow: hidden;
}
.lp-progress progress::-webkit-progress-bar {
  background: #e5e9f1;
}
.lp-progress progress::-webkit-progress-value {
  background: #4bbd79;
}
.lp-lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}
.lp-module .lp-lesson-card {
  display: grid;
  grid-template-columns: 1fr auto;
  justify-items: start;
  gap: 10px;
  text-align: left;
  padding: 22px;
  background: var(--lp-paper);
  border: 3px solid var(--lp-ink);
  box-shadow: 4px 4px 0 var(--lp-ink);
}
.lp-lesson-card > strong {
  grid-column: 1 / -1;
  font-size: 1.15rem;
}
.lp-lesson-card > span:not(.lp-lesson-icon):not(.lp-lesson-number),
.lp-lesson-card small {
  grid-column: 1 / -1;
  font-weight: 400;
  font-size: 0.9rem;
}
.lp-lesson-card small {
  margin-top: 6px;
  font-weight: 700;
}
.lp-lesson-number {
  align-self: center;
  color: #5d6a81;
  font-size: 1.1rem;
}
.lp-lesson-icon {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  background: #b9a1ff;
  border: 2px solid var(--lp-ink);
  border-radius: 16px;
  font-size: 32px;
  font-weight: 800;
  flex: none;
}
.lp-lesson-card:nth-child(3n + 2) .lp-lesson-icon {
  background: #ff917d;
}
.lp-lesson-card:nth-child(3n + 3) .lp-lesson-icon {
  background: #a8ebbb;
}
.lp-module .lp-lesson-card.is-complete {
  background: #e5f6d9;
}
.lp-complete-banner {
  background: #a8ebbb;
  border: 2px solid var(--lp-ink);
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 24px;
}
.lp-lesson-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 12px 0 28px;
}
.lp-lesson-top > span {
  color: #465775;
  font-weight: 700;
}
.lp-task-heading {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 22px 0;
}
.lp-task-heading h1 {
  margin-bottom: 0;
}
.lp-lesson-intro {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  background: var(--lp-paper);
  padding: 35px;
  border: 3px solid var(--lp-ink);
  border-radius: 24px;
  box-shadow: 5px 5px 0 var(--lp-ink);
}
.lp-lesson-intro p {
  font-size: 1.15rem;
  margin: 16px 0 26px;
}
.lp-instruction {
  background: #fffdf5;
  border: 2px solid var(--lp-ink);
  border-radius: 16px;
  padding: 22px 26px;
  margin: 24px 0 20px;
  font-size: 1.1rem;
}
.lp-instruction details {
  font-size: 0.95rem;
  margin-top: 16px;
}
.lp-instruction summary {
  cursor: pointer;
  color: #315c85;
  font-weight: 700;
  width: fit-content;
}
.lp-instruction details p {
  margin-bottom: 0;
}
.lp-arena {
  background: var(--lp-paper);
  border: 3px solid var(--lp-ink);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 5px 5px 0 var(--lp-ink);
  overflow: hidden;
}
.lp-desktop {
  background: linear-gradient(145deg, #cceeff, #cce7dd);
  border: 2px solid var(--lp-ink);
  border-radius: 14px;
  min-height: 280px;
  padding: 28px;
}
.lp-items,
.lp-move-zone {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.lp-module .lp-desktop-item {
  background: #fffdf580;
  box-shadow: none;
  border: 3px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 140px;
  max-width: 230px;
  min-height: 140px;
  border-radius: 14px;
  padding: 15px;
  font-size: 1rem;
}
.lp-desktop-item svg {
  width: 86px;
  height: 72px;
  display: block;
  flex: none;
}
.lp-desktop-item small {
  font-weight: 400;
}
.lp-module [data-lp-drag] {
  touch-action: none;
  user-select: none;
  cursor: grab;
  transition: none;
}
.lp-module [data-lp-drag].lp-dragging {
  cursor: grabbing;
  background: #fffdf5;
  box-shadow: 5px 8px 0 #132c5340;
}
.lp-module [data-lp-drop].lp-drop-ready {
  background: #a8ebbb;
  border-style: solid;
}
.lp-module .lp-desktop-item.is-selected {
  border-color: #132c53;
  background: #ffe44380;
}
.lp-file-glyph {
  font-size: 70px;
  line-height: 1;
  color: #38558a;
}
.lp-center {
  display: grid;
  place-items: center;
}
.lp-open-folder {
  background: var(--lp-paper);
  border: 2px solid var(--lp-ink);
  border-radius: 10px;
  width: min(100%, 430px);
  padding: 20px;
}
.lp-open-folder strong {
  display: block;
  border-bottom: 2px solid #b0bad0;
  padding-bottom: 12px;
}
.lp-open-folder svg {
  width: 65px;
  vertical-align: middle;
  margin-right: 14px;
}
.lp-arena > .lp-secondary {
  margin-top: 18px;
}
.lp-arrow {
  font-size: 48px;
}
.lp-module .lp-drop {
  border: 3px dashed #557092;
  min-width: 180px;
}
.lp-scroll {
  height: 245px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 2px solid #71849d;
  border-radius: 12px;
  padding: 22px 26px;
  font-size: 1.1rem;
  scrollbar-color: #4a6991 #e2e8f1;
  scrollbar-width: auto;
}
.lp-scroll h3 {
  margin-top: 0;
}
.lp-scroll p {
  margin: 22px 0 40px;
}
.lp-scroll .lp-secret {
  background: #ffe443;
  border: 2px solid var(--lp-ink);
  padding: 18px;
  border-radius: 10px;
  margin-bottom: 0;
}
.lp-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 1rem;
  font-weight: 800;
  margin: 18px 0;
}
.lp-field :is(input, textarea, select) {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 12px 15px;
  font: inherit;
  font-weight: 400;
  color: var(--lp-ink);
  background: #fff;
  border: 2px solid #5b7090;
  border-radius: 10px;
  box-shadow: none;
}
.lp-field textarea {
  min-height: 110px;
  resize: vertical;
}
.lp-field textarea[readonly] {
  background: #f0f7ff;
}
.lp-field input[disabled] {
  background: #e3e8ef;
}
.lp-example {
  border-left: 5px solid #a8ebbb;
  padding: 10px 14px;
}
.lp-toolbar,
.lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.lp-actions {
  margin: 22px 0 12px;
}
.lp-folder-work {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.lp-folder-work .lp-field {
  width: 100%;
  margin: 0;
}
.lp-file-window {
  border: 2px solid var(--lp-ink);
  border-radius: 12px;
  background: #fff;
  padding: 0 20px 22px;
  overflow: hidden;
}
.lp-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 -20px 20px;
  padding: 12px 17px;
  background: #b9a1ff;
  border-bottom: 2px solid var(--lp-ink);
}
.lp-window-bar > button {
  padding: 6px 15px;
  font-size: 24px;
  min-width: 48px;
  background: #fffdf5;
  box-shadow: none;
}
.lp-note-text {
  font-family: Consolas, monospace;
  font-size: 1.2rem;
  padding: 14px 0;
}
.lp-window-desktop {
  min-height: 380px;
  padding-bottom: 76px;
  position: relative;
}
.lp-taskbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px;
  border-top: 2px solid var(--lp-ink);
  background: #132c53;
  border-radius: 0 0 10px 10px;
}
.lp-module .lp-taskbar button {
  background: #89ddff;
  border-color: #fff;
  box-shadow: none;
}
.lp-browser {
  border: 2px solid var(--lp-ink);
  border-radius: 14px;
  padding: 20px;
  background: #f4f7fd;
}
.lp-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #b9a1ff;
  margin: -20px -20px 20px;
  padding: 12px;
  border-bottom: 2px solid var(--lp-ink);
  border-radius: 12px 12px 0 0;
  flex-wrap: wrap;
}
.lp-tabs > span {
  padding: 10px 14px;
  border: 2px solid var(--lp-ink);
  border-radius: 8px 8px 0 0;
  font-size: 0.9rem;
  background: #e6dbff;
}
.lp-tabs > .is-active {
  background: #fff;
  font-weight: 800;
}
.lp-tabs button {
  padding: 7px 15px;
  font-size: 24px;
}
.lp-browser form {
  display: flex;
  align-items: flex-end;
  gap: 15px;
}
.lp-browser form .lp-field {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.lp-browser form button {
  margin-bottom: 3px;
}
.lp-browser-content {
  margin-top: 22px;
  border: 2px dashed #90a5be;
  border-radius: 12px;
  padding: 24px;
  background: #fff;
  min-height: 130px;
}
.lp-search-results {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.lp-module .lp-result {
  background: #fff;
  text-align: left;
  border-color: #657c9c;
  box-shadow: none;
  font-weight: 400;
}
.lp-result strong {
  color: #195c8b;
  text-decoration: underline;
}
.lp-result small {
  display: block;
  margin-top: 8px;
}
.lp-library {
  background: #e5f6d9;
  border: 2px solid #537d56;
  border-radius: 12px;
  padding: 18px 22px;
  margin-top: 20px;
}
.lp-situations {
  display: grid;
  gap: 25px;
}
.lp-situations fieldset {
  min-width: 0;
  padding: 17px;
  border: 2px solid #7386a0;
  border-radius: 12px;
}
.lp-situations legend {
  padding: 0 8px;
  font-weight: 800;
  line-height: 1.5;
}
.lp-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 2px solid #c6d1df;
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  margin: 10px 0 0;
  background: #fff;
}
.lp-choice:has(input:checked) {
  background: #fff3a8;
  border-color: var(--lp-ink);
}
.lp-choice input {
  width: 22px;
  height: 22px;
  flex: none;
  margin: 0;
  accent-color: #1c5f80;
}
.lp-feedback {
  min-height: 28px;
  padding-top: 18px;
  color: #873b25;
  font-weight: 700;
  line-height: 1.5;
}
.lp-hint {
  border: 2px solid var(--lp-ink);
  border-radius: 14px;
  padding: 18px 22px;
  background: #dcefff;
  margin-top: 12px;
}
.lp-hint p {
  margin: 8px 0 0;
}
.lp-success {
  background: #dcf3db;
  border-radius: 8px;
  padding: 12px;
  font-weight: 700;
}
.lp-done {
  text-align: center;
  max-width: 760px;
  margin: 30px auto;
  background: var(--lp-paper);
  border: 3px solid var(--lp-ink);
  border-radius: 24px;
  padding: 35px;
  box-shadow: 6px 6px 0 var(--lp-ink);
}
.lp-done-star {
  display: inline-grid;
  place-items: center;
  width: 90px;
  height: 90px;
  background: #ffe443;
  border: 3px solid var(--lp-ink);
  border-radius: 50%;
  font-size: 58px;
}
.lp-done h1 {
  margin: 20px 0 12px;
}
.lp-done .lp-actions {
  justify-content: center;
}
.lp-report {
  background: var(--lp-paper);
  border: 2px solid var(--lp-ink);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
}
.lp-table-wrap {
  overflow-x: auto;
}
.lp-report table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
  font-size: 0.9rem;
}
.lp-report th,
.lp-report td {
  padding: 12px;
  border-bottom: 1px solid #c6d1df;
  text-align: left;
}
.laptop-map-card {
  display: flex;
  align-items: center;
  gap: 22px;
  border: 3px solid #132c53;
  border-radius: 20px;
  padding: 25px;
  margin: 26px 0;
  background: #fffdf5;
  box-shadow: 5px 5px 0 #132c53;
}
.laptop-map-card h2 {
  margin: 5px 0 8px;
  font-size: 1.65rem;
}
.laptop-map-card p {
  margin: 6px 0;
  line-height: 1.5;
}
.laptop-map-card small {
  display: block;
  margin-top: 8px;
  color: #465775;
}
.laptop-map-card > div:not(.laptop-map-icon) {
  flex: 1;
}
.laptop-map-card button {
  flex: none;
}
.laptop-map-icon {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  flex: none;
  background: #89ddff;
  border: 3px solid #132c53;
  border-radius: 26px;
  transform: rotate(-4deg);
}
.laptop-map-icon svg {
  width: 68px;
  height: 68px;
}
@media (max-width: 760px) {
  .lp-hero {
    grid-template-columns: 1fr 160px;
    padding: 24px;
  }
  .lp-lesson-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lp-lesson-intro {
    grid-template-columns: 160px minmax(0, 1fr);
    padding: 25px;
    gap: 22px;
  }
  .laptop-map-card {
    flex-wrap: wrap;
  }
  .laptop-map-card > button {
    margin-left: 118px;
  }
}
@media (max-width: 520px) {
  .lp-hero {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 23px;
  }
  .lp-hero .lp-illustration {
    width: 170px;
    justify-self: center;
  }
  .lp-progress {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .lp-progress > span {
    grid-column: auto;
  }
  .lp-lesson-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .lp-module .lp-lesson-card {
    padding: 18px;
  }
  .lp-lesson-top {
    align-items: flex-start;
    gap: 12px;
  }
  .lp-lesson-top > span {
    font-size: 0.85rem;
    text-align: right;
    padding-top: 10px;
  }
  .lp-lesson-top button {
    padding: 10px 12px;
  }
  .lp-task-heading {
    gap: 13px;
  }
  .lp-task-heading h1 {
    font-size: 1.7rem;
  }
  .lp-task-heading .lp-eyebrow {
    font-size: 0.7rem;
  }
  .lp-lesson-intro {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 5px;
  }
  .lp-lesson-intro .lp-illustration {
    width: 150px;
    justify-self: center;
  }
  .lp-instruction,
  .lp-arena {
    padding: 18px;
  }
  .lp-desktop {
    padding: 18px 10px;
  }
  .lp-items {
    gap: 12px;
  }
  .lp-module .lp-desktop-item {
    min-width: 115px;
    padding: 10px;
  }
  .lp-move-zone {
    flex-direction: column;
  }
  .lp-arrow {
    transform: rotate(90deg);
    font-size: 32px;
  }
  .lp-scroll {
    padding: 18px;
  }
  .lp-toolbar,
  .lp-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .lp-toolbar button {
    font-size: 0.9rem;
  }
  .lp-window-desktop {
    min-height: 380px;
    padding-bottom: 78px;
  }
  .lp-window-bar {
    gap: 10px;
    padding: 10px;
  }
  .lp-browser {
    padding: 15px;
  }
  .lp-tabs {
    margin: -15px -15px 15px;
  }
  .lp-browser form {
    flex-direction: column;
    align-items: stretch;
  }
  .lp-browser form .lp-field {
    flex: auto;
  }
  .lp-situations fieldset {
    padding: 10px;
  }
  .lp-choice {
    padding: 12px;
    font-size: 0.95rem;
  }
  .lp-done {
    padding: 25px 20px;
  }
  .laptop-map-card {
    padding: 20px;
    gap: 15px;
  }
  .laptop-map-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }
  .laptop-map-icon svg {
    width: 44px;
    height: 44px;
  }
  .laptop-map-card h2 {
    font-size: 1.35rem;
  }
  .laptop-map-card > button {
    width: 100%;
    margin-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lp-module button {
    transition: none;
  }
}
@media print {
  .lp-report {
    border: 1px solid #777;
    box-shadow: none;
    background: #fff;
    break-inside: avoid;
  }
  .lp-report table {
    min-width: 0;
  }
}
