.gl-topic .gt-grid {
  align-items: stretch;
}

.gl-experiment {
  display: grid;
  gap: 18px;
}

.gl-exp-workbench {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  padding-top: 16px;
}

.gl-exp-story {
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid rgba(20, 184, 166, 0.24);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(145deg, #ffffff, #f0fdfa);
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.08);
}

.gl-exp-story > span {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
  font-size: 0.78rem;
  font-weight: 950;
}

.gl-exp-story > strong {
  color: #102033;
  font-size: 1.08rem;
}

.gl-exp-story p {
  margin: 0;
  color: #536171;
  line-height: 1.65;
}

.gl-exp-board,
.gl-factor-visual,
.gl-sync-visual,
.gl-case-visual {
  min-height: 220px;
  border: 1px solid rgba(190, 202, 222, 0.82);
  border-radius: 16px;
  padding: 16px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
    repeating-linear-gradient(0deg, rgba(76, 131, 240, 0.06) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(76, 131, 240, 0.06) 0 1px, transparent 1px 28px);
}

.gl-exp-board {
  display: grid;
  gap: 12px;
}

.gl-exp-visual {
  min-height: 250px;
}

.gl-exp-factor,
.gl-factor-strips {
  display: grid;
  gap: 12px;
}

.gl-exp-factor section,
.gl-factor-strips section {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 2px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.gl-exp-factor section.is-clean,
.gl-factor-strips section.is-clean {
  border-color: rgba(20, 184, 166, 0.58);
  background: rgba(240, 253, 250, 0.92);
}

.gl-exp-factor section.has-rest,
.gl-factor-strips section.has-rest {
  border-color: rgba(245, 158, 11, 0.54);
  background: rgba(255, 251, 235, 0.92);
}

.gl-exp-factor section strong,
.gl-factor-strips section strong {
  color: #334155;
}

.gl-exp-factor div,
.gl-factor-strips div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.gl-exp-factor i,
.gl-factor-strips i,
.gl-exp-factor-list i,
.gl-factor-list i {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  min-height: 28px;
  border-radius: 8px;
  color: #1e3a8a;
  background: #dbeafe;
  font-style: normal;
  font-weight: 950;
}

.gl-rest {
  border-radius: 8px;
  padding: 5px 8px;
  color: #92400e;
  background: #fde68a;
}

.gl-exp-factor-list,
.gl-factor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.gl-exp-factor-list strong,
.gl-factor-list strong {
  color: #475569;
  font-size: 0.86rem;
}

.gl-exp-factor-list .is-on,
.gl-factor-list .is-on {
  color: #fff;
  background: #0f766e;
}

.gl-exp-sync,
.gl-sync-lines {
  display: grid;
  gap: 12px;
}

.gl-exp-sync section,
.gl-sync-lines section {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(99, 102, 241, 0.24);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.94);
}

.gl-exp-sync section div,
.gl-sync-lines section div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gl-exp-sync i,
.gl-sync-lines i {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 30px;
  border-radius: 999px;
  color: #334155;
  background: #e2e8f0;
  font-style: normal;
  font-weight: 900;
}

.gl-exp-sync .is-candidate {
  outline: 3px solid rgba(245, 158, 11, 0.3);
}

.gl-exp-sync .is-sync,
.gl-sync-lines .is-sync {
  color: #fff;
  background: #dc2626;
}

.gl-exp-sync > b,
.gl-sync-badge {
  width: fit-content;
  border-radius: 12px;
  padding: 8px 12px;
  color: #7c2d12;
  background: #ffedd5;
}

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

.gl-case {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(190, 202, 222, 0.78);
  border-radius: 16px;
  background: #fff;
}

.gl-case-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: start;
}

.gl-case-head span {
  grid-column: 1 / -1;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 10px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
  font-size: 0.78rem;
  font-weight: 950;
}

.gl-case-head strong {
  color: #111827;
  font-size: 1.05rem;
}

.gl-case-head em {
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  background: #172033;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 950;
  white-space: nowrap;
}

.gl-case-visual {
  min-height: 190px;
  overflow: hidden;
}

.gl-case-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gl-case-metrics span {
  display: grid;
  gap: 4px;
  min-height: 58px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  padding: 10px;
  color: #64748b;
  background: #f8fafc;
  font-size: 0.8rem;
  font-weight: 850;
}

.gl-case-metrics b {
  color: #111827;
  font-size: 1rem;
}

.gl-more {
  align-self: center;
  border-radius: 999px;
  padding: 5px 8px;
  color: #475569;
  background: #e2e8f0;
  font-size: 0.78rem;
}

.gl-gift-scene,
.gl-queue-scene {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
}

.gl-gift-scene section,
.gl-queue-scene section {
  display: grid;
  gap: 6px;
  min-height: 82px;
  border: 2px solid rgba(20, 184, 166, 0.22);
  border-radius: 14px;
  padding: 8px;
  background: rgba(240, 253, 250, 0.86);
}

.gl-gift-scene section div,
.gl-queue-scene section div,
.gl-package-scene section,
.gl-denom-scene section div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.gl-pencil {
  width: 8px;
  height: 28px;
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(#facc15 0 72%, #334155 72% 84%, #f8fafc 84%);
}

.gl-sticker {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
}

.gl-floor {
  display: grid;
  gap: 10px;
}

.gl-floor strong,
.gl-floor span,
.gl-package-scene strong,
.gl-rhythm-scene strong,
.gl-calendar-scene strong,
.gl-denom-scene strong,
.gl-euclid-scene strong {
  width: fit-content;
  border-radius: 12px;
  padding: 7px 10px;
  color: #0f172a;
  background: #e0f2fe;
  font-weight: 950;
}

.gl-floor section {
  display: grid;
  gap: 3px;
  border: 3px solid #94a3b8;
  border-radius: 12px;
  padding: 5px;
  background: #f8fafc;
}

.gl-floor i {
  min-height: 18px;
  border-radius: 4px;
  background: linear-gradient(135deg, #fed7aa, #fdba74);
}

.gl-bus-scene,
.gl-package-scene,
.gl-rhythm-scene,
.gl-calendar-scene,
.gl-denom-scene,
.gl-euclid-scene {
  display: grid;
  gap: 10px;
}

.gl-buses {
  display: flex;
  gap: 10px;
}

.gl-buses span {
  position: relative;
  border-radius: 10px;
  padding: 10px 14px 10px 34px;
  color: #fff;
  background: #2563eb;
  font-weight: 950;
}

.gl-buses span::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 13px;
  width: 16px;
  height: 12px;
  border-radius: 4px 4px 2px 2px;
  background: #bfdbfe;
}

.gl-alarm-scene {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}

.gl-alarm-scene section {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 8px solid #f59e0b;
  border-radius: 999px;
  background:
    radial-gradient(circle, #fff 0 42%, transparent 43%),
    conic-gradient(#fde68a 0 25%, #fff7ed 0 100%);
}

.gl-alarm-scene b {
  color: #92400e;
  font-size: 1.7rem;
}

.gl-alarm-scene strong {
  grid-column: 1 / -1;
  border-radius: 12px;
  padding: 9px 12px;
  color: #713f12;
  background: #fef3c7;
}

.gl-gear-scene {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}

.gl-gear {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle, #fff 0 22%, transparent 23% 100%),
    repeating-conic-gradient(#64748b 0 8deg, #cbd5e1 8deg 16deg);
}

.gl-gear.second {
  background:
    radial-gradient(circle, #fff 0 22%, transparent 23% 100%),
    repeating-conic-gradient(#0f766e 0 7deg, #99f6e4 7deg 14deg);
}

.gl-gear b {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: #172033;
  background: #fff;
}

.gl-gear-scene strong {
  grid-column: 1 / -1;
  border-radius: 12px;
  padding: 8px 10px;
  color: #0f172a;
  background: #dcfce7;
}

.gl-box-small,
.gl-crate {
  width: 22px;
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
}

.gl-crate {
  width: 28px;
  height: 22px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
}

.gl-person {
  width: 15px;
  height: 24px;
  border-radius: 999px 999px 5px 5px;
}

.gl-person.one {
  background: #22c55e;
}

.gl-person.two {
  background: #60a5fa;
}

.gl-rhythm-scene > div,
.gl-calendar-scene {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.gl-rhythm-scene i {
  width: 16px;
  height: 32px;
  border-radius: 999px;
  background: #e2e8f0;
}

.gl-rhythm-scene .is-drum {
  background: #fb7185;
}

.gl-rhythm-scene .is-clap {
  box-shadow: inset 0 0 0 4px #38bdf8;
}

.gl-rhythm-scene .is-sync {
  background: #dc2626;
  box-shadow: inset 0 0 0 4px #fde68a;
}

.gl-calendar-scene i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #475569;
  background: #f1f5f9;
  font-style: normal;
  font-weight: 900;
}

.gl-calendar-scene .is-math {
  background: #dbeafe;
  color: #1d4ed8;
}

.gl-calendar-scene .is-club {
  border: 2px solid #22c55e;
}

.gl-calendar-scene .is-sync {
  color: #fff;
  background: #dc2626;
  border-color: #dc2626;
}

.gl-fraction-scene {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.gl-fraction-scene section {
  display: grid;
  place-items: center;
  min-height: 118px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 14px;
  background: #fff;
}

.gl-fraction-scene b {
  color: #111827;
  font-size: 1.7rem;
}

.gl-fraction-scene span {
  width: 70%;
  height: 3px;
  background: #111827;
}

.gl-fraction-scene > i {
  border-radius: 999px;
  padding: 8px 10px;
  color: #fff;
  background: #0f766e;
  font-style: normal;
  font-weight: 950;
}

.gl-fraction-scene .after {
  background: #f0fdf4;
}

.gl-denom-scene section {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  padding: 10px;
  background: #fff;
}

.gl-denom-scene i {
  flex: 1 0 18px;
  height: 20px;
  border-radius: 4px;
  background: #a7f3d0;
}

.gl-euclid-scene section {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 12px;
  padding: 8px;
  background: #fff;
}

.gl-euclid-scene section b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  background: #4c83f0;
}

.gl-euclid-scene .is-final {
  border-color: rgba(22, 163, 74, 0.48);
  background: #f0fdf4;
}

@media (max-width: 980px) {
  .gl-exp-workbench,
  .gl-case-grid,
  .gl-factor-lab,
  .gl-sync-lab {
    grid-template-columns: 1fr;
  }

  .gl-case-head {
    grid-template-columns: 1fr;
  }
}
