.lesson-shell {
  width: 100%;
  margin: 0 auto;
  padding: 10px;
}

.topbar {
  display: none;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, .72);
  text-decoration: none;
  font-weight: 800;
}

.lesson-header {
  display: none;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-strong);
  font-weight: 900;
}

.lesson-header h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.lesson-header p:last-child {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2.3vw, 19px);
  line-height: 1.45;
}

.lesson-layout {
  display: grid;
  grid-template-columns: minmax(290px, 340px) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  min-height: calc(100vh - 20px);
}

.task-panel,
.object-panel,
.vocab-panel,
.room-stage-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 36px var(--shadow);
}

.work-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 160px);
  gap: 10px;
  min-height: 0;
  min-width: 0;
}

.vocab-panel {
  display: none;
}

.object-panel,
.vocab-panel {
  padding: 12px;
}

.object-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - 20px);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.panel-heading h2,
.vocab-panel h2 {
  margin: 0;
  font-size: 21px;
}

#labelModeBadge {
  display: none;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f8ef;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.object-tray,
.vocab-list {
  display: grid;
  gap: 8px;
}

.object-tray {
  flex: 1;
  grid-template-columns: 1fr;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.vocab-list {
  max-height: 650px;
  overflow: auto;
  padding-right: 2px;
}

.vocab-item {
  padding: 8px;
  border-radius: 8px;
  background: var(--paper);
}

.vocab-item strong {
  display: block;
  color: var(--accent-strong);
  line-height: 1.2;
}

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