:root {
  --bg: #efece4;
  --paper: #fffdf7;
  --paper-2: #f7f4eb;
  --ink: #1e2628;
  --muted: #687376;
  --line: #d9d1c2;
  --teal: #0a8b83;
  --teal-dark: #08736d;
  --teal-soft: #dcefeb;
  --blue-soft: #e7f0f3;
  --yellow: #f6dc8b;
  --yellow-soft: #fff3c7;
  --coral: #d8664a;
  --green: #2f8a50;
  --shadow: 0 18px 38px rgba(49, 43, 33, 0.14);
  --shadow-soft: 0 10px 22px rgba(49, 43, 33, 0.1);
  --radius: 8px;
  --font-ui: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-note: "Kaiti SC", "STKaiti", "KaiTi", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.78), transparent 32rem),
    linear-gradient(135deg, #ece7dd, #f7f3eb 62%, #e7eee9);
  color: var(--ink);
  font-family: var(--font-ui);
}

button {
  font: inherit;
}

.app-shell {
  width: min(100vw, 1536px);
  height: 100vh;
  min-height: 0;
  margin: 0 auto;
  padding: clamp(12px, 1.2vw, 22px);
}

.student-login-window {
  min-height: min(720px, calc(100vh - 24px));
}

.student-login-layout {
  min-height: calc(100% - 52px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  align-items: center;
  gap: clamp(40px, 8vw, 120px);
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0;
}

.student-login-copy h1 {
  margin: 12px 0 18px;
  font-size: clamp(42px, 5rem, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}

.student-login-copy p {
  max-width: 560px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.8;
}

.student-login-form {
  display: grid;
  gap: 22px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.student-login-form label {
  display: grid;
  gap: 9px;
  font-size: 16px;
  font-weight: 700;
}

.student-login-form input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
}

.student-login-form input:focus {
  outline: 3px solid rgba(10, 139, 131, 0.18);
  border-color: var(--teal);
}

.form-error,
.classroom-alert {
  margin: 0;
  color: #8b2f24;
  font-weight: 700;
}

.classroom-alert {
  padding: 10px 34px;
  border-bottom: 1px solid #e3b6aa;
  background: #fff0ec;
}

.classroom-refresh-note {
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 760px) {
  .student-login-layout {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    width: min(100% - 28px, 520px);
    padding: 30px 0;
  }

  .student-login-copy h1 {
    font-size: 42px;
  }

  .student-login-copy p {
    margin-bottom: 0;
    font-size: 17px;
  }

  .student-login-form {
    padding: 22px;
  }
}

.desktop-window {
  height: 100%;
  min-height: 0;
  border: 1px solid rgba(58, 60, 56, 0.36);
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.68)),
    repeating-linear-gradient(90deg, rgba(126, 116, 95, 0.04) 0 1px, transparent 1px 18px),
    var(--bg);
  box-shadow: var(--shadow);
}

.traffic-bar {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.56);
  border-bottom: 1px solid rgba(118, 111, 97, 0.22);
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.dot.red { background: #ef5545; }
.dot.yellow { background: #f5bf42; }
.dot.green { background: #4aaa67; }

.window-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #3e4445;
  font-size: 20px;
}

.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 34px;
  background: rgba(255, 253, 247, 0.78);
  border-bottom: 1px solid rgba(118, 111, 97, 0.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #152528;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 8px 16px rgba(14, 25, 28, 0.14);
}

.brand-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(230, 226, 215, 0.84);
  color: #383d3e;
  font-size: 15px;
  white-space: nowrap;
}

.topbar-spacer {
  flex: 1;
}

.icon-button,
.plain-button,
.primary-button,
.ghost-button,
.edit-mode-button,
.edit-inline-button,
.edit-card-button {
  border: 1px solid rgba(83, 78, 69, 0.22);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 13px;
  box-shadow: 0 8px 14px rgba(54, 48, 38, 0.08);
}

.plain-button,
.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  font-size: 18px;
  font-weight: 700;
}

.primary-button {
  border-color: rgba(4, 112, 105, 0.56);
  background: linear-gradient(180deg, #12a096, #087b74);
  color: #fff;
  box-shadow: 0 13px 24px rgba(8, 123, 116, 0.28);
}

.ghost-button {
  background: rgba(255, 253, 247, 0.78);
}

.primary-button:hover,
.ghost-button:hover,
.plain-button:hover,
.icon-button:hover,
.edit-mode-button:hover,
.edit-inline-button:hover,
.edit-card-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.primary-button:disabled,
.plain-button:disabled,
.ghost-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.screen {
  height: calc(100% - 128px);
  padding: 26px 34px 30px;
  overflow: auto;
}

.screen-info {
  overflow: hidden;
}

.home-layout {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 322px;
  gap: 24px;
  align-items: stretch;
}

.hero-board,
.paper-panel,
.receipt-panel,
.summary-mail,
.score-card,
.metric-card {
  position: relative;
  border: 1px solid rgba(104, 96, 82, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 253, 247, 0.92), rgba(255, 253, 247, 0.92)),
    repeating-linear-gradient(0deg, rgba(62, 48, 29, 0.03) 0 1px, transparent 1px 14px);
  box-shadow: var(--shadow-soft);
}

.hero-board {
  padding: 34px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 7px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
}

.section-title {
  margin: 20px 0 8px;
  font-size: 38px;
  line-height: 1.18;
  letter-spacing: 0;
}

.section-subtitle {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(132px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.lesson-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(98, 91, 78, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.86);
  box-shadow: 0 10px 20px rgba(54, 48, 38, 0.08);
}

.lesson-card.active {
  border-color: rgba(8, 123, 116, 0.5);
  background: linear-gradient(180deg, #f9fffc, #edf7f4);
}

.lesson-card.locked {
  opacity: 0.74;
}

.lesson-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 26px;
}

.lesson-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
}

.lesson-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.card-state {
  margin-top: auto;
  align-self: flex-start;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(10, 139, 131, 0.12);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 700;
}

.home-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.note-card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(104, 96, 82, 0.22);
  background: rgba(255, 253, 247, 0.84);
  box-shadow: var(--shadow-soft);
}

.note-card.yellow {
  background: #fff2bf;
  transform: rotate(-1deg);
  font-family: var(--font-note);
  font-size: 21px;
  line-height: 1.8;
}

.note-card h2,
.note-card h3 {
  margin: 0 0 14px;
}

.task-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 22px;
}

.task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 7px;
  background: rgba(220, 239, 235, 0.58);
  color: #315057;
}

.info-layout {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 20px;
}

.info-content {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
}

.wiki-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 24px 28px;
}

.wiki-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.edit-inline-button,
.edit-card-button,
.edit-mode-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 10px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.edit-card-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: rgba(255, 253, 247, 0.94);
}

.wiki-panel h2 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.24;
}

.wiki-panel p {
  margin: 0;
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.78;
}

.wiki-page-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(10, 139, 131, 0.12);
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.wiki-lecture {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.wiki-lecture-2x2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.wiki-lecture-1x3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
}

.wiki-lecture-1x4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
}

.wiki-lecture-1x3 .lecture-entry,
.wiki-lecture-1x4 .lecture-entry {
  display: flex;
  flex-direction: column;
}

.wiki-lecture-1x3 .lecture-entry h3,
.wiki-lecture-1x4 .lecture-entry h3 {
  font-size: 19px;
}

.wiki-lecture-1x3 .lecture-entry p,
.wiki-lecture-1x4 .lecture-entry p {
  font-size: 15px;
}

.wiki-lecture-1x4 .lecture-entry {
  padding: 15px 14px;
}

.wiki-lecture-1x4 .lecture-entry h3 {
  font-size: 18px;
}

.wiki-lecture-1x4 .lecture-entry p {
  font-size: 14px;
}

.wiki-lecture-1x4 .lecture-entry ul {
  font-size: 12px;
}

.lecture-entry {
  position: relative;
  min-height: 0;
  overflow: auto;
  padding: 16px 18px;
  border: 1px solid rgba(100, 94, 84, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
}

.lecture-entry h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.28;
}

.lecture-entry p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.lecture-entry ul {
  margin: 9px 0 0;
  padding-left: 18px;
  color: #334144;
  font-size: 13px;
  line-height: 1.5;
}

.lecture-entry li + li {
  margin-top: 3px;
}

.fit-visual {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 18px;
  margin-top: 18px;
  padding: 104px 24px 24px;
  border: 1px solid rgba(100, 94, 84, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 253, 247, 0.72), rgba(247, 240, 221, 0.72)),
    var(--paper-fiber);
  background-size: auto, var(--paper-fiber-size);
  overflow: hidden;
}

.fit-visual-image-wrap {
  display: grid;
  place-items: center;
  min-height: 0;
  margin: 18px 0 0;
  padding: 12px;
  border: 1px solid rgba(100, 94, 84, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 253, 247, 0.72), rgba(247, 240, 221, 0.72)),
    var(--paper-fiber);
  background-size: auto, var(--paper-fiber-size);
  overflow: auto;
}

.fit-visual-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(64vh, 720px);
  object-fit: contain;
}

.fit-visual::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 74px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(10, 139, 131, 0.36), transparent);
}

.fit-visual-center {
  position: absolute;
  left: 50%;
  top: 22px;
  z-index: 2;
  width: 280px;
  min-height: 76px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 18px;
  border: 2px solid rgba(10, 139, 131, 0.38);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.92), rgba(220, 239, 235, 0.88)),
    var(--paper-fiber);
  background-size: auto, var(--paper-fiber-size);
  box-shadow: 0 16px 26px rgba(55, 75, 68, 0.14);
  text-align: center;
  transform: translateX(-50%);
}

.fit-visual-center strong {
  color: var(--teal-dark);
  font-size: 26px;
  line-height: 1;
}

.fit-visual-center span {
  color: #3e5558;
  font-size: 12px;
  line-height: 1.35;
}

.fit-node {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 250px;
  padding: 18px;
  border: 1px solid rgba(83, 78, 69, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.82);
  box-shadow: 0 10px 18px rgba(54, 48, 38, 0.08);
}

.fit-node span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 900;
}

.fit-node h3 {
  margin: 0;
  font-size: 21px;
}

.fit-node p {
  margin: 0;
  color: #445052;
  font-size: 15px;
  line-height: 1.62;
}

.fit-node small {
  align-self: end;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.fit-business {
  background: linear-gradient(180deg, rgba(236, 251, 247, 0.88), rgba(255, 253, 247, 0.82));
}

.fit-skill {
  background: linear-gradient(180deg, rgba(255, 244, 220, 0.9), rgba(255, 253, 247, 0.82));
}

.fit-will {
  background: linear-gradient(180deg, rgba(237, 242, 245, 0.9), rgba(255, 253, 247, 0.82));
}

.fit-caption {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 720px;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: rgba(255, 243, 199, 0.72);
  color: #4d5146;
  font-family: var(--font-note);
  font-size: 20px;
  line-height: 1.5;
  text-align: center;
}

.edit-mode-bar {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 10px 12px;
  border: 1px solid rgba(83, 78, 69, 0.2);
  border-radius: 10px;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 0 16px 30px rgba(49, 43, 33, 0.16);
  transform: translateX(-50%);
}

.edit-mode-bar strong {
  white-space: nowrap;
}

.edit-mode-bar span {
  max-width: 420px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edit-mode-button.primary {
  border-color: rgba(4, 112, 105, 0.56);
  background: var(--teal);
  color: #fff;
}

.edit-mode-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.edit-drawer {
  position: absolute;
  top: 128px;
  right: 18px;
  bottom: 72px;
  z-index: 39;
  width: min(390px, calc(100% - 36px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid rgba(83, 78, 69, 0.24);
  border-radius: 10px;
  background:
    linear-gradient(rgba(255, 253, 247, 0.96), rgba(255, 249, 235, 0.96)),
    var(--paper-fiber);
  background-size: auto, var(--paper-fiber-size);
  box-shadow: 0 22px 42px rgba(49, 43, 33, 0.2);
  overflow: hidden;
}

.edit-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(83, 78, 69, 0.14);
}

.edit-drawer-head button {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(83, 78, 69, 0.18);
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.8);
  cursor: pointer;
}

.edit-drawer-body {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px 16px;
  overflow: auto;
}

.edit-field {
  display: grid;
  gap: 6px;
}

.edit-field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.edit-field input,
.edit-field textarea,
.edit-field select {
  width: 100%;
  border: 1px solid rgba(83, 78, 69, 0.2);
  border-radius: 7px;
  background: rgba(255, 253, 247, 0.9);
  color: var(--ink);
  font: inherit;
}

.edit-field input,
.edit-field select {
  min-height: 38px;
  padding: 8px 10px;
}

.edit-field textarea {
  min-height: 118px;
  padding: 10px;
  resize: vertical;
  line-height: 1.55;
}

.edit-status,
.edit-help {
  margin: 0;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.edit-drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid rgba(83, 78, 69, 0.14);
}

.vector-card {
  display: grid;
  grid-template-rows: 48px 132px 64px auto;
  align-items: center;
  gap: 14px;
  min-height: 0;
  padding: 22px;
}

.simple-vector {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.8), transparent 24%),
    linear-gradient(145deg, #dff1ee, #f9e8ab);
  display: grid;
  place-items: center;
  color: var(--teal-dark);
  font-size: 54px;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(10, 139, 131, 0.22);
}

.vector-copy {
  align-self: stretch;
  display: grid;
  place-items: center;
  text-align: center;
}

.vector-copy strong {
  font-size: 22px;
  line-height: 1.25;
}

.vector-copy span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.info-page-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(100, 94, 84, 0.14);
}

.info-page-actions span {
  justify-self: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.ghost-button.compact {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 14px;
}

.info-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.info-tab {
  min-height: 102px;
  padding: 12px;
  text-align: left;
  border: 1px solid rgba(100, 94, 84, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.9);
  box-shadow: 0 8px 18px rgba(54, 48, 38, 0.08);
  cursor: pointer;
}

.info-tab.active {
  border-color: rgba(8, 123, 116, 0.56);
  background: #effaf7;
}

.info-tab-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 7px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 800;
}

.info-tab strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
  line-height: 1.25;
}

.info-tab span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.game-layout {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 430px;
  gap: 16px;
}

.side-panel,
.mail-panel {
  border: 1px solid rgba(104, 96, 82, 0.23);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.82);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  min-height: 0;
  overflow: auto;
}

.panel-title {
  margin: 0 0 8px;
  font-size: 24px;
}

.panel-desc {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.tag-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.tag-groups {
  display: grid;
  gap: 14px;
}

.tag-group {
  display: grid;
  gap: 8px;
}

.tag-group-head {
  display: grid;
  gap: 2px;
}

.tag-group-head strong {
  color: var(--teal-dark);
  font-size: 15px;
}

.tag-group-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.tag-button {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border: 1px solid rgba(91, 86, 75, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.68);
  text-align: left;
  color: #2d3335;
  font-size: 13px;
  line-height: 1.25;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.tag-button.active,
.tag-button.used {
  border-color: rgba(8, 123, 116, 0.56);
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.tag-button.used {
  box-shadow: inset 0 0 0 1px rgba(8, 123, 116, 0.18);
}

.tag-button:disabled {
  cursor: not-allowed;
}

.tag-button:disabled:not(.used) {
  opacity: 0.48;
}

.tag-dot {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e9e2d4;
  color: #657073;
  font-size: 13px;
  font-weight: 800;
}

.tag-button.active .tag-dot,
.tag-button.used .tag-dot {
  background: var(--teal);
  color: #fff;
}

.memo-note {
  margin-top: 14px;
  padding: 12px;
  border-radius: 7px;
  background: #f7f1cf;
  font-family: var(--font-note);
  color: #4d5146;
  font-size: 17px;
  line-height: 1.65;
  transform: rotate(-1deg);
}

.gm-answer-panel {
  display: grid;
  gap: 10px;
  margin: 12px 0 14px;
  padding: 12px;
  border: 1px solid rgba(8, 123, 116, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(232, 249, 245, 0.9), rgba(255, 253, 247, 0.86)),
    var(--paper-fiber);
  background-size: auto, var(--paper-fiber-size);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.gm-answer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gm-answer-head strong {
  color: #075f5a;
  font-size: 15px;
  font-weight: 900;
}

.gm-answer-head span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid rgba(8, 123, 116, 0.2);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.78);
  color: #075f5a;
  font-size: 12px;
  font-weight: 900;
}

.gm-answer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.gm-line-list {
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px dashed rgba(8, 123, 116, 0.22);
  border-radius: 7px;
  background: rgba(255, 253, 247, 0.5);
}

.gm-line-list > strong {
  color: #075f5a;
  font-size: 13px;
}

.gm-line-list > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gm-line-tools {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.gm-answer-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(10, 139, 131, 0.18);
  border-radius: 999px;
  background: rgba(220, 239, 235, 0.72);
  color: #17383a;
  font-size: 12px;
  font-weight: 800;
}

.gm-answer-text {
  display: grid;
  gap: 6px;
  color: #344245;
  font-size: 13px;
  line-height: 1.55;
}

.gm-answer-text p {
  margin: 0;
}

.gm-line-warn {
  padding: 3px 6px;
  border: 1px solid rgba(189, 75, 50, 0.26);
  border-radius: 4px;
  background: rgba(255, 237, 229, 0.8);
  color: #9a3d28;
  font-size: 12px;
}

.gm-answer-item {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(83, 78, 69, 0.12);
  border-radius: 7px;
  background: rgba(255, 253, 247, 0.72);
}

.gm-answer-item-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}

.gm-answer-item p {
  margin: 0;
  color: #273233;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.gm-answer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.gm-answer-tags span {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(10, 139, 131, 0.12);
  color: #075f5a;
  font-size: 12px;
  font-weight: 900;
}

.gm-answer-item small,
.gm-answer-empty {
  color: #667174;
  font-size: 12px;
  line-height: 1.45;
}

.gm-answer-mark {
  cursor: default;
}

.gm-answer-notes {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.gm-answer-note {
  pointer-events: none;
}

.edit-inline-button.mini {
  min-height: 0;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 12px;
}

.demand-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
  padding: 24px 28px 18px;
  user-select: text;
  cursor: pointer;
}

.paperclip {
  position: absolute;
  top: -17px;
  left: 30px;
  font-size: 42px;
  color: var(--teal);
  transform: rotate(12deg);
}

.demand-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 17px;
}

.demand-head h2 {
  margin: 0;
  font-size: 30px;
}

.danger-chip,
.code-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.danger-chip {
  margin-left: auto;
  background: #f9d8cb;
  color: #b2462d;
}

.code-chip {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.demand-section {
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(94, 88, 75, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.58);
}

.demand-section h3 {
  margin: 0 0 9px;
  font-size: 19px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(94, 88, 75, 0.14);
  cursor: pointer;
}

.field span {
  color: var(--muted);
}

.field-value,
.field-value span {
  cursor: pointer;
}

.bullet-list {
  margin: 0;
  padding-left: 20px;
  color: #333c3e;
  line-height: 1.85;
}

.bullet-list li,
.bullet-list span {
  cursor: pointer;
}

.clue {
  position: relative;
  border-radius: 6px;
  cursor: pointer;
  transition: background 150ms ease, box-shadow 150ms ease;
}

.clue:hover {
  background: transparent;
  box-shadow: none;
}

.clue.selected {
  background: rgba(246, 220, 139, 0.28);
  box-shadow: inset 0 -3px 0 var(--coral);
}

.clue.tagged {
  background: rgba(220, 239, 235, 0.85);
  box-shadow: inset 0 -3px 0 var(--teal);
}

.text-mark {
  display: inline-block;
  padding: 0 2px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 150ms ease, box-shadow 150ms ease;
  vertical-align: baseline;
}

.text-mark.selected {
  background: rgba(246, 220, 139, 0.28);
  box-shadow: inset 0 -3px 0 var(--coral);
}

.text-mark.tagged {
  background: rgba(220, 239, 235, 0.85);
  box-shadow: inset 0 -3px 0 var(--teal);
}

.mark-notes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  max-width: 100%;
  pointer-events: none;
  vertical-align: baseline;
  cursor: pointer;
}

.mark-note {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid rgba(143, 112, 31, 0.22);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 247, 197, 0.96), rgba(246, 220, 139, 0.88));
  color: #536056;
  font-family: var(--font-note);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: auto;
}

.game-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
}

.selected-chip {
  margin-left: auto;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(10, 139, 131, 0.12);
  color: var(--teal-dark);
  font-weight: 800;
}

.selection-card {
  margin: 12px 0 14px;
  padding: 12px;
  border-radius: 7px;
  background: rgba(220, 239, 235, 0.45);
  border: 1px dashed rgba(10, 139, 131, 0.32);
}

.selection-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--teal-dark);
  font-size: 14px;
}

.selection-card span {
  display: block;
  color: #364345;
  font-size: 14px;
  line-height: 1.55;
}

.selection-list {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
}

.selection-item {
  padding: 8px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.66);
  color: #475254;
  font-size: 13px;
  line-height: 1.45;
}

.mailbox-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mailbox-card {
  position: relative;
  min-height: 64px;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid rgba(92, 84, 72, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.88);
  text-align: center;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.mailbox-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(54, 48, 38, 0.08);
}

.mailbox-card.selected {
  border-color: rgba(8, 123, 116, 0.7);
  background: #effaf7;
  box-shadow: 0 0 0 3px rgba(10, 139, 131, 0.12);
}

.mailbox-card h3 {
  margin: 0;
  color: var(--teal-dark);
  font-size: 19px;
  line-height: 1.2;
}

.mailbox-card p {
  max-width: 230px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.mailbox-icon {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-size: 28px;
}

.case-tag-counter {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(10, 139, 131, 0.22);
  border-radius: var(--radius);
  background: rgba(220, 239, 235, 0.52);
}

.case-tag-counter span {
  color: #526164;
  font-size: 13px;
  font-weight: 700;
}

.case-tag-counter strong {
  min-width: 54px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 253, 247, 0.86);
  color: var(--teal-dark);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.receipt-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  min-height: 100%;
  overflow: auto;
}

.receipt-panel h2 {
  margin: 0 0 2px;
  font-size: 26px;
}

.receipt-compact-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #edf7ef;
  border: 1px solid rgba(47, 138, 80, 0.24);
}

.receipt-compact-head.fail {
  background: #fff0e9;
  border-color: rgba(216, 102, 74, 0.25);
}

.receipt-compact-head h2 {
  margin: 0;
  font-size: 20px;
}

.receipt-compact-head span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(47, 138, 80, 0.13);
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.receipt-compact-head.fail span {
  background: rgba(216, 102, 74, 0.13);
  color: #bd4b32;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 0;
}

.stat {
  padding: 10px 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 24px;
  color: var(--teal-dark);
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.roast {
  padding: 16px;
  border-radius: 7px;
  background: var(--yellow-soft);
  font-family: var(--font-note);
  font-size: 20px;
  line-height: 1.7;
}

.receipt-section,
.ai-feedback {
  border: 1px solid rgba(104, 96, 82, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
}

.receipt-section {
  padding: 12px;
}

.receipt-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.receipt-section-head h3,
.ai-feedback h3 {
  margin: 0;
  color: var(--teal-dark);
  font-size: 16px;
}

.receipt-section-head span {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(10, 139, 131, 0.12);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.tag-review-list {
  display: grid;
  gap: 8px;
}

.tag-review-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  padding: 9px;
  border-radius: 7px;
  background: rgba(255, 253, 247, 0.72);
  border: 1px solid rgba(104, 96, 82, 0.14);
}

.tag-review-item.ok {
  border-color: rgba(47, 138, 80, 0.2);
  background: rgba(237, 247, 239, 0.8);
}

.tag-review-item.wrong {
  border-color: rgba(216, 102, 74, 0.22);
  background: rgba(255, 240, 233, 0.78);
}

.tag-review-item.miss {
  border-color: rgba(143, 112, 31, 0.22);
  background: rgba(255, 243, 199, 0.72);
}

.tag-review-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 139, 131, 0.12);
  color: var(--teal-dark);
  font-weight: 900;
}

.tag-review-item.wrong .tag-review-icon {
  background: rgba(216, 102, 74, 0.14);
  color: #bd4b32;
}

.tag-review-item.miss .tag-review-icon {
  background: rgba(246, 220, 139, 0.56);
  color: #7e6324;
}

.tag-review-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.tag-review-item p,
.mailbox-reason p,
.ai-feedback p {
  margin: 0;
  color: #384446;
  font-size: 13px;
  line-height: 1.5;
}

.tag-review-item em {
  color: var(--muted);
  font-style: normal;
}

.tag-review-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.tag-review-empty {
  color: var(--muted);
  font-size: 13px;
}

.mailbox-reason {
  background: rgba(220, 239, 235, 0.42);
}

.ai-feedback {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  background:
    linear-gradient(rgba(255, 243, 199, 0.72), rgba(255, 243, 199, 0.72)),
    repeating-linear-gradient(0deg, rgba(62, 48, 29, 0.04) 0 1px, transparent 1px 12px);
}

.ai-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.ai-feedback blockquote {
  margin: 8px 0 0;
  padding: 9px 10px;
  border-left: 3px solid rgba(10, 139, 131, 0.4);
  background: rgba(255, 253, 247, 0.58);
  color: #4d5146;
  font-family: var(--font-note);
  font-size: 16px;
  line-height: 1.55;
}

.ai-suggestions {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.ai-suggestions p {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin: 0;
}

.ai-suggestions strong {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 139, 131, 0.12);
  color: var(--teal-dark);
  font-size: 12px;
}

.ai-suggestions span {
  padding-top: 1px;
  color: #263436;
  font-size: 13px;
  line-height: 1.5;
}

.review-progress-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(247, 244, 235, 0.82);
  backdrop-filter: blur(5px);
}

.review-progress-card {
  width: min(520px, 100%);
  padding: 30px;
  border: 1px solid rgba(77, 70, 57, 0.24);
  border-radius: 7px;
  background: #fffdf7;
  box-shadow: 0 22px 60px rgba(50, 62, 61, 0.18);
}

.review-progress-card h2 {
  margin: 8px 0 20px;
  font-size: 25px;
}

.review-progress-bar {
  height: 8px;
  overflow: hidden;
  background: #e6e1d5;
}

.review-progress-bar i {
  display: block;
  width: var(--review-progress);
  height: 100%;
  background: var(--teal);
  transition: width 260ms ease;
}

.review-progress-steps {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.review-progress-steps div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.review-progress-steps b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(104, 96, 82, 0.24);
  border-radius: 50%;
  font-size: 13px;
}

.review-progress-steps .active,
.review-progress-steps .done {
  color: var(--ink);
  font-weight: 800;
}

.review-progress-steps .active b,
.review-progress-steps .done b {
  border-color: rgba(10, 139, 131, 0.3);
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.review-reveal > * {
  opacity: 0;
  transform: translateY(8px);
  animation: revealStep 360ms ease forwards;
}

.review-reveal > *:nth-child(2) { animation-delay: 90ms; }
.review-reveal > *:nth-child(3) { animation-delay: 180ms; }
.review-reveal > *:nth-child(4) { animation-delay: 270ms; }
.review-reveal > *:nth-child(5) { animation-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  .review-progress-bar i {
    transition: none;
  }

  .review-reveal > * {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.receipt-actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr;
  margin-top: auto;
  padding-top: 8px;
  background: linear-gradient(180deg, rgba(255, 253, 247, 0), rgba(255, 253, 247, 0.96) 28%);
}

.receipt-actions .primary-button,
.receipt-actions .ghost-button {
  min-height: 42px;
  padding: 9px 10px;
  font-size: 14px;
}

.summary-layout {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 22px;
  padding-bottom: 72px;
}

.score-row {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 18px;
}

.score-card {
  padding: 26px;
}

.score-card h2,
.metric-card h3 {
  margin: 0 0 14px;
}

.score-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--teal-dark);
  font-size: 92px;
  font-weight: 800;
  line-height: 1;
}

.score-value span {
  color: #333;
  font-size: 28px;
  font-weight: 500;
}

.metric-card {
  padding: 22px;
}

.metric-card strong {
  display: block;
  margin-top: 14px;
  font-size: 52px;
  font-weight: 500;
}

.metric-card p {
  margin: 10px 0 0;
  color: var(--teal-dark);
  font-size: 15px;
}

.summary-mail {
  padding: 28px;
}

.summary-mail h2 {
  margin: 0 0 16px;
}

.summary-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.summary-columns h3 {
  margin: 0 0 10px;
  color: var(--teal-dark);
}

.summary-columns ul {
  margin: 0;
  padding-left: 20px;
  color: #374042;
  line-height: 1.85;
}

.summary-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.homework-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(24, 30, 31, 0.42);
}

.homework-card {
  width: min(680px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 252, 241, 0.98), rgba(250, 245, 231, 0.98)),
    var(--paper-fiber);
  background-size: auto, var(--paper-fiber-size);
  box-shadow: 0 24px 70px rgba(32, 41, 42, 0.28);
  padding: 28px;
}

.homework-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.homework-head h2 {
  margin: 0;
  font-size: 30px;
}

.homework-copy {
  display: grid;
  gap: 16px;
  padding-top: 20px;
  font-size: 22px;
  line-height: 1.85;
  color: var(--ink);
}

.homework-copy p {
  margin: 0;
}

.teacher-layout {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto auto;
  gap: 18px;
}

.teacher-panel {
  padding: 26px;
  overflow: hidden;
}

.teacher-panel h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.diagnosis-table-wrap {
  margin-top: 22px;
  overflow: auto;
  border: 1px solid rgba(104, 96, 82, 0.22);
  border-radius: var(--radius);
}

.diagnosis-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: rgba(255, 253, 247, 0.78);
}

.diagnosis-table th,
.diagnosis-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(104, 96, 82, 0.16);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.45;
}

.diagnosis-table th {
  color: var(--teal-dark);
  background: rgba(220, 239, 235, 0.62);
  font-weight: 800;
  white-space: nowrap;
}

.diagnosis-table tr:last-child td {
  border-bottom: 0;
}

.status-ok,
.status-warn {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 800;
}

.status-ok {
  background: rgba(47, 138, 80, 0.12);
  color: var(--green);
}

.status-warn {
  background: rgba(216, 102, 74, 0.12);
  color: #bd4b32;
}

.lesson-card.active {
  cursor: pointer;
}

.lesson3-info {
  display: grid;
  gap: 18px;
}

.lesson3-intro {
  padding: 28px 32px;
}

.lesson3-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.lesson3-flow span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 800;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.platform-card,
.platform-table-card,
.l3-fact-card {
  border: 1px solid rgba(104, 96, 82, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.9);
  box-shadow: var(--shadow-soft);
}

.platform-card {
  padding: 18px;
}

.platform-card h3 {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 22px;
}

.platform-card p,
.platform-card li {
  color: #3d484a;
  font-size: 14px;
  line-height: 1.55;
}

.platform-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.platform-table-card {
  padding: 20px;
}

.platform-table-card h2 {
  margin: 0;
}

.lesson3-meeting {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 310px;
  gap: 18px;
}

.l3-card-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  min-height: 0;
  overflow: auto;
}

.l3-card-stack h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.28;
}

.l3-fact-card {
  padding: 14px;
  box-shadow: none;
}

.l3-fact-card h3 {
  margin: 0 0 10px;
  color: var(--teal-dark);
}

.l3-fact-card p {
  display: grid;
  gap: 3px;
  margin: 0 0 10px;
}

.l3-fact-card p:last-child {
  margin-bottom: 0;
}

.l3-fact-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.l3-fact-card strong {
  font-size: 14px;
  line-height: 1.45;
}

.l3-chat-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  padding: 18px;
}

.l3-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(104, 96, 82, 0.16);
}

.l3-chat-head h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.l3-chat-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.l3-chat-log {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 4px;
  overflow: auto;
  scroll-behavior: smooth;
}

.chat-message {
  max-width: 82%;
  padding: 11px 13px;
  border: 1px solid rgba(104, 96, 82, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.chat-message.student {
  align-self: flex-end;
  background: var(--teal-soft);
}

.chat-message.ai {
  align-self: flex-start;
}

.chat-message strong {
  display: block;
  margin-bottom: 5px;
  color: var(--teal-dark);
  font-size: 13px;
}

.chat-message p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.55;
}

.hit-inline {
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  background: rgba(246, 220, 139, 0.5);
  color: #6f5420;
  font-size: 12px;
  font-weight: 800;
}

.l3-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(104, 96, 82, 0.16);
}

.l3-chat-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.l3-error {
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  background: #fff0e9;
  color: #bd4b32;
  font-size: 13px;
}

.lesson5-workshop {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr) 330px;
  gap: 18px;
}

.l5-brief,
.l5-answer-panel,
.l5-advisor-panel {
  min-height: 0;
  padding: 18px;
}

.l5-brief,
.l5-advisor-panel {
  overflow: auto;
}

.l5-brief h2,
.l5-answer-head h2,
.l5-advisor-head h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.25;
}

.l5-meta {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.l5-meta p,
.l5-brief-section {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(104, 96, 82, 0.17);
  border-radius: 7px;
  background: rgba(255, 253, 247, 0.64);
}

.l5-meta span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.l5-meta strong,
.l5-brief-section p,
.l5-advisor-head p,
.l5-answer-head p {
  color: #3d484a;
  font-size: 14px;
  line-height: 1.52;
}

.l5-brief-section {
  margin-top: 10px;
}

.l5-brief-section h3,
.l5-advice-card h3 {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 15px;
}

.l5-jd-section {
  display: grid;
  gap: 10px;
}

.l5-jd-block {
  display: grid;
  gap: 6px;
}

.l5-jd-block strong {
  color: var(--ink);
  font-size: 13px;
}

.l5-jd-block ul {
  margin: 0;
  padding-left: 18px;
  color: #3d484a;
  font-size: 13px;
  line-height: 1.58;
}

.l5-jd-block li + li {
  margin-top: 5px;
}

.l5-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.l5-chip-list span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.l5-chip-list.required span {
  background: rgba(255, 224, 138, 0.55);
  color: #7a5512;
}

.l5-answer-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 12px;
}

.l5-answer-head,
.l5-advisor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(104, 96, 82, 0.16);
}

.l5-answer-head p,
.l5-advisor-head p {
  margin: 6px 0 0;
}

.l5-answer-input {
  width: 100%;
  min-height: 0;
  resize: none;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 253, 247, 0.88), rgba(255, 253, 247, 0.88)),
    repeating-linear-gradient(0deg, rgba(62, 48, 29, 0.04) 0 1px, transparent 1px 30px);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.78;
}

.l5-answer-input:focus,
.l4-note-input:focus,
.l3-chat-input:focus {
  outline: 2px solid rgba(10, 139, 131, 0.28);
  outline-offset: 2px;
}

.l5-progress-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.l5-progress-strip button {
  min-height: 34px;
  border: 1px solid rgba(104, 96, 82, 0.2);
  border-radius: 7px;
  background: rgba(255, 253, 247, 0.75);
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.l5-progress-strip button.done {
  color: var(--teal-dark);
}

.l5-progress-strip button.advised {
  background: rgba(220, 239, 235, 0.78);
}

.l5-progress-strip button.passed {
  border-color: rgba(47, 138, 80, 0.42);
  background: rgba(222, 244, 231, 0.9);
  color: #276b3e;
}

.l5-progress-strip button.active {
  border-color: rgba(4, 112, 105, 0.46);
  background: var(--teal);
  color: #fff;
}

.l5-progress-strip button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.l5-answer-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.l5-answer-actions .primary-button,
.l5-answer-actions .ghost-button,
.l5-advice-button {
  min-height: 42px;
  padding: 9px 10px;
  font-size: 14px;
}

.l5-advisor-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.l5-advice-empty,
.l5-advice-card {
  padding: 14px;
  border: 1px solid rgba(104, 96, 82, 0.17);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.7);
}

.l5-advice-empty p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.l5-score-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.l5-score-line strong {
  color: var(--teal-dark);
  font-size: 20px;
}

.l5-score-line span {
  color: var(--ink);
  font-weight: 900;
}

.l5-advice-card p,
.l5-advice-card li {
  color: #384446;
  font-size: 14px;
  line-height: 1.55;
}

.l5-advice-card blockquote {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-left: 3px solid rgba(216, 102, 74, 0.42);
  background: rgba(255, 240, 233, 0.68);
  color: #704034;
  line-height: 1.55;
}

.l5-advice-card ul {
  margin: 0 0 12px;
  padding-left: 18px;
}

.l3-clue-board {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: auto;
}

.l3-clue-group {
  display: grid;
  gap: 7px;
}

.l3-hit-list {
  display: grid;
  gap: 6px;
}

.l3-hit-item,
.l3-hit-empty {
  min-height: 32px;
  padding: 7px 9px;
  border-radius: 7px;
  background: rgba(255, 253, 247, 0.68);
  color: #415052;
  font-size: 13px;
  line-height: 1.4;
}

.l3-hit-item {
  background: rgba(220, 239, 235, 0.78);
  color: var(--teal-dark);
  font-weight: 800;
}

.tag-list.single {
  grid-template-columns: 1fr;
}

.l3-clue-list {
  display: grid;
  gap: 10px;
}

.l3-clue-card {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(104, 96, 82, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.8);
  color: var(--ink);
  text-align: left;
}

.l3-clue-card.selected {
  border-color: rgba(8, 123, 116, 0.58);
  background: #effaf7;
}

.l3-clue-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--teal-dark);
  font-size: 16px;
}

.l3-clue-card p {
  margin: 0 0 7px;
  color: #3e484a;
  line-height: 1.55;
}

.l3-clue-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.l3-select-title {
  margin: 16px 0 8px;
  color: var(--teal-dark);
  font-size: 16px;
}

.method-list {
  display: grid;
  gap: 8px;
}

.method-card {
  min-height: 64px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(92, 84, 72, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.88);
  color: var(--ink);
  text-align: left;
}

.method-card.selected {
  border-color: rgba(8, 123, 116, 0.7);
  background: #effaf7;
  box-shadow: 0 0 0 3px rgba(10, 139, 131, 0.12);
}

.method-card strong {
  color: var(--teal-dark);
}

.method-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 1536px), (max-height: 900px) {
  .app-shell {
    padding: 8px;
  }

  .traffic-bar {
    height: 34px;
    padding: 0 14px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .window-actions {
    gap: 12px;
    font-size: 14px;
  }

  .topbar {
    height: 54px;
    gap: 12px;
    padding: 0 18px;
  }

  .brand {
    min-width: 170px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .brand-title {
    font-size: 22px;
  }

  .pill {
    min-height: 28px;
    padding: 5px 10px;
    font-size: 13px;
  }

  .icon-button {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 13px;
  }

  .plain-button,
  .primary-button,
  .ghost-button {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 15px;
  }

  .screen {
    height: calc(100% - 88px);
    padding: 14px 16px 16px;
  }

  .home-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 14px;
  }

  .hero-board,
  .note-card,
  .side-panel,
  .mail-panel,
  .paper-panel {
    padding: 14px;
  }

  .section-title {
    margin-top: 12px;
    font-size: 30px;
  }

  .section-subtitle {
    font-size: 15px;
    line-height: 1.55;
  }

  .lesson-grid {
    gap: 10px;
  }

  .lesson-card {
    min-height: 180px;
    padding: 14px;
  }

  .lesson-icon {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .lesson-card h3 {
    font-size: 20px;
  }

  .lesson-card p {
    font-size: 13px;
    line-height: 1.45;
  }

  .info-content {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 12px;
  }

  .wiki-panel,
  .vector-card {
    padding: 14px;
  }

  .wiki-panel h2 {
    font-size: 24px;
  }

  .wiki-lecture {
    gap: 10px;
    margin-top: 12px;
  }

  .lecture-entry {
    padding: 12px;
  }

  .lecture-entry h3 {
    font-size: 16px;
  }

  .lecture-entry p,
  .lecture-entry ul {
    font-size: 12px;
    line-height: 1.42;
  }

  .vector-card {
    grid-template-rows: 38px 96px 54px auto auto;
    gap: 10px;
  }

  .simple-vector {
    width: 88px;
    height: 88px;
    font-size: 38px;
  }

  .vector-copy strong {
    font-size: 18px;
  }

  .info-tabs {
    gap: 7px;
  }

  .info-tab {
    min-height: 78px;
    padding: 8px;
  }

  .info-tab-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
    font-size: 12px;
  }

  .info-tab strong {
    font-size: 13px;
  }

  .info-tab span {
    font-size: 11px;
    line-height: 1.25;
  }

  .game-layout {
    grid-template-columns: 230px minmax(0, 1fr) 390px;
    gap: 12px;
  }

  .lesson3-meeting {
    grid-template-columns: 230px minmax(0, 1fr) 250px;
    gap: 12px;
  }

  .lesson5-workshop {
    grid-template-columns: 230px minmax(0, 1fr) 260px;
    gap: 12px;
  }

  .lesson4-workbench {
    grid-template-columns: 240px minmax(0, 1fr) 280px;
    gap: 12px;
  }

  .l4-jd-dossier,
  .l4-resume-reader,
  .lesson4-shortlist-panel {
    padding: 14px;
  }

  .lesson4-resume-pool {
    grid-template-columns: repeat(6, minmax(88px, 1fr));
  }

  .panel-title,
  .l3-chat-head h2,
  .l3-card-stack h2,
  .l4-jd-dossier h2,
  .l4-panel-head h2,
  .l5-brief h2,
  .l5-answer-head h2,
  .l5-advisor-head h2 {
    font-size: 19px;
  }

  .panel-desc,
  .l3-chat-head p,
  .l4-company-profile,
  .l4-dossier-section p,
  .l4-panel-head p,
  .l5-answer-head p,
  .l5-advisor-head p,
  .l5-brief-section p {
    margin-bottom: 9px;
    font-size: 12px;
    line-height: 1.38;
  }

  .tag-groups {
    gap: 9px;
  }

  .tag-list {
    gap: 5px;
  }

  .tag-button {
    min-height: 30px;
    padding: 5px 6px;
    font-size: 12px;
  }

  .tag-dot {
    width: 17px;
    height: 17px;
    font-size: 11px;
  }

  .memo-note {
    margin-top: 8px;
    padding: 9px;
    font-size: 14px;
    line-height: 1.45;
  }

  .demand-card {
    padding: 16px 18px 12px;
  }

  .paperclip {
    display: none;
  }

  .demand-head {
    margin-bottom: 10px;
  }

  .demand-head h2 {
    font-size: 23px;
  }

  .demand-section {
    margin-bottom: 9px;
    padding: 11px 12px;
  }

  .demand-section h3 {
    font-size: 16px;
  }

  .field-grid {
    gap: 7px;
  }

  .field {
    gap: 8px;
    padding-bottom: 6px;
    font-size: 13px;
  }

  .bullet-list {
    padding-left: 17px;
    font-size: 13px;
    line-height: 1.55;
  }

  .mailbox-list {
    gap: 7px;
  }

  .mailbox-card {
    min-height: 52px;
    padding: 8px;
  }

  .mailbox-card h3 {
    font-size: 15px;
  }

  .case-tag-counter {
    margin-bottom: 8px;
    padding: 8px;
  }

  .l3-card-stack,
  .l3-chat-panel {
    padding: 14px;
  }

  .l3-fact-card {
    padding: 10px;
  }

  .l3-fact-card h3 {
    margin-bottom: 7px;
    font-size: 14px;
  }

  .l3-fact-card p {
    margin-bottom: 7px;
  }

  .l3-fact-card strong {
    font-size: 12px;
    line-height: 1.32;
  }

  .l3-chat-head {
    padding-bottom: 8px;
  }

  .l3-chat-log {
    gap: 7px;
    padding: 10px 2px;
  }

  .chat-message {
    max-width: 90%;
    padding: 8px 10px;
    font-size: 13px;
  }

  .chat-message p {
    line-height: 1.42;
  }

  .l3-chat-form {
    gap: 7px;
    padding-top: 8px;
  }

  .l3-chat-input {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .l3-clue-board {
    gap: 8px;
  }

  .l3-hit-item,
  .l3-hit-empty {
    min-height: 28px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .l3-clue-card {
    padding: 10px;
  }

  .l3-clue-card strong {
    font-size: 14px;
  }

  .l3-clue-card p {
    font-size: 13px;
    line-height: 1.4;
  }

  .method-card {
    min-height: 52px;
    padding: 8px;
  }
}

@media (max-width: 1180px) {
  .app-shell {
    height: auto;
    min-height: 100vh;
  }

  .desktop-window {
    min-height: 900px;
  }

  .screen {
    height: auto;
  }

  .home-layout,
  .game-layout,
  .info-content,
  .score-row,
  .lesson3-meeting,
  .lesson4-workbench,
  .lesson5-workshop {
    grid-template-columns: 1fr;
  }

  .lesson4-workbench {
    height: auto;
  }

  .lesson4-resume-pool {
    grid-template-columns: repeat(6, minmax(88px, 1fr));
  }

  .lesson5-workshop {
    height: auto;
  }

  .l5-answer-input {
    min-height: 360px;
  }

  .screen-game .game-layout {
    display: flex;
    flex-direction: column;
  }

  .screen-game .demand-card {
    order: 1;
  }

  .screen-game .side-panel {
    order: 2;
  }

  .screen-game .mail-panel,
  .screen-game .receipt-panel {
    order: 3;
  }

  .lesson-grid,
  .info-tabs,
  .summary-columns,
  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 8px;
  }

  .topbar {
    height: auto;
    min-height: 72px;
    padding: 14px 16px;
    flex-wrap: wrap;
  }

  .brand-title {
    font-size: 22px;
  }

  .screen {
    padding: 18px 16px 22px;
  }

  .lesson-grid,
  .info-tabs,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 30px;
  }
}

.requirement-list {
  display: grid;
  gap: 8px;
}

.requirement-chip {
  display: grid;
  gap: 4px;
  padding: 7px 10px;
  border: 1px solid rgba(83, 78, 69, 0.2);
  border-radius: 8px;
  background: rgba(255, 246, 212, 0.82);
  font-size: 13px;
  line-height: 1.35;
}

.requirement-chip strong {
  color: var(--teal-dark);
  font-size: 12px;
}

.requirement-chip.must {
  background: rgba(220, 239, 235, 0.9);
}

.lesson4-workbench {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 320px;
  gap: 14px;
}

.l4-jd-dossier,
.l4-resume-reader,
.lesson4-shortlist-panel {
  min-height: 0;
  padding: 16px;
  overflow: auto;
}

.l4-jd-dossier h2,
.l4-panel-head h2 {
  margin: 0;
  color: var(--teal-dark);
  font-size: 24px;
  line-height: 1.25;
}

.l4-company-profile,
.l4-dossier-section p,
.l4-panel-head p {
  color: #3d484a;
  font-size: 14px;
  line-height: 1.55;
}

.l4-company-profile {
  margin: 10px 0 14px;
}

.l4-dossier-section {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(83, 78, 69, 0.15);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.66);
}

.l4-dossier-section h3 {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 15px;
}

.l4-jd-list {
  margin: 0;
  padding-left: 18px;
  color: #3d484a;
  font-size: 13px;
  line-height: 1.65;
}

.l4-play-steps ol {
  margin: 0;
  padding-left: 20px;
  color: #3d484a;
  font-size: 13px;
  line-height: 1.65;
}

.l4-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(104, 96, 82, 0.16);
}

.l4-panel-head p {
  margin: 6px 0 0;
}

.resume-page-head {
  position: sticky;
  top: 58px;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(92px, auto) minmax(0, 1fr) minmax(92px, auto);
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  padding: 8px 10px;
  box-sizing: border-box;
  border: 1px solid rgba(83, 78, 69, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.68);
}

.resume-page-head strong {
  min-width: 0;
  text-align: center;
  overflow-wrap: anywhere;
}

.resume-reader-shell {
  display: block;
  min-height: 0;
}

.resume-reader-main {
  min-height: 0;
}

.resume-reader-main {
  display: grid;
  gap: 10px;
}

.resume-page {
  display: grid;
  justify-items: stretch;
  gap: 10px;
  padding-bottom: 8px;
}

.resume-block {
  width: 100%;
  min-width: 0;
  margin: 0 auto 12px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 18px 18px 16px;
  border: 1px solid rgba(83, 78, 69, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 252, 0.95);
  box-shadow: 0 8px 18px rgba(58, 49, 35, 0.05);
}

.resume-block h3 {
  margin: 0 0 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(83, 78, 69, 0.12);
  color: #1b2b2d;
  font-size: 16px;
}

.resume-block p {
  margin: 0 0 8px;
  line-height: 1.78;
}

.resume-block p:last-child {
  margin-bottom: 0;
}

.resume-note-card {
  padding: 12px;
  border: 1px solid rgba(83, 78, 69, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.76);
}

.resume-note-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.resume-note-head h3 {
  margin: 0;
  color: var(--teal-dark);
  font-size: 15px;
}

.resume-note-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.resume-note-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.resume-note-card-main {
  margin-top: 10px;
}

.l4-note-shortlist-button {
  width: 100%;
  min-height: 56px;
  margin-top: 12px;
  font-size: 16px;
}

.l4-note-input {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid rgba(10, 139, 131, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #1b2b2d;
  font-size: 14px;
  line-height: 1.5;
}

.l4-note-input:focus {
  outline: none;
  border-color: rgba(10, 139, 131, 0.45);
  box-shadow: 0 0 0 3px rgba(10, 139, 131, 0.12);
}

.resume-raw-doc {
  display: grid;
  gap: 8px;
}

.resume-raw-text {
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.75;
}

.resume-raw-text:first-child,
.resume-line-title {
  font-weight: 700;
  font-size: 15px;
}

.resume-line-heading {
  margin-top: 12px;
  color: #17383a;
  font-weight: 800;
}

.resume-field strong {
  color: #1b2b2d;
  font-weight: 800;
}

.resume-line-date {
  color: #4d5b5d;
  font-weight: 700;
}

.resume-line-list {
  padding-left: 2.1em;
  text-indent: -2.1em;
}

.lesson4-shortlist {
  grid-template-columns: minmax(210px, 0.78fr) minmax(480px, 1.5fr) minmax(300px, 0.95fr);
}

.lesson4-resume-pool {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(6, minmax(88px, 1fr));
  gap: 6px;
  margin: 0 0 10px;
  padding: 8px 0;
  overflow-x: auto;
  background:
    linear-gradient(rgba(255, 252, 242, 0.98), rgba(255, 249, 235, 0.96)),
    var(--paper-fiber);
  background-size: auto, var(--paper-fiber-size);
}

.lesson4-resume-tab {
  position: relative;
  min-height: 42px;
  padding: 8px 22px 8px 8px;
  border: 1px solid rgba(83, 78, 69, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.72);
  color: inherit;
  text-align: center;
  cursor: pointer;
}

.lesson4-resume-tab.active {
  border-color: rgba(10, 139, 131, 0.45);
  background: rgba(220, 239, 235, 0.86);
}

.lesson4-resume-tab.picked {
  box-shadow: inset 0 0 0 2px rgba(47, 138, 80, 0.18);
}

.lesson4-resume-tab.picked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  right: 8px;
  color: var(--stamp-green);
  font-size: 13px;
  font-weight: 900;
  transform: translateY(-50%);
}

.lesson4-resume-tab strong {
  display: block;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.l4-resume-brief {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 12px;
}

.l4-resume-brief > div {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(10, 139, 131, 0.18);
  border-radius: 8px;
  background: rgba(232, 248, 244, 0.58);
}

.l4-resume-brief strong {
  color: var(--teal-dark);
  font-size: 13px;
}

.l4-resume-brief span {
  color: #3d484a;
  font-size: 12px;
  line-height: 1.45;
}

.lesson4-shortlist-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.l4-top3-slots {
  display: grid;
  gap: 8px;
}

.l4-slot {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px dashed rgba(83, 78, 69, 0.22);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.58);
}

.l4-slot.filled {
  border-style: solid;
  border-color: rgba(10, 139, 131, 0.32);
  background: rgba(232, 248, 244, 0.74);
}

.l4-slot.empty {
  grid-template-columns: 32px 1fr;
  align-items: center;
  color: #6b7475;
}

.l4-slot.empty > span,
.l4-slot-main span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(10, 139, 131, 0.12);
  color: var(--teal-dark);
  font-weight: 900;
}

.l4-slot.empty strong,
.l4-slot.empty small {
  grid-column: 2;
  margin-left: -40px;
  padding-left: 42px;
}

.l4-slot-main {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.l4-slot-main strong,
.l4-slot-main small {
  grid-column: 2;
}

.l4-slot-main small,
.l4-slot.empty small,
.l4-current-pick span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.l4-slot-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.l4-evidence-tools,
.l4-top3-tools,
.l4-submit-zone {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(83, 78, 69, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.66);
}

.l4-tool-hint {
  display: none;
}

.l4-current-pick {
  display: grid;
  gap: 8px;
}

.l4-current-pick strong {
  color: var(--teal-dark);
  font-size: 15px;
}

.screen-lesson4 .text-mark {
  display: inline;
  cursor: pointer;
  border-bottom: 2px solid rgba(10, 139, 131, 0.35);
  background: rgba(10, 139, 131, 0.08);
}

.screen-lesson4 .text-mark.selected {
  background: rgba(255, 224, 138, 0.42);
  box-shadow: 0 0 0 2px rgba(213, 154, 33, 0.18);
}

.screen-lesson4 .text-mark.tagged {
  background: rgba(202, 239, 232, 0.8);
  border-bottom-color: rgba(10, 139, 131, 0.72);
}

.screen-lesson4 .mark-notes {
  margin-left: 7px;
}

.lesson4-rank-compare {
  display: grid;
  gap: 8px;
}

.lesson4-rank-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(83, 78, 69, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.72);
}

.lesson4-rank-item > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(83, 78, 69, 0.12);
  font-weight: 800;
}

.lesson4-rank-item.ok > span {
  color: #fff;
  background: var(--stamp-green);
}

.lesson4-rank-item.wrong > span {
  color: #fff;
  background: var(--red-pencil);
}

.lesson4-rank-item strong,
.lesson4-rank-item p {
  margin: 0;
}

@media (max-width: 1180px) {
  .lesson4-workbench {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .l4-jd-dossier,
  .l4-resume-reader,
  .lesson4-shortlist-panel {
    overflow: visible;
  }

  .lesson4-shortlist {
    grid-template-columns: minmax(0, 1fr);
  }

  .lesson4-shortlist-panel {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .lesson4-resume-pool {
    grid-template-columns: repeat(6, minmax(88px, 1fr));
  }

  .lesson4-pick-actions {
    grid-template-columns: 1fr;
  }
}

/* 第一节核心玩法视觉审核版 */
:root {
  --paper-fiber:
    url("./assets/decor/paper-grain.svg"),
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.72), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(246, 220, 139, 0.16), transparent 18%),
    repeating-linear-gradient(0deg, rgba(81, 64, 39, 0.035) 0 1px, transparent 1px 18px);
  --paper-fiber-size: 180px 180px, auto, auto, auto;
  --desk-ink: rgba(58, 50, 38, 0.18);
  --red-pencil: #ce503e;
  --stamp-green: #2f8a50;
  --paper-edge: #d7c9ad;
}

.screen-game {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.32), transparent 44%),
    radial-gradient(circle at 9% 18%, rgba(216, 102, 74, 0.1), transparent 21rem),
    radial-gradient(circle at 83% 8%, rgba(10, 139, 131, 0.12), transparent 24rem),
    repeating-linear-gradient(90deg, rgba(96, 78, 50, 0.045) 0 1px, transparent 1px 26px),
    linear-gradient(135deg, #e8dfcf, #f5efe1 58%, #e1eadf);
}

.screen-game::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    url("./assets/decor/paper-grain.svg"),
    linear-gradient(90deg, rgba(67, 53, 35, 0.12), transparent 14%, transparent 86%, rgba(67, 53, 35, 0.1));
  background-size: 180px 180px, auto;
  mix-blend-mode: multiply;
  opacity: 0.28;
}

.screen-game .game-layout {
  position: relative;
  z-index: 1;
}

.screen-game .side-panel,
.screen-game .mail-panel,
.screen-game .receipt-panel {
  position: relative;
  border-color: rgba(86, 73, 51, 0.3);
  background:
    linear-gradient(rgba(255, 252, 242, 0.88), rgba(255, 249, 235, 0.9)),
    var(--paper-fiber);
  background-size: auto, var(--paper-fiber-size);
  box-shadow:
    0 22px 38px rgba(58, 49, 35, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -18px 26px rgba(128, 105, 66, 0.06);
}

.screen-game .side-panel::before,
.screen-game .mail-panel::before,
.screen-game .receipt-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.36), transparent 18%, transparent 82%, rgba(121, 100, 62, 0.08)),
    repeating-linear-gradient(0deg, rgba(92, 73, 41, 0.035) 0 1px, transparent 1px 15px);
  opacity: 0.66;
}

.screen-game .panel-title {
  position: relative;
  width: fit-content;
  color: #1c2b2d;
  font-weight: 900;
}

.screen-game .tag-group-head strong {
  color: #08736d;
}

.screen-game .tag-button {
  position: relative;
  border-color: rgba(102, 85, 52, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 252, 241, 0.98), rgba(247, 239, 219, 0.94)),
    var(--paper-fiber);
  background-size: auto, var(--paper-fiber-size);
  box-shadow:
    0 5px 10px rgba(67, 54, 34, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.screen-game .tag-button:hover:not(:disabled) {
  border-color: rgba(10, 139, 131, 0.34);
  transform: translateY(-1px) rotate(-0.4deg);
}

.screen-game .tag-button.active,
.screen-game .tag-button.used {
  background:
    linear-gradient(180deg, rgba(220, 239, 235, 0.96), rgba(185, 222, 216, 0.88)),
    var(--paper-fiber);
}

.screen-game .tag-dot {
  border-radius: 6px;
  background: rgba(232, 222, 196, 0.86);
  box-shadow: inset 0 1px 2px rgba(76, 62, 39, 0.14);
}

.screen-game .memo-note {
  position: relative;
  border: 1px solid rgba(143, 112, 31, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 247, 197, 0.88), rgba(246, 220, 139, 0.72)),
    var(--paper-fiber);
  background-size: auto, var(--paper-fiber-size);
  box-shadow: 0 10px 18px rgba(80, 62, 32, 0.1);
}

.screen-game .memo-note::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 42px;
  width: 78px;
  height: 25px;
  background: url("./assets/decor/tape-teal.svg") center / contain no-repeat;
  transform: rotate(3deg);
  opacity: 0.82;
}

.screen-game .demand-card {
  border-color: rgba(93, 77, 49, 0.28);
  background:
    linear-gradient(90deg, rgba(218, 205, 177, 0.62) 0 8px, transparent 8px),
    linear-gradient(rgba(255, 253, 246, 0.92), rgba(255, 248, 232, 0.94)),
    var(--paper-fiber);
  background-size: auto, auto, var(--paper-fiber-size);
  box-shadow:
    -9px 10px 0 rgba(202, 189, 162, 0.62),
    0 30px 52px rgba(59, 49, 32, 0.18),
    0 10px 18px rgba(59, 49, 32, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -18px 28px rgba(131, 104, 62, 0.06);
  transition: transform 220ms ease, filter 220ms ease;
}

.screen-game .demand-card.is-sending {
  transform: translateX(7px) rotate(0.25deg);
  filter: saturate(0.96);
}

.screen-game .demand-card::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 42%;
  width: 176px;
  height: 43px;
  pointer-events: none;
  background: url("./assets/decor/tape-cream.svg") center / contain no-repeat;
  transform: translateX(-50%) rotate(-2deg);
  opacity: 0.88;
  z-index: 2;
}

.screen-game .demand-card::after {
  content: "";
  position: absolute;
  top: 22px;
  right: -7px;
  width: 10px;
  height: calc(100% - 42px);
  border-radius: 0 7px 7px 0;
  background:
    repeating-linear-gradient(0deg, rgba(114, 92, 55, 0.18) 0 1px, transparent 1px 8px),
    linear-gradient(90deg, var(--paper-edge), #f7edcf);
  box-shadow: 4px 6px 12px rgba(65, 52, 33, 0.12);
}

.screen-game .paperclip {
  top: 12px;
  left: 24px;
  width: 38px;
  height: 58px;
  border: 5px solid #0a8b83;
  border-radius: 19px;
  color: transparent;
  font-size: 0;
  box-shadow:
    inset 0 0 0 5px rgba(255, 255, 255, 0.35),
    4px 7px 10px rgba(29, 47, 45, 0.18);
  z-index: 3;
}

.screen-game .paperclip::before {
  content: "";
  position: absolute;
  inset: 8px 7px 7px 8px;
  border: 4px solid rgba(10, 139, 131, 0.88);
  border-radius: 14px;
  border-left-color: transparent;
}

.screen-game .paperclip::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 9px;
  width: 12px;
  height: 30px;
  border-right: 4px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
}

.screen-game .demand-head {
  padding-left: 34px;
}

.screen-game .demand-head h2 {
  position: relative;
  width: fit-content;
  font-weight: 900;
}

.screen-game .code-chip,
.screen-game .danger-chip {
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.screen-game .danger-chip {
  color: #a73d2b;
  background:
    linear-gradient(180deg, #f9d9cb, #efc0af),
    var(--paper-fiber);
}

.screen-game .demand-section {
  position: relative;
  border-color: rgba(95, 79, 50, 0.18);
  background:
    linear-gradient(rgba(255, 255, 255, 0.58), rgba(255, 252, 243, 0.62)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(126, 105, 65, 0.08) 31px 32px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(112, 90, 52, 0.08);
}

.screen-game .demand-section::before {
  content: "";
  position: absolute;
  left: 14px;
  top: -1px;
  right: 14px;
  border-top: 1px dashed rgba(126, 105, 65, 0.2);
}

.screen-game .demand-section:first-of-type {
  background:
    linear-gradient(rgba(255, 253, 245, 0.78), rgba(250, 243, 226, 0.82)),
    var(--paper-fiber);
  background-size: auto, var(--paper-fiber-size);
}

.screen-game .field {
  border-bottom-color: rgba(97, 79, 48, 0.2);
}

.screen-game .field:nth-child(odd) {
  border-right: 1px solid rgba(97, 79, 48, 0.16);
  padding-right: 12px;
}

.screen-game .text-mark {
  position: relative;
  padding: 0 2px;
  background: rgba(255, 243, 169, 0.38);
}

.screen-game .text-mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  border-radius: 999px;
  background: rgba(206, 80, 62, 0.56);
  transform: rotate(-0.6deg);
}

.screen-game .text-mark.selected {
  background: rgba(246, 220, 139, 0.4);
  box-shadow: none;
}

.screen-game .text-mark.selected::before {
  content: "";
  position: absolute;
  inset: -7px -8px -5px;
  border: 2px solid rgba(206, 80, 62, 0.72);
  border-radius: 48% 52% 43% 57%;
  transform: rotate(-1.5deg);
  pointer-events: none;
}

.screen-game .text-mark.tagged {
  background: rgba(187, 226, 220, 0.56);
  box-shadow: none;
}

.screen-game .text-mark.tagged::after {
  background: rgba(10, 139, 131, 0.7);
}

.screen-game .mark-notes {
  position: static;
  margin: 0 3px 0 8px;
  vertical-align: middle;
}

.screen-game .mark-note {
  position: relative;
  min-height: 26px;
  padding: 5px 8px 4px;
  border-color: rgba(127, 104, 45, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 247, 191, 0.98), rgba(244, 219, 126, 0.9)),
    var(--paper-fiber);
  background-size: auto, var(--paper-fiber-size);
  box-shadow: 0 5px 9px rgba(76, 61, 31, 0.12);
  transform: rotate(-1deg);
}

.screen-game .mark-note::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 18%;
  width: 38px;
  height: 12px;
  background: url("./assets/decor/tape-cream.svg") center / cover no-repeat;
  opacity: 0.72;
  transform: rotate(4deg);
}

.screen-game .case-tag-counter {
  border-color: rgba(10, 139, 131, 0.28);
  background:
    linear-gradient(180deg, rgba(220, 239, 235, 0.86), rgba(194, 225, 219, 0.76)),
    var(--paper-fiber);
  background-size: auto, var(--paper-fiber-size);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.screen-game .case-tag-counter strong {
  border: 1px solid rgba(10, 139, 131, 0.14);
  box-shadow: inset 0 2px 6px rgba(25, 84, 79, 0.08);
}

.screen-game .mailbox-list {
  gap: 12px;
}

.screen-game .mailbox-card {
  min-height: 112px;
  grid-template-rows: 58px auto;
  justify-items: center;
  align-content: center;
  gap: 6px;
  overflow: hidden;
  border-color: rgba(92, 78, 51, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.92), rgba(245, 237, 218, 0.9)),
    var(--paper-fiber);
  background-size: auto, var(--paper-fiber-size);
  box-shadow:
    0 8px 14px rgba(67, 53, 33, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.screen-game .mailbox-card:nth-child(1) {
  background-color: #eef8f5;
}

.screen-game .mailbox-card:nth-child(2) {
  background-color: #fff4dc;
}

.screen-game .mailbox-card:nth-child(3) {
  background-color: #edf2f5;
}

.screen-game .mailbox-card:nth-child(4) {
  background-color: #edf7ef;
}

.screen-game .mailbox-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(83, 70, 45, 0.12);
  border-radius: 7px;
  pointer-events: none;
}

.screen-game .mailbox-card::after {
  content: "";
  position: absolute;
  right: -14px;
  bottom: 8px;
  width: 54px;
  height: 32px;
  border: 2px solid rgba(10, 139, 131, 0.18);
  border-radius: 4px;
  transform: rotate(-12deg);
  pointer-events: none;
}

.screen-game .mailbox-card:hover:not(:disabled) {
  transform: translateY(-2px) rotate(-0.3deg);
  box-shadow: 0 15px 24px rgba(67, 53, 33, 0.13);
}

.screen-game .mailbox-card.selected {
  border-color: rgba(8, 123, 116, 0.78);
  background:
    linear-gradient(180deg, rgba(236, 251, 247, 0.96), rgba(202, 232, 226, 0.88)),
    var(--paper-fiber);
  box-shadow:
    0 0 0 3px rgba(10, 139, 131, 0.16),
    0 14px 22px rgba(53, 70, 61, 0.12);
}

.screen-game .mailbox-card.receiving {
  animation: mailboxReceive 760ms ease both;
}

.screen-game .mailbox-card:disabled {
  cursor: wait;
}

.screen-game .mailbox-illustration {
  width: 78px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 6px 6px rgba(50, 42, 28, 0.12));
  pointer-events: none;
}

.screen-game .mailbox-card h3 {
  position: relative;
  z-index: 1;
  color: #08736d;
  font-size: 17px;
}

.screen-game .audit-strip {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding: 10px 11px;
  border: 1px solid rgba(10, 139, 131, 0.22);
  border-radius: 7px;
  background: rgba(229, 246, 242, 0.78);
  color: #08736d;
  font-size: 13px;
  font-weight: 900;
}

.screen-game .audit-strip i {
  position: relative;
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(10, 139, 131, 0.14);
}

.screen-game .audit-strip i::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(10, 139, 131, 0.72), transparent);
  animation: auditScan 760ms ease-in-out infinite;
}

.screen-game .flight-mail {
  position: absolute;
  z-index: 6;
  left: 53%;
  top: 44%;
  width: 72px;
  height: 46px;
  pointer-events: none;
  animation: flyMail 760ms cubic-bezier(.2, .72, .22, 1) both;
}

.screen-game .flight-mail span {
  position: absolute;
  inset: 0;
  border: 3px solid #0a8b83;
  border-radius: 6px;
  background: #fff8e8;
  box-shadow: 0 12px 18px rgba(47, 39, 25, 0.18);
}

.screen-game .flight-mail span::before,
.screen-game .flight-mail span::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(31deg, transparent 48%, #0a8b83 50%, transparent 52%),
    linear-gradient(-31deg, transparent 48%, #0a8b83 50%, transparent 52%);
  opacity: 0.6;
}

.screen-game .flight-mail::after {
  content: "";
  position: absolute;
  left: -58px;
  top: 12px;
  width: 48px;
  height: 18px;
  border-top: 3px solid rgba(206, 80, 62, 0.46);
  border-bottom: 3px solid rgba(10, 139, 131, 0.36);
  transform: skewX(-18deg);
}

.screen-game .receipt-panel {
  padding: 12px;
  overflow: hidden;
}

.screen-game .receipt-reveal {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 16px 14px 12px 24px;
  border: 1px solid rgba(95, 79, 50, 0.22);
  border-radius: 7px;
  background:
    linear-gradient(rgba(255, 253, 246, 0.92), rgba(255, 248, 232, 0.92)),
    var(--paper-fiber);
  background-size: auto, var(--paper-fiber-size);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 16px 28px rgba(60, 48, 30, 0.12);
  animation: receiptSlide 260ms ease both;
  overflow: auto;
}

.screen-game .receipt-reveal::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 6px;
  width: 8px;
  background:
    radial-gradient(circle at 4px 5px, transparent 0 4px, rgba(134, 105, 63, 0.18) 4px 5px, transparent 6px) 0 0 / 8px 16px repeat-y;
}

.screen-game .receipt-reveal::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 54px;
  width: 132px;
  height: 68px;
  background: url("./assets/decor/stamp-pass.svg") center / contain no-repeat;
  opacity: 0.28;
  pointer-events: none;
}

.screen-game .receipt-reveal.fail::after {
  background-image: url("./assets/decor/stamp-review.svg");
  opacity: 0.36;
}

.screen-game .receipt-compact-head {
  position: relative;
  z-index: 1;
  min-height: 56px;
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(237, 247, 239, 0.88), rgba(213, 236, 220, 0.82)),
    var(--paper-fiber);
  background-size: auto, var(--paper-fiber-size);
}

.screen-game .receipt-compact-head h2 {
  font-size: 22px;
}

.screen-game .receipt-compact-head span {
  border-radius: 7px;
  font-size: 13px;
}

.screen-game .receipt-compact-head.fail {
  background:
    linear-gradient(180deg, rgba(255, 240, 233, 0.9), rgba(246, 212, 198, 0.82)),
    var(--paper-fiber);
}

.screen-game .receipt-compact-head h2::before {
  content: "";
  display: inline-block;
  width: 23px;
  height: 15px;
  margin-right: 8px;
  border: 2px solid currentColor;
  border-radius: 3px;
  background:
    linear-gradient(33deg, transparent 45%, currentColor 48%, transparent 52%),
    linear-gradient(-33deg, transparent 45%, currentColor 48%, transparent 52%);
  vertical-align: -1px;
  opacity: 0.72;
}

.screen-game .receipt-section,
.screen-game .ai-feedback,
.screen-game .stat {
  background:
    linear-gradient(rgba(255, 255, 255, 0.62), rgba(255, 252, 242, 0.66)),
    var(--paper-fiber);
  background-size: auto, var(--paper-fiber-size);
}

.screen-game .receipt-reveal .stats-grid {
  position: relative;
  z-index: 1;
  gap: 8px;
}

.screen-game .receipt-reveal .stat {
  display: grid;
  align-content: center;
  min-height: 74px;
  padding: 12px 8px;
  border: 1px solid rgba(95, 79, 50, 0.12);
}

.screen-game .receipt-reveal .stat strong {
  font-size: 30px;
}

.screen-game .receipt-section {
  position: relative;
  z-index: 1;
  padding: 13px;
}

.screen-game .receipt-section-head {
  align-items: center;
  margin-bottom: 10px;
}

.screen-game .receipt-section-head h3 {
  font-size: 17px;
}

.screen-game .tag-review-list {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 8px;
}

.screen-game .tag-review-item {
  min-height: 0;
  padding: 10px;
  background:
    linear-gradient(rgba(255, 253, 247, 0.82), rgba(247, 240, 221, 0.76)),
    var(--paper-fiber);
  background-size: auto, var(--paper-fiber-size);
}

.screen-game .tag-review-item strong {
  font-size: 14px;
}

.screen-game .tag-review-item p,
.screen-game .tag-review-item small {
  font-size: 12px;
  line-height: 1.42;
}

.screen-game .tag-review-item.ok {
  background:
    linear-gradient(rgba(237, 247, 239, 0.86), rgba(217, 239, 224, 0.78)),
    var(--paper-fiber);
}

.screen-game .tag-review-item.wrong {
  background:
    linear-gradient(rgba(255, 240, 233, 0.86), rgba(245, 220, 208, 0.78)),
    var(--paper-fiber);
}

.screen-game .tag-review-item.miss {
  background:
    linear-gradient(rgba(255, 243, 199, 0.88), rgba(244, 226, 151, 0.72)),
    var(--paper-fiber);
}

.screen-game .ai-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: transparent;
  box-shadow: 0 8px 13px rgba(10, 70, 66, 0.13);
}

.screen-game .ai-feedback {
  grid-template-columns: 46px minmax(0, 1fr);
  position: relative;
  z-index: 1;
  padding: 12px;
}

.screen-game .ai-feedback blockquote {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.45;
}

.screen-game .receipt-actions {
  position: static;
  z-index: 2;
  margin-top: 0;
  padding-top: 8px;
  background: transparent;
}

.screen-game .receipt-actions .primary-button {
  min-height: 44px;
  font-size: 15px;
}

.screen-game .reveal-step {
  opacity: 0;
  transform: translateY(8px);
  animation: revealStep 360ms ease forwards;
}

.screen-game .reveal-step:nth-child(2) { animation-delay: 90ms; }
.screen-game .reveal-step:nth-child(3) { animation-delay: 180ms; }
.screen-game .reveal-step:nth-child(4) { animation-delay: 270ms; }
.screen-game .reveal-step:nth-child(5) { animation-delay: 360ms; }
.screen-game .reveal-step:nth-child(6) { animation-delay: 450ms; }

@keyframes flyMail {
  0% {
    opacity: 0;
    transform: translate(-120px, 20px) rotate(-12deg) scale(0.72);
  }
  22% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(310px, -65px) rotate(10deg) scale(0.52);
  }
}

@keyframes auditScan {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(250%); }
}

@keyframes mailboxReceive {
  0%, 100% { transform: translateY(0) rotate(0); }
  42% { transform: translateY(-5px) rotate(-1.2deg); }
  68% { transform: translateY(2px) rotate(0.8deg); }
}

@keyframes receiptSlide {
  from {
    opacity: 0;
    transform: translateX(12px) rotate(0.4deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}

@keyframes revealStep {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1536px), (max-height: 900px) {
  .screen-game .demand-card {
    padding: 18px 20px 13px;
  }

  .screen-game .demand-head {
    padding-left: 28px;
  }

  .screen-game .mailbox-card {
    min-height: 92px;
    grid-template-rows: 44px auto;
  }

  .screen-game .mailbox-illustration {
    width: 62px;
    height: 45px;
  }

  .screen-game .mailbox-card h3 {
    font-size: 15px;
  }

  .screen-game .receipt-reveal {
    gap: 10px;
    padding: 14px 12px 10px 22px;
  }

  .screen-game .receipt-reveal .stat {
    min-height: 66px;
  }

  .screen-game .receipt-reveal .stat strong {
    font-size: 26px;
  }
}

@media (max-width: 1360px) and (min-width: 1181px) {
  .game-layout {
    grid-template-columns: 220px minmax(0, 1fr) 360px;
  }

  .screen-game .tag-review-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .screen-game {
    overflow: auto;
  }

  .screen-game .flight-mail {
    display: none;
  }

  .screen-game .tag-review-list {
    grid-template-columns: 1fr;
  }
}

/* 第一节标签交互修正：选中态、已贴标签态、单标签清除 */
.screen-game .text-mark {
  background: transparent;
}

.screen-game .text-mark::after {
  opacity: 0;
}

.screen-game .text-mark.selected:not(.tagged) {
  background: rgba(246, 220, 139, 0.42);
}

.screen-game .text-mark.selected:not(.tagged)::after {
  opacity: 1;
  background: rgba(206, 80, 62, 0.62);
}

.screen-game .text-mark.selected:not(.tagged)::before {
  content: none;
}

.screen-game .text-mark.selected.tagged {
  background: transparent;
}

.screen-game .text-mark.selected.tagged::after {
  opacity: 0;
}

.screen-game .text-mark.selected.tagged::before,
.screen-game .text-mark.tagged::before {
  content: "";
  position: absolute;
  inset: -7px -8px -5px;
  border: 2px solid rgba(206, 80, 62, 0.78);
  border-radius: 48% 52% 43% 57%;
  transform: rotate(-1.5deg);
  pointer-events: none;
}

.screen-game .text-mark.tagged {
  background: transparent;
  box-shadow: none;
}

.screen-game .text-mark.tagged::after {
  opacity: 0;
}

.screen-game .mark-note {
  gap: 5px;
  padding-right: 4px;
}

.screen-game .mark-note.tag-focus {
  border-color: rgba(10, 139, 131, 0.28);
  background:
    linear-gradient(180deg, rgba(218, 244, 237, 0.98), rgba(159, 217, 207, 0.9)),
    var(--paper-fiber);
  color: #075f5a;
}

.screen-game .mark-note.tag-issue {
  border-color: rgba(143, 112, 31, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 247, 191, 0.98), rgba(244, 219, 126, 0.9)),
    var(--paper-fiber);
  color: #71581e;
}

.screen-game .mark-note-remove {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  margin-left: 1px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.64);
  color: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  opacity: 0.78;
  transition: transform 140ms ease, opacity 140ms ease, background 140ms ease;
}

.screen-game .mark-note-remove:hover {
  opacity: 1;
  transform: scale(1.08);
  background: rgba(255, 253, 247, 0.96);
}

.screen-game .mark-note-remove:active {
  transform: scale(0.94);
}

/* 全页面沿用第一节核心玩法的纸张工作台视觉 */
.screen-home,
.screen-info,
.screen-summary,
.screen-teacher,
.screen-lesson2,
.screen-lesson3,
.screen-lesson4 {
  position: relative;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.3), transparent 44%),
    radial-gradient(circle at 9% 18%, rgba(216, 102, 74, 0.08), transparent 21rem),
    radial-gradient(circle at 83% 8%, rgba(10, 139, 131, 0.11), transparent 24rem),
    repeating-linear-gradient(90deg, rgba(96, 78, 50, 0.04) 0 1px, transparent 1px 26px),
    linear-gradient(135deg, #e8dfcf, #f5efe1 58%, #e1eadf);
}

.screen-home::before,
.screen-info::before,
.screen-summary::before,
.screen-teacher::before,
.screen-lesson2::before,
.screen-lesson3::before,
.screen-lesson4::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    url("./assets/decor/paper-grain.svg"),
    linear-gradient(90deg, rgba(67, 53, 35, 0.1), transparent 14%, transparent 86%, rgba(67, 53, 35, 0.08));
  background-size: 180px 180px, auto;
  mix-blend-mode: multiply;
  opacity: 0.24;
}

.screen-home > *,
.screen-info > *,
.screen-summary > *,
.screen-teacher > *,
.screen-lesson2 > *,
.screen-lesson3 > *,
.screen-lesson4 > * {
  position: relative;
  z-index: 1;
}

.screen-lesson2 > .homework-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.screen-home .hero-board,
.screen-home .note-card,
.screen-info .paper-panel,
.screen-info .info-tab,
.screen-summary .score-card,
.screen-summary .metric-card,
.screen-summary .summary-mail,
.screen-teacher .paper-panel,
.screen-lesson2 .paper-panel,
.screen-lesson2 .lesson2-card,
.screen-lesson2 .lesson2-evidence,
.screen-lesson2 .lesson2-receipt,
.screen-lesson3 .paper-panel,
.screen-lesson3 .lesson3-case-card,
.screen-lesson3 .lesson3-receipt,
.screen-lesson4 .paper-panel,
.screen-lesson4 .lesson4-card,
.screen-lesson4 .lesson4-receipt,
.screen-lesson4 .resume-block {
  border-color: rgba(86, 73, 51, 0.3);
  background:
    linear-gradient(rgba(255, 252, 242, 0.9), rgba(255, 249, 235, 0.91)),
    var(--paper-fiber);
  background-size: auto, var(--paper-fiber-size);
  box-shadow:
    0 22px 38px rgba(58, 49, 35, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -18px 26px rgba(128, 105, 66, 0.05);
}

.screen-home .hero-board,
.screen-info .wiki-panel,
.screen-summary .summary-mail,
.screen-teacher .teacher-panel {
  overflow: hidden;
}

.screen-home .hero-board::before,
.screen-info .wiki-panel::before,
.screen-summary .summary-mail::before,
.screen-teacher .teacher-panel::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 42%;
  width: 176px;
  height: 43px;
  pointer-events: none;
  background: url("./assets/decor/tape-cream.svg") center / contain no-repeat;
  transform: translateX(-50%) rotate(-2deg);
  opacity: 0.82;
  z-index: 2;
}

.screen-info .wiki-panel h2,
.screen-summary .score-card h2,
.screen-summary .summary-mail h2,
.screen-teacher .teacher-panel h2,
.screen-lesson2 h2,
.screen-lesson3 h2,
.screen-lesson4 h2 {
  position: relative;
  width: fit-content;
}

.screen-home .lesson-card,
.screen-info .info-tab,
.screen-summary .metric-card,
.screen-summary .score-card,
.screen-teacher .diagnosis-table-wrap {
  position: relative;
}

.screen-home .lesson-card.active,
.screen-info .info-tab.active {
  background:
    linear-gradient(180deg, rgba(236, 251, 247, 0.96), rgba(202, 232, 226, 0.88)),
    var(--paper-fiber);
  background-size: auto, var(--paper-fiber-size);
  box-shadow:
    0 0 0 3px rgba(10, 139, 131, 0.14),
    0 14px 22px rgba(53, 70, 61, 0.11);
}

.screen-home .note-card.yellow,
.screen-summary .summary-actions,
.screen-teacher .summary-actions {
  border: 1px solid rgba(143, 112, 31, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 247, 197, 0.88), rgba(246, 220, 139, 0.72)),
    var(--paper-fiber);
  background-size: auto, var(--paper-fiber-size);
  box-shadow: 0 10px 18px rgba(80, 62, 32, 0.1);
}

.screen-summary .summary-actions,
.screen-teacher .summary-actions {
  width: fit-content;
  max-width: 100%;
  justify-self: center;
  padding: 14px;
  border-radius: var(--radius);
}
