/* AI 实训工作室 — 专业质感（Know Act 蓝调 + 模式色） */

:root {
  --as-bg: #e8eef8;
  --as-panel: rgba(255, 255, 255, .82);
  --as-panel-solid: #ffffff;
  --as-line: rgba(100, 116, 139, .18);
  --as-text: #0b1728;
  --as-muted: #5b6b81;
  --as-primary: #2f54eb;
  --as-primary-2: #4c7cff;
  --as-primary-soft: #e8eeff;
  --as-cyan: #0891b2;
  --as-cyan-soft: #e0f7fa;
  --as-mint: #0d9488;
  --as-mint-soft: #e6fffa;
  --as-amber: #d97706;
  --as-amber-soft: #fff7ed;
  --as-ok: #059669;
  --as-warn: #ea580c;
  --as-accent: var(--as-primary);
  --as-accent-soft: var(--as-primary-soft);
  --as-rail: 248px;
  --as-stage: 420px;
  --as-top: 52px;
  --as-radius: 18px;
  --as-shadow: 0 4px 6px rgba(15, 23, 42, .02), 0 12px 28px rgba(15, 23, 42, .07);
  --as-shadow-lg: 0 8px 16px rgba(15, 23, 42, .04), 0 24px 48px rgba(15, 23, 42, .10);
  --as-glow: 0 0 0 1px rgba(255, 255, 255, .55), 0 12px 32px rgba(47, 84, 235, .12);
  --as-font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

.as-page {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 560px at 6% -12%, rgba(47, 84, 235, .22), transparent 58%),
    radial-gradient(900px 500px at 96% -4%, rgba(8, 145, 178, .16), transparent 52%),
    radial-gradient(780px 460px at 70% 110%, rgba(13, 148, 136, .14), transparent 55%),
    radial-gradient(520px 320px at 40% 40%, rgba(76, 124, 255, .06), transparent 60%),
    linear-gradient(155deg, #f8faff 0%, #eef3fb 42%, #e6edf8 100%);
  color: var(--as-text);
  font-family: var(--as-font);
}

.student-portal-shell .as-page {
  top: 76px;
}

/* 三模式氛围色 */
.as-page:has(.is-lecture) {
  --as-accent: #2f54eb;
  --as-accent-soft: #e8eeff;
  background:
    radial-gradient(1100px 560px at 8% -10%, rgba(47, 84, 235, .26), transparent 58%),
    radial-gradient(820px 480px at 95% 0%, rgba(99, 102, 241, .14), transparent 50%),
    radial-gradient(700px 420px at 50% 110%, rgba(56, 189, 248, .10), transparent 55%),
    linear-gradient(155deg, #f7f9ff 0%, #eef2ff 45%, #e8eefc 100%);
}
.as-page:has(.is-tutor) {
  --as-accent: #0891b2;
  --as-accent-soft: #e0f7fa;
  background:
    radial-gradient(1100px 560px at 8% -10%, rgba(8, 145, 178, .20), transparent 58%),
    radial-gradient(820px 480px at 95% 0%, rgba(47, 84, 235, .14), transparent 50%),
    radial-gradient(700px 420px at 50% 110%, rgba(45, 212, 191, .12), transparent 55%),
    linear-gradient(155deg, #f5fbfd 0%, #eef8fb 45%, #e8f1f8 100%);
}
.as-page:has(.is-practice) {
  --as-accent: #0d9488;
  --as-accent-soft: #e6fffa;
  background:
    radial-gradient(1100px 560px at 8% -10%, rgba(13, 148, 136, .18), transparent 58%),
    radial-gradient(820px 480px at 95% 0%, rgba(47, 84, 235, .12), transparent 50%),
    radial-gradient(700px 420px at 50% 110%, rgba(251, 191, 36, .10), transparent 55%),
    linear-gradient(155deg, #f6fdfb 0%, #eefaf7 45%, #e8f3f0 100%);
}

.as-top {
  height: var(--as-top);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: rgba(255, 255, 255, .72);
  border-bottom: 1px solid var(--as-line);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .65);
}

.as-back {
  border: 1px solid rgba(226, 232, 240, .95);
  background: rgba(255, 255, 255, .9);
  color: var(--as-muted);
  border-radius: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .04);
  transition: color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.as-back:hover {
  color: var(--as-primary);
  border-color: #c7d2fe;
  box-shadow: 0 8px 16px rgba(47, 84, 235, .12);
}

.as-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.as-brand img { height: 26px; width: auto; }

.as-brand h1 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.as-brand p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--as-muted);
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-modes {
  margin-left: 18px;
  display: inline-flex;
  padding: 4px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 999px;
  gap: 2px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04), 0 8px 20px rgba(15, 23, 42, .05);
  backdrop-filter: blur(10px);
}

.as-modes button {
  border: 0;
  background: transparent;
  color: var(--as-muted);
  font-size: 13px;
  font-weight: 650;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.as-modes button:hover { color: var(--as-text); }
.as-modes button.active {
  background: linear-gradient(180deg, #ffffff, #f4f7ff);
  color: var(--as-primary);
  box-shadow: 0 6px 16px rgba(47, 84, 235, .16);
}
.as-modes button:nth-child(1).active {
  color: #2f54eb;
  background: linear-gradient(180deg, #ffffff, #eef2ff);
  box-shadow: 0 6px 16px rgba(47, 84, 235, .18);
}
.as-modes button:nth-child(2).active {
  color: #0e7490;
  background: linear-gradient(180deg, #ffffff, #e0f7fa);
  box-shadow: 0 6px 16px rgba(8, 145, 178, .18);
}
.as-modes button:nth-child(3).active {
  color: #0f766e;
  background: linear-gradient(180deg, #ffffff, #e6fffa);
  box-shadow: 0 6px 16px rgba(13, 148, 136, .18);
}

.as-top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.as-chip-btn,
.as-icon-btn {
  border: 1px solid rgba(226, 232, 240, .95);
  background: rgba(255, 255, 255, .9);
  color: var(--as-muted);
  border-radius: 12px;
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .04);
  transition: color .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.as-icon-btn { width: 34px; padding: 0; justify-content: center; font-size: 18px; }
.as-chip-btn:hover,
.as-icon-btn:hover,
.as-icon-btn.active {
  color: var(--as-primary);
  border-color: #c7d2fe;
  background: var(--as-primary-soft);
  box-shadow: 0 8px 16px rgba(47, 84, 235, .12);
}
.as-chip-btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
  border-color: transparent !important;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(79, 70, 229, .28);
}
.as-chip-btn-primary:hover { filter: brightness(1.05); color: #fff !important; }
.as-lr-rail-cta {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid rgba(99, 102, 241, .35);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, .12), rgba(255, 255, 255, .95));
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.as-lr-rail-cta i {
  width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  flex-shrink: 0;
}
.as-lr-rail-cta strong { display: block; font-size: 13px; color: #1e1b4b; }
.as-lr-rail-cta small { display: block; margin-top: 2px; font-size: 11px; color: #64748b; }
/* 学习资源 = 资源工坊同款（舞台内嵌，不跳转） */
.as-lr-frame {
  height: 100%;
  min-height: 180px;
  overflow: auto;
  padding: 0;
  background:
    radial-gradient(520px 220px at 12% -8%, rgba(91, 72, 246, .14), transparent 60%),
    radial-gradient(480px 200px at 88% 0%, rgba(135, 56, 238, .10), transparent 55%),
    linear-gradient(180deg, #f7f8ff 0%, #f3f4fb 45%, #f8fafc 100%);
  color: var(--as-text);
}
.as-lr-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 14px 14px 18px;
}
.as-lr-workshop .as-lr-hero {
  min-height: 88px;
  margin-bottom: 4px;
}
.as-lr-workshop .as-lr-hero .resource-studio-kicker {
  font-size: 11px;
}
.as-lr-workshop .as-lr-hero h1 {
  margin: 6px 0 6px;
  font-size: clamp(22px, 2.4vw, 34px);
}
.as-lr-workshop .as-lr-hero p {
  font-size: 12px;
  margin: 0;
  max-width: 520px;
}
.as-lr-workshop .resource-hero-dots {
  width: 90px;
  height: 56px;
  opacity: .28;
}
.as-lr-workshop .resource-hero-dots.left { left: 24px; }
.as-lr-workshop .resource-hero-dots.right { right: 24px; }
.as-lr-workshop .resource-prompt-card {
  margin: 8px 0 12px;
  padding: 14px 16px;
  border-radius: 18px;
}
.as-lr-workshop .resource-main-input {
  min-height: 48px;
  font-size: 15px;
  line-height: 1.55;
}
.as-lr-workshop .resource-prompt-footer {
  margin-top: 12px;
  gap: 10px;
  flex-wrap: wrap;
}
.as-lr-workshop .resource-difficulty-pills button {
  padding: 7px 12px;
  font-size: 12px;
}
.as-lr-workshop .resource-main-generate {
  min-width: 140px;
  padding: 11px 18px;
  font-size: 14px;
  border-radius: 12px;
}
.as-lr-type-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}
.as-lr-workshop .resource-experience-card {
  min-height: 0;
  padding: 8px 8px 12px;
  border-radius: 14px;
}
.as-lr-workshop .resource-experience-card img {
  height: 88px;
  border-radius: 10px;
}
.as-lr-workshop .resource-experience-card strong {
  margin: 8px 4px 2px;
  font-size: 13px;
}
.as-lr-workshop .resource-experience-card small {
  margin: 0 4px;
  font-size: 11px;
  line-height: 1.35;
}
.as-lr-workshop .resource-card-check {
  right: 10px;
  top: 10px;
  width: 22px;
  height: 22px;
  font-size: 12px;
}
.as-lr-card-done {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  color: #5b5cf6;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(91, 92, 246, .28);
  padding: 2px 6px;
  border-radius: 999px;
}
.as-lr-workshop .resource-kb-panel {
  margin-bottom: 12px;
}
.as-lr-workshop .resource-kb-head h2 {
  font-size: 16px;
}
.as-lr-workshop .resource-kb-head p {
  font-size: 12px;
}
.as-lr-preview {
  min-height: 160px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .22);
  overflow: auto;
  box-shadow: 0 10px 28px rgba(41, 48, 84, .06);
}
.as-lr-md { padding: 14px; font-size: 13px; line-height: 1.6; color: #1e293b; }
.as-lr-preview .empty,
.as-lr-preview .as-status-line {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
  padding: 20px;
}
.as-lr-anim-iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  display: block;
  background: #fff;
}
@media (max-width: 1100px) {
  .as-lr-type-strip { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* AI Studio resource workshop V3 — personalized learning resource engine */
.as-lr-v3 {
  --lr-ink: #10233f;
  --lr-muted: #64748b;
  --lr-blue: #2868f6;
  --lr-teal: #13b8a6;
  --lr-amber: #ff9d43;
  position: relative;
  padding: 18px 20px 28px;
  background:
    radial-gradient(circle at 8% 4%, rgba(55, 188, 255, .11), transparent 25%),
    radial-gradient(circle at 92% 12%, rgba(255, 171, 91, .12), transparent 27%),
    linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(244, 249, 255, .96));
}
.as-lr-v3::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image:
    linear-gradient(rgba(65, 102, 158, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 102, 158, .045) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}
.as-lr-v3 > * { position: relative; z-index: 1; }
.as-lr-v3-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(390px, 1.15fr);
  min-height: 330px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid rgba(125, 153, 196, .2);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(39, 72, 120, .14);
}
.as-lr-hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px 20px 88px 42px;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .98) 76%, rgba(255, 255, 255, .4) 100%);
}
.as-lr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  color: var(--lr-blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
}
.as-lr-eyebrow i { color: var(--lr-amber); font-size: 15px; }
.as-lr-hero-copy h1 {
  margin: 14px 0 12px;
  color: var(--lr-ink);
  font-family: "Noto Serif SC", "Noto Sans SC", sans-serif;
  font-size: clamp(36px, 4.1vw, 58px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.055em;
}
.as-lr-hero-copy h1 span {
  background: linear-gradient(105deg, #2468f5 8%, #635bdf 48%, #14b8a6 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.as-lr-hero-copy > p {
  max-width: 530px;
  margin: 0;
  color: #576b86;
  font-size: 14px;
  line-height: 1.8;
}
.as-lr-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.as-lr-hero-tags span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border: 1px solid rgba(123, 153, 197, .2);
  border-radius: 999px;
  color: #40536e;
  background: rgba(246, 250, 255, .92);
  font-size: 11px;
  font-weight: 700;
}
.as-lr-hero-tags i { color: var(--lr-blue); }
.as-lr-hero-visual {
  position: relative;
  min-width: 0;
  background: linear-gradient(135deg, #e8f5ff, #f6edff 54%, #fff3df);
}
.as-lr-hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fff 0%, transparent 24%), linear-gradient(180deg, transparent 70%, rgba(255,255,255,.62));
  pointer-events: none;
}
.as-lr-hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  object-position: 58% 48%;
  transform: scale(1.035);
  animation: as-lr-visual-breathe 8s ease-in-out infinite alternate;
}
.as-lr-float-card {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 12px;
  color: #27405f;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 12px 28px rgba(43, 77, 130, .16);
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 800;
  animation: as-lr-float 4.8s ease-in-out infinite;
}
.as-lr-float-card i { font-size: 16px; }
.as-lr-float-card.card-one { top: 15%; left: 25%; color: #335fec; }
.as-lr-float-card.card-two { right: 6%; top: 42%; color: #089e8d; animation-delay: -1.5s; }
.as-lr-float-card.card-three { left: 18%; bottom: 24%; color: #e77c22; animation-delay: -3s; }
.as-lr-hero-metrics {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 66px;
  border-top: 1px solid rgba(129, 157, 198, .18);
  background: rgba(250, 252, 255, .9);
  backdrop-filter: blur(16px);
}
.as-lr-hero-metrics div {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-right: 1px solid rgba(129, 157, 198, .16);
}
.as-lr-hero-metrics div:last-child { border-right: 0; }
.as-lr-hero-metrics strong { color: var(--lr-ink); font-size: 22px; line-height: 1; }
.as-lr-hero-metrics div:nth-child(1) strong { color: var(--lr-blue); }
.as-lr-hero-metrics div:nth-child(2) strong { color: var(--lr-teal); }
.as-lr-hero-metrics div:nth-child(3) strong { color: var(--lr-amber); font-size: 18px; }
.as-lr-hero-metrics span { color: #73839a; font-size: 10px; font-weight: 700; }
.as-lr-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.as-lr-section-heading > div > span {
  color: var(--lr-blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}
.as-lr-section-heading h2 {
  margin: 4px 0 0;
  color: var(--lr-ink);
  font-size: 22px;
  font-weight: 850;
}
.as-lr-section-heading > small { max-width: 390px; color: #7a8ca5; font-size: 11px; line-height: 1.6; text-align: right; }
.as-lr-v3 .as-lr-v3-prompt {
  margin: 0 0 18px;
  padding: 22px 24px;
  border: 1px solid rgba(129, 157, 198, .21);
  border-radius: 22px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 15px 36px rgba(39, 72, 120, .08);
}
.as-lr-v3 .resource-main-input {
  min-height: 86px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid #e4ebf5;
  border-radius: 0;
  outline: 0;
  color: var(--lr-ink);
  background: transparent;
  font-size: 16px;
  resize: vertical;
}
.as-lr-v3 .resource-main-input:focus { border-color: #4a78f7; box-shadow: 0 2px 0 rgba(74, 120, 247, .13); }
.as-lr-v3 .resource-main-generate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 178px;
  border: 0;
  color: #fff;
  background: linear-gradient(120deg, #2468f5, #6457e5 50%, #14b8a6);
  box-shadow: 0 12px 26px rgba(54, 94, 224, .25);
}
.as-lr-resource-picker {
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid rgba(129, 157, 198, .2);
  border-radius: 24px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 18px 42px rgba(39, 72, 120, .09);
}
.as-lr-core-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.as-lr-core-card {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  padding: 22px 20px 18px;
  border: 1px solid rgba(122, 151, 193, .2);
  border-radius: 21px;
  color: var(--lr-ink);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.as-lr-core-card::before,
.as-lr-core-card::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.as-lr-core-card::before { inset: 0; opacity: .9; }
.as-lr-core-card::after {
  right: -54px;
  bottom: -70px;
  width: 160px;
  height: 160px;
  border: 24px solid currentColor;
  border-radius: 50%;
  opacity: .055;
}
.as-lr-core-card.tone-blue::before { background: linear-gradient(145deg, rgba(38, 104, 246, .12), transparent 57%); }
.as-lr-core-card.tone-teal::before { background: linear-gradient(145deg, rgba(19, 184, 166, .13), transparent 57%); }
.as-lr-core-card.tone-amber::before { background: linear-gradient(145deg, rgba(255, 157, 67, .15), transparent 57%); }
.as-lr-core-card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(32, 64, 112, .14); }
.as-lr-core-card.active { border-color: currentColor; box-shadow: 0 18px 38px rgba(50, 89, 173, .18), inset 0 0 0 1px currentColor; }
.as-lr-core-card.tone-blue { color: #2868f6; }
.as-lr-core-card.tone-teal { color: #0da995; }
.as-lr-core-card.tone-amber { color: #ee882d; }
.as-lr-core-card > * { position: relative; z-index: 1; }
.as-lr-card-index { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 900; opacity: .58; }
.as-lr-card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 21px;
  border-radius: 15px;
  color: #fff;
  background: currentColor;
  box-shadow: 0 12px 24px color-mix(in srgb, currentColor 24%, transparent);
}
.as-lr-card-icon i { font-size: 23px; }
.as-lr-core-card em { display: block; margin-bottom: 5px; font-style: normal; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.as-lr-core-card > strong { display: block; color: var(--lr-ink); font-size: 19px; }
.as-lr-core-card > small { display: block; min-height: 42px; margin-top: 8px; color: #6c7e96; font-size: 11px; line-height: 1.75; }
.as-lr-card-output { display: flex; align-items: center; gap: 5px; margin-top: 15px; color: #536780; font-size: 10px; font-weight: 700; }
.as-lr-card-action { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(129, 157, 198, .17); font-size: 11px; font-weight: 850; }
.as-lr-card-action i { font-size: 18px; transition: transform .25s ease; }
.as-lr-core-card:hover .as-lr-card-action i { transform: translateX(4px); }
.as-lr-done-icon { position: absolute !important; top: 52px; right: 18px; font-size: 18px; }
.as-lr-support-row { display: grid; grid-template-columns: auto repeat(2, minmax(0, 1fr)); gap: 10px; align-items: stretch; margin-top: 13px; }
.as-lr-support-label { display: flex; align-items: center; padding: 0 8px 0 0; color: #8292a7; font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.as-lr-support-row button {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 66px;
  padding: 11px 14px;
  border: 1px solid rgba(129, 157, 198, .2);
  border-radius: 16px;
  color: #3c526e;
  background: #f8fbff;
  cursor: pointer;
  text-align: left;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.as-lr-support-row button:hover { transform: translateY(-2px); border-color: #8caaf6; background: #fff; }
.as-lr-support-row button.active { color: #335fec; border-color: #6f90f4; background: #eef4ff; box-shadow: 0 8px 20px rgba(67, 99, 190, .1); }
.as-lr-support-row button > i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #7665ed, #2ab6c8); font-size: 18px; }
.as-lr-support-row strong, .as-lr-support-row small { display: block; }
.as-lr-support-row strong { color: var(--lr-ink); font-size: 12px; }
.as-lr-support-row small { margin-top: 3px; color: #8492a6; font-size: 10px; }
.as-lr-v3 .resource-kb-panel,
.as-lr-v3 .as-lr-preview { border-radius: 22px; box-shadow: 0 16px 38px rgba(39, 72, 120, .08); }
@keyframes as-lr-visual-breathe { from { transform: scale(1.025) translate3d(0,0,0); } to { transform: scale(1.075) translate3d(-5px,-3px,0); } }
@keyframes as-lr-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (max-width: 1180px) {
  .as-lr-v3-hero { grid-template-columns: 1fr 1fr; }
  .as-lr-hero-copy { padding-left: 28px; }
  .as-lr-hero-copy h1 { font-size: 38px; }
  .as-lr-core-grid { grid-template-columns: 1fr; }
  .as-lr-core-card { min-height: 210px; }
}
@media (max-width: 820px) {
  .as-lr-v3 { padding: 12px; }
  .as-lr-v3-hero { display: block; min-height: 500px; }
  .as-lr-hero-copy { min-height: 310px; padding: 28px 22px 80px; }
  .as-lr-hero-visual { position: absolute; inset: 230px 0 0; opacity: .72; }
  .as-lr-hero-visual img { min-height: 270px; }
  .as-lr-hero-metrics div { display: block; padding: 11px; }
  .as-lr-hero-metrics span { display: block; margin-top: 4px; }
  .as-lr-section-heading { display: block; }
  .as-lr-section-heading > small { display: block; margin-top: 7px; text-align: left; }
  .as-lr-v3 .resource-prompt-footer { display: block; }
  .as-lr-v3 .resource-main-generate { width: 100%; margin-top: 12px; }
  .as-lr-resource-picker, .as-lr-v3 .as-lr-v3-prompt { padding: 18px; }
  .as-lr-support-row { grid-template-columns: 1fr; }
  .as-lr-support-label { padding: 4px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .as-lr-v3 *, .as-lr-v3 *::before, .as-lr-v3 *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.as-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: var(--as-rail) minmax(0, 1fr) var(--as-stage);
  grid-template-areas: "rail center stage";
}
.as-rail { grid-area: rail; }
.as-center { grid-area: center; }
.as-stage { grid-area: stage; }

.as-body.is-lecture {
  grid-template-columns: 220px minmax(0, 1fr);
  grid-template-areas: "rail stage";
}
.as-body.is-lecture .as-center {
  display: none !important;
}

.as-rail,
.as-center,
.as-stage {
  min-height: 0;
}

.as-rail {
  border-right: 1px solid var(--as-line);
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(16px) saturate(1.15);
}

.as-rail-head {
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--as-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(248, 250, 255, .75));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.as-rail-topic .as-rail-kicker {
  font-size: 11px;
  font-weight: 600;
  color: var(--as-muted);
  margin-bottom: 4px;
}

.as-rail-topic h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--as-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.as-rail-topic p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--as-primary);
  font-weight: 600;
}

.as-btn {
  border: 1px solid rgba(226, 232, 240, .95);
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
  color: var(--as-text);
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .04);
  transition: border-color .15s ease, color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.as-btn:hover {
  border-color: #c7d2fe;
  color: var(--as-primary);
  background: linear-gradient(180deg, #f8faff, #eef2ff);
  box-shadow: 0 8px 18px rgba(47, 84, 235, .12);
  transform: translateY(-1px);
}
.as-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.as-btn-primary {
  background: linear-gradient(135deg, #5b8cff 0%, #2f54eb 48%, #1d39c4 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 84, 235, .32), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.as-btn-primary:hover {
  background: linear-gradient(135deg, #6b98ff 0%, #3a5ef0 48%, #2440d0 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 26px rgba(47, 84, 235, .40), inset 0 1px 0 rgba(255, 255, 255, .32);
}
.as-btn-block { width: 100%; }

.as-rail-scroll {
  flex: 1;
  overflow: auto;
  padding: 8px 10px 16px;
}

.as-rail-section {
  padding: 10px 4px 6px;
}

.as-rail-section + .as-rail-section {
  border-top: 1px solid var(--as-line);
  margin-top: 4px;
  padding-top: 14px;
}

.as-rail-section-title {
  margin: 0 6px 10px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #7b8ba3;
  display: flex;
  align-items: center;
  gap: 8px;
}
.as-rail-section-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--as-accent), var(--as-primary-2));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--as-accent) 18%, transparent);
}

.as-kp-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.as-kp-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  padding: 9px 10px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--as-text);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.as-kp-item:hover {
  background: rgba(255, 255, 255, .8);
  border-color: rgba(199, 210, 254, .7);
}
.as-kp-item.active {
  background: linear-gradient(135deg, #eef2ff, #e0eaff);
  border-color: #c7d2fe;
  color: var(--as-primary);
  box-shadow: 0 6px 14px rgba(47, 84, 235, .10);
}
.as-kp-item.done { color: #067647; }
.as-kp-item.done.active {
  background: linear-gradient(135deg, #ecfdf3, #d1fadf);
  border-color: #abefc6;
  color: #067647;
  box-shadow: 0 6px 14px rgba(18, 183, 106, .10);
}

.as-kp-idx {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #eef2f7;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.as-kp-item.active .as-kp-idx {
  background: #d6e4ff;
  color: var(--as-primary);
}
.as-kp-item.done .as-kp-idx {
  background: #d1fadf;
  color: #067647;
}

.as-kp-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.as-kp-item i {
  flex-shrink: 0;
  font-size: 14px;
  color: #12b76a;
}

.as-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.as-action-item {
  border: 1px solid rgba(226, 232, 240, .95);
  background: linear-gradient(165deg, #ffffff 0%, #f7f9fc 100%);
  border-radius: 16px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: var(--as-text);
  box-shadow: var(--as-shadow);
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.as-action-item:hover {
  border-color: color-mix(in srgb, var(--as-accent) 45%, #fff);
  background: linear-gradient(180deg, #ffffff, var(--as-accent-soft));
  color: var(--as-accent);
  transform: translateY(-2px);
  box-shadow: var(--as-glow);
}

.as-action-item i {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--as-primary);
  background: linear-gradient(135deg, #eef2ff, #e0eaff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.as-action-grid > .as-action-item:nth-child(2) i {
  color: #0e7490;
  background: linear-gradient(135deg, #e0f7fa, #cffafe);
}
.as-action-grid > .as-action-item:nth-child(3) i {
  color: #0f766e;
  background: linear-gradient(135deg, #e6fffa, #ccfbf1);
}
.as-action-grid > .as-action-item:nth-child(4) i {
  color: #b45309;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
}

.as-action-item span {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
}

.as-history-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.as-history-item {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 12px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.as-history-item:hover {
  background: rgba(255, 255, 255, .75);
  border-color: rgba(226, 232, 240, .9);
}
.as-history-item.active {
  background: linear-gradient(135deg, var(--as-accent-soft), #ffffff);
  border-color: color-mix(in srgb, var(--as-accent) 35%, #fff);
  box-shadow: 0 6px 14px color-mix(in srgb, var(--as-accent) 12%, transparent);
}

.as-history-title {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--as-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.as-history-item.active .as-history-title { color: var(--as-primary); }

.as-history-time {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--as-muted);
}

/* legacy helpers kept for other panels */
.as-label {
  margin: 10px 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--as-muted);
}

.as-card {
  border: 1px solid var(--as-line);
  border-radius: 10px;
  padding: 12px;
  background: linear-gradient(180deg, #fbfcff, #fff);
  margin-bottom: 12px;
}

.as-card h3 { margin: 0 0 6px; font-size: 13px; }
.as-card p { margin: 0; font-size: 12px; color: var(--as-muted); line-height: 1.5; }

.as-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.as-tag {
  border: 1px solid #dbe3ef;
  background: #f8fafc;
  color: #334155;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}
.as-tag.active { border-color: #adc6ff; background: var(--as-primary-soft); color: var(--as-primary); }
.as-tag.done { border-color: #abefc6; background: #ecfdf3; color: #067647; }

.as-list-item {
  display: flex;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 2px;
}
.as-list-item:hover,
.as-list-item.active { background: var(--as-primary-soft); }
.as-list-item i { color: var(--as-primary); font-size: 16px; margin-top: 1px; }
.as-list-item strong { display: block; font-size: 12px; }
.as-list-item small { color: var(--as-muted); font-size: 11px; }

.as-center {
  display: flex;
  flex-direction: column;
  background: transparent;
  padding: 12px;
  gap: 10px;
}

.as-workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .78)),
    radial-gradient(600px 240px at 20% 0%, color-mix(in srgb, var(--as-accent) 10%, transparent), transparent 70%);
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--as-shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px) saturate(1.2);
}

.as-mainpane {
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

.as-pane-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.as-pane-title h2 { margin: 0; font-size: 16px; }
.as-pane-title p { margin: 4px 0 0; font-size: 12px; color: var(--as-muted); }

.as-outline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.as-outline li {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 6px 14px rgba(15, 23, 42, .04);
}
.as-outline li.current {
  border-color: #adc6ff;
  background: linear-gradient(135deg, #eef2ff, #e0eaff);
  box-shadow: 0 10px 20px rgba(47, 84, 235, .10);
}
.as-outline li.done {
  border-color: #abefc6;
  background: linear-gradient(135deg, #f6fef9, #ecfdf3);
}
.as-idx {
  width: 24px; height: 24px; border-radius: 6px;
  background: #eef2ff; color: var(--as-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}

.as-subtitle {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.6;
  min-height: 48px;
}

.as-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.as-media-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.as-media {
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}
.as-media-head {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(226, 232, 240, .85);
  font-size: 12px;
  font-weight: 700;
  color: var(--as-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #fafbff, #f3f6ff);
}
.as-media-body { padding: 10px; }
.as-media iframe {
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: 8px;
  background: #0f0f23;
}
.as-media video { width: 100%; border-radius: 8px; background: #000; }
.as-media .mermaid-wrap { overflow: auto; }
.as-media pre {
  margin: 0;
  white-space: pre-wrap;
  font-size: 12px;
  color: #334155;
}

.as-messages { display: flex; flex-direction: column; gap: 12px; }
.as-msg { max-width: min(860px, 94%); display: flex; flex-direction: column; }
.as-msg.user { align-self: flex-end; }
.as-msg.assistant { align-self: flex-start; }
.as-bubble {
  border: 1px solid rgba(226, 232, 240, .9);
  background: linear-gradient(180deg, #ffffff, #f5f8fc);
  border-radius: 18px;
  padding: 13px 15px;
  font-size: 14px;
  line-height: 1.68;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}
.as-msg.assistant .as-bubble {
  border-left: 3px solid color-mix(in srgb, var(--as-accent) 70%, #fff);
}
.as-msg.user .as-bubble {
  background: linear-gradient(135deg, #5b8cff 0%, #2f54eb 55%, #1d39c4 100%);
  border-color: transparent;
  border-left: 0;
  color: #fff;
  box-shadow: 0 12px 28px rgba(47, 84, 235, .26), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.as-agent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 3px 10px 3px 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--as-accent);
  background: color-mix(in srgb, var(--as-accent-soft) 80%, #fff);
  border: 1px solid color-mix(in srgb, var(--as-accent) 18%, #fff);
}

.as-empty {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  color: var(--as-muted);
}
.as-empty::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--as-accent) 16%, transparent), transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.as-empty > * { position: relative; z-index: 1; }
.as-empty h3 { margin: 0; color: var(--as-text); font-size: 18px; letter-spacing: -.01em; }
.as-quick {
  width: min(560px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.as-quick button {
  position: relative;
  border: 1px solid rgba(226, 232, 240, .95);
  background: linear-gradient(160deg, #ffffff 0%, #f4f7ff 100%);
  border-radius: 18px;
  padding: 16px 14px 16px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--as-shadow);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}
.as-quick button::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}
.as-quick button:nth-child(1) {
  background: linear-gradient(160deg, #ffffff, #eef2ff);
}
.as-quick button:nth-child(1)::before { background: linear-gradient(180deg, #5b8cff, #2f54eb); }
.as-quick button:nth-child(2) {
  background: linear-gradient(160deg, #ffffff, #e0f2fe);
}
.as-quick button:nth-child(2)::before { background: linear-gradient(180deg, #38bdf8, #0891b2); }
.as-quick button:nth-child(3) {
  background: linear-gradient(160deg, #ffffff, #ecfeff);
}
.as-quick button:nth-child(3)::before { background: linear-gradient(180deg, #2dd4bf, #0d9488); }
.as-quick button:nth-child(4) {
  background: linear-gradient(160deg, #ffffff, #fff7ed);
}
.as-quick button:nth-child(4)::before { background: linear-gradient(180deg, #fbbf24, #d97706); }
.as-quick button:hover {
  border-color: color-mix(in srgb, var(--as-accent) 40%, #fff);
  color: var(--as-accent);
  transform: translateY(-3px);
  box-shadow: var(--as-glow);
}

.as-composer {
  border-top: 1px solid transparent;
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, rgba(248, 250, 252, .35), rgba(255, 255, 255, .92));
}
.as-prompt-card {
  border: 1px solid rgba(226, 232, 240, .95);
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 255, .94));
  border-radius: 26px;
  padding: 12px 12px 10px;
  box-shadow: var(--as-shadow), inset 0 1px 0 rgba(255, 255, 255, .95);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.as-prompt-card:focus-within {
  border-color: color-mix(in srgb, var(--as-accent) 45%, #fff);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--as-accent) 14%, transparent),
    0 18px 36px color-mix(in srgb, var(--as-accent) 14%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, .98);
}
.as-prompt-input {
  width: 100%;
  min-height: 56px;
  max-height: 140px;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
  color: var(--as-text);
  padding: 2px 6px 8px;
}
.as-prompt-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}
.as-prompt-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}
.as-prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.as-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.as-chip {
  border: 1px solid rgba(226, 232, 240, .95);
  background: rgba(241, 245, 249, .85);
  color: #64748b;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.as-chip:hover {
  background: #e2e8f0;
  color: #334155;
}
.as-chip.active {
  border-color: color-mix(in srgb, var(--as-accent) 35%, #fff);
  background: var(--as-accent-soft);
  color: var(--as-accent);
  font-weight: 650;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--as-accent) 14%, transparent);
}
.as-prompt-chips .as-chip:nth-child(1).active { color: #2f54eb; background: #eef2ff; border-color: #c7d2fe; }
.as-prompt-chips .as-chip:nth-child(2).active { color: #0e7490; background: #e0f7fa; border-color: #a5f3fc; }
.as-prompt-chips .as-chip:nth-child(3).active { color: #0f766e; background: #e6fffa; border-color: #99f6e4; }
.as-prompt-chips .as-chip:nth-child(4).active { color: #b45309; background: #fff7ed; border-color: #fed7aa; }
.as-prompt-send {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #5b8cff, #2f54eb 55%, #1d39c4);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(47, 84, 235, .34), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.as-prompt-send:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(47, 84, 235, .4), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.as-prompt-send:disabled {
  opacity: .4;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  filter: none;
}
.as-prompt-send i { font-size: 18px; }

.as-input-line { display: flex; gap: 8px; align-items: flex-end; }
.as-input-line textarea {
  flex: 1;
  min-height: 58px;
  max-height: 150px;
  resize: vertical;
  border: 1px solid var(--as-line);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.as-input-line textarea:focus {
  border-color: #91a7ff;
  box-shadow: 0 0 0 3px rgba(47, 84, 235, .12);
}

.as-practice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.as-practice-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 20px;
  padding: 18px 16px 16px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .98), rgba(248, 250, 255, .92));
  box-shadow: var(--as-shadow);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.as-practice-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #2f54eb, #38bdf8);
}
.as-practice-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--as-shadow-lg);
  border-color: rgba(199, 210, 254, .9);
}
.as-practice-grid > .as-practice-card:nth-child(1) {
  background: linear-gradient(165deg, #ffffff, #eef2ff);
}
.as-practice-grid > .as-practice-card:nth-child(1)::before {
  background: linear-gradient(90deg, #5b8cff, #2f54eb);
}
.as-practice-grid > .as-practice-card:nth-child(2) {
  background: linear-gradient(165deg, #ffffff, #e0f2fe);
}
.as-practice-grid > .as-practice-card:nth-child(2)::before {
  background: linear-gradient(90deg, #38bdf8, #0891b2);
}
.as-practice-grid > .as-practice-card:nth-child(3) {
  background: linear-gradient(165deg, #ffffff, #ecfeff);
}
.as-practice-grid > .as-practice-card:nth-child(3)::before {
  background: linear-gradient(90deg, #2dd4bf, #0d9488);
}
.as-practice-grid > .as-practice-card:nth-child(4) {
  background: linear-gradient(165deg, #ffffff, #fff7ed);
}
.as-practice-grid > .as-practice-card:nth-child(4)::before {
  background: linear-gradient(90deg, #fbbf24, #d97706);
}
.as-practice-card h3 { margin: 0 0 8px; font-size: 14px; }
.as-practice-card p { margin: 0 0 12px; font-size: 12px; color: var(--as-muted); line-height: 1.55; min-height: 38px; }
.as-weak { margin: 0 0 12px; padding-left: 18px; font-size: 13px; }

.as-stage {
  border-left: 1px solid var(--as-line);
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: rgba(255, 255, 255, .58);
  backdrop-filter: blur(16px) saturate(1.12);
}
.as-body.is-lecture .as-stage {
  border-left: 0;
  background: transparent;
}

.as-lecture-hero {
  padding: 18px 22px 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(248, 250, 255, .72));
  border-bottom: 1px solid var(--as-line);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .03);
}
.as-lecture-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.as-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e6fffb, #e0f2fe);
  color: #08979c;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(14, 165, 233, .18);
  box-shadow: 0 4px 10px rgba(14, 165, 233, .10);
}
.as-lecture-hero-copy h2 {
  margin: 8px 0 6px;
  font-size: 24px;
  line-height: 1.3;
  color: #102a43;
}
.as-lecture-hero-copy p {
  margin: 0;
  font-size: 13px;
  color: var(--as-muted);
}
.as-lecture-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.as-lecture-status {
  margin-top: 10px;
  font-size: 12px;
  color: var(--as-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.as-stage-head {
  min-height: 48px;
  padding: 0 12px;
  border-bottom: 1px solid var(--as-line);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(248, 250, 255, .7));
}
.as-stage-status {
  margin-left: auto;
  color: var(--as-muted);
  font-size: 12px;
  font-weight: 500;
}
.as-stage-cta {
  margin-left: 8px;
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
}
.as-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--as-warn);
}
.as-dot.on { background: var(--as-ok); }

.as-stage-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* 答疑舞台：数字人约占 1/3，下方功能栏可折叠 */
.as-body:not(.is-lecture) .as-avatar-pane {
  flex: 0 0 33%;
  min-height: 220px;
  max-height: none;
  border-bottom: 0;
}
.as-body:not(.is-lecture) .as-avatar-box {
  flex: 1;
  height: auto;
  min-height: 0;
}
.as-body:not(.is-lecture) .as-media-pane {
  flex: 1 1 auto;
  min-height: 44px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.as-body:not(.is-lecture) .as-media-pane.collapsed {
  flex: 0 0 auto;
}
.as-body:not(.is-lecture) .as-media-pane.open {
  flex: 1 1 67%;
  min-height: 200px;
}
.as-body:not(.is-lecture) .as-stage-body:has(.as-media-pane.collapsed) .as-avatar-pane {
  flex: 1 1 auto;
}

.as-avatar-pane {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--as-line);
  background:
    radial-gradient(420px 220px at 50% 0%, rgba(47, 84, 235, .16), transparent 70%),
    linear-gradient(180deg, #eef2ff 0%, #f8fafc 55%, #fff 100%);
  min-height: 0;
}
.as-avatar-box {
  height: 300px;
  position: relative;
  min-height: 0;
}
.as-avatar-canvas { width: 100%; height: 100%; }
.as-avatar-loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; background: rgba(255,255,255,.84); color: var(--as-muted); font-size: 12px;
}
.as-spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid #d6e4ff; border-top-color: var(--as-primary);
  animation: as-spin .8s linear infinite;
}
@keyframes as-spin { to { transform: rotate(360deg); } }

.as-narration {
  flex-shrink: 0;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--as-line);
  background: rgba(255,255,255,.92);
}
.as-narration-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--as-muted);
  margin-bottom: 4px;
}
.as-narration-text {
  font-size: 12px;
  line-height: 1.55;
  color: var(--as-text);
  max-height: 72px;
  overflow: auto;
}
.as-dh-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 12px;
}
.as-dh-footer .as-btn {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
  height: 32px;
  padding: 0 12px;
}

.as-media-pane {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #0b1220;
}
.as-media-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px 0 4px;
  background: #111827;
  border-bottom: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
  user-select: none;
}
.as-media-bar-tabs {
  display: flex;
  gap: 2px;
  min-width: 0;
  overflow: auto;
}
.as-media-bar-tabs button {
  border: 0;
  background: transparent;
  color: #94a3b8;
  padding: 11px 10px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.as-media-bar-tabs button.active {
  color: #fff;
  border-bottom-color: #38bdf8;
  text-shadow: 0 0 18px rgba(56, 189, 248, .45);
}
.as-media-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(148,163,184,.35);
  background: rgba(255,255,255,.06);
  color: #e2e8f0;
  border-radius: 999px;
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  cursor: pointer;
}
.as-media-toggle:hover {
  background: rgba(255,255,255,.12);
}
.as-media-pane.collapsed .as-media-bar {
  border-bottom: 0;
}
.as-stage-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 0 8px;
  gap: 4px;
  background: #111827;
}
.as-stage-tabs button {
  border: 0; background: transparent; color: #94a3b8;
  padding: 10px 10px; font-size: 12px; font-weight: 650; cursor: pointer;
  border-bottom: 2px solid transparent;
}
.as-stage-tabs button.active {
  color: #fff;
  border-bottom-color: #38bdf8;
}
.as-stage-preview {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0;
  background: #0b1220;
}
.as-anim-frame,
.as-diagram-frame,
.as-notes-frame {
  height: 100%;
  min-height: 180px;
}
.as-anim-frame {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
}
.as-anim-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  flex-shrink: 0;
}
.as-anim-toolbar strong {
  display: block;
  font-size: 15px;
  color: #0f172a;
}
.as-anim-toolbar em {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
}
.as-anim-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.as-anim-toolbar-actions button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.as-anim-toolbar-actions button:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.as-anim-iframe {
  flex: 1;
  width: 100%;
  min-height: 320px;
  border: 0;
  background: #fff;
}
.as-anim-loading,
.as-anim-empty {
  flex: 1;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
  padding: 24px;
  background: #0b1220;
}
.as-anim-loading i {
  font-size: 28px;
  color: #38bdf8;
}
.as-anim-empty p {
  margin: 0;
  max-width: 320px;
  line-height: 1.6;
}
.as-stage-preview .empty {
  height: 100%;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 12px;
  text-align: center;
  padding: 20px;
  line-height: 1.6;
}
.as-stage-preview iframe {
  width: 100%;
  height: 100%;
  min-height: 200px;
  border: 0;
  background: #0b1220;
}
.as-diagram-frame {
  padding: 12px;
  background: #f8fafc;
  color: var(--as-text);
}
.as-diagram-frame .mermaid-wrap {
  background: #fff;
  border-radius: 8px;
  padding: 10px;
}

/* —— 讲解要点：讯飞数字人课堂视频 + 文稿 —— */
.as-notes-frame {
  padding: 0;
  background: #0b1220;
  overflow: auto;
  color: var(--as-text);
}
.as-notes-classroom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  min-height: 100%;
}
.as-notes-classroom-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #102a43, #1e3a5f);
  color: #e2e8f0;
}
.as-notes-classroom-head span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #5eead4;
  letter-spacing: .04em;
}
.as-notes-classroom-head h3 {
  margin: 4px 0 4px;
  font-size: 18px;
  color: #fff;
}
.as-notes-classroom-head p {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
}
.as-notes-classroom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.as-dh-stage {
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, .1);
  min-height: 240px;
}
.as-dh-player-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  min-height: 280px;
}
.as-dh-player-frame video {
  width: auto;
  max-width: 100%;
  max-height: 420px;
  min-height: 260px;
  background: #000;
}
.as-dh-player-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: #0f172a;
  color: #e2e8f0;
}
.as-dh-player-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #5eead4;
  font-weight: 700;
}
.as-dh-player-meta strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: #fff;
}
.as-dh-generating,
.as-dh-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  min-height: 260px;
  padding: 24px 16px;
  color: #cbd5e1;
  background:
    radial-gradient(420px 180px at 50% 20%, rgba(45, 212, 191, .16), transparent 70%),
    #0b1220;
}
.as-dh-generating h4,
.as-dh-empty h4 {
  margin: 8px 0 0;
  font-size: 16px;
  color: #fff;
}
.as-dh-generating p,
.as-dh-empty p {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
  max-width: 360px;
  line-height: 1.55;
}
.as-dh-empty i {
  font-size: 36px;
  color: #5eead4;
}
.as-dh-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #5eead4;
}
.as-dh-orbit {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}
.as-dh-orbit i {
  font-size: 28px;
  color: #5eead4;
  z-index: 1;
}
.as-dh-orbit span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(94, 234, 212, .25);
  animation: as-dh-orbit 1.6s linear infinite;
}
.as-dh-orbit span:nth-child(2) { inset: 8px; animation-delay: -.4s; }
.as-dh-orbit span:nth-child(3) { inset: 16px; animation-delay: -.8s; }
@keyframes as-dh-orbit {
  to { transform: rotate(360deg); }
}
.as-dh-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}
.as-dh-steps span {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 999px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.as-dh-steps span.done {
  color: #5eead4;
  border-color: rgba(94, 234, 212, .35);
}
.as-notes-text-card {
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .2);
  padding: 14px 16px;
}
.as-notes-text-label {
  font-size: 11px;
  font-weight: 800;
  color: #0f766e;
  margin-bottom: 8px;
  letter-spacing: .04em;
}
.as-notes-md {
  font-size: 13px;
  line-height: 1.65;
  color: #1e293b;
}
.as-notes-placeholder {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.55;
}
.as-hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--as-muted);
  line-height: 1.5;
}

/* 授课：中间只显示互动课堂，数字人精讲时切换为居中视频区 */
.as-body.is-lecture.classroom-view .as-avatar-pane {
  position: absolute;
  width: 320px;
  height: 480px;
  left: -12000px;
  top: 0;
  overflow: hidden;
  border: 0;
  pointer-events: none;
}
.as-body.is-lecture.classroom-view .as-media-pane {
  flex: 1;
  min-height: 0;
  margin: 12px 18px 18px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow:
    0 22px 48px rgba(15, 23, 42, .22),
    0 0 0 1px rgba(56, 189, 248, .08),
    0 0 40px rgba(47, 84, 235, .10);
}
.as-body.is-lecture.classroom-view .as-stage-preview iframe {
  min-height: 520px;
}

.as-body.is-lecture.avatar-view .as-media-pane {
  display: none;
}
.as-body.is-lecture.avatar-view .as-avatar-pane {
  flex: 1;
  width: auto;
  border: 0;
  margin: 12px 18px 18px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #102a43, #0b1220);
  box-shadow: 0 20px 44px rgba(15, 23, 42, .22);
  border: 1px solid rgba(255, 255, 255, .08);
}
.as-body.is-lecture.avatar-view .as-avatar-box {
  flex: 1;
  height: auto;
  min-height: 480px;
  max-width: 420px;
  margin: 0 auto;
  background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 50%, #fff 100%);
}
.as-body.is-lecture.avatar-view .as-narration {
  border-top: 0;
  background: rgba(15, 23, 42, .88);
  color: #e2e8f0;
}
.as-body.is-lecture.avatar-view .as-narration-label,
.as-body.is-lecture.avatar-view .as-narration-text {
  color: #e2e8f0;
}

.as-overlay {
  position: absolute; inset: 0; z-index: 50;
  background: rgba(15, 23, 42, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.as-overlay-card {
  width: min(440px, calc(100vw - 32px));
  background: linear-gradient(180deg, #ffffff, #f7f9ff);
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 22px;
  padding: 28px 28px 24px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .22), 0 0 0 1px rgba(47, 84, 235, .06);
}
.as-overlay-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.35;
  word-break: keep-all;
}
.as-overlay-card p {
  margin: 0;
  color: var(--as-muted);
  font-size: 14px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.as-overlay-sub {
  margin-top: 6px !important;
  margin-bottom: 20px !important;
  font-size: 13px !important;
}
.as-overlay-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.as-overlay-actions .as-btn {
  width: 100%;
  min-height: 42px;
  padding: 10px 16px;
  white-space: nowrap;
}

.as-quiz,
.as-invite,
.as-interview {
  margin-top: 10px;
  border: 1px solid var(--as-line);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}
.as-quiz-options { display: grid; gap: 6px; margin-top: 8px; }
.as-quiz-options button {
  text-align: left; border: 1px solid var(--as-line); background: #fff;
  border-radius: 8px; padding: 9px 10px; cursor: pointer;
}
.as-quiz-options button.selected { border-color: var(--as-primary); background: var(--as-primary-soft); }

.as-status-line {
  margin-top: 6px;
  font-size: 12px;
  color: var(--as-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 1280px) {
  :root { --as-stage: 380px; --as-rail: 210px; }
  .as-body.is-lecture {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}
@media (max-width: 960px) {
  .as-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas: "rail" "center" "stage";
  }
  .as-body.is-lecture {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: "rail" "stage";
  }
  .as-rail { max-height: 170px; border-right: 0; border-bottom: 1px solid var(--as-line); }
  .as-stage { border-left: 0; border-top: 1px solid var(--as-line); min-height: 360px; }
  .as-body.is-lecture.classroom-view .as-media-pane,
  .as-body.is-lecture.avatar-view .as-avatar-pane {
    margin: 8px;
  }
  .as-body.is-lecture.avatar-view .as-avatar-box { min-height: 360px; max-width: none; }
  .as-practice-grid, .as-quick { grid-template-columns: 1fr; }
  .as-modes { margin-left: 0; }
  .as-top { flex-wrap: wrap; height: auto; padding: 8px 10px; gap: 8px; }
}

@media (max-width: 760px) {
  .student-portal-shell .as-page {
    top: 64px;
  }
}
+

/* ===== 2026-08 AI visual refresh: luminous learning laboratory ===== */
:root {
  --as-ink: #071a36;
  --as-blue: #2157d5;
  --as-blue-bright: #3478f6;
  --as-teal: #16a897;
  --as-sky: #25a9d8;
  --as-warm: #ee9a2f;
  --as-frost: rgba(247, 251, 255, .78);
  --as-hairline: rgba(66, 103, 155, .15);
  --as-elevation: 0 18px 50px rgba(35, 72, 126, .12), inset 0 1px 0 rgba(255, 255, 255, .9);
  --as-radius: 22px;
  --as-top: 62px;
}

.as-page {
  isolation: isolate;
  background:
    radial-gradient(820px 520px at -4% 8%, rgba(37, 169, 216, .20), transparent 64%),
    radial-gradient(760px 540px at 102% 2%, rgba(52, 120, 246, .18), transparent 62%),
    radial-gradient(620px 440px at 72% 110%, rgba(22, 168, 151, .12), transparent 64%),
    linear-gradient(145deg, #f8fcff 0%, #edf6fc 48%, #eef2fb 100%);
}

.as-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .42;
  background-image:
    linear-gradient(rgba(44, 100, 177, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 100, 177, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 72%);
}

.as-top {
  position: relative;
  padding-inline: 18px;
  gap: 16px;
  background: rgba(251, 253, 255, .82);
  border-bottom-color: rgba(60, 95, 145, .14);
  box-shadow: 0 10px 36px rgba(33, 87, 213, .07), inset 0 -1px 0 rgba(255, 255, 255, .85);
  backdrop-filter: blur(22px) saturate(1.35);
}

.as-top::after {
  content: "";
  position: absolute;
  left: calc(var(--as-rail) + 24px);
  right: calc(var(--as-stage) + 24px);
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--as-sky), var(--as-blue), transparent);
  opacity: .55;
}

.as-brand h1 {
  color: var(--as-ink);
  font-size: 16px;
  letter-spacing: -.02em;
}

.as-brand p {
  color: #69809d;
  letter-spacing: .02em;
}

.as-modes {
  padding: 5px;
  background: rgba(235, 244, 252, .82);
  border-color: rgba(116, 153, 205, .16);
  box-shadow: inset 0 1px 4px rgba(27, 74, 140, .08), 0 10px 24px rgba(33, 87, 213, .08);
}

.as-modes button {
  min-width: 88px;
  justify-content: center;
  padding-block: 8px;
}

.as-modes button.active {
  transform: translateY(-1px);
  border: 1px solid rgba(255, 255, 255, .9);
}

.as-body {
  padding: 12px;
  gap: 12px;
  overflow: hidden;
}

.as-rail,
.as-stage {
  border: 1px solid rgba(105, 137, 183, .16);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(247, 251, 255, .76);
  box-shadow: var(--as-elevation);
  backdrop-filter: blur(22px) saturate(1.18);
}

.as-rail {
  border-right: 1px solid rgba(105, 137, 183, .16);
}

.as-rail-head {
  padding: 18px 16px 14px;
  background:
    radial-gradient(280px 100px at 15% 0%, rgba(52, 120, 246, .12), transparent 72%),
    linear-gradient(160deg, rgba(255,255,255,.96), rgba(239,247,255,.84));
}

.as-rail-topic .as-rail-kicker {
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #7b8ca4;
}

.as-rail-topic h3 {
  color: var(--as-ink);
  font-size: 15px;
}

.as-kp-item,
.as-history-item {
  min-height: 44px;
}

.as-kp-item.active {
  background: linear-gradient(130deg, rgba(220, 235, 255, .98), rgba(236, 252, 250, .9));
  border-color: rgba(52, 120, 246, .24);
  box-shadow: 0 10px 24px rgba(33, 87, 213, .10), inset 3px 0 0 var(--as-blue-bright);
}

.as-action-item {
  min-height: 98px;
  border-color: rgba(91, 130, 183, .14);
  background:
    radial-gradient(100px 70px at 100% 100%, rgba(52, 120, 246, .10), transparent 70%),
    rgba(255,255,255,.82);
  box-shadow: 0 10px 24px rgba(40, 77, 128, .07), inset 0 1px 0 #fff;
}

.as-action-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 18px 34px rgba(33, 87, 213, .15), inset 0 1px 0 #fff;
}

.as-action-item i {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(33, 87, 213, .12), inset 0 1px 0 rgba(255,255,255,.9);
}

.as-center {
  position: relative;
  padding: 0;
}

.as-workspace {
  border-radius: 28px;
  border-color: rgba(110, 145, 193, .18);
  box-shadow: 0 22px 56px rgba(34, 73, 128, .12), inset 0 1px 0 rgba(255,255,255,.95);
  background: rgba(252, 254, 255, .82);
}

.as-mainpane {
  position: relative;
  padding: 22px 26px;
  scrollbar-color: rgba(72, 116, 176, .26) transparent;
}

.as-mainpane:has(.as-empty) {
  background:
    linear-gradient(rgba(251, 254, 255, .72), rgba(251, 254, 255, .78)),
    url("/static/images/ai-studio/ai-studio-knowledge-constellation-v2.png") center / cover no-repeat;
}

.as-empty {
  min-height: 100%;
  padding: 64px 24px 90px;
  justify-content: flex-start;
  gap: 14px;
}

.as-empty::before {
  width: 320px;
  height: 320px;
  top: 24px;
  background:
    radial-gradient(circle, rgba(37, 169, 216, .12), transparent 66%);
  filter: blur(8px);
  animation: as-empty-pulse 8s ease-in-out infinite alternate;
}

.as-empty h3 {
  margin-top: 28px;
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 760;
  color: var(--as-ink);
  letter-spacing: -.035em;
}

.as-empty > p {
  margin: 0 0 12px;
  color: #617894;
  font-size: 15px;
}

.as-quick {
  width: min(720px, 94%);
  gap: 12px;
}

.as-quick button {
  min-height: 76px;
  display: flex;
  align-items: center;
  border-radius: 20px;
  padding: 18px 20px;
  border-color: rgba(80, 124, 181, .16);
  color: #2d4668;
  background: rgba(255,255,255,.76);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px rgba(44, 82, 136, .09), inset 0 1px 0 rgba(255,255,255,.96);
}

.as-quick button::before {
  left: 18px;
  right: 18px;
  top: 0;
  bottom: auto;
  width: auto;
  height: 3px;
  border-radius: 0 0 999px 999px;
  opacity: .8;
}

.as-quick button:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.94);
  box-shadow: 0 20px 36px rgba(33, 87, 213, .16), inset 0 1px 0 #fff;
}

.as-composer {
  padding: 12px 18px 18px;
  background: linear-gradient(180deg, rgba(245,250,255,.30), rgba(247,251,255,.94));
}

.as-prompt-card {
  border-radius: 24px;
  border-color: rgba(74, 120, 183, .18);
  background: rgba(255,255,255,.90);
  box-shadow: 0 16px 38px rgba(34, 73, 128, .12), inset 0 1px 0 #fff;
}

.as-stage {
  border-left: 1px solid rgba(105, 137, 183, .16);
}

.as-stage-head {
  min-height: 56px;
  padding-inline: 16px;
  background:
    radial-gradient(180px 80px at 0 0, rgba(22, 168, 151, .13), transparent 72%),
    rgba(250, 253, 255, .86);
}

.as-stage-head::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #16b89a;
  box-shadow: 0 0 0 5px rgba(22,184,154,.10), 0 0 18px rgba(22,184,154,.42);
}

.as-stage-head > .as-dot {
  display: none;
}

.as-avatar-pane {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(320px 220px at 50% 32%, rgba(37, 169, 216, .20), transparent 70%),
    linear-gradient(155deg, #eaf5ff 0%, #eefcf9 52%, #f8fbff 100%);
}

.as-avatar-pane::before,
.as-avatar-pane::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.as-avatar-pane::before {
  width: 430px;
  height: 430px;
  left: 50%;
  top: 48%;
  border: 1px solid rgba(52, 120, 246, .16);
  border-radius: 50%;
  box-shadow:
    0 0 0 54px rgba(37, 169, 216, .055),
    0 0 0 108px rgba(22, 168, 151, .035);
  transform: translate(-50%, -50%);
  animation: as-ambient-orbit 16s linear infinite;
}

.as-avatar-pane::after {
  inset: 0;
  opacity: .48;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(52,120,246,.54) 0 3px, transparent 4px),
    radial-gradient(circle at 82% 18%, rgba(22,168,151,.52) 0 3px, transparent 4px),
    radial-gradient(circle at 90% 72%, rgba(238,154,47,.48) 0 2px, transparent 3px),
    linear-gradient(115deg, transparent 20%, rgba(255,255,255,.78) 48%, transparent 72%);
  background-size: auto, auto, auto, 220% 100%;
  animation: as-stage-shimmer 7s ease-in-out infinite;
}

.as-avatar-box {
  z-index: 1;
  isolation: isolate;
}

.as-avatar-box::after {
  content: none;
}

.as-avatar-canvas {
  position: relative;
  z-index: 2;
}

.as-narration {
  position: relative;
  z-index: 3;
  margin: 0 12px 12px;
  border: 1px solid rgba(93, 132, 182, .16);
  border-radius: 16px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 12px 28px rgba(35, 72, 126, .10);
  backdrop-filter: blur(16px);
}

.as-media-pane {
  margin: 0 10px 10px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(76, 111, 159, .18);
  box-shadow: 0 14px 32px rgba(15, 31, 59, .18);
}

.as-media-bar,
.as-stage-tabs {
  background: linear-gradient(90deg, #0b1d3b, #102e55);
}

.as-media-bar-tabs button.active,
.as-stage-tabs button.active {
  border-bottom-color: #5de2ce;
  text-shadow: 0 0 18px rgba(93, 226, 206, .42);
}

.as-msg.assistant .as-bubble {
  border-left: 0;
  border-color: rgba(70, 118, 180, .17);
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 30px rgba(34,73,128,.10);
}

.as-msg.user .as-bubble {
  background: linear-gradient(135deg, #2672ed 0%, #2157d5 56%, #173e9f 100%);
}

@keyframes as-ambient-orbit {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(.98); }
  50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.03); }
  100% { transform: translate(-50%, -50%) rotate(360deg) scale(.98); }
}

@keyframes as-empty-pulse {
  from { transform: scale(.94); opacity: .66; }
  to { transform: scale(1.08); opacity: 1; }
}

@keyframes as-stage-shimmer {
  0%, 100% { background-position: 0 0, 0 0, 0 0, 120% 0; opacity: .38; }
  50% { background-position: 0 0, 0 0, 0 0, -80% 0; opacity: .62; }
}

@media (max-width: 1280px) {
  :root { --as-stage: 360px; --as-rail: 224px; }
  .as-body { padding: 8px; gap: 8px; }
  .as-top::after { display: none; }
}

@media (max-width: 960px) {
  .as-body { overflow: auto; }
  .as-rail,
  .as-stage { border-radius: 18px; }
  .as-empty { padding: 42px 14px 60px; }
  .as-quick { grid-template-columns: 1fr; }
  .as-avatar-box { min-height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  .as-empty::before,
  .as-avatar-pane::before,
  .as-avatar-pane::after {
    animation: none !important;
  }

  .as-action-item,
  .as-quick button,
  .as-avatar-box::after {
    transition-duration: .01ms !important;
  }
}

/* 2026-08-21 · Spectrum studio expansion */
.as-page {
  --as-spectrum-blue: #2f6bff;
  --as-spectrum-cyan: #24c7e8;
  --as-spectrum-mint: #28d7ad;
  --as-spectrum-violet: #8b5cf6;
  --as-spectrum-amber: #ffb454;
  --as-spectrum-coral: #ff7185;
  background:
    radial-gradient(720px 420px at 2% 18%, rgba(36,199,232,.20), transparent 66%),
    radial-gradient(640px 380px at 96% 12%, rgba(139,92,246,.17), transparent 68%),
    radial-gradient(520px 340px at 80% 100%, rgba(255,180,84,.13), transparent 64%),
    radial-gradient(560px 360px at 18% 104%, rgba(40,215,173,.14), transparent 68%),
    linear-gradient(142deg, #f8fbff 0%, #f2f5ff 48%, #eefbfa 100%);
}

.as-page::before {
  background:
    linear-gradient(rgba(48,95,178,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48,95,178,.035) 1px, transparent 1px),
    radial-gradient(circle at 26% 24%, rgba(47,107,255,.11), transparent 25%),
    radial-gradient(circle at 78% 72%, rgba(255,113,133,.08), transparent 23%);
  background-size: 40px 40px, 40px 40px, auto, auto;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 86%);
}

.as-mainpane:has(.as-empty) {
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(250,253,255,.82), rgba(248,253,255,.58) 45%, rgba(250,248,255,.74)),
    url("/static/images/ai-studio/ai-studio-spectrum-network-v4.png") center / cover no-repeat;
}

.as-mainpane:has(.as-empty)::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 28%, rgba(47,107,255,.26) 0 5px, transparent 6px),
    radial-gradient(circle at 83% 18%, rgba(40,215,173,.25) 0 5px, transparent 6px),
    radial-gradient(circle at 76% 78%, rgba(255,180,84,.22) 0 4px, transparent 5px),
    radial-gradient(circle at 32% 82%, rgba(139,92,246,.22) 0 4px, transparent 5px);
  filter: blur(.2px);
  animation: as-spectrum-drift 15s ease-in-out infinite alternate;
}

.as-mainpane:has(.as-empty)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .6;
  background: linear-gradient(108deg, transparent 25%, rgba(255,255,255,.82) 48%, transparent 70%);
  transform: translateX(-65%);
  animation: as-spectrum-sheen 10s ease-in-out infinite;
}

.as-mainpane:has(.as-empty) > * { position: relative; z-index: 1; }

.as-empty h3 {
  background: linear-gradient(92deg, #102a54 0%, #235bd6 42%, #7355d9 78%, #c64b7c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 12px 32px rgba(54,92,181,.10);
}

.as-quick button {
  overflow: hidden;
  isolation: isolate;
  border-width: 1px;
}

.as-quick button:nth-child(1) { background: linear-gradient(135deg, rgba(239,244,255,.96), rgba(232,237,255,.88)); border-color: rgba(72,101,246,.24); }
.as-quick button:nth-child(2) { background: linear-gradient(135deg, rgba(236,251,255,.96), rgba(225,246,255,.88)); border-color: rgba(24,169,218,.24); }
.as-quick button:nth-child(3) { background: linear-gradient(135deg, rgba(235,255,250,.96), rgba(225,249,247,.88)); border-color: rgba(25,177,150,.24); }
.as-quick button:nth-child(4) { background: linear-gradient(135deg, rgba(255,249,239,.96), rgba(255,239,225,.88)); border-color: rgba(243,154,49,.28); }

.as-quick button::after {
  content: "";
  position: absolute;
  inset: -70% -28%;
  z-index: -1;
  background: linear-gradient(110deg, transparent 42%, rgba(255,255,255,.85) 50%, transparent 58%);
  transform: translateX(-58%) rotate(8deg);
  transition: transform .7s ease;
}

.as-quick button:hover::after { transform: translateX(58%) rotate(8deg); }

.as-action-item:nth-child(1) i { color: #4164ee; background: linear-gradient(145deg, #eef2ff, #dfe7ff); }
.as-action-item:nth-child(2) i { color: #0f9fc1; background: linear-gradient(145deg, #e7fbff, #d4f6fb); }
.as-action-item:nth-child(3) i { color: #0ca381; background: linear-gradient(145deg, #e5fff6, #d4f8ec); }
.as-action-item:nth-child(4) i { color: #ea861a; background: linear-gradient(145deg, #fff5e5, #ffe8ca); }

.as-avatar-pane {
  background:
    radial-gradient(300px 230px at 50% 32%, rgba(47,107,255,.24), transparent 72%),
    radial-gradient(240px 200px at 16% 22%, rgba(40,215,173,.18), transparent 72%),
    radial-gradient(260px 220px at 86% 80%, rgba(255,113,133,.14), transparent 74%),
    linear-gradient(145deg, #edf7ff 0%, #eef8ff 38%, #f5f0ff 70%, #fff6ed 100%);
}

.as-stage-head {
  background:
    linear-gradient(90deg, rgba(255,255,255,.88), rgba(239,250,255,.90)),
    linear-gradient(90deg, var(--as-spectrum-mint), var(--as-spectrum-blue), var(--as-spectrum-violet));
}

@keyframes as-spectrum-drift {
  0% { transform: translate3d(-1.5%, -1%, 0) scale(.98) rotate(-.5deg); opacity: .65; }
  50% { opacity: .92; }
  100% { transform: translate3d(2%, 1.5%, 0) scale(1.04) rotate(.6deg); opacity: .72; }
}

@keyframes as-spectrum-sheen {
  0%, 18% { transform: translateX(-70%); opacity: 0; }
  45% { opacity: .58; }
  72%, 100% { transform: translateX(72%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .as-mainpane:has(.as-empty)::before,
  .as-mainpane:has(.as-empty)::after { animation: none !important; }
  .as-quick button::after { display: none; }
}

/* ===== AI Training Coach · Three Mode Redesign ===== */
.as-page {
  --as-rail: clamp(224px, 13vw, 258px);
  --as-stage: clamp(360px, 25vw, 470px);
}

.as-body {
  padding: 16px clamp(14px, 1.5vw, 26px) 22px;
  gap: clamp(12px, 1vw, 18px);
}

.as-mode-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: -2px -2px 22px;
  padding: 18px 20px;
  border: 1px solid rgba(83, 124, 181, .14);
  border-radius: 22px;
  background:
    radial-gradient(280px 140px at 92% 0%, rgba(37, 169, 216, .12), transparent 72%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(242,248,255,.88));
  box-shadow: 0 14px 32px rgba(34, 73, 128, .08), inset 0 1px 0 #fff;
}

.as-mode-intro--practice {
  background:
    radial-gradient(300px 150px at 92% 0%, rgba(22, 168, 151, .14), transparent 72%),
    linear-gradient(135deg, rgba(255,255,255,.97), rgba(238,252,249,.88));
}

.as-mode-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--as-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.as-mode-intro-copy h2 {
  margin: 0;
  color: var(--as-ink);
  font-size: clamp(20px, 1.55vw, 28px);
  line-height: 1.25;
  letter-spacing: -.035em;
}

.as-mode-intro-copy p {
  margin: 7px 0 0;
  max-width: 680px;
  color: #667b95;
  font-size: 13px;
  line-height: 1.7;
}

.as-mode-intro-status {
  flex: 0 0 auto;
  min-width: 172px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid rgba(70, 115, 181, .14);
  border-radius: 16px;
  background: rgba(255,255,255,.76);
}

.as-mode-intro-status > i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #3478f6, #24c7e8);
  box-shadow: 0 10px 20px rgba(52, 120, 246, .22);
  font-size: 19px;
}

.as-mode-intro-status span,
.as-mode-intro-status strong {
  display: block;
}

.as-mode-intro-status span { color: #7a8da5; font-size: 11px; }
.as-mode-intro-status strong {
  max-width: 150px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--as-ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-practice-score > i { background: linear-gradient(135deg, #16a897, #28d7ad); }

.as-practice-pane {
  padding: 22px clamp(20px, 2vw, 32px) 30px;
}

.as-practice-overview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(150px, auto) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  padding: 20px 22px;
  border: 1px solid rgba(23, 171, 145, .18);
  border-radius: 22px;
  background:
    radial-gradient(220px 130px at 100% 0, rgba(40,215,173,.12), transparent 75%),
    linear-gradient(135deg, #f9fffd, #effbf8);
  box-shadow: 0 14px 34px rgba(22, 131, 113, .09), inset 0 1px 0 #fff;
}

.as-practice-focus-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #1eb59d, #168a83);
  box-shadow: 0 14px 28px rgba(22, 168, 151, .24);
  font-size: 25px;
}

.as-practice-focus-copy span {
  color: #158879;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.as-practice-focus-copy h3 {
  margin: 4px 0 5px;
  color: var(--as-ink);
  font-size: 18px;
}

.as-practice-focus-copy p {
  margin: 0;
  color: #6b8098;
  font-size: 12px;
  line-height: 1.55;
}

.as-practice-focus-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.as-practice-focus-list span {
  padding: 6px 9px;
  border: 1px solid rgba(22, 168, 151, .16);
  border-radius: 999px;
  color: #24776d;
  background: rgba(255,255,255,.74);
  font-size: 11px;
}

.as-practice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.as-practice-card {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border-color: rgba(80, 123, 180, .15);
  border-radius: 24px;
}

.as-practice-card::before { height: 4px; }
.as-practice-card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 15px;
  color: #2f6bff;
  background: #eaf1ff;
  font-size: 22px;
}
.as-practice-grid > .as-practice-card:nth-child(2) .as-practice-card-icon { color: #0891b2; background: #e3f8fc; }
.as-practice-grid > .as-practice-card:nth-child(3) .as-practice-card-icon { color: #0d9488; background: #e2faf4; }
.as-practice-grid > .as-practice-card:nth-child(4) .as-practice-card-icon { color: #d97706; background: #fff1dc; }
.as-practice-card > em {
  position: absolute;
  top: 22px;
  right: 20px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #6b7f98;
  background: rgba(255,255,255,.74);
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
}
.as-practice-card h3 { color: var(--as-ink); font-size: 17px; }
.as-practice-card p { min-height: auto; margin-bottom: 18px; font-size: 13px; }
.as-practice-card .as-btn { margin-top: auto; }

.as-method-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.as-method-group + .as-method-group {
  padding-left: 10px;
  border-left: 1px solid rgba(100, 130, 170, .18);
}

.as-method-group > span {
  margin-right: 2px;
  color: #8494a9;
  font-size: 10px;
  font-weight: 750;
}

.as-method-group .as-chip {
  min-height: 29px;
  padding-inline: 10px;
  background: rgba(244, 247, 251, .88);
}

.as-lecture-hero {
  padding: 22px 26px 18px;
  border-bottom-color: rgba(75, 119, 179, .13);
  background:
    radial-gradient(330px 130px at 86% 0%, rgba(52,120,246,.13), transparent 74%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(241,247,255,.88));
}

.as-lecture-hero-copy h2 {
  margin-top: 10px;
  color: var(--as-ink);
  font-size: clamp(22px, 1.8vw, 30px);
  letter-spacing: -.035em;
}

.as-lecture-progress {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(84, 123, 176, .13);
}

.as-lecture-progress-label span,
.as-lecture-progress-label strong { display: block; }
.as-lecture-progress-label span { color: #7b8ea7; font-size: 10px; }
.as-lecture-progress-label strong { margin-top: 3px; color: var(--as-blue); font-size: 15px; }

.as-lecture-progress-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
}

.as-lecture-progress-track button {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(91, 130, 183, .14);
  border-radius: 11px;
  color: #74869d;
  background: rgba(255,255,255,.72);
  cursor: pointer;
}

.as-lecture-progress-track button span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 7px;
  color: #6f83a0;
  background: #edf2f8;
  font-size: 10px;
  font-weight: 800;
}

.as-lecture-progress-track button em {
  overflow: hidden;
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-lecture-progress-track button.active {
  color: #245cda;
  border-color: rgba(52,120,246,.3);
  background: #eef4ff;
  box-shadow: 0 8px 18px rgba(52,120,246,.11);
}
.as-lecture-progress-track button.active span { color: #fff; background: #3478f6; }
.as-lecture-progress-track button.done { color: #168778; border-color: rgba(22,168,151,.24); background: #edfbf8; }
.as-lecture-progress-track button.done span { color: #fff; background: #16a897; }

.as-body.is-lecture .as-stage {
  background: rgba(248,252,255,.74);
}

.as-body.is-lecture .as-stage-body {
  padding: 14px;
}

.as-body.is-lecture.classroom-view .as-media-pane,
.as-body.is-lecture.avatar-view .as-avatar-pane {
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(34,73,128,.12);
}

@media (max-width: 1280px) {
  .as-page { --as-rail: 216px; --as-stage: 360px; }
  .as-body { padding: 10px; gap: 10px; }
  .as-mode-intro { padding: 16px; }
  .as-mode-intro-status { display: none; }
  .as-practice-overview { grid-template-columns: auto minmax(0, 1fr) auto; }
  .as-practice-focus-list { display: none; }
  .as-method-group + .as-method-group { width: 100%; padding: 6px 0 0; border: 0; }
}

@media (max-width: 960px) {
  .as-mode-intro { align-items: flex-start; margin-bottom: 16px; }
  .as-practice-overview { grid-template-columns: auto minmax(0, 1fr); }
  .as-practice-overview > .as-btn { grid-column: 1 / -1; justify-self: start; }
  .as-practice-grid { grid-template-columns: 1fr; }
  .as-lecture-progress { grid-template-columns: 1fr; }
  .as-lecture-progress-track { display: flex; overflow-x: auto; padding-bottom: 4px; }
  .as-lecture-progress-track button { min-width: 140px; }
}

@media (max-width: 760px) {
  .as-body { padding: 8px; }
  .as-mainpane,
  .as-practice-pane { padding: 14px; }
  .as-mode-intro { padding: 15px; border-radius: 18px; }
  .as-mode-intro-copy h2 { font-size: 20px; }
  .as-practice-overview { grid-template-columns: 1fr; padding: 18px; }
  .as-practice-focus-icon { width: 46px; height: 46px; }
  .as-practice-card { min-height: 184px; padding: 19px; }
  .as-prompt-toolbar { align-items: flex-end; }
  .as-method-group { width: 100%; }
  .as-method-group > span { width: 100%; }
  .as-lecture-hero { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .as-practice-card,
  .as-lecture-progress-track button,
  .as-mode-intro,
  .as-practice-overview { transition: none !important; animation: none !important; }
}

/* 2026-09 · Studio focus layout: rail-first controls and a quieter tutor canvas */
.as-body {
  grid-template-columns: var(--as-rail) minmax(0, 1fr) var(--as-stage);
  transition: grid-template-columns .22s ease;
}

.as-body.rail-collapsed {
  grid-template-columns: 76px minmax(0, 1fr) var(--as-stage);
}

.as-body.is-lecture.rail-collapsed {
  grid-template-columns: 76px minmax(0, 1fr);
}

.as-rail {
  transition: width .22s ease, border-radius .22s ease;
}

.as-rail-headbar {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin-bottom: 14px;
}

.as-rail-headbar .as-brand { min-width: 0; flex: 1; }
.as-rail-headbar .as-brand img { height: 24px; }
.as-rail-headbar .as-brand h1 { font-size: 14px; }
.as-rail-headbar .as-brand p { max-width: 145px; }

.as-rail-toggle {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(105, 137, 183, .18);
  border-radius: 10px;
  background: rgba(255, 255, 255, .76);
  color: var(--as-muted);
  cursor: pointer;
  transition: .18s ease;
}

.as-rail-toggle:hover,
.as-rail-toggle:focus-visible {
  color: var(--as-primary);
  border-color: rgba(47, 84, 235, .32);
  background: var(--as-primary-soft);
  outline: none;
}

.as-mode-list { display: grid; gap: 7px; }

.as-section-toggle {
  width: calc(100% - 12px);
  padding: 3px 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.as-section-toggle span { min-width: 0; }
.as-section-toggle i {
  margin-left: auto;
  color: #8292aa;
  font-size: 16px;
  transition: color .18s ease;
}
.as-section-toggle:hover,
.as-section-toggle:focus-visible { color: var(--as-primary); outline: none; }
.as-section-toggle:hover i,
.as-section-toggle:focus-visible i { color: var(--as-primary); }

.as-mode-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: rgba(255, 255, 255, .48);
  color: #314b6b;
  text-align: left;
  cursor: pointer;
  transition: .18s ease;
}

.as-mode-item i {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #edf3ff;
  color: var(--as-blue);
  font-size: 17px;
}

.as-mode-item span { font-size: 13px; font-weight: 760; }
.as-mode-item small { color: #8292aa; font-size: 10px; white-space: nowrap; }
.as-mode-item:hover { border-color: rgba(52,120,246,.22); background: rgba(255,255,255,.86); transform: translateX(2px); }
.as-mode-item.active { border-color: rgba(52,120,246,.30); background: linear-gradient(120deg, rgba(225,238,255,.98), rgba(230,251,249,.92)); box-shadow: inset 3px 0 0 var(--as-blue-bright), 0 8px 18px rgba(33,87,213,.08); }
.as-mode-item.mode-tutor i { color: #0d879d; background: #e4f8fb; }
.as-mode-item.mode-practice i { color: #0d8e7c; background: #e3faf4; }
.as-mode-item.mode-tutor.active { box-shadow: inset 3px 0 0 #16a897, 0 8px 18px rgba(22,168,151,.08); }
.as-mode-item.mode-practice.active { box-shadow: inset 3px 0 0 #0d9488, 0 8px 18px rgba(13,148,136,.08); }

.as-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.as-tool-item {
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  padding: 8px 9px;
  border: 1px solid rgba(91,130,183,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  color: #38506f;
  cursor: pointer;
  transition: .18s ease;
}
.as-tool-item:hover, .as-tool-item.active { border-color: rgba(52,120,246,.28); background: #f3f7ff; color: var(--as-primary); transform: translateY(-2px); }
.as-tool-item i { font-size: 18px; color: var(--as-blue-bright); }
.as-tool-item span { font-size: 11px; font-weight: 720; }
.as-tool-item-primary { grid-column: 1 / -1; min-height: 45px; flex-direction: row; align-items: center; background: linear-gradient(120deg, #3969ef, #2f54eb); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(47,84,235,.22); }
.as-tool-item-primary i { color: #fff; }
.as-tool-item-primary:hover { color: #fff; background: linear-gradient(120deg, #4b79f6, #3150d7); }

.as-body.rail-collapsed .as-rail-head { padding-inline: 10px; }
.as-body.rail-collapsed .as-rail-headbar { flex-direction: column; justify-content: center; gap: 6px; margin-bottom: 0; }
.as-body.rail-collapsed .as-rail-headbar .as-brand,
.as-body.rail-collapsed .as-rail-topic,
.as-body.rail-collapsed .as-rail-head > .as-btn-block,
.as-body.rail-collapsed .as-rail-section-title,
.as-body.rail-collapsed .as-mode-item span,
.as-body.rail-collapsed .as-mode-item small,
.as-body.rail-collapsed .as-tool-item span,
.as-body.rail-collapsed .as-kp-text,
.as-body.rail-collapsed .as-history-title,
.as-body.rail-collapsed .as-history-time,
.as-body.rail-collapsed .as-action-item span { display: none; }
.as-body.rail-collapsed .as-rail-toggle { order: -1; }
.as-body.rail-collapsed .as-rail-scroll { padding-inline: 8px; }
.as-body.rail-collapsed .as-mode-item { grid-template-columns: 1fr; justify-items: center; padding-inline: 5px; }
.as-body.rail-collapsed .as-tool-grid { grid-template-columns: 1fr; }
.as-body.rail-collapsed .as-tool-item,
.as-body.rail-collapsed .as-tool-item-primary { grid-column: auto; align-items: center; justify-content: center; padding-inline: 4px; }
.as-body.rail-collapsed .as-kp-item { justify-content: center; padding-inline: 5px; }
.as-body.rail-collapsed .as-kp-idx { margin: 0; }
.as-body.rail-collapsed .as-action-grid { grid-template-columns: 1fr; }
.as-body.rail-collapsed .as-action-item { min-height: 58px; padding: 8px 4px; }
.as-body.rail-collapsed .as-action-item i { width: 32px; height: 32px; }

.as-tutor-context {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -4px 0 14px;
  padding: 9px 12px;
  border: 1px solid rgba(22,168,151,.18);
  border-radius: 13px;
  background: linear-gradient(90deg, rgba(230,250,249,.78), rgba(244,250,255,.74));
  color: #317184;
}
.as-tutor-context span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; color: #0d8c8d; white-space: nowrap; }
.as-tutor-context strong { color: var(--as-ink); font-size: 14px; }
.as-tutor-context em { margin-left: auto; font-style: normal; color: #7890a7; font-size: 11px; }

.as-simplify-cta {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  padding: 5px 9px;
  border: 1px solid rgba(217,119,6,.20);
  border-radius: 10px;
  background: rgba(255, 248, 235, .72);
  color: #8b5a20;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition: .18s ease;
}
.as-simplify-cta:hover, .as-simplify-cta.active { border-color: rgba(217,119,6,.52); background: #fff8eb; box-shadow: 0 5px 12px rgba(217,119,6,.08); }
.as-simplify-icon { width: 24px; height: 24px; flex: 0 0 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; background: #e9a23b; color: #fff; font-size: 14px; }
.as-simplify-copy { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.as-simplify-copy strong { font-size: 12px; color: #7f4d13; white-space: nowrap; }
.as-simplify-copy small { overflow: hidden; color: #a07443; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.as-simplify-arrow { margin-left: auto; font-size: 15px; color: #bd7a25; }

.as-practice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.as-practice-card { min-height: 178px; }
.as-practice-card p { max-width: 30ch; }

@media (max-width: 1280px) {
  .as-body.rail-collapsed { grid-template-columns: 66px minmax(0, 1fr) var(--as-stage); }
  .as-body.is-lecture.rail-collapsed { grid-template-columns: 66px minmax(0, 1fr); }
  .as-tutor-context em { display: none; }
}

@media (max-width: 960px) {
  .as-body.rail-collapsed { grid-template-columns: 1fr; }
  .as-body.is-lecture.rail-collapsed { grid-template-columns: 1fr; }
  .as-body.rail-collapsed .as-rail-headbar .as-brand,
  .as-body.rail-collapsed .as-rail-topic,
  .as-body.rail-collapsed .as-rail-head > .as-btn-block,
  .as-body.rail-collapsed .as-rail-section-title,
  .as-body.rail-collapsed .as-mode-item span,
  .as-body.rail-collapsed .as-mode-item small,
  .as-body.rail-collapsed .as-tool-item span,
  .as-body.rail-collapsed .as-kp-text,
  .as-body.rail-collapsed .as-history-title,
  .as-body.rail-collapsed .as-history-time,
  .as-body.rail-collapsed .as-action-item span { display: initial; }
  .as-body.rail-collapsed .as-rail-headbar .as-brand { display: flex; }
  .as-body.rail-collapsed .as-rail-topic { display: block; }
  .as-body.rail-collapsed .as-rail-head > .as-btn-block { display: inline-flex; }
  .as-body.rail-collapsed .as-rail-section-title { display: flex; }
  .as-body.rail-collapsed .as-mode-item span,
  .as-body.rail-collapsed .as-mode-item small,
  .as-body.rail-collapsed .as-tool-item span,
  .as-body.rail-collapsed .as-kp-text,
  .as-body.rail-collapsed .as-history-title,
  .as-body.rail-collapsed .as-history-time,
  .as-body.rail-collapsed .as-action-item span { display: inline; }
  .as-body.rail-collapsed .as-mode-item,
  .as-body.rail-collapsed .as-tool-item { grid-template-columns: 30px minmax(0, 1fr) auto; justify-items: initial; align-items: center; padding-inline: 9px; }
  .as-body.rail-collapsed .as-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .as-body.rail-collapsed .as-tool-item-primary { grid-column: 1 / -1; }
  .as-body.rail-collapsed .as-kp-item { justify-content: initial; padding-inline: 10px; }
  .as-body.rail-collapsed .as-action-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .as-practice-grid { grid-template-columns: 1fr; }
  .as-simplify-copy small { display: none; }
}


/* 星云就绪后静态占位形象淡出 */
.as-avatar-box.is-live::after { opacity: 0; transform: translateY(2%) scale(.985); }
