:root {
  --bg: #f7faf8;
  --surface: #ffffff;
  --surface-strong: #eef7f1;
  --ink: #10201a;
  --muted: #5c6d66;
  --soft: #dfe9e3;
  --line: #d7e5dc;
  --green: #1f8a55;
  --green-dark: #0f6d42;
  --blue: #2d6cdf;
  --coral: #e4664f;
  --amber: #d69522;
  --shadow: 0 18px 55px rgba(25, 58, 42, 0.13);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(232, 244, 237, 0.88), rgba(247, 250, 248, 0.78) 420px),
    var(--bg);
}

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

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(16px);
}

.site-header.compact {
  width: min(1280px, calc(100% - 40px));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  background: var(--green-dark);
  border-radius: 8px;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.top-nav a {
  padding: 8px 0;
}

.top-nav a:hover {
  color: var(--green-dark);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #ffffff;
  background: var(--green-dark);
  box-shadow: 0 14px 28px rgba(15, 109, 66, 0.24);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  border-color: var(--line);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 56px;
  width: min(1180px, calc(100% - 40px));
  min-height: 590px;
  margin: 0 auto;
  padding: 56px 0 66px;
}

.home-copy h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  font-weight: 820;
  letter-spacing: 0;
}

.home-copy p {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-preview {
  position: relative;
  min-height: 430px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(31, 138, 85, 0.11), transparent 58%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(237, 247, 241, 0.92));
  border: 1px solid rgba(215, 229, 220, 0.9);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview-ring {
  position: absolute;
  inset: 38px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.preview-node {
  display: grid;
  place-items: center;
  min-height: 86px;
  padding: 16px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 760;
  box-shadow: 0 14px 30px rgba(27, 71, 47, 0.1);
}

.preview-node.large {
  grid-column: span 2;
  min-height: 168px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(31, 138, 85, 0.95), rgba(45, 108, 223, 0.84)),
    var(--green);
  font-size: 30px;
}

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2,
.request-copy h2,
.content-block h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: 0;
}

.section-heading p,
.request-copy p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

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

.demo-card {
  display: grid;
  grid-template-columns: 168px 1fr;
  min-height: 210px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(26, 64, 44, 0.09);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.demo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(26, 64, 44, 0.15);
}

.demo-card-media {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #d9f0df, #f8fbf8);
}

.demo-card.animal .demo-card-media {
  background: linear-gradient(145deg, #e9e6fa, #fbf8ff);
}

.demo-card.muscle .demo-card-media {
  background: linear-gradient(145deg, #f6ded2, #fff8f4);
}

.demo-card.neuron .demo-card-media {
  background: linear-gradient(145deg, #dce4ff, #f8f9ff);
}

.demo-card.white-cell .demo-card-media {
  background: linear-gradient(145deg, #edf2fb, #ffffff);
}

.demo-card-media span {
  width: 96px;
  height: 118px;
  background:
    radial-gradient(circle at 54% 48%, rgba(255, 255, 255, 0.9) 0 16%, transparent 17%),
    radial-gradient(circle at 42% 62%, rgba(245, 189, 74, 0.86) 0 9%, transparent 10%),
    radial-gradient(circle at 61% 28%, rgba(31, 138, 85, 0.78) 0 10%, transparent 11%),
    rgba(66, 160, 92, 0.58);
  border: 2px solid rgba(19, 109, 65, 0.52);
  border-radius: 28px;
  box-shadow: inset 0 0 32px rgba(255, 255, 255, 0.8);
}

.demo-card.animal .demo-card-media span {
  width: 118px;
  height: 112px;
  background:
    radial-gradient(circle at 52% 48%, rgba(111, 77, 191, 0.85) 0 17%, transparent 18%),
    radial-gradient(circle at 29% 64%, rgba(228, 102, 79, 0.75) 0 8%, transparent 9%),
    radial-gradient(circle at 68% 30%, rgba(45, 108, 223, 0.66) 0 9%, transparent 10%),
    rgba(216, 201, 245, 0.82);
  border-color: rgba(95, 70, 174, 0.42);
  border-radius: 50%;
}

.demo-card.muscle .demo-card-media span {
  width: 124px;
  height: 74px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.58) 0 9px, transparent 9px 18px),
    linear-gradient(135deg, rgba(207, 115, 94, 0.76), rgba(126, 104, 186, 0.52));
  border-color: rgba(207, 115, 94, 0.42);
  border-radius: 36px;
}

.demo-card.neuron .demo-card-media span {
  width: 122px;
  height: 108px;
  background:
    radial-gradient(circle at 35% 48%, rgba(104, 119, 215, 0.88) 0 19%, transparent 20%),
    linear-gradient(28deg, transparent 47%, rgba(104, 119, 215, 0.72) 48% 53%, transparent 54%),
    linear-gradient(155deg, transparent 47%, rgba(231, 187, 104, 0.74) 48% 53%, transparent 54%),
    rgba(213, 221, 251, 0.8);
  border-color: rgba(104, 119, 215, 0.36);
  border-radius: 42px;
}

.demo-card.white-cell .demo-card-media span {
  width: 112px;
  height: 108px;
  background:
    radial-gradient(circle at 48% 44%, rgba(186, 111, 156, 0.75) 0 20%, transparent 21%),
    radial-gradient(circle at 28% 66%, rgba(146, 169, 209, 0.66) 0 9%, transparent 10%),
    radial-gradient(circle at 69% 28%, rgba(226, 178, 107, 0.66) 0 8%, transparent 9%),
    rgba(237, 242, 251, 0.86);
  border-color: rgba(146, 169, 209, 0.46);
  border-radius: 50%;
}

.demo-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 28px;
}

.demo-card-body strong {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.demo-card-body span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.delivery-shell {
  border-top: 1px solid var(--line);
}

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

.flow-item {
  min-height: 188px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.flow-item span {
  display: block;
  color: var(--green);
  font-size: 13px;
  font-weight: 820;
}

.flow-item strong {
  display: block;
  margin-top: 22px;
  font-size: 19px;
}

.flow-item p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.request-shell {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 50px;
  padding: 48px;
  background: #10251c;
  border-radius: 8px;
  color: #ffffff;
}

.request-copy p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
}

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

.request-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 720;
}

.request-form input,
.request-form select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  color: #10201a;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  outline: none;
}

.request-form input:focus,
.request-form select:focus {
  border-color: #78d3a5;
  box-shadow: 0 0 0 3px rgba(120, 211, 165, 0.18);
}

.request-form .button,
.form-status {
  grid-column: span 2;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: #a5e7c3;
  font-size: 14px;
  line-height: 1.5;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 38px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.studio-page {
  --studio-bg: #f4f0e8;
  --studio-panel: rgba(255, 252, 246, 0.88);
  --studio-panel-strong: #fffdf8;
  --studio-ink: #282522;
  --studio-muted: #817b70;
  --studio-soft: #eee6d8;
  --studio-line: rgba(60, 52, 42, 0.11);
  --studio-lavender: #aaa4cc;
  --studio-lavender-dark: #706aa2;
  --studio-violet: #746faf;
  --studio-rose: #bd6f9f;
  --studio-blue: #6877d7;
  --studio-green: #65a76a;
  min-height: 100vh;
  color: var(--studio-ink);
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.9), rgba(244, 240, 232, 0.96) 420px),
    var(--studio-bg);
  overflow: hidden;
}

.studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1920px, calc(100% - 32px));
  height: 88px;
  margin: 0 auto;
}

.studio-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 16px;
}

.studio-brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  place-items: center;
  color: #ffffff;
  background:
    radial-gradient(circle at 42% 34%, rgba(255, 255, 255, 0.56), transparent 31%),
    linear-gradient(135deg, #8179bf, #6f75b9);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(112, 106, 162, 0.24);
}

.studio-brand-mark svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.studio-brand-copy {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 18px;
}

.studio-brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.1vw, 52px);
  font-weight: 520;
  line-height: 1;
  white-space: nowrap;
}

.studio-brand-copy em {
  color: var(--studio-violet);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-style: italic;
  font-weight: 650;
  white-space: nowrap;
}

.studio-nav {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 7px;
  background: rgba(255, 252, 246, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(78, 68, 56, 0.08);
}

.studio-nav a {
  display: grid;
  min-width: 72px;
  min-height: 58px;
  place-items: center;
  gap: 5px;
  padding: 7px 11px;
  color: #817b70;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 740;
}

.studio-nav a.active,
.studio-nav a:hover {
  color: var(--studio-ink);
  background: #ffffff;
}

.studio-nav svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.studio-shell {
  display: grid;
  grid-template-columns: 286px minmax(520px, 1fr) 306px;
  gap: 18px;
  width: min(1920px, calc(100% - 32px));
  height: calc(100vh - 104px);
  min-height: 720px;
  margin: 0 auto 16px;
}

.studio-sidebar,
.studio-inspector {
  display: grid;
  min-height: 0;
  gap: 16px;
}

.studio-sidebar {
  grid-template-rows: minmax(350px, 0.62fr) minmax(220px, 0.38fr);
}

.studio-inspector {
  grid-template-rows: auto minmax(180px, auto) minmax(220px, 1fr);
  overflow: hidden;
}

.studio-panel,
.studio-detail-card {
  min-height: 0;
  background: var(--studio-panel);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 20px 42px rgba(66, 58, 48, 0.08);
  backdrop-filter: blur(18px);
}

.studio-panel {
  overflow: hidden;
}

.studio-panel-heading,
.detail-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid var(--studio-line);
}

.studio-panel-heading h2,
.detail-card-heading h2,
.studio-view-card h2 {
  margin: 0;
  color: #5f594f;
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.studio-panel-heading span,
.detail-card-heading span {
  color: #aaa296;
  font-size: 12px;
  font-weight: 720;
}

.layer-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--studio-line);
}

.layer-toolbar label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  color: #625b51;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(62, 52, 42, 0.08);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.layer-toolbar input {
  width: 14px;
  height: 14px;
  accent-color: var(--studio-violet);
}

.annotation-editor-tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 14px 8px;
}

.annotation-editor-tools button {
  min-height: 30px;
  padding: 0 6px;
  color: #625b51;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(62, 52, 42, 0.08);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.annotation-editor-tools button.active,
.annotation-editor-tools button:hover {
  color: #ffffff;
  background: var(--studio-violet);
  border-color: transparent;
}

.annotation-editor-status {
  min-height: 30px;
  margin: 0;
  padding: 0 14px 9px;
  color: var(--studio-violet);
  font-size: 12px;
  font-weight: 690;
  line-height: 1.45;
}

.cell-type-list,
.organelle-list {
  display: grid;
  gap: 8px;
  max-height: calc(100% - 58px);
  padding: 14px;
  overflow: auto;
}

.cell-type-row {
  --thumb-a: #cfc8f1;
  --thumb-b: #847cc2;
  --thumb-c: #e074aa;
  display: grid;
  grid-template-columns: 58px 1fr 24px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 7px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.cell-type-row:hover,
.cell-type-row.active {
  background: rgba(235, 232, 251, 0.62);
  border-color: rgba(123, 117, 175, 0.18);
}

.cell-type-row:hover {
  transform: translateY(-1px);
}

.cell-type-row.theme-plant {
  --thumb-a: #d5ead0;
  --thumb-b: #73ad66;
  --thumb-c: #e1a952;
}

.cell-type-row.theme-animal {
  --thumb-a: #d7d0f2;
  --thumb-b: #7b72bb;
  --thumb-c: #db6e96;
}

.cell-type-row.theme-muscle {
  --thumb-a: #f5d8cc;
  --thumb-b: #cf735e;
  --thumb-c: #7f68ba;
}

.cell-type-row.theme-neuron {
  --thumb-a: #d5ddfb;
  --thumb-b: #6877d7;
  --thumb-c: #e7bb68;
}

.cell-type-row.theme-white-cell {
  --thumb-a: #edf2fb;
  --thumb-b: #92a9d1;
  --thumb-c: #ba6f9c;
}

.cell-type-thumb {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background:
    radial-gradient(circle at 38% 34%, rgba(255, 255, 255, 0.84), transparent 28%),
    linear-gradient(135deg, var(--thumb-a), var(--thumb-b));
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.38);
}

.cell-type-thumb span {
  width: 21px;
  height: 21px;
  background:
    radial-gradient(circle at 28% 34%, var(--thumb-c) 0 17%, transparent 18%),
    radial-gradient(circle at 68% 68%, rgba(255, 255, 255, 0.74) 0 16%, transparent 17%),
    rgba(255, 255, 255, 0.42);
  border: 2px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
}

.cell-type-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.cell-type-copy strong {
  overflow: hidden;
  font-family: Georgia, "Times New Roman", "PingFang SC", serif;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell-type-copy small {
  overflow: hidden;
  color: #918a7d;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell-type-star {
  width: 20px;
  height: 20px;
  opacity: 0;
  fill: var(--studio-violet);
}

.cell-type-row.active .cell-type-star {
  opacity: 1;
}

.organelle-list {
  gap: 6px;
  max-height: calc(100% - 58px);
}

.organelle-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 7px 8px;
  text-align: left;
  color: var(--studio-ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.organelle-dot {
  display: block;
  width: 9px;
  height: 9px;
  margin-left: 6px;
  color: transparent;
  background: var(--studio-blue);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(104, 119, 215, 0.11);
}

.organelle-row.active .organelle-dot {
  background: var(--studio-rose);
  box-shadow: 0 0 0 4px rgba(189, 111, 159, 0.14);
}

.layer-select-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.layer-check {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  cursor: pointer;
}

.layer-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.layer-check span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  background: #f2efe8;
  border: 1px solid rgba(104, 119, 215, 0.22);
  border-radius: 6px;
  box-shadow: none;
}

.layer-check span::after {
  width: 8px;
  height: 8px;
  content: "";
  background: transparent;
  border-radius: 3px;
}

.layer-check input:checked + span::after {
  background: var(--studio-blue);
}

.layer-select {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.organelle-row strong {
  min-width: 0;
  color: #4c4741;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
}

.organelle-row small {
  overflow: hidden;
  max-width: 100%;
  color: #948d82;
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.organelle-row.active {
  background: rgba(235, 232, 251, 0.75);
  border-color: rgba(123, 117, 175, 0.18);
}

.organelle-row.active .layer-check input:checked + span::after {
  background: var(--studio-rose);
}

.studio-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 36% 26%, rgba(255, 255, 255, 0.42), transparent 27%),
    linear-gradient(135deg, #cbc8df 0%, #a8a2cc 45%, #928bbd 100%);
  border: 12px solid rgba(255, 252, 246, 0.68);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    0 28px 58px rgba(74, 66, 92, 0.16);
}

.editing-annotations .studio-stage model-viewer {
  cursor: crosshair;
}

.studio-stage model-viewer {
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: transparent;
}

.studio-stage:fullscreen {
  width: 100vw;
  height: 100vh;
  border: 0;
  border-radius: 0;
}

.studio-stage.stage-expanded {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100vw;
  height: 100vh;
  border: 0;
  border-radius: 0;
}

.studio-stage:fullscreen model-viewer {
  height: 100vh;
}

.studio-stage.stage-expanded model-viewer {
  height: 100vh;
}

.studio-stage:fullscreen .studio-view-card {
  right: 24px;
  top: 24px;
}

.studio-stage.stage-expanded .studio-view-card {
  right: 24px;
  top: 24px;
}

.studio-stage:fullscreen .studio-stage-status {
  right: 24px;
  bottom: 24px;
  left: 24px;
}

.studio-stage.stage-expanded .studio-stage-status {
  right: 24px;
  bottom: 24px;
  left: 24px;
}

.studio-stage .hotspot {
  color: #ffffff;
  background: #7a6fc1;
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 22px rgba(92, 80, 160, 0.32);
}

.studio-stage .hotspot.active {
  background: #bf6f9e;
}

.studio-focus-note {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 4;
  display: grid;
  width: 150px;
  gap: 8px;
  padding: 16px;
  color: #726853;
  background: rgba(246, 235, 184, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(75, 63, 35, 0.1);
  transform: rotate(-2deg);
}

.studio-focus-note strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-style: italic;
}

.studio-focus-note span {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}

.studio-title-chip {
  position: absolute;
  top: 18px;
  left: 184px;
  z-index: 4;
  display: grid;
  width: 158px;
  gap: 3px;
  padding: 10px 14px;
  text-align: center;
  background: rgba(255, 252, 246, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  box-shadow: 0 16px 30px rgba(75, 66, 92, 0.1);
  transform: none;
}

.studio-title-chip span {
  color: #a7a097;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.studio-title-chip strong {
  font-family: Georgia, "Times New Roman", "PingFang SC", serif;
  font-size: 22px;
  font-weight: 560;
  line-height: 1.05;
}

.studio-view-card {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 244px;
  padding: 16px;
  background: rgba(255, 252, 246, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(70, 62, 82, 0.11);
  transition:
    width 180ms ease,
    padding 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.view-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.view-card-toggle {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #6f67ad;
  background: #ffffff;
  border: 1px solid rgba(112, 106, 162, 0.16);
  border-radius: 8px;
  cursor: pointer;
}

.view-card-toggle:hover {
  color: var(--studio-violet);
  background: #eeebfb;
}

.view-card-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.view-card-toggle .icon-expand {
  display: none;
}

.studio-view-card.is-minimized {
  width: 54px;
  padding: 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.studio-view-card.is-minimized h2,
.studio-view-card.is-minimized .view-card-body {
  display: none;
}

.studio-view-card.is-minimized .view-card-heading {
  justify-content: center;
}

.studio-view-card.is-minimized .view-card-toggle {
  width: 54px;
  height: 54px;
  color: #5c584f;
  background: rgba(255, 252, 246, 0.9);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 38px rgba(70, 62, 82, 0.11);
}

.studio-view-card.is-minimized .view-card-toggle:hover {
  color: var(--studio-violet);
  background: #ffffff;
}

.studio-view-card.is-minimized .icon-minimize {
  display: none;
}

.studio-view-card.is-minimized .icon-expand {
  display: block;
}

.view-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.view-mode-grid button,
.stage-action-row button,
.detail-card-heading button {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #5c584f;
  background: #ffffff;
  border: 1px solid rgba(62, 52, 42, 0.08);
  border-radius: 8px;
  cursor: pointer;
}

.view-mode-grid button.active,
.view-mode-grid button:hover,
.stage-action-row button:hover {
  color: var(--studio-violet);
  background: #eeebfb;
  border-color: rgba(112, 106, 162, 0.2);
}

.view-mode-grid svg,
.stage-action-row svg,
.detail-card-heading svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.cross-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  color: #786f65;
  font-size: 13px;
  font-weight: 720;
}

.cross-section-toggle input {
  width: 42px;
  height: 24px;
  appearance: none;
  background: #e5e0d7;
  border-radius: 999px;
  cursor: pointer;
}

.cross-section-toggle input::before {
  display: block;
  width: 18px;
  height: 18px;
  margin: 3px;
  content: "";
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(56, 48, 40, 0.18);
  transition: transform 160ms ease;
}

.cross-section-toggle input:checked {
  background: var(--studio-violet);
}

.cross-section-toggle input:checked::before {
  transform: translateX(18px);
}

.stage-action-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.stage-action-row button {
  width: auto;
  height: 42px;
}

.studio-stage-status {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 4;
  min-height: 34px;
  padding: 9px 14px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 690;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(12px);
}

.studio-detail-card {
  overflow: auto;
}

.detail-card-heading button {
  width: 38px;
  height: 38px;
  color: var(--studio-rose);
}

.detail-identity {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  align-items: center;
  padding: 24px 18px 18px;
}

.detail-orb {
  --orb-a: #d7d0f2;
  --orb-b: #7b72bb;
  --orb-c: #db6e96;
  display: block;
  width: 64px;
  height: 64px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.78), transparent 28%),
    radial-gradient(circle at 58% 58%, var(--orb-c) 0 16%, transparent 17%),
    linear-gradient(135deg, var(--orb-a), var(--orb-b));
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.35);
}

.detail-orb.theme-plant {
  --orb-a: #d5ead0;
  --orb-b: #73ad66;
  --orb-c: #e1a952;
}

.detail-orb.theme-muscle {
  --orb-a: #f5d8cc;
  --orb-b: #cf735e;
  --orb-c: #7f68ba;
}

.detail-orb.theme-neuron {
  --orb-a: #d5ddfb;
  --orb-b: #6877d7;
  --orb-c: #e7bb68;
}

.detail-orb.theme-white-cell {
  --orb-a: #edf2fb;
  --orb-b: #92a9d1;
  --orb-c: #ba6f9c;
}

.detail-identity h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "PingFang SC", serif;
  font-size: 28px;
  font-weight: 560;
  line-height: 1.1;
}

.detail-identity p {
  margin: 5px 0 0;
  color: #948d82;
  font-size: 13px;
  font-weight: 660;
}

.detail-facts {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0 18px 20px;
}

.detail-facts div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
}

.detail-facts dt {
  color: #aaa296;
  font-size: 13px;
  font-weight: 720;
}

.detail-facts dd {
  margin: 0;
  color: #514b43;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}

.studio-detail-card > p {
  margin: 0;
  padding: 22px 18px 0;
  color: #5d554a;
  font-family: Georgia, "Times New Roman", "PingFang SC", serif;
  font-size: 16px;
  line-height: 1.75;
}

.studio-detail-card > small {
  display: block;
  padding: 18px;
  color: var(--studio-violet);
  font-family: Georgia, "Times New Roman", "PingFang SC", serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 650;
  line-height: 1.65;
}

.mode-content {
  padding: 16px;
}

.studio-objective-list,
.studio-step-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.studio-objective-list li,
.studio-step-list li,
.studio-task,
.studio-quiz,
.where-card {
  background: #ffffff;
  border: 1px solid rgba(62, 52, 42, 0.08);
  border-radius: 8px;
}

.studio-objective-list li {
  padding: 13px 14px;
  color: #5d554a;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
}

.where-card {
  margin-top: 12px;
  overflow: hidden;
}

.where-card strong {
  display: block;
  padding: 14px 14px 0;
  font-family: Georgia, "Times New Roman", "PingFang SC", serif;
  font-size: 18px;
  font-weight: 560;
}

.where-card p {
  margin: 0;
  padding: 10px 14px 14px;
  color: #70685d;
  font-size: 14px;
  line-height: 1.65;
}

.studio-step-list li {
  position: relative;
  padding: 15px 15px 15px 48px;
  counter-increment: studio-step;
}

.studio-step-list {
  counter-reset: studio-step;
}

.studio-step-list li::before {
  position: absolute;
  top: 15px;
  left: 14px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  content: counter(studio-step);
  color: #ffffff;
  background: var(--studio-violet);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 780;
}

.studio-step-list strong {
  display: block;
  font-size: 15px;
}

.studio-step-list p,
.studio-task p {
  margin: 7px 0 0;
  color: #70685d;
  font-size: 13px;
  line-height: 1.62;
}

.studio-task-list {
  display: grid;
  gap: 10px;
}

.studio-task {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 13px;
}

.studio-task span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: var(--studio-violet);
  background: #eeebfb;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 820;
}

.studio-task p {
  margin: 2px 0 0;
}

.studio-quiz {
  padding: 14px;
}

.studio-quiz + .studio-quiz {
  margin-top: 10px;
}

.studio-quiz h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.studio-quiz div {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.studio-quiz label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 9px;
  color: #665f55;
  background: #f7f4ed;
  border-radius: 8px;
  font-size: 13px;
}

.studio-quiz button {
  margin-top: 10px;
  padding: 0;
  color: var(--studio-violet);
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.studio-quiz p {
  min-height: 20px;
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
}

.studio-quiz p.ok {
  color: var(--green-dark);
}

.studio-quiz p.warn {
  color: var(--amber);
}

.lesson-shell {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.lesson-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.lesson-meta {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 780;
}

.lesson-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lesson-hero p:last-child {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.lesson-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
}

.courseware-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  min-height: 660px;
}

.viewer-panel,
.lesson-panel,
.content-block {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(26, 64, 44, 0.1);
}

.viewer-panel {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 660px;
  overflow: hidden;
}

model-viewer {
  width: 100%;
  height: 100%;
  min-height: 620px;
  background:
    radial-gradient(circle at 50% 46%, rgba(31, 138, 85, 0.09), transparent 50%),
    linear-gradient(180deg, #ffffff, #eef7f2);
}

.viewer-toolbar {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.viewer-toolbar button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(18, 44, 31, 0.12);
}

.viewer-toolbar button:hover,
.viewer-toolbar button.active {
  color: #ffffff;
  background: var(--green-dark);
}

.viewer-toolbar svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.model-note {
  padding: 13px 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.88);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.hotspot {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  color: #ffffff;
  background: var(--coral);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(228, 102, 79, 0.32);
  cursor: pointer;
}

.hotspot span {
  font-size: 12px;
  font-weight: 820;
  line-height: 1;
}

.hotspot.active {
  background: var(--green-dark);
  transform: scale(1.12);
}

.studio-stage .annotation-hotspot {
  display: inline-flex;
  width: auto;
  height: 30px;
  min-width: 84px;
  align-items: center;
  gap: 0;
  padding: 0;
  color: #ffffff;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: translateY(-50%);
}

.studio-stage .annotation-hotspot.active {
  background: transparent;
  transform: translateY(-50%) scale(1.04);
}

.studio-stage .annotation-hotspot.side-left {
  flex-direction: row-reverse;
  transform: translate(calc(-100% + 8px), -50%);
}

.studio-stage .annotation-hotspot.side-left.active {
  transform: translate(calc(-100% + 8px), -50%) scale(1.04);
}

.studio-stage .annotation-hotspot:not([data-visible]),
.studio-stage .annotation-hotspot.label-occluded,
.studio-stage .annotation-hotspot.label-collided {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none;
}

.studio-stage .annotation-hotspot[data-visible] {
  visibility: visible;
  opacity: 1;
}

.annotation-pin {
  display: block;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  background: #ffffff;
  border: 3px solid var(--studio-rose);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(189, 111, 159, 0.22);
}

.annotation-line {
  display: block;
  flex: 0 0 auto;
  width: 42px;
  height: 2px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 8px rgba(72, 61, 99, 0.22);
}

.annotation-name {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 116px;
  min-height: 28px;
  padding: 0 10px;
  overflow: hidden;
  color: #47413a;
  background: rgba(255, 252, 246, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(73, 63, 92, 0.16);
  font-size: 13px;
  font-weight: 780;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.annotation-hotspot.active .annotation-pin {
  border-color: var(--studio-violet);
  box-shadow: 0 0 0 5px rgba(112, 106, 162, 0.24);
}

.annotation-hotspot.active .annotation-name {
  color: #ffffff;
  background: var(--studio-violet);
}

.annotation-hotspot.hide-name {
  min-width: 50px;
}

.annotation-hotspot.hide-name .annotation-line {
  width: 34px;
}

.annotation-hotspot.hide-name .annotation-name {
  display: none;
}

.lesson-panel {
  min-height: 660px;
  overflow: hidden;
}

.panel-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.panel-tabs button {
  height: 50px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
}

.panel-tabs button:last-child {
  border-right: 0;
}

.panel-tabs button.active {
  color: var(--green-dark);
  background: var(--surface-strong);
}

.panel-section {
  display: none;
  padding: 18px;
}

.panel-section.active {
  display: block;
}

.selected-label {
  min-height: 220px;
  padding: 20px;
  background: #10251c;
  border-radius: 8px;
  color: #ffffff;
}

.selected-label-heading span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: #baf0cc;
  background: rgba(186, 240, 204, 0.12);
  border: 1px solid rgba(186, 240, 204, 0.22);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 780;
}

.selected-label p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.75;
}

.selected-label small {
  display: block;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.6;
}

.label-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.label-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.label-row span {
  color: var(--green);
  font-size: 12px;
  font-weight: 820;
}

.label-row strong {
  font-size: 15px;
}

.label-row.active {
  border-color: rgba(31, 138, 85, 0.42);
  background: var(--surface-strong);
}

.teaching-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.teaching-steps li {
  position: relative;
  padding: 18px 18px 18px 56px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  counter-increment: step;
}

.teaching-steps li::before {
  position: absolute;
  top: 18px;
  left: 16px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  content: counter(step);
  color: #ffffff;
  background: var(--green);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 820;
}

.teaching-steps strong {
  display: block;
  font-size: 16px;
}

.teaching-steps p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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

.task-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.task-item span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--green-dark);
  background: var(--surface-strong);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 820;
}

.task-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.lesson-bottom-grid {
  display: grid;
  grid-template-columns: 0.84fr 1.18fr 0.72fr;
  gap: 18px;
  margin-top: 18px;
}

.content-block {
  padding: 24px;
}

.content-block h2 {
  font-size: 22px;
}

.content-block ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 19px;
  color: var(--muted);
  line-height: 1.65;
}

.quiz-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.quiz-card {
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quiz-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.quiz-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
}

.text-button {
  margin-top: 12px;
  padding: 0;
  color: var(--green-dark);
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 780;
  cursor: pointer;
}

.quiz-result {
  min-height: 20px;
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.55;
}

.quiz-result.ok {
  color: var(--green-dark);
}

.quiz-result.warn {
  color: var(--amber);
}

.qr-block {
  display: flex;
  flex-direction: column;
}

.qr-code {
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  margin-top: 18px;
  background:
    linear-gradient(90deg, var(--ink) 12px, transparent 12px) 0 0 / 24px 24px,
    linear-gradient(var(--ink) 12px, transparent 12px) 0 0 / 24px 24px,
    #ffffff;
  border: 10px solid #ffffff;
  box-shadow: 0 12px 28px rgba(16, 32, 26, 0.12);
}

.qr-code span {
  width: 46px;
  height: 46px;
  background: #ffffff;
  border: 10px solid var(--green-dark);
}

.qr-block p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 1060px) {
  .studio-page {
    overflow: auto;
  }

  .studio-header {
    align-items: flex-start;
    height: auto;
    padding: 16px 0 10px;
  }

  .studio-brand-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .studio-brand-copy strong {
    white-space: normal;
  }

  .studio-brand-copy em {
    white-space: normal;
  }

  .studio-shell {
    grid-template-columns: 270px minmax(0, 1fr);
    height: auto;
    min-height: 0;
  }

  .studio-stage {
    min-height: 640px;
  }

  .studio-inspector {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto;
    overflow: visible;
  }

  .studio-detail-card {
    max-height: 520px;
  }

  .home-hero,
  .request-shell,
  .courseware-layout,
  .lesson-bottom-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
  }

  .courseware-layout {
    min-height: 0;
  }

  .viewer-panel,
  .lesson-panel {
    min-height: auto;
  }

  model-viewer {
    min-height: 520px;
  }

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

  .lesson-hero {
    align-items: start;
    flex-direction: column;
  }

  .lesson-actions {
    justify-content: start;
  }
}

@media (max-width: 720px) {
  .studio-header,
  .studio-shell {
    width: min(100% - 24px, 1180px);
  }

  .studio-header {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .studio-brand {
    align-items: flex-start;
  }

  .studio-brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .studio-brand-copy strong {
    font-size: 27px;
    line-height: 0.96;
  }

  .studio-brand-copy em {
    font-size: 14px;
    line-height: 1.15;
  }

  .studio-nav {
    width: 100%;
    overflow-x: auto;
    border-radius: 18px;
  }

  .studio-nav a {
    min-width: 66px;
  }

  .studio-shell,
  .studio-inspector {
    grid-template-columns: 1fr;
  }

  .studio-sidebar {
    grid-template-rows: auto auto;
  }

  .cell-type-list,
  .organelle-list {
    max-height: 360px;
  }

  .studio-stage {
    min-height: 560px;
    border-width: 8px;
  }

  .studio-focus-note {
    display: none;
  }

  .studio-title-chip {
    top: 14px;
    left: 14px;
    transform: none;
  }

  .studio-view-card {
    top: auto;
    right: 14px;
    bottom: 58px;
    width: 218px;
    padding: 12px;
  }

  .view-mode-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .view-mode-grid button,
  .stage-action-row button {
    width: 42px;
    height: 42px;
  }

  .studio-stage-status {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .studio-detail-card {
    max-height: none;
  }

  .site-header,
  .site-header.compact,
  .section-shell,
  .lesson-shell,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .top-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .home-copy h1,
  .lesson-hero h1 {
    font-size: 38px;
    line-height: 1.05;
  }

  .home-copy p,
  .lesson-hero p:last-child {
    font-size: 16px;
  }

  .home-hero,
  .section-shell {
    padding: 42px 0;
  }

  .hero-preview {
    min-height: 360px;
  }

  .preview-ring {
    inset: 20px;
    grid-template-columns: 1fr;
  }

  .preview-node.large {
    grid-column: span 1;
    min-height: 120px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .demo-grid,
  .flow-list,
  .request-form,
  .quiz-options {
    grid-template-columns: 1fr;
  }

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

  .demo-card-media {
    min-height: 170px;
  }

  .request-shell {
    padding: 28px;
  }

  .request-form .button,
  .form-status {
    grid-column: span 1;
  }

  model-viewer {
    min-height: 430px;
  }

  .lesson-panel {
    min-height: auto;
  }

  .lesson-bottom-grid {
    gap: 14px;
  }

  .site-footer {
    flex-direction: column;
  }
}
