.classes-detail > .container { max-width: 1040px; }
.cls-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; align-items: start; }
.cls-col { min-width: 0; }
.cls-group { margin-bottom: 26px; }
.cls-group .quest-objh { margin: 0 0 10px; font-size: 12px; }
.cls-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.cls-card {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 16px;
  gap: 14px; align-items: center;
  background: var(--dms-paper, #fff);
  border: 1px solid var(--dms-border, rgba(14,27,77,.10));
  border-radius: var(--dms-radius, 14px);
  padding: 12px 16px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cls-card:hover { transform: translateY(-1px); box-shadow: var(--dms-shadow, 0 18px 38px -18px rgba(14,27,77,.35)); }
.cls-card__ico {
  width: 44px; height: 44px; border-radius: 11px;
  background: rgba(14, 27, 77, .05);
  border: 1px solid var(--dms-border, rgba(14,27,77,.10));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cls-card__ico img { max-width: 30px; max-height: 30px; object-fit: contain; }
.cls-card__main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cls-card__name {
  font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 15px;
  color: var(--dms-navy-900, #0e1b4d); line-height: 1.3;
}
.cls-card__path {
  font-size: 11.5px; color: var(--dms-muted, #6b7280);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cls-card__chev { color: #b6bdd2; font-size: 15px; }

.quest-hero__npc small span { color: #8f9ac4; font-weight: 600; }
.quest-hero__npc small i { color: #f5c542; margin-right: 3px; }

.qcb-node__card em {
  font-style: normal; font-family: 'Raleway', sans-serif; font-weight: 700;
  font-size: 9.5px; letter-spacing: .05em; color: #b6bdd2; line-height: 1;
}
a.qcb-node__card:hover em { color: var(--dms-accent, #f82249); }

.cls-tier { margin-top: 18px; scroll-margin-top: 84px; }
.cls-tier__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cls-tier__ico { max-height: 34px; width: auto; flex: none; }
.cls-tier__who { min-width: 0; }
.cls-tier__who h2 {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 19px;
  color: var(--dms-navy-900, #0e1b4d);
}
.cls-tier__req { font-size: 12px; color: var(--dms-muted, #6b7280); }
.cls-tier__also {
  margin-left: auto; display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--dms-muted, #6b7280);
}
.cls-tier__also a { text-decoration: none; transition: color 140ms ease, border-color 140ms ease; }
.cls-tier__also a:hover { color: var(--dms-accent, #f82249); border-color: rgba(248, 34, 73, .45); }

.cls-skillgrid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 14px; align-items: start; }
.cls-skillcol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.classes-section .qcb-node__card small { width: 30px; height: 30px; }
.qcb-node__card small img { max-width: 20px; max-height: 24px; object-fit: contain; }
.cls-skill { scroll-margin-top: 84px; }
.cls-skill:target { border-color: rgba(248, 34, 73, .55); box-shadow: 0 0 0 3px rgba(248, 34, 73, .15); }
.cls-skill__head { display: flex; gap: 12px; align-items: flex-start; }
.cls-skill__ico {
  width: 44px; height: 44px; border-radius: 11px; flex: none;
  background: rgba(14, 27, 77, .05);
  border: 1px solid var(--dms-border, rgba(14,27,77,.10));
  display: flex; align-items: center; justify-content: center;
}
.cls-skill__ico img { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; }
.cls-skill__who { min-width: 0; }
.cls-skill__who h3 {
  margin: 1px 0 6px; font-family: 'Raleway', sans-serif; font-weight: 800;
  font-size: 15.5px; letter-spacing: 0; text-transform: none;
  color: var(--dms-navy-900, #0e1b4d); display: block;
}
.cls-skill__chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cls-skill__reqs {
  display: flex; flex-direction: column; gap: 3px; margin-top: 11px;
  font-size: 12.5px; color: var(--dms-muted, #6b7280);
}
.cls-skill__desc { margin: 11px 0 0; font-size: 13px; line-height: 1.7; color: #2a2f3d; overflow-wrap: break-word; }

.cls-fx { margin-top: 12px; }
.cls-fx__stage {
  position: relative; min-height: 150px; border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 10px;
  background: linear-gradient(150deg, var(--dms-navy-900, #0e1b4d) 0%, #16255d 60%, var(--dms-navy-700, #1d2f6b) 100%);
  border: 1px solid var(--dms-border, rgba(14,27,77,.10));
}
.cls-fx__stage img { max-width: 100%; max-height: 320px; height: auto; display: none; }
.cls-fx--on .cls-fx__stage img { display: block; }
.cls-fx__play {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 12.5px; color: #fff;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  padding: 9px 18px; cursor: pointer;
  background: rgba(255, 255, 255, .08);
  transition: background 140ms ease, border-color 140ms ease;
}
.cls-fx__play:hover { background: rgba(248, 34, 73, .8); border-color: transparent; }
.cls-fx__play i { font-size: 11px; }
.cls-fx--loading .cls-fx__stage::after {
  content: ''; position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff;
  animation: clsspin .8s linear infinite;
}
@keyframes clsspin { to { transform: rotate(360deg); } }
.cls-fx__tabs { margin: 10px 0 0; }
.cls-fx__save {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 11px; color: #fff;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  padding: 6px 11px; cursor: pointer;
  background: rgba(14, 27, 77, .72);
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.cls-fx__save:hover { background: rgba(248, 34, 73, .9); border-color: transparent; }
.cls-fx__save i { font-size: 11px; }
.cls-fx__save.is-done { background: rgba(57, 217, 138, .95); border-color: transparent; color: #06210f; }

.cls-lvls {
  margin-top: 12px; border: 1px solid var(--dms-border, rgba(14,27,77,.10));
  border-radius: 12px; background: var(--dms-paper-2, #f7f8fc); overflow: hidden;
}
.cls-lvls summary {
  list-style: none; display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; cursor: pointer; user-select: none;
  font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 12px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--dms-navy-700, #1d2f6b);
}
.cls-lvls summary::-webkit-details-marker { display: none; }
.cls-lvls summary i { font-size: 12px; opacity: .6; }
.cls-lvls summary span {
  margin-left: auto; font-size: 10.5px; font-weight: 700; color: var(--dms-muted, #6b7280);
  letter-spacing: .04em; text-transform: none;
}
.cls-lvls summary::after {
  content: '\276F'; font-size: 10px; color: var(--dms-muted, #6b7280);
  transform: rotate(90deg); transition: transform 140ms ease; margin-left: 8px;
}
.cls-lvls[open] summary::after { transform: rotate(-90deg); }
.cls-lvls[open] summary { border-bottom: 1px solid var(--dms-border, rgba(14,27,77,.10)); }
.cls-lvls__scroll { max-height: 330px; overflow: auto; background: var(--dms-paper, #fff); }
.cls-lvls table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: lining-nums tabular-nums; }
.cls-lvls th {
  position: sticky; top: 0; z-index: 1; text-align: left; white-space: nowrap;
  background: var(--dms-paper-2, #f7f8fc); color: var(--dms-muted, #6b7280);
  font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 10px; border-bottom: 1px solid var(--dms-border, rgba(14,27,77,.10));
}
.cls-lvls td {
  padding: 6.5px 10px; color: var(--dms-ink, #100e17); white-space: nowrap;
  border-bottom: 1px solid rgba(14, 27, 77, .05);
}
.cls-lvls tbody tr:nth-child(even) td { background: rgba(14, 27, 77, .025); }
.cls-lvls td:first-child, .cls-lvls th:first-child { padding-left: 14px; font-weight: 700; color: var(--dms-navy-700, #1d2f6b); }
.cls-lvls .cls-lvls__fx { white-space: normal; min-width: 220px; line-height: 1.55; }

.cls-main { min-width: 0; }
.cls-tier + .cls-tier { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--dms-border, rgba(14,27,77,.10)); }

.cls-toc { display: none; }
.cls-toc__top { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--dms-muted, #6b7280); text-decoration: none; transition: color 140ms ease; }
.cls-toc__top:hover { color: var(--dms-accent, #f82249); }
.cls-toc__top i { font-size: 11px; }
.cls-toc__job { display: block; margin-top: 13px; font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 12px; color: var(--dms-navy-900, #0e1b4d); text-decoration: none; }
.cls-toc nav > .cls-toc__job:first-child { margin-top: 0; }
.cls-toc__job:hover { color: var(--dms-accent, #f82249); }
.cls-toc__skills { list-style: none; margin: 5px 0 0; padding: 0; }
.cls-toc__skills a { display: block; padding: 3px 0 3px 11px; font-size: 12px; line-height: 1.35; color: var(--dms-muted, #6b7280); text-decoration: none; border-left: 2px solid transparent; transition: color 140ms ease, border-color 140ms ease; }
.cls-toc__skills a:hover { color: var(--dms-navy-700, #1d2f6b); }
.cls-toc__skills a.is-active { color: var(--dms-navy-900, #0e1b4d); font-weight: 600; border-left-color: var(--dms-accent, #f82249); }

@media (min-width: 992px) {
  .cls-layout { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 32px; align-items: stretch; }
  .cls-toc { display: block; padding-top: 18px; }
  .cls-toc__inner { position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow: auto; padding-right: 6px; }
}

@media (max-width: 991px) {
  .cls-cols { grid-template-columns: 1fr; }
  .cls-tier__also { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 767px) {
  .cls-card__path { white-space: normal; }
  .cls-lvls__scroll { max-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .cls-card { transition: none; }
  .cls-fx--loading .cls-fx__stage::after { animation: none; }
}
