/* ==========================================================================
   数学探险岛 · 小学三年级交互式学习应用
   Playful Storybook + Tactile Toy-Button Aesthetic
   ========================================================================== */
:root {
  --bg: #FFFBF2;
  --surface: #FFFFFF;
  --surface-soft: #FFF7E8;
  --ink: #1E293B;
  --ink-soft: #475569;
  --ink-muted: #64748B;
  --border: #E2E8F0;
  --primary: #FF7A59;
  --primary-dark: #E05A38;
  --blue: #4F7DF3;
  --blue-dark: #3660D1;
  --green: #22C55E;
  --green-dark: #15803D;
  --yellow: #F59E0B;
  --yellow-soft: #FEF3C7;
  --purple: #8B5CF6;
  --red: #EF4444;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 8px 24px rgba(30, 41, 59, 0.07);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Nunito", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body {
  background-image:
    radial-gradient(circle at 12% 10%, rgba(255, 196, 120, 0.18) 0%, transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(91, 141, 239, 0.14) 0%, transparent 34%),
    radial-gradient(circle at 50% 90%, rgba(43, 182, 115, 0.10) 0%, transparent 40%);
  min-height: 100vh;
}

button, input, select { font-family: inherit; }

/* Confetti Canvas */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* ==========================================================================
   Top Navigation Bar
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid #F3E8D2;
}
.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FF9966, #FF5E62);
  display: grid;
  place-items: center;
  font-size: 24px;
  box-shadow: 0 4px 0 #C93D41;
}
.brand-text h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #1E293B;
}
.brand-text span {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 600;
}

.nav-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-btn {
  border: 2px solid #E2E8F0;
  background: #FFF;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 0 #CBD5E1;
  transition: transform 0.1s, box-shadow 0.1s, background 0.15s;
}
.nav-btn:hover { background: #F8FAFC; }
.nav-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #CBD5E1; }
.nav-btn.active {
  background: var(--blue);
  color: #FFF;
  border-color: var(--blue-dark);
  box-shadow: 0 3px 0 var(--blue-dark);
}
.badge-count {
  background: var(--red);
  color: #FFF;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 99px;
  font-weight: 800;
}

.stats-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat-pill {
  background: #FFF;
  border: 2px solid #FDE68A;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 800;
  color: #B45309;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.stat-pill.xp { border-color: #C7D2FE; color: #4338CA; }
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 2px solid #E2E8F0;
  background: #FFF;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 0 #CBD5E1;
}
.icon-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #CBD5E1; }

/* ==========================================================================
   Main Container
   ========================================================================== */
.main-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 18px 60px;
}

/* ==========================================================================
   Hero Banner with Mascot
   ========================================================================== */
.hero-card {
  background: linear-gradient(135deg, #FFF5DB 0%, #FFE8D6 55%, #E6F0FF 100%);
  border: 3px solid #FBD38D;
  border-radius: 26px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 8px 0 rgba(245, 158, 11, 0.16);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.hero-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 260px;
}
.mascot-svg {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.08));
}
.hero-copy h2 {
  margin: 0 0 6px;
  font-size: 23px;
  font-weight: 900;
  color: #1E293B;
}
.hero-copy p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
}
.hero-progress-wrap {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.progress-track {
  flex: 1;
  max-width: 280px;
  height: 14px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 99px;
  overflow: hidden;
  border: 2px solid #FDE68A;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #22C55E, #10B981);
  border-radius: 99px;
  transition: width 0.4s ease;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Tactile 3D Toy Buttons */
.btn-3d {
  border: none;
  border-radius: 16px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.1s, box-shadow 0.1s, filter 0.15s;
}
.btn-3d:hover { filter: brightness(1.04); }
.btn-3d:active { transform: translateY(3px); }
.btn-orange { background: var(--primary); color: #FFF; box-shadow: 0 5px 0 var(--primary-dark); }
.btn-orange:active { box-shadow: 0 2px 0 var(--primary-dark); }
.btn-blue { background: var(--blue); color: #FFF; box-shadow: 0 5px 0 var(--blue-dark); }
.btn-blue:active { box-shadow: 0 2px 0 var(--blue-dark); }
.btn-green { background: var(--green); color: #FFF; box-shadow: 0 5px 0 var(--green-dark); }
.btn-green:active { box-shadow: 0 2px 0 var(--green-dark); }
.btn-white { background: #FFF; color: var(--ink); border: 2px solid #CBD5E1; box-shadow: 0 4px 0 #CBD5E1; }
.btn-white:active { box-shadow: 0 1px 0 #CBD5E1; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 12px; }

/* ==========================================================================
   Filter Bar
   ========================================================================== */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.sem-tabs {
  display: flex;
  background: #FFF;
  border: 2px solid #E2E8F0;
  border-radius: 16px;
  padding: 4px;
  gap: 4px;
}
.sem-tab {
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-muted);
  cursor: pointer;
}
.sem-tab.active {
  background: var(--primary);
  color: #FFF;
}
.domain-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-chip {
  border: 2px solid #E2E8F0;
  background: #FFF;
  color: var(--ink-soft);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.filter-chip.active {
  border-color: var(--blue);
  background: #EEF2FF;
  color: var(--blue-dark);
}
.search-input {
  border: 2px solid #E2E8F0;
  background: #FFF;
  border-radius: 14px;
  padding: 8px 14px;
  font-size: 14px;
  width: 210px;
  outline: none;
}
.search-input:focus { border-color: var(--blue); }

/* ==========================================================================
   Chapter Cards & Topic Islands
   ========================================================================== */
.chapters-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.chapter-card {
  background: var(--surface);
  border: 2.5px solid #E2E8F0;
  border-radius: 24px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.chapter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.chapter-title-box {
  display: flex;
  align-items: center;
  gap: 14px;
}
.chapter-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 28px;
  flex-shrink: 0;
  border: 2px solid rgba(0,0,0,0.06);
}
.chapter-meta h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sem-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 800;
}
.sem-badge.up { background: #FEF3C7; color: #B45309; }
.sem-badge.down { background: #E0F2FE; color: #0369A1; }
.chapter-meta p {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 600;
}
.chapter-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chapter-stars {
  font-size: 14px;
  font-weight: 800;
  color: #D97706;
  background: #FFFBEB;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1.5px solid #FDE68A;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.topic-card {
  border: 2px solid #E2E8F0;
  background: #FAFCFF;
  border-radius: 18px;
  padding: 14px 16px;
  cursor: pointer;
  transition: transform 0.14s, border-color 0.14s, box-shadow 0.14s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  position: relative;
}
.topic-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: 0 8px 18px rgba(79, 125, 243, 0.14);
}
.topic-card.mastered {
  background: #F0FDF4;
  border-color: #86EFAC;
}
.topic-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.topic-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
}
.domain-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  background: #F1F5F9;
  color: #475569;
  white-space: nowrap;
}
.topic-desc-mini {
  font-size: 12.5px;
  color: var(--ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.topic-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.stars-row { letter-spacing: 2px; font-size: 15px; }
.topic-go {
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
}

/* ==========================================================================
   Topic Learning Studio
   ========================================================================== */
.studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.studio-title-bar {
  background: #FFF;
  border: 2.5px solid #E2E8F0;
  border-radius: 24px;
  padding: 20px 24px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.studio-title-bar h2 {
  margin: 4px 0 6px;
  font-size: 24px;
  font-weight: 900;
}
.crumb {
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 700;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 880px) {
  .studio-grid { grid-template-columns: 1fr; }
}

.card-panel {
  background: #FFF;
  border: 2.5px solid #E2E8F0;
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.panel-h {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}
.story-bubble {
  background: #FFFBEB;
  border: 2px solid #FDE68A;
  border-radius: 16px;
  padding: 13px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: #78350F;
  margin-bottom: 12px;
}
.tip-box {
  background: #EEF4FF;
  border: 2px solid #BFDBFE;
  border-radius: 16px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #1E3A8A;
  margin-bottom: 14px;
}
.criteria-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.criteria-list li {
  background: #F0FDF4;
  border: 1.5px solid #BBF7D0;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: #166534;
}
.example-card {
  background: #F8FAFC;
  border: 2px dashed #CBD5E1;
  border-radius: 16px;
  padding: 14px 16px;
}
.example-q {
  font-weight: 800;
  font-size: 14.5px;
  margin-bottom: 8px;
  color: #0F172A;
}
.example-steps {
  margin: 0;
  padding-left: 20px;
  font-size: 13.5px;
  color: #334155;
}
.example-steps li { margin-bottom: 4px; }
.example-ans {
  margin-top: 8px;
  font-weight: 900;
  color: #059669;
  font-size: 14px;
}

/* Prerequisite Knowledge Pills */
.prereq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.prereq-pill {
  border: 2px solid #E2E8F0;
  background: #F8FAFC;
  border-radius: 12px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.15s, background 0.15s;
}
.prereq-pill:hover { border-color: var(--blue); background: #EEF2FF; }
.prereq-pill.hard { border-color: #FCA5A5; background: #FEF2F2; color: #991B1B; }
.prereq-pill.g3 { border-color: #93C5FD; background: #EFF6FF; color: #1E40AF; }
.prereq-popover {
  margin-top: 10px;
  background: #FFFBEB;
  border: 2px solid #FCD34D;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  color: #78350F;
}

.cta-quiz-bar {
  margin-top: 16px;
  background: linear-gradient(135deg, #FFF1ED, #FEF9C3);
  border: 2.5px solid #FDBA74;
  border-radius: 20px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Interactive Labs Styling (16 Labs)
   ========================================================================== */
.lab-box { display: flex; flex-direction: column; gap: 12px; }
.lab-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.lab-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg-btn {
  border: 2px solid #E2E8F0;
  background: #F8FAFC;
  color: #475569;
  padding: 6px 12px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.seg-btn.active {
  background: #4F7DF3;
  color: #FFF;
  border-color: #3660D1;
}
.lab-badge {
  background: #FEF3C7;
  color: #92400E;
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 800;
}
.lab-hint {
  font-size: 13px;
  color: #475569;
  background: #F8FAFC;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
}
.lab-svg {
  width: 100%;
  max-height: 215px;
  display: block;
  margin: 0 auto;
}
.lab-result-pill {
  background: #EFF6FF;
  border: 2px solid #BFDBFE;
  color: #1E3A8A;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 700;
}
.lab-result-pill.success {
  background: #F0FDF4;
  border-color: #86EFAC;
  color: #166534;
}
.chip-btn {
  border: 2px solid #CBD5E1;
  background: #FFF;
  color: #334155;
  padding: 6px 12px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}
.chip-btn.primary {
  background: #FF7A59;
  color: #FFF;
  border-color: #E05A38;
}
.line-btns, .weight-btns, .cube-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Cube Lab */
.cube-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr 0.9fr;
  gap: 12px;
  align-items: center;
}
@media (max-width: 680px) { .cube-layout { grid-template-columns: 1fr; } }
.cube-pad {
  display: grid;
  grid-template-columns: repeat(3, 52px);
  gap: 6px;
  justify-content: center;
  margin: 10px 0;
}
.pad-cell {
  height: 52px;
  border-radius: 12px;
  border: 2px solid #CBD5E1;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  background: #F8FAFC;
}
.pad-cell.h-1 { background: #DBEAFE; border-color: #60A5FA; color: #1E40AF; }
.pad-cell.h-2 { background: #FEF3C7; border-color: #F59E0B; color: #92400E; }
.pad-cell.h-3 { background: #D1FAE5; border-color: #10B981; color: #065F46; }
.cube-views { display: flex; flex-direction: column; gap: 8px; }
.view-card {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 8px;
  text-align: center;
}
.view-title { font-size: 11.5px; font-weight: 800; margin-bottom: 5px; color: #475569; }
.mini-3x3 {
  display: grid;
  grid-template-columns: repeat(3, 16px);
  gap: 3px;
  justify-content: center;
}
.mini-cell { width: 16px; height: 16px; border-radius: 3px; background: #E2E8F0; }
.mini-cell.filled { background: #4F7DF3; }
.net-grid {
  display: grid;
  grid-template-columns: repeat(4, 64px);
  gap: 6px;
  justify-content: center;
  margin: 12px 0;
}
.net-face {
  height: 64px;
  border-radius: 12px;
  border: 3px solid rgba(30,41,59,0.2);
  color: #FFF;
  font-weight: 900;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.net-face small { font-size: 10px; }
.net-face.sel { border-color: #1E293B; transform: scale(1.06); }
.net-face.opp { border-color: #EF4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.3); }

/* Mixed Ops */
.mixed-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 10px 0; }
.expr-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.expr-tok { font-size: 28px; font-weight: 900; color: #1E293B; }
.expr-tok.paren { color: #8B5CF6; font-size: 32px; }
.expr-op {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 2.5px solid #94A3B8;
  background: #FFF;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 #CBD5E1;
}
.expr-op:hover { border-color: var(--primary); color: var(--primary); }
.expr-op.winner { background: #22C55E; color: #FFF; border-color: #15803D; box-shadow: 0 4px 0 #15803D; }
.mixed-feedback { font-size: 14px; font-weight: 700; color: #475569; text-align: center; }
.mixed-feedback.ok { color: #15803D; }
.mixed-steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.step-bubble {
  background: #EFF6FF;
  border: 2px solid #93C5FD;
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 14px;
}
.step-bubble.final { background: #DCFCE7; border-color: #4ADE80; color: #14532D; }

/* Length Lab */
.length-readout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.big-val { font-size: 22px; font-weight: 900; background: #F1F5F9; padding: 6px 14px; border-radius: 12px; }
.big-val.accent { background: #DCFCE7; color: #15803D; }
.eq-sign { font-size: 24px; font-weight: 900; color: #64748B; }
.ruler-svg { width: 100%; max-height: 92px; }
.slider-row, .mult-controls, .angle-controls {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 700;
}
.mult-controls label, .angle-controls label { display: flex; flex-direction: column; gap: 4px; min-width: 170px; }

/* Mult & Div & Decimal vertical cards */
.mult-grid, .div-grid, .dec-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 12px;
}
@media (max-width: 640px) { .mult-grid, .div-grid, .dec-grid { grid-template-columns: 1fr; } }
.vertical-card, .split-card, .div-steps-card, .div-visual-card, .dec-line-box {
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
  border-radius: 16px;
  padding: 14px;
}
.v-title { font-size: 13.5px; font-weight: 800; margin-bottom: 10px; color: #334155; display: flex; gap: 6px; align-items: center; }
.v-algo {
  font-family: "Courier New", monospace;
  font-size: 24px;
  font-weight: 900;
  width: 120px;
  margin: 0 auto;
  text-align: right;
  line-height: 1.35;
}
.v-row span { float: left; color: var(--primary); }
.v-line { border-bottom: 3px solid #1E293B; margin: 4px 0; }
.v-row.ans { color: #2563EB; }
.v-carry { font-size: 12px; color: #D97706; text-align: center; font-weight: 700; margin: 4px 0; }
.split-bars { display: flex; flex-direction: column; gap: 6px; }
.split-item {
  background: #FFF;
  border-left: 5px solid #3B82F6;
  padding: 6px 10px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.split-sum { margin-top: 10px; font-size: 16px; font-weight: 800; color: #15803D; text-align: center; }
.est-note { margin-top: 8px; font-size: 12.5px; color: #6D28D9; background: #F5F3FF; padding: 6px 10px; border-radius: 8px; font-weight: 700; }

/* Code Lab */
.code-display { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 8px 0 14px; }
.code-seg {
  padding: 10px 14px;
  border-radius: 14px;
  text-align: center;
  color: #FFF;
  min-width: 72px;
}
.code-seg span { display: block; font-size: 26px; font-weight: 900; letter-spacing: 2px; }
.code-seg small { font-size: 11px; opacity: 0.92; font-weight: 700; }
.code-seg.c1 { background: #3B82F6; }
.code-seg.c2 { background: #10B981; }
.code-seg.c3 { background: #F59E0B; }
.code-seg.c4 { background: #EC4899; }
.code-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 12px; }
.code-controls label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; }
.code-controls select { padding: 6px 8px; border-radius: 8px; border: 2px solid #CBD5E1; font-weight: 700; }

/* Fraction Lab */
.frac-flex { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; padding: 6px 0; }
.pizza-svg { width: 155px; height: 155px; }
.frac-info { display: flex; flex-direction: column; gap: 8px; min-width: 190px; }
.frac-big { display: inline-flex; flex-direction: column; align-items: center; width: 64px; font-size: 26px; font-weight: 900; line-height: 1.1; }
.f-bar { width: 46px; height: 4px; background: #1E293B; border-radius: 2px; margin: 3px 0; }
.f-num { color: #DC2626; }
.f-den { color: #2563EB; }
.frac-read { font-size: 15px; font-weight: 700; }
.add-eq { font-size: 22px; font-weight: 900; }
.cmp-flex { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.cmp-col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cmp-lbl { font-size: 20px; font-weight: 900; }
.cmp-sym { font-size: 40px; font-weight: 900; color: var(--primary); }

/* Combo Lab */
.times-rows { display: flex; flex-direction: column; gap: 10px; }
.t-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.t-lbl { font-weight: 800; font-size: 14px; min-width: 115px; }
.t-grps { display: flex; gap: 8px; flex-wrap: wrap; }
.t-grp { background: #FFF7ED; border: 2px solid #FDBA74; padding: 6px 10px; border-radius: 12px; font-size: 20px; }
.outfit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin: 8px 0; }
.outfit-card { background: #F8FAFC; border: 2px solid #E2E8F0; border-radius: 12px; padding: 8px; text-align: center; }
.outfit-card span { display: block; font-size: 11px; color: #64748B; font-weight: 700; }
.outfit-card strong { font-size: 20px; }

/* Motion & Symmetry Lab */
.motion-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .motion-cards { grid-template-columns: 1fr; } }
.m-card { background: #F8FAFC; border: 2px solid #E2E8F0; border-radius: 16px; padding: 14px; text-align: center; }
.m-title { font-size: 13.5px; font-weight: 800; margin-bottom: 10px; }
.track { height: 64px; background: #E2E8F0; border-radius: 12px; display: flex; align-items: center; padding: 0 12px; margin-bottom: 10px; overflow: hidden; }
.mover-car { font-size: 36px; transition: transform 0.35s cubic-bezier(.34,1.56,.64,1); }
.spin-box { height: 64px; display: grid; place-items: center; margin-bottom: 10px; }
.spinner-fan { font-size: 44px; transition: transform 0.4s ease; }
.sym-grid {
  display: grid;
  grid-template-columns: repeat(4, 32px) 6px repeat(4, 32px);
  gap: 4px;
  justify-content: center;
  margin: 10px 0;
}
.sym-cell {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1.5px solid #CBD5E1;
  background: #FFF;
}
.sym-cell.left { cursor: pointer; }
.sym-cell.on { background: #F43F5E; border-color: #BE123C; }
.sym-cell.right.on { background: #FB7185; border-color: #E11D48; }
.sym-axis { background: #EF4444; border-radius: 4px; }

/* Div Lab */
.div-ol { padding-left: 18px; margin: 0 0 8px; font-size: 13.5px; }
.div-ol li { margin-bottom: 5px; }
.kids-bags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.kid-bag { background: #FFF; border: 2px solid #FDBA74; border-radius: 12px; padding: 8px 10px; text-align: center; min-width: 68px; }
.kid-bag span { display: block; font-size: 11px; color: #64748B; font-weight: 700; }
.kid-bag strong { font-size: 15px; color: #EA580C; }
.rem-pill { margin-top: 10px; text-align: center; font-size: 13px; font-weight: 800; background: #FEF3C7; color: #92400E; padding: 6px 10px; border-radius: 10px; }
.rem-pill.ok { background: #DCFCE7; color: #166534; }

/* Geo Grid */
.geo-summary { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.geo-pill { padding: 8px 14px; border-radius: 12px; font-size: 14px; font-weight: 700; }
.geo-pill.p { background: #FEF2F2; border: 2px solid #FCA5A5; color: #991B1B; }
.geo-pill.a { background: #ECFDF5; border: 2px solid #6EE7B7; color: #065F46; }

/* Stats Table */
.stats-tbl { width: 100%; border-collapse: collapse; font-size: 14px; background: #FFF; border-radius: 12px; overflow: hidden; }
.stats-tbl th, .stats-tbl td { border: 1.5px solid #CBD5E1; padding: 9px 8px; text-align: center; }
.stats-tbl th { background: #EFF6FF; color: #1E40AF; font-weight: 800; }
.stats-tbl .tot-row { background: #FEF9C3; }
.mini-plus {
  margin-left: 4px;
  border: none;
  background: #3B82F6;
  color: #FFF;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

/* Calendar & Clock */
.months-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.m-chip { border-radius: 12px; padding: 8px 6px; text-align: center; border: 2px solid #E2E8F0; }
.m-chip span { display: block; font-size: 12px; font-weight: 700; }
.m-chip strong { font-size: 15px; }
.m-chip.big { background: #EFF6FF; border-color: #93C5FD; color: #1D4ED8; }
.m-chip.small { background: #F8FAFC; border-color: #CBD5E1; color: #475569; }
.m-chip.feb { background: #FEF3C7; border-color: #F59E0B; color: #B45309; }
.clock-big { font-size: 30px; font-weight: 900; color: #4F46E5; }
.clock-big span { font-size: 16px; margin-left: 6px; }
.clock-sub { font-size: 15px; margin: 4px 0 8px; }

/* Decimal bars */
.dec-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-weight: 800; }
.dec-bar { flex: 1; height: 18px; background: #E2E8F0; border-radius: 99px; overflow: hidden; }
.dec-bar div { height: 100%; border-radius: 99px; }
.dec-cmp { text-align: center; font-size: 16px; margin-top: 8px; color: #1E40AF; }

/* Compass Grid */
.compass-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 340px; margin: 6px auto; }
.comp-cell {
  border: 2px solid #CBD5E1;
  background: #FFF;
  border-radius: 14px;
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.comp-cell .c-ico { font-size: 22px; }
.comp-cell small { font-size: 10px; font-weight: 800; }
.comp-cell.center { background: #FEF3C7; border-color: #F59E0B; cursor: default; }
.comp-cell.sel { background: #DCFCE7; border-color: #16A34A; box-shadow: 0 0 0 3px rgba(34,197,94,0.25); }
.comp-cell.opp { background: #FEE2E2; border-color: #EF4444; }

/* ==========================================================================
   Quiz Arena
   ========================================================================== */
.quiz-shell {
  max-width: 760px;
  margin: 0 auto;
}
.quiz-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.quiz-prog-bar {
  flex: 1;
  height: 16px;
  background: #E2E8F0;
  border-radius: 99px;
  overflow: hidden;
}
.quiz-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF7A59, #F59E0B);
  border-radius: 99px;
  transition: width 0.35s ease;
}
.combo-badge {
  background: linear-gradient(135deg, #FF7A59, #EF4444);
  color: #FFF;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 900;
  animation: popIn 0.25s ease;
}
@keyframes popIn {
  from { transform: scale(0.75); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.quiz-card {
  background: #FFF;
  border: 3px solid #E2E8F0;
  border-radius: 26px;
  padding: 26px 28px;
  box-shadow: 0 10px 30px rgba(30, 41, 59, 0.08);
}
.q-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.diff-pill {
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
}
.diff-basic { background: #DCFCE7; color: #166534; }
.diff-standard { background: #DBEAFE; color: #1E40AF; }
.diff-challenge { background: #F3E8FF; color: #6B21A8; }

.q-prompt {
  font-size: 21px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 22px;
  line-height: 1.5;
}
.choices-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.choice-btn {
  border: 2.5px solid #E2E8F0;
  background: #F8FAFC;
  border-radius: 18px;
  padding: 14px 18px;
  text-align: left;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 0 #CBD5E1;
  transition: transform 0.1s, border-color 0.15s, background 0.15s;
}
.choice-btn:hover:not(:disabled) { border-color: var(--blue); background: #EEF2FF; }
.choice-btn:active:not(:disabled) { transform: translateY(2px); }
.choice-key {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #FFF;
  border: 2px solid #CBD5E1;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #475569;
  flex-shrink: 0;
}
.choice-btn.selected { border-color: var(--blue); background: #DBEAFE; }
.choice-btn.correct { border-color: #16A34A; background: #DCFCE7; box-shadow: 0 4px 0 #16A34A; }
.choice-btn.wrong { border-color: #DC2626; background: #FEE2E2; box-shadow: 0 4px 0 #DC2626; }

/* Numeric Input + Kid Math Keypad */
.num-input-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.num-input {
  flex: 1;
  min-width: 180px;
  border: 3px solid #CBD5E1;
  border-radius: 18px;
  padding: 14px 18px;
  font-size: 24px;
  font-weight: 900;
  color: #0F172A;
  outline: none;
  background: #F8FAFC;
}
.num-input:focus { border-color: var(--blue); background: #FFF; }
.keypad {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.key-btn {
  min-width: 46px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid #CBD5E1;
  background: #FFF;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 0 #CBD5E1;
}
.key-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #CBD5E1; }
.key-btn.special { background: #EEF2FF; border-color: #A5B4FC; color: #3730A3; padding: 0 12px; font-size: 15px; }

.feedback-banner {
  margin-top: 20px;
  border-radius: 20px;
  padding: 16px 20px;
  border: 2.5px solid;
  animation: popIn 0.2s ease;
}
.feedback-banner.ok { background: #F0FDF4; border-color: #4ADE80; color: #14532D; }
.feedback-banner.no { background: #FEF2F2; border-color: #FCA5A5; color: #7F1D1D; }
.fb-title { font-size: 18px; font-weight: 900; margin-bottom: 6px; }
.fb-exp { font-size: 14.5px; font-weight: 600; line-height: 1.55; }
.fb-actions { margin-top: 14px; display: flex; justify-content: flex-end; }

/* Quiz Summary & Adaptive Prerequisite Radar */
.result-card {
  background: #FFF;
  border: 3px solid #FDE68A;
  border-radius: 28px;
  padding: 30px 26px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.14);
}
.result-stars { font-size: 46px; letter-spacing: 8px; margin: 10px 0; }
.result-score { font-size: 32px; font-weight: 900; color: #1E293B; margin: 6px 0; }
.result-sub { font-size: 15px; color: #475569; font-weight: 700; margin-bottom: 20px; }
.radar-box {
  text-align: left;
  background: #FFF7ED;
  border: 2.5px solid #FDBA74;
  border-radius: 20px;
  padding: 18px 20px;
  margin: 20px 0;
}
.radar-box h4 { margin: 0 0 8px; font-size: 16px; color: #9A3412; }
.radar-item {
  background: #FFF;
  border: 1.5px solid #FED7AA;
  border-radius: 14px;
  padding: 10px 14px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* ==========================================================================
   Wrongbook, Badges & Parent Report
   ========================================================================== */
.wb-item {
  background: #FFF;
  border: 2px solid #FECACA;
  border-radius: 18px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.wb-q { font-size: 16px; font-weight: 800; margin: 6px 0; }
.wb-exp { font-size: 13.5px; color: #475569; background: #F8FAFC; padding: 10px 12px; border-radius: 12px; margin-top: 8px; }

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.badge-card {
  background: #FFF;
  border: 2.5px solid #E2E8F0;
  border-radius: 20px;
  padding: 18px;
  text-align: center;
  opacity: 0.55;
  filter: grayscale(0.7);
}
.badge-card.unlocked {
  opacity: 1;
  filter: none;
  border-color: #FBBF24;
  background: linear-gradient(180deg, #FFFDF5, #FFF8E1);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.14);
}
.badge-ico { font-size: 42px; margin-bottom: 6px; }
.badge-name { font-size: 16px; font-weight: 900; margin-bottom: 4px; }
.badge-desc { font-size: 12.5px; color: #64748B; font-weight: 600; }

.domain-bars { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.dom-row { display: flex; align-items: center; gap: 12px; }
.dom-lbl { width: 92px; font-weight: 800; font-size: 14px; }
.dom-track { flex: 1; height: 16px; background: #E2E8F0; border-radius: 99px; overflow: hidden; }
.dom-fill { height: 100%; background: var(--blue); border-radius: 99px; }
.dom-pct { width: 62px; text-align: right; font-weight: 800; font-size: 13.5px; color: #334155; }

.empty-state {
  text-align: center;
  padding: 48px 20px;
  background: #FFF;
  border: 2.5px dashed #CBD5E1;
  border-radius: 24px;
}
.empty-state .big-ico { font-size: 56px; margin-bottom: 10px; }

@media (max-width: 640px) {
  .topbar-inner { padding: 10px 12px; }
  .hero-card { padding: 16px; }
  .quiz-card { padding: 18px 16px; }
  .q-prompt { font-size: 18px; }
}

/* ==========================================================================
   Knowledge Dependency Skill Tree View (🌳 知识关联技能树)
   ========================================================================== */
.st-hero {
  background: linear-gradient(135deg, #ECFDF5 0%, #EEF4FF 60%, #FFF7ED 100%);
  border: 2.5px solid #A7F3D0;
  border-radius: 24px;
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.st-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.st-track-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.st-track-tab {
  border: 2.5px solid #E2E8F0;
  background: #FFF;
  border-radius: 16px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  transition: transform 0.12s, border-color 0.15s, box-shadow 0.15s;
}
.st-track-tab:hover { transform: translateY(-2px); border-color: #94A3B8; }
.st-track-tab.active { box-shadow: 0 5px 14px rgba(30, 41, 59, 0.09); }
.tr-ico { font-size: 26px; flex-shrink: 0; }
.tr-info { display: flex; flex-direction: column; }
.tr-info strong { font-size: 14px; font-weight: 900; line-height: 1.25; }
.tr-info small { font-size: 12px; color: var(--ink-muted); font-weight: 700; margin-top: 2px; }

.st-board-card {
  background: #FFF;
  border: 2.5px solid #E2E8F0;
  border-radius: 24px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.st-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.st-board-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.st-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 14px;
}
.st-legend .dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}
.st-legend .dot.mastered { background: #22C55E; }
.st-legend .dot.ready { background: #4F7DF3; }
.st-legend .dot.locked { background: #CBD5E1; }

.st-canvas-scroll {
  overflow-x: auto;
  padding: 6px 2px 10px;
}
.st-canvas {
  position: relative;
  min-width: 620px;
  padding: 12px 10px 18px;
}
.st-edges {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}
.st-tiers {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.st-tier-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.st-tier-label {
  font-size: 11.5px;
  font-weight: 800;
  color: #64748B;
  background: #F1F5F9;
  padding: 3px 12px;
  border-radius: 99px;
  align-self: flex-start;
}
.st-tier-nodes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 16px;
  width: 100%;
}
.st-node {
  width: 196px;
  background: #FFF;
  border: 2.5px solid #CBD5E1;
  border-radius: 16px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 0 #CBD5E1;
  transition: transform 0.14s, opacity 0.18s, border-color 0.15s, box-shadow 0.15s;
}
.st-node:hover { transform: translateY(-3px); }
.st-node.status-mastered {
  background: #F0FDF4;
  border-color: #4ADE80;
  box-shadow: 0 4px 0 #22C55E;
}
.st-node.status-ready {
  background: #EFF6FF;
  border-color: #60A5FA;
  box-shadow: 0 4px 0 #3B82F6;
}
.st-node.status-locked {
  background: #F8FAFC;
  border-color: #CBD5E1;
}
.st-node.is-sel {
  border-color: #1E293B;
  box-shadow: 0 0 0 4px rgba(79, 125, 243, 0.3), 0 5px 0 #1E293B;
  transform: translateY(-3px) scale(1.03);
}
.st-node.is-anc {
  border-color: #F97316;
  background: #FFF7ED;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.22), 0 4px 0 #EA580C;
}
.st-node.is-desc {
  border-color: #3B82F6;
  background: #EFF6FF;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22), 0 4px 0 #2563EB;
}
.st-node.is-dim {
  opacity: 0.38;
}
.st-node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.st-node-badge {
  font-size: 11px;
  font-weight: 800;
  color: #475569;
}
.st-node.status-mastered .st-node-badge { color: #15803D; }
.st-node.status-ready .st-node-badge { color: #1D4ED8; }
.st-node-name {
  font-size: 14px;
  font-weight: 900;
  color: #0F172A;
  line-height: 1.3;
}
.st-node-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.st-stars { letter-spacing: 1px; font-size: 13px; }
.st-dom { font-size: 11px; color: #64748B; font-weight: 700; }
.cross-tag {
  font-size: 10.5px;
  font-weight: 800;
  color: #7C3AED;
  background: #F3E8FF;
  padding: 1px 6px;
  border-radius: 6px;
}

/* Skill Node Inspector */
.st-inspector-empty {
  background: #FFFBEB;
  border: 2px dashed #FCD34D;
  border-radius: 20px;
  padding: 18px 20px;
  text-align: center;
  font-size: 14.5px;
  color: #78350F;
}
.st-insp-card {
  background: #FFF;
  border: 2.5px solid #93C5FD;
  border-radius: 22px;
  padding: 20px 22px;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.1);
}
.st-insp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.st-insp-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 720px) {
  .st-insp-cols { grid-template-columns: 1fr; }
}
.st-insp-box {
  border-radius: 16px;
  padding: 14px 16px;
  border: 2px solid;
}
.st-insp-box.anc { background: #FFF7ED; border-color: #FED7AA; }
.st-insp-box.desc { background: #EFF6FF; border-color: #BFDBFE; }
.st-insp-box h4 { margin: 0 0 10px; font-size: 14px; font-weight: 900; }
.insp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.insp-none { font-size: 13px; color: #64748B; font-weight: 700; }

