@import url("https://fonts.googleapis.com/css2?family=Long+Cang&family=LXGW+WenKai&family=Ma+Shan+Zheng&family=Noto+Sans+SC:wght@400;700;900&family=Noto+Serif+SC:wght@400;700;900&family=ZCOOL+XiaoWei&family=Zhi+Mang+Xing&display=swap");

:root {
  --ink: #17201f;
  --muted: #5c6966;
  --paper: #f5f7f6;
  --surface: #ffffff;
  --line: #d9e0dd;
  --teal: #0f766e;
  --blue: #355c8a;
  --gold: #b38319;
  --coral: #ad4f43;
  --shadow: 0 16px 40px rgba(23, 32, 31, 0.12);
  --radius: 8px;
  --nav-height: 74px;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-heading: "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-title: "Ma Shan Zheng", "Long Cang", "Zhi Mang Xing", "Kaiti SC", "STKaiti", "KaiTi", serif;
  --title-weight: 400;
}

body[data-font-scheme="wenkai"] {
  --font-body: "LXGW WenKai", "Kaiti SC", "KaiTi", "PingFang SC", sans-serif;
  --font-heading: "LXGW WenKai", "Kaiti SC", "KaiTi", serif;
  --font-title: "LXGW WenKai", "Ma Shan Zheng", "Kaiti SC", serif;
  --title-weight: 700;
}

body[data-font-scheme="oldsong"] {
  --font-body: "Noto Serif SC", "Songti SC", "STSong", "PingFang SC", serif;
  --font-heading: "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-title: "Noto Serif SC", "Songti SC", "STSong", serif;
  --title-weight: 900;
}

body[data-font-scheme="xiaowei"] {
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-heading: "ZCOOL XiaoWei", "Noto Serif SC", "Songti SC", serif;
  --font-title: "ZCOOL XiaoWei", "Ma Shan Zheng", "Noto Serif SC", serif;
  --title-weight: 400;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  color: var(--ink);
  background: var(--paper);
  scroll-padding-top: 86px;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  background:
    linear-gradient(90deg, rgba(23, 32, 31, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 32, 31, 0.03) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  -webkit-tap-highlight-color: rgba(15, 118, 110, 0.16);
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  touch-action: manipulation;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.28);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
}

code {
  padding: 2px 5px;
  color: #0b5954;
  background: #e5f2ef;
  border-radius: 5px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) 18px 14px;
  color: #ffffff;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.topbar h1 {
  font-family: var(--font-title);
  font-size: 25px;
  font-weight: var(--title-weight);
  line-height: 1.18;
  text-shadow: 0 9px 20px rgba(0, 0, 0, 0.22);
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.eyebrow {
  margin-bottom: 4px;
  color: currentColor;
  opacity: 0.74;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.app-shell {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 16px 14px 90px;
}

.status-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.92), rgba(53, 92, 138, 0.94)),
    var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-visual {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.hero-visual img,
.visual-strip img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.hero-visual img {
  aspect-ratio: 16 / 10;
}

.status-content h2 {
  font-family: var(--font-title);
  max-width: 11em;
  font-size: 42px;
  font-weight: var(--title-weight);
  line-height: 1.08;
  text-shadow: 0 14px 24px rgba(23, 32, 31, 0.28);
}

body[data-font-scheme="seal"] .status-content h2,
body:not([data-font-scheme]) .status-content h2 {
  letter-spacing: 0.02em;
}

body[data-font-scheme="wenkai"] .status-content h2 {
  font-size: 37px;
}

body[data-font-scheme="oldsong"] .status-content h2 {
  font-size: 34px;
  letter-spacing: 0;
}

body[data-font-scheme="xiaowei"] .status-content h2 {
  font-size: 38px;
  letter-spacing: 0.03em;
}

.status-content p:not(.eyebrow) {
  max-width: 38em;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-knowledge-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  max-width: 42em;
}

.hero-knowledge-points span {
  min-height: 34px;
  padding: 7px 9px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 900;
}

.progress-panel {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 108px;
}

.progress-ring {
  position: relative;
  width: 88px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#f1c55d var(--progress, 0deg), rgba(255, 255, 255, 0.24) 0);
  font-weight: 800;
}

.progress-ring::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  background: rgba(23, 32, 31, 0.84);
}

.progress-ring span {
  position: relative;
  z-index: 1;
}

.progress-panel p {
  max-width: 9em;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  text-align: center;
}

.task-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.tab {
  min-height: 44px;
  padding: 9px 8px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
}

.tab.is-active {
  color: #ffffff;
  background: var(--ink);
  border-color: var(--ink);
}

.view {
  display: none;
}

.view.is-active {
  display: block;
  animation: rise 220ms ease-out both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 12px;
}

.section-head h2 {
  font-size: 24px;
  line-height: 1.18;
}

.brief-grid,
.compare-panel,
.protect-panel,
.specimen-tools,
.submit-layout,
.teacher-actions {
  display: grid;
  gap: 12px;
}

.brief-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

input,
select {
  height: 46px;
  padding: 0 12px;
}

textarea {
  min-height: 94px;
  padding: 10px 12px;
  resize: vertical;
}

.rules-panel,
.knowledge-card,
.order-guide article,
.compare-panel,
.protect-panel,
.submit-card,
.specimen-card,
.observation-card,
.focus-card,
.teacher-login,
.teacher-guide,
.guide-card,
.review-panel,
.submission-list,
.analytics-card,
.teacher-detail-card {
  padding: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rules-panel {
  margin-top: 14px;
}

.rules-panel h3,
.submit-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.check-line {
  grid-template-columns: 23px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 38px;
  margin: 8px 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

.check-line input {
  width: 21px;
  height: 21px;
  margin: 2px 0 0;
  accent-color: var(--teal);
}

.visual-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.visual-strip figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.visual-strip img {
  aspect-ratio: 3 / 2;
}

.visual-strip figcaption {
  display: grid;
  gap: 4px;
  padding: 12px 13px 14px;
}

.visual-strip span,
.muted {
  color: var(--muted);
}

.knowledge-grid,
.lens-grid,
.order-guide,
.teacher-guide-grid {
  display: grid;
  gap: 12px;
}

.knowledge-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.decomposition-visual {
  margin: 0 0 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(23, 32, 31, 0.08);
}

.decomposition-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.decomposition-visual figcaption {
  display: grid;
  gap: 5px;
  padding: 13px 15px 15px;
}

.decomposition-visual figcaption strong {
  font-size: 18px;
}

.decomposition-visual figcaption span {
  color: var(--muted);
}

.knowledge-card h3,
.order-guide h3,
.guide-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.25;
}

.concept-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.concept-flow span {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 8px;
  color: #0b5954;
  background: #dff1ef;
  border: 1px solid #b9ded8;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

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

.lens-grid article {
  position: relative;
  min-height: 150px;
  padding: 15px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(145deg, #17302e, #315f72);
  border-radius: var(--radius);
}

.lens-grid article:nth-child(2) {
  background: linear-gradient(145deg, #2e3b34, #62704a);
}

.lens-grid article:nth-child(3) {
  background: linear-gradient(145deg, #263748, #6a6544);
}

.lens-grid article:nth-child(4) {
  background: linear-gradient(145deg, #3a302f, #8a5948);
}

.lens-number {
  display: inline-flex;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 900;
}

.lens-grid h3 {
  margin-bottom: 7px;
  font-size: 18px;
}

.lens-grid p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.order-guide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.order-guide article {
  border-left: 4px solid var(--blue);
}

.knowledge-note {
  margin-top: 14px;
}

.knowledge-note ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.knowledge-note li + li {
  margin-top: 8px;
}

.latin-name.inline {
  display: inline;
  margin: 0;
}

.small {
  font-size: 13px;
}

.specimen-tools {
  grid-template-columns: 1fr 220px;
  margin-bottom: 12px;
}

.specimen-bank {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-height: 340px;
  overflow: auto;
  padding: 2px;
}

.specimen-card {
  min-height: 154px;
  display: grid;
}

.specimen-card strong,
.focus-card strong {
  display: block;
  margin-bottom: 3px;
}

.latin-name {
  display: block;
  margin: 2px 0 6px;
  color: #284f78;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-style: italic;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.taxonomy-line {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.specimen-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  color: var(--ink);
  background: #edf3f1;
  border: 1px solid #d3dfdb;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.pill.teal {
  color: #0b5954;
  background: #dff1ef;
  border-color: #b9ded8;
}

.pill.gold {
  color: #744d00;
  background: #f6ebcc;
  border-color: #ead395;
}

.pill.coral {
  color: #84382f;
  background: #f3e1de;
  border-color: #e3bab4;
}

.mini-button,
.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 13px;
  border-radius: var(--radius);
  font-weight: 800;
}

.mini-button,
.primary-button {
  color: #ffffff;
  background: var(--teal);
}

.secondary-button {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
}

.ghost-button {
  color: inherit;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.observation-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.observation-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.78fr) minmax(0, 1fr);
  gap: 14px;
}

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

.feature-grid,
.observe-fields {
  display: grid;
  gap: 8px 10px;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid .check-line {
  margin: 0;
  font-size: 13px;
}

.observe-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.observe-fields label:last-child {
  grid-column: 1 / -1;
}

.compare-panel,
.protect-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compare-panel label:nth-child(n + 3),
.protect-panel label:nth-child(n + 2),
.protect-panel .taxonomy-block {
  grid-column: 1 / -1;
}

.focus-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.focus-card {
  border-left: 4px solid var(--coral);
}

.taxonomy-block {
  padding: 12px;
  background: #f7faf9;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
}

.submit-layout {
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1fr);
  align-items: start;
}

.submit-card ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.report-box {
  min-height: 360px;
  max-height: 62vh;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  color: var(--ink);
  font-family: "Menlo", "Consolas", monospace;
  font-size: 13px;
  line-height: 1.65;
  background: #f7faf9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 80;
  max-width: min(92vw, 420px);
  padding: 10px 14px;
  color: #ffffff;
  background: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.teacher-shell {
  width: min(1280px, 100%);
}

.teacher-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px) auto;
  gap: 12px;
  align-items: end;
}

.is-hidden {
  display: none !important;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.teacher-guide {
  margin-bottom: 12px;
}

.teacher-guide .section-head {
  margin-top: 0;
}

.teacher-guide-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.analytics-card strong {
  display: block;
  margin-top: 4px;
  font-size: 26px;
  line-height: 1.1;
}

.teacher-actions {
  grid-template-columns: minmax(260px, 1fr) 160px auto auto;
  align-items: end;
  margin-bottom: 12px;
}

.teacher-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.submission-list {
  display: grid;
  gap: 8px;
  max-height: calc(100dvh - 260px);
  overflow: auto;
}

.submission-item {
  width: 100%;
  padding: 12px;
  color: var(--ink);
  text-align: left;
  background: #f7faf9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.submission-item.is-active {
  border-color: var(--teal);
  box-shadow: inset 4px 0 0 var(--teal);
}

.teacher-detail-grid,
.rubric-grid {
  display: grid;
  gap: 10px;
}

.teacher-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.teacher-detail-card {
  background: #f7faf9;
}

.teacher-detail-card.full {
  grid-column: 1 / -1;
}

.rubric-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.empty-state {
  padding: 40px 16px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 960px) {
  .status-band,
  .brief-grid,
  .visual-strip,
  .specimen-tools,
  .knowledge-grid,
  .order-guide,
  .concept-flow,
  .lens-grid,
  .teacher-guide-grid,
  .compare-panel,
  .protect-panel,
  .submit-layout,
  .teacher-login,
  .teacher-actions,
  .teacher-layout,
  .teacher-detail-grid,
  .rubric-grid {
    grid-template-columns: 1fr;
  }

  .specimen-bank,
  .focus-list,
  .analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .observation-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    background-size: 22px 22px;
  }

  .topbar {
    min-height: 62px;
    padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  }

  .topbar h1 {
    max-width: 10em;
    font-size: 20px;
  }

  .top-actions {
    gap: 6px;
  }

  .topbar .ghost-button {
    min-height: 36px;
    padding: 7px 10px;
    white-space: nowrap;
  }

  .app-shell {
    padding: 10px 10px calc(var(--nav-height) + 18px + env(safe-area-inset-bottom));
  }

  .status-band {
    gap: 12px;
    padding: 0 0 14px;
    overflow: hidden;
  }

  .hero-visual {
    order: -1;
    border-radius: 8px 8px 0 0;
  }

  .hero-visual img {
    aspect-ratio: 16 / 9;
    min-height: 172px;
  }

  .status-content {
    padding: 0 14px;
  }

  .status-content h2 {
    font-size: 31px;
  }

  body[data-font-scheme="wenkai"] .status-content h2,
  body[data-font-scheme="xiaowei"] .status-content h2 {
    font-size: 28px;
  }

  body[data-font-scheme="oldsong"] .status-content h2 {
    font-size: 26px;
  }

  .status-content p:not(.eyebrow) {
    font-size: 14px;
  }

  .hero-knowledge-points {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 12px;
  }

  .hero-knowledge-points span {
    min-height: 32px;
    font-size: 12px;
  }

  .progress-panel {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    padding: 0 14px;
  }

  .progress-ring {
    width: 64px;
    font-size: 14px;
  }

  .progress-ring::after {
    inset: 8px;
  }

  .progress-panel p {
    max-width: none;
    text-align: left;
  }

  .task-tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 60;
    gap: 6px;
    margin: 0;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: rgba(245, 247, 246, 0.94);
    border-top: 1px solid rgba(23, 32, 31, 0.12);
    box-shadow: 0 -12px 30px rgba(23, 32, 31, 0.14);
    backdrop-filter: blur(14px);
  }

  .tab {
    min-height: 50px;
    padding: 7px 4px;
    font-size: 12px;
  }

  .section-head {
    display: block;
    margin: 18px 0 10px;
  }

  .section-head h2 {
    font-size: 21px;
  }

  input,
  select {
    height: 48px;
    font-size: 16px;
  }

  textarea {
    min-height: 96px;
    font-size: 16px;
  }

  .check-line {
    min-height: 44px;
    align-items: center;
    font-size: 14px;
  }

  .check-line input {
    width: 22px;
    height: 22px;
    margin: 0;
  }

  .visual-strip,
  .focus-list {
    display: flex;
    gap: 10px;
    margin-inline: -10px;
    padding: 0 10px 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .visual-strip figure {
    flex: 0 0 min(84vw, 360px);
    scroll-snap-align: start;
  }

  .visual-strip img {
    aspect-ratio: 16 / 10;
  }

  .decomposition-visual {
    margin-inline: 0;
  }

  .decomposition-visual img {
    aspect-ratio: 4 / 3;
  }

  .lens-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lens-grid article {
    min-height: 156px;
    padding: 13px;
  }

  .specimen-tools,
  .teacher-actions {
    position: sticky;
    top: calc(62px + env(safe-area-inset-top));
    z-index: 18;
    margin: 0 -10px 10px;
    padding: 10px;
    background: rgba(245, 247, 246, 0.96);
    border-bottom: 1px solid rgba(23, 32, 31, 0.08);
    backdrop-filter: blur(12px);
  }

  .specimen-bank,
  .analytics-grid {
    grid-template-columns: 1fr;
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  .focus-card {
    flex: 0 0 min(76vw, 320px);
    scroll-snap-align: start;
  }

  .observe-fields,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .report-box {
    min-height: 50vh;
    font-size: 12px;
  }

  .submission-list {
    max-height: none;
  }
}
