:root {
  --bg: #0b0c0e;
  --s1: #131518;
  --s2: #1a1d21;
  --s3: #23272c;
  --line: #2a2e34;
  --line2: #363b42;
  --tx: #f2f0eb;
  --mu: #a0a3a7;
  --fa: #6d7176;
  /* Primary green sampled from the supplied academy logo. */
  --ac: #48a96d;
  --ac-rgb: 72, 169, 109;
  --ac2: #66bf87;
  --acink: #071c10;
  --ok: #5cc08d;
  --bad: #ec6a52;
  --warn: #eaa33c;
  --fd: "Cabinet Grotesk", "Satoshi", system-ui, sans-serif;
  --fb: "Satoshi", system-ui, -apple-system, sans-serif;
  --r: 12px;
  --r2: 18px;
  --pad: clamp(16px, 3vw, 40px);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--fb);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
svg .f {
  fill: currentColor;
  stroke: none;
}
:focus-visible {
  outline: 2px solid var(--ac);
  outline-offset: 2px;
  border-radius: 6px;
}

.shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100dvh;
}
.side {
  position: sticky;
  top: 0;
  height: 100dvh;
  border-right: 1px solid var(--line);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: var(--bg);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ac);
  color: var(--acink);
  display: grid;
  place-items: center;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text b {
  font-family: var(--fd);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.brand-text small {
  font-size: 12px;
  color: var(--mu);
  letter-spacing: 0.04em;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--mu);
  font-weight: 500;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav a svg {
  width: 20px;
  height: 20px;
}
.nav a:hover {
  background: var(--s1);
  color: var(--tx);
}
.nav a.on {
  background: var(--s2);
  color: var(--tx);
}
.nav a.on svg {
  color: var(--ac);
}
.side-foot {
  margin-top: auto;
  padding: 0 8px;
}
.proto-tag {
  font-size: 12px;
  color: var(--fa);
  border: 1px dashed var(--line2);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
}

.main {
  min-width: 0;
}
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px var(--pad);
  background: rgba(11, 12, 14, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.search {
  flex: 1;
  min-width: 0;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--s1);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
}
.search svg {
  width: 18px;
  height: 18px;
  color: var(--fa);
}
.search input {
  flex: 1;
  background: none;
  border: 0;
  color: var(--tx);
  font: inherit;
  outline: none;
  min-width: 0;
}
.search input::placeholder {
  color: var(--fa);
}
.role {
  display: flex;
  flex: none;
  background: var(--s1);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  margin-left: auto;
}
.role button {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mu);
}
.role button.on {
  background: var(--tx);
  color: var(--bg);
}
.bell {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}
.bell svg {
  width: 18px;
  height: 18px;
}
.bell i {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bad);
  border: 2px solid var(--bg);
}
.bell i.off {
  display: none;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3a3f46, #22262b);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid var(--line2);
}

#view {
  outline: none;
  padding-bottom: 80px;
}
.wrap {
  padding: 0 var(--pad);
}
.sec {
  margin-top: 44px;
}
.sec-h {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ac);
  font-weight: 700;
}
.h1 {
  font-family: var(--fd);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1;
  letter-spacing: -0.025em;
}
.h2 {
  font-family: var(--fd);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.h3 {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
}
.mu {
  color: var(--mu);
}
.fa {
  color: var(--fa);
}
.link {
  color: var(--mu);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.link:hover {
  color: var(--ac);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition:
    transform 0.15s,
    background 0.15s;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn-ac {
  background: var(--ac);
  color: var(--acink);
}
.btn-ac:hover {
  background: var(--ac2);
}
.btn-gh {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.btn-gh:hover {
  background: rgba(255, 255, 255, 0.14);
}
.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}
.btn:active {
  transform: scale(0.98);
}

/* hero */
.hero {
  position: relative;
  min-height: min(72vh, 620px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(11, 12, 14, 0.94) 0%,
      rgba(11, 12, 14, 0.72) 38%,
      rgba(11, 12, 14, 0.05) 75%
    ),
    linear-gradient(0deg, var(--bg) 0%, transparent 40%);
}
.hero-in {
  position: relative;
  z-index: 1;
  padding: 0 var(--pad) 48px;
  max-width: 720px;
}
.hero-in .h1 {
  margin: 14px 0 16px;
}
.hero-in p {
  color: #d4d3cf;
  font-size: 17px;
  max-width: 540px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.resume {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--mu);
}
.resume .bar {
  width: 180px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  overflow: hidden;
  margin-top: -1px;
}
.stat {
  background: var(--s1);
  padding: 20px 22px;
}
.stat b {
  display: block;
  font-family: var(--fd);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat span {
  font-size: 13px;
  color: var(--mu);
}
.stat b small {
  font-size: 16px;
  color: var(--fa);
  font-weight: 500;
}

.bar {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--ac);
  border-radius: 4px;
}

/* rows */
.row-h {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
}
.row-h .code {
  font-family: var(--fd);
  font-weight: 700;
  color: var(--ac);
  font-size: 15px;
}
.row-h .sub {
  color: var(--fa);
  font-size: 13px;
  margin-left: 2px;
}
.row-h .link {
  margin-left: auto;
}
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 1fr);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--line2) transparent;
}
.card {
  scroll-snap-align: start;
  display: block;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--s1);
  border: 1px solid var(--line);
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.card:hover {
  border-color: var(--line2);
  transform: translateY(-2px);
}
.thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--s2);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.card:hover .thumb img {
  transform: scale(1.04);
}
.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 55%);
}
.ep {
  position: absolute;
  left: 12px;
  bottom: 8px;
  z-index: 1;
  font-family: var(--fd);
  font-weight: 800;
  font-size: 38px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.03em;
}
.dur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 7px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.chk {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 1;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ok);
  display: grid;
  place-items: center;
  color: #06210f;
}
.chk svg {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}
.card .bar {
  border-radius: 0;
  height: 3px;
}
.card-b {
  padding: 12px 14px 14px;
}
.card-b .h3 {
  font-size: 15px;
}
.card-b p {
  font-size: 13px;
  color: var(--mu);
  margin-top: 2px;
}
.card.open .thumb img {
  filter: grayscale(1) brightness(0.45);
}
.pill {
  display: inline-block;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--s3);
  color: var(--mu);
}
.pill.ac {
  background: rgba(var(--ac-rgb), 0.14);
  color: var(--ac);
}
.pill.ok {
  background: rgba(92, 192, 141, 0.14);
  color: var(--ok);
}
.pill.bad {
  background: rgba(236, 106, 82, 0.15);
  color: var(--bad);
}
.pill.warn {
  background: rgba(234, 163, 60, 0.15);
  color: var(--warn);
}
.open-lbl {
  position: absolute;
  left: 12px;
  top: 10px;
  z-index: 1;
}

/* path grid */
.paths {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.path {
  position: relative;
  border-radius: var(--r2);
  overflow: hidden;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  border: 1px solid var(--line);
}
.path img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.path:hover img {
  transform: scale(1.05);
}
.path::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    0deg,
    rgba(11, 12, 14, 0.96) 15%,
    rgba(11, 12, 14, 0.25) 70%
  );
}
.path > *:not(img) {
  position: relative;
  z-index: 2;
}
.path .code {
  font-family: var(--fd);
  font-weight: 800;
  font-size: 13px;
  color: var(--ac);
  letter-spacing: 0.08em;
}
.path .h3 {
  font-family: var(--fd);
  font-size: 21px;
  margin: 4px 0 10px;
  letter-spacing: -0.01em;
}
.path .meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--mu);
  margin-bottom: 8px;
}

/* track page */
.thero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.thero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      0deg,
      var(--bg) 4%,
      rgba(11, 12, 14, 0.55) 55%,
      rgba(11, 12, 14, 0.2)
    ),
    linear-gradient(90deg, rgba(11, 12, 14, 0.8), transparent 70%);
}
.thero .hero-in {
  padding-bottom: 36px;
}
.ep-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.ep-row {
  display: grid;
  grid-template-columns: 56px 220px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.ep-row:hover {
  background: linear-gradient(90deg, transparent, var(--s1), transparent);
}
.ep-row .n {
  font-family: var(--fd);
  font-size: 34px;
  font-weight: 800;
  color: var(--fa);
  letter-spacing: -0.03em;
}
.ep-row .thumb {
  border-radius: 10px;
}
.ep-row .thumb::after {
  display: none;
}
.ep-row .r {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--mu);
  font-size: 13px;
}

/* watch */
.watch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  padding: 24px var(--pad) 0;
}
.player {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--r2);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
}
.player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.4s;
}
.player.playing img {
  filter: brightness(0.9);
}
.player .shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.55)
  );
}
.player.playing .shade {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), transparent 30%);
}
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--ac);
  color: var(--acink);
  display: grid;
  place-items: center;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.play:hover {
  transform: translate(-50%, -50%) scale(1.06);
}
.play svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}
.player.playing .play {
  opacity: 0;
  pointer-events: none;
}
.ctrl {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.ctrl .bar {
  flex: 1;
  height: 5px;
  cursor: pointer;
}
.ctrl button svg {
  width: 20px;
  height: 20px;
}
.ph-note {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 999px;
  color: #ddd;
}
.caption {
  position: absolute;
  left: 50%;
  bottom: 58px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.72);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 15px;
  max-width: 80%;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.player.playing .caption {
  opacity: 1;
}
.w-meta {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.w-meta .h2 {
  margin: 6px 0 4px;
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-top: 26px;
}
.tabs button {
  padding: 12px 14px;
  color: var(--mu);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs button.on {
  color: var(--tx);
  border-color: var(--ac);
}
.tab-p {
  padding: 20px 0;
  color: #d0cfcb;
  max-width: 760px;
}
.tab-p li {
  margin: 0 0 10px 18px;
}
.chap {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.chap span {
  font-variant-numeric: tabular-nums;
  color: var(--ac);
  font-weight: 700;
  width: 48px;
}
.res {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
  background: var(--s1);
}
.res svg {
  width: 20px;
  height: 20px;
  color: var(--ac);
}
.upnext {
  background: var(--s1);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  padding: 16px;
  align-self: start;
  position: sticky;
  top: 90px;
}
.upnext .un {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 8px;
  border-radius: 10px;
  align-items: center;
}
.upnext .un:hover {
  background: var(--s2);
}
.upnext .un.cur {
  background: var(--s2);
  outline: 1px solid var(--line2);
}
.upnext .thumb {
  border-radius: 8px;
}
.upnext .thumb::after {
  display: none;
}
.upnext .un b {
  font-size: 14px;
  display: block;
  line-height: 1.3;
}
.upnext .un small {
  color: var(--fa);
  font-size: 12px;
}
.quiz-cta {
  margin-top: 14px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(var(--ac-rgb), 0.16),
    rgba(var(--ac-rgb), 0.04)
  );
  border: 1px solid rgba(var(--ac-rgb), 0.3);
}
.quiz-cta p {
  font-size: 13px;
  color: var(--mu);
  margin: 4px 0 12px;
}

/* quiz */
.quiz {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 0 var(--pad);
}
.qprog {
  display: flex;
  gap: 6px;
  margin: 18px 0 30px;
}
.qprog i {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--s3);
}
.qprog i.done {
  background: var(--ac);
}
.qprog i.cur {
  background: var(--tx);
}
.qq {
  font-family: var(--fd);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--s1);
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: 16px;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.opt:hover {
  border-color: var(--line2);
  background: var(--s2);
}
.opt .k {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line2);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--mu);
  flex: none;
}
.opt.sel {
  border-color: var(--ac);
  background: rgba(var(--ac-rgb), 0.07);
}
.opt.sel .k {
  background: var(--ac);
  color: var(--acink);
  border-color: var(--ac);
}
.opt.right {
  border-color: var(--ok);
  background: rgba(92, 192, 141, 0.08);
}
.opt.wrong {
  border-color: var(--bad);
  background: rgba(236, 106, 82, 0.08);
}
.qnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
}
.result {
  text-align: center;
  padding: 30px 0;
}
.score {
  font-family: var(--fd);
  font-weight: 800;
  font-size: 96px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.result .pill {
  margin: 14px 0;
}
.mail {
  margin: 30px auto 0;
  max-width: 620px;
  text-align: left;
  background: #f6f5f1;
  color: #1c1c1c;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.mail-h {
  padding: 14px 18px;
  border-bottom: 1px solid #e1dfd8;
  font-size: 13px;
  color: #555;
  display: grid;
  gap: 3px;
}
.mail-h b {
  color: #1c1c1c;
}
.mail-b {
  padding: 20px 22px;
  font-size: 14px;
  line-height: 1.6;
}
.mail-b .mbar {
  height: 4px;
  background: var(--ac);
  margin: -20px -22px 18px;
}
.mail-b h4 {
  font-size: 18px;
  margin-bottom: 10px;
  font-family: var(--fd);
}
.mail-b table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
}
.mail-b td {
  padding: 7px 0;
  border-bottom: 1px solid #e6e4dd;
}
.mail-b td:last-child {
  text-align: right;
  font-weight: 700;
}
.mail-b .mbtn {
  display: inline-block;
  margin-top: 10px;
  background: var(--acink);
  color: var(--ac);
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
}

/* tables, panels */
.panel {
  background: var(--s1);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  padding: 22px;
}
.grid2 {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
}
.grid2.mgr {
  grid-template-columns: 1.5fr 1fr;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.tbl th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fa);
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.tbl td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.tbl tr:last-child td {
  border-bottom: 0;
}
.tbl .num {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.tbl th.num {
  text-align: right;
}
.tbl-wrap {
  overflow-x: auto;
}
.who {
  display: flex;
  align-items: center;
  gap: 10px;
}
.who .av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--s3);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.who small {
  display: block;
  color: var(--fa);
  font-size: 12px;
}
.mini {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
}
.mini .bar {
  flex: 1;
}
.ring {
  position: relative;
  width: 170px;
  height: 170px;
  flex: none;
}
.ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ring .c {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
}
.ring .c b {
  font-family: var(--fd);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
}
.ring .c span {
  font-size: 12px;
  color: var(--mu);
}
.ce-top {
  display: flex;
  gap: 30px;
  align-items: center;
}
.cert {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cert:last-child {
  border: 0;
}
.badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--fd);
  font-weight: 800;
  font-size: 15px;
  flex: none;
  background: var(--s3);
  color: var(--fa);
  border: 1px solid var(--line2);
}
.badge.got {
  background: var(--ac);
  color: var(--acink);
  border-color: var(--ac);
}
.badge.prog {
  color: var(--ac);
  border-color: rgba(var(--ac-rgb), 0.5);
}
.cert .grow {
  flex: 1;
  min-width: 0;
}
.cert small {
  color: var(--fa);
  font-size: 12px;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.kpi {
  background: var(--s1);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  padding: 18px 20px;
}
.kpi span {
  font-size: 13px;
  color: var(--mu);
}
.kpi b {
  display: block;
  font-family: var(--fd);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.kpi em {
  font-style: normal;
  font-size: 12px;
  color: var(--ok);
}
.kpi em.bad {
  color: var(--bad);
}
.heat {
  display: grid;
  grid-template-columns: 120px repeat(5, 1fr);
  gap: 4px;
  font-size: 12px;
}
.heat div {
  padding: 8px 6px;
  border-radius: 6px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.heat .hd {
  color: var(--fa);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
}
.heat .nm {
  text-align: left;
  color: var(--mu);
}

.rule {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  background: var(--s1);
  cursor: pointer;
  transition: border-color 0.15s;
}
.rule:hover {
  border-color: var(--line2);
}
.rule.cur {
  border-color: var(--ac);
}
.rule .ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--s3);
  flex: none;
}
.rule .ic svg {
  width: 18px;
  height: 18px;
}
.rule .grow {
  flex: 1;
  min-width: 0;
}
.rule small {
  display: block;
  color: var(--fa);
  font-size: 12px;
}
.tog {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--s3);
  border: 1px solid var(--line2);
  flex: none;
  transition: background 0.2s;
}
.tog::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mu);
  transition:
    transform 0.2s,
    background 0.2s;
}
.tog.on {
  background: var(--ac);
  border-color: var(--ac);
}
.tog.on::after {
  transform: translateX(18px);
  background: var(--acink);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field label {
  font-size: 12px;
  color: var(--fa);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.field input,
.field select {
  background: var(--s2);
  border: 1px solid var(--line);
  color: var(--tx);
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--mu);
  font-weight: 500;
}
.chip.on {
  background: var(--tx);
  color: var(--bg);
  border-color: var(--tx);
}
.lib {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--mu);
  border: 1px dashed var(--line2);
  border-radius: var(--r2);
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--tx);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s,
    transform 0.25s;
  z-index: 100;
  max-width: calc(100vw - 32px);
  display: flex;
  gap: 10px;
  align-items: center;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] {
  display: none;
}
.modal-c {
  background: var(--s1);
  border: 1px solid var(--line2);
  border-radius: var(--r2);
  padding: 26px;
  width: min(460px, 100%);
}
.modal-c .h2 {
  margin-bottom: 16px;
}
.modal-a {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 1180px) {
  .paths {
    grid-template-columns: repeat(3, 1fr);
  }
  .watch {
    grid-template-columns: 1fr;
  }
  .upnext {
    position: static;
  }
}
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .side {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    flex-direction: row;
    padding: 6px 8px;
    z-index: 50;
    border-right: 0;
    border-top: 1px solid var(--line);
    background: rgba(11, 12, 14, 0.95);
    backdrop-filter: blur(12px);
  }
  .brand,
  .side-foot {
    display: none;
  }
  .nav {
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
  }
  .nav a {
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    padding: 6px 8px;
  }
  #view {
    padding-bottom: 110px;
  }
  .stats,
  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid2,
  .grid2.mgr,
  .grid3 {
    grid-template-columns: 1fr;
  }
  .row-h {
    flex-wrap: wrap;
  }
  .row-h .sub {
    display: none;
  }
  .grid3 {
    grid-template-columns: 1fr;
  }
  .paths {
    grid-template-columns: repeat(2, 1fr);
  }
  .ep-row {
    grid-template-columns: 120px 1fr;
    gap: 14px;
  }
  .ep-row .n {
    display: none;
  }
  .ep-row .r {
    grid-column: 2;
  }
  .ce-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .heat {
    grid-template-columns: 90px repeat(5, 1fr);
  }
}
@media (max-width: 560px) {
  .top {
    gap: 8px;
  }
  .search {
    padding: 8px 12px;
  }
  .search input {
    font-size: 14px;
  }
  .bell,
  .avatar {
    display: none;
  }
  .role button {
    padding: 6px 10px;
  }
  .paths {
    grid-template-columns: 1fr;
  }
  .path {
    min-height: 200px;
  }
  .rail {
    grid-auto-columns: 78%;
  }
  .hero {
    min-height: 560px;
  }
  .hero::after {
    background: linear-gradient(
      0deg,
      var(--bg) 10%,
      rgba(11, 12, 14, 0.75) 55%,
      rgba(11, 12, 14, 0.3)
    );
  }
  .score {
    font-size: 72px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
.grid2 > *,
.grid3 > *,
.watch > * {
  min-width: 0;
}
.mail-h div {
  overflow-wrap: anywhere;
}
.sec-h {
  flex-wrap: wrap;
}
@media (max-width: 1180px) {
  .watch {
    grid-template-columns: minmax(0, 1fr);
  }
}
.tabs {
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs button {
  white-space: nowrap;
}
.heat {
  grid-template-columns: minmax(0, 120px) repeat(5, minmax(0, 1fr));
}
@media (max-width: 560px) {
  .panel {
    padding: 16px;
  }
  .heat {
    grid-template-columns: 64px repeat(5, minmax(0, 1fr));
    gap: 3px;
    font-size: 11px;
  }
  .heat div {
    padding: 7px 2px;
  }
  .cert {
    flex-wrap: wrap;
  }
  .cert .grow {
    flex: 1 1 160px;
  }
}
