:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef5f4;
  --ink: #172033;
  --muted: #667085;
  --line: #d8dee9;
  --brand: #175676;
  --brand-2: #2a9d8f;
  --accent: #e9a11b;
  --danger: #c4455c;
  --ok: #247f58;
  --shadow: 0 16px 40px rgba(23, 32, 51, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
  background: #13293d;
  color: #f6f9fc;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2a9d8f, #e9a11b);
  color: #102236;
  font-weight: 900;
}

.brand-title {
  font-size: 17px;
  font-weight: 800;
}

.brand-note {
  color: #c7d3df;
  font-size: 13px;
}

.brand-menu-icon {
  display: none;
  margin-left: auto;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  color: #dbe7f0;
  background: transparent;
  padding: 12px 12px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav button.active,
.nav button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd7e2;
  font-size: 13px;
  line-height: 1.45;
}

.main {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--brand);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

h2 {
  font-size: 26px;
  line-height: 1.2;
}

h3 {
  font-size: 18px;
  line-height: 1.3;
}

.muted {
  color: var(--muted);
}

.screen {
  display: grid;
  gap: 20px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

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

.panel,
.card,
.login-box,
.lesson-layout,
.admin-layout,
.question-box,
.practice-box,
.media-box,
.glossary-row,
.homework-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 20px;
}

.card {
  padding: 18px;
}

.hero-panel {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  min-height: 280px;
}

.hero-copy {
  padding: 28px;
}

.hero-art {
  position: relative;
  min-height: 240px;
  background:
    linear-gradient(135deg, rgba(23, 86, 118, 0.92), rgba(42, 157, 143, 0.82)),
    url("assets/course-map.svg");
  background-size: cover;
  background-position: center;
}

.student-next-step {
  border: 1px solid #d4e0e7;
  border-radius: 8px;
  background: #f7fafb;
  padding: 14px;
  margin: 18px 0;
  display: grid;
  gap: 5px;
}

.student-next-step span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.student-next-step strong {
  color: var(--ink);
  font-size: 20px;
}

.student-next-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.diagnostic-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #ffffff, #f1f8f7);
}

.diagnostic-strip h2 {
  margin-bottom: 8px;
}

.diagnostic-mini {
  min-width: 150px;
  border: 1px solid #d4e7e4;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
  display: grid;
  gap: 4px;
}

.diagnostic-mini strong {
  font-size: 24px;
  color: var(--brand);
}

.diagnostic-mini span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.diagnostic-intro {
  max-width: 960px;
}

.diagnostic-path-card {
  display: grid;
  gap: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f2f8f7 52%, #fff7e8 100%);
}

.diagnostic-path-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.diagnostic-progress-line {
  height: 12px;
  border-radius: 999px;
  background: #dce8e9;
  overflow: hidden;
}

.diagnostic-progress-line span {
  display: block;
  height: 100%;
  width: var(--value, 0%);
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.diagnostic-levels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.diagnostic-level-card {
  min-height: 178px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.diagnostic-level-card > span {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #eef3f5;
  color: #637083;
  font-weight: 900;
}

.diagnostic-level-card strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.18;
}

.diagnostic-level-card small {
  width: fit-content;
  border-radius: 999px;
  background: #eef5f4;
  color: var(--brand);
  padding: 5px 8px;
  font-weight: 850;
}

.diagnostic-level-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.36;
}

.diagnostic-level-card.complete {
  border-color: rgba(35, 128, 92, 0.28);
  background: #f5fbf7;
}

.diagnostic-level-card.complete > span,
.diagnostic-level-card.active > span {
  background: var(--brand);
  color: #fff;
}

.diagnostic-level-card.active {
  border-color: rgba(233, 161, 27, 0.65);
  box-shadow: 0 12px 24px rgba(233, 161, 27, 0.15);
}

.diagnostic-level-card.locked {
  opacity: 0.72;
}

.diagnostic-next-box {
  border: 1px solid #cfe1e4;
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.diagnostic-next-box strong {
  color: var(--brand);
}

.diagnostic-next-box span {
  color: var(--muted);
  line-height: 1.42;
}

.shadow-bank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.shadow-bank-card {
  min-height: 148px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.shadow-bank-card span {
  width: fit-content;
  border-radius: 999px;
  background: #eef5f4;
  color: var(--brand);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 850;
}

.shadow-bank-card strong {
  color: var(--ink);
  font-size: 17px;
}

.shadow-bank-card p,
.shadow-bank-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.38;
}

.diagnostic-form {
  display: grid;
  gap: 14px;
}

.diagnostic-question {
  border-left: 5px solid var(--brand);
}

.diagnostic-question legend {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin-bottom: 8px;
}

.diagnostic-question legend span,
.diagnostic-route-step span {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #e9f4f2;
  color: var(--brand);
  font-weight: 900;
}

.diagnostic-question legend strong {
  font-size: 19px;
}

.diagnostic-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.diagnostic-option {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 10px;
  cursor: pointer;
}

.diagnostic-option:hover {
  border-color: rgba(23, 86, 118, 0.45);
  background: #f7fafb;
}

.diagnostic-option input {
  accent-color: var(--brand);
}

.diagnostic-option span {
  line-height: 1.35;
  font-weight: 750;
}

.diagnostic-actions,
.diagnostic-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.diagnostic-score {
  min-width: 140px;
  border: 1px solid #d4e7e4;
  border-radius: 8px;
  background: #f7fbfa;
  padding: 14px;
  text-align: center;
}

.diagnostic-score strong {
  display: block;
  font-size: 30px;
  color: var(--brand);
}

.diagnostic-score span {
  color: var(--muted);
  font-weight: 750;
}

.diagnostic-route,
.diagnostic-focus-list {
  display: grid;
  gap: 10px;
}

.diagnostic-route-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.diagnostic-route-step p {
  margin: 0;
  line-height: 1.45;
}

.diagnostic-focus-list span {
  width: fit-content;
  border-radius: 999px;
  background: #eef5f4;
  color: var(--brand);
  padding: 8px 11px;
  font-weight: 850;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stat strong {
  display: block;
  font-size: 26px;
  margin-bottom: 4px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 750;
  text-decoration: none;
}

.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn.success {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}

.btn.attention {
  background: #fff1df;
  border-color: #f0c480;
  color: #9a5f00;
}

.btn.ghost {
  background: transparent;
}

.btn.danger {
  background: #fff5f6;
  border-color: #f3bdc8;
  color: var(--danger);
}

.btn:disabled,
.answer:disabled,
.variant:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.course-list,
.module-list,
.toc {
  display: grid;
  gap: 10px;
}

.course-item,
.module-item,
.toc-item {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.module-item.done {
  border-color: rgba(36, 127, 88, 0.35);
  background: #f2fbf6;
}

.module-item.started {
  border-color: rgba(23, 86, 118, 0.32);
  background: #f7fbfd;
}

.module-item.not-started {
  border-color: rgba(216, 119, 42, 0.38);
  background: #fffaf2;
}

.module-item.current {
  border-color: rgba(23, 86, 118, 0.4);
  box-shadow: inset 4px 0 0 var(--brand);
}

.module-item.locked {
  background: #f7f8fa;
}

.module-item.locked strong {
  color: #5c6675;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.module-card {
  min-height: 96px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 14px;
  display: grid;
  align-content: space-between;
  gap: 12px;
}

.student-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.student-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
  gap: 16px;
}

.student-progress-card h2,
.student-next-panel h2 {
  margin-bottom: 4px;
}
.student-progress-big {
  height: 12px;
  border-radius: 999px;
  background: #dce8e9;
  overflow: hidden;
}

.student-progress-big span {
  display: block;
  width: var(--value, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--brand-2), var(--accent));
}

.student-progress-card {
  display: grid;
  gap: 16px;
}

.guardian-widget {
  min-height: 382px;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.72fr);
  color: #f4f8f7;
  border-color: #234b48;
  background: #071216;
  box-shadow: 0 22px 60px rgba(7, 25, 29, 0.18);
}

.guardian-widget__scene {
  min-width: 0;
  min-height: 382px;
  position: relative;
  overflow: hidden;
  background: #081317;
}

.guardian-widget__scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 12, 15, 0.04) 20%, rgba(4, 12, 15, 0.92) 100%);
  pointer-events: none;
}

.guardian-widget__scene img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.04);
  transform: scale(1.015);
  transition: filter 420ms ease, transform 420ms ease;
}

.guardian-widget--level-1 .guardian-widget__scene img {
  filter: saturate(0.32) brightness(0.54) contrast(1.12);
  transform: scale(1.12);
}

.guardian-widget--level-2 .guardian-widget__scene img {
  filter: saturate(0.52) brightness(0.68) contrast(1.08);
  transform: scale(1.075);
}

.guardian-widget--level-3 .guardian-widget__scene img,
.guardian-widget--level-4 .guardian-widget__scene img {
  filter: saturate(0.82) brightness(0.84) contrast(1.06);
}

.guardian-widget--level-5 .guardian-widget__scene img,
.guardian-widget--level-6 .guardian-widget__scene img {
  filter: saturate(1) brightness(0.92) contrast(1.07);
}

.guardian-widget--level-7 .guardian-widget__scene img,
.guardian-widget--level-8 .guardian-widget__scene img {
  filter: saturate(1.08) brightness(0.98) contrast(1.08);
}

.guardian-widget--level-9 .guardian-widget__scene img,
.guardian-widget--level-10 .guardian-widget__scene img {
  filter: saturate(1.08) brightness(1.04) contrast(1.08) sepia(0.08);
  transform: scale(1.035);
}

.guardian-evolution {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  opacity: 0.82;
}

.guardian-evolution span {
  position: absolute;
  display: block;
}

.guardian-evolution__core {
  top: 40%;
  left: 54%;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(115, 229, 207, 0.56);
  border-radius: 50%;
  background: rgba(104, 229, 204, 0.2);
  box-shadow: 0 0 18px rgba(83, 229, 199, 0.48);
  transform: translate(-50%, -50%);
}

.guardian-evolution__orbit {
  top: 40%;
  left: 54%;
  border: 1px solid rgba(103, 218, 199, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.guardian-evolution__orbit--one {
  width: 112px;
  height: 112px;
}

.guardian-evolution__orbit--two {
  width: 184px;
  height: 184px;
  border-color: rgba(111, 204, 217, 0.22);
}

.guardian-evolution__shield {
  top: 15%;
  left: 27%;
  width: 54%;
  height: 57%;
  border: 1px solid rgba(111, 235, 210, 0.36);
  border-radius: 50% 50% 44% 44%;
  box-shadow: inset 0 0 32px rgba(65, 201, 174, 0.07), 0 0 26px rgba(65, 201, 174, 0.09);
  opacity: 0;
}

.guardian-evolution__node {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(188, 255, 241, 0.72);
  border-radius: 50%;
  background: #45bfa8;
  box-shadow: 0 0 12px rgba(65, 218, 188, 0.62);
  opacity: 0;
}

.guardian-evolution__node--one { top: 24%; left: 26%; }
.guardian-evolution__node--two { top: 30%; right: 18%; }
.guardian-evolution__node--three { top: 62%; right: 29%; }

.guardian-widget--level-2 .guardian-evolution__orbit--one,
.guardian-widget--level-3 .guardian-evolution__orbit--one,
.guardian-widget--level-4 .guardian-evolution__orbit,
.guardian-widget--level-5 .guardian-evolution__orbit,
.guardian-widget--level-6 .guardian-evolution__orbit,
.guardian-widget--level-7 .guardian-evolution__orbit,
.guardian-widget--level-8 .guardian-evolution__orbit,
.guardian-widget--level-9 .guardian-evolution__orbit,
.guardian-widget--level-10 .guardian-evolution__orbit {
  opacity: 1;
}

.guardian-widget--level-3 .guardian-evolution__node--one,
.guardian-widget--level-4 .guardian-evolution__node--one,
.guardian-widget--level-4 .guardian-evolution__node--two,
.guardian-widget--level-5 .guardian-evolution__node,
.guardian-widget--level-6 .guardian-evolution__node,
.guardian-widget--level-7 .guardian-evolution__node,
.guardian-widget--level-8 .guardian-evolution__node,
.guardian-widget--level-9 .guardian-evolution__node,
.guardian-widget--level-10 .guardian-evolution__node {
  opacity: 1;
}

.guardian-widget--level-5 .guardian-evolution,
.guardian-widget--level-6 .guardian-evolution {
  background-image:
    linear-gradient(rgba(77, 204, 181, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 204, 181, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
}

.guardian-widget--level-7 .guardian-evolution__shield,
.guardian-widget--level-8 .guardian-evolution__shield,
.guardian-widget--level-9 .guardian-evolution__shield,
.guardian-widget--level-10 .guardian-evolution__shield {
  opacity: 1;
}

.guardian-widget--level-8 .guardian-evolution__orbit--two {
  border-color: rgba(105, 227, 204, 0.48);
}

.guardian-widget--level-9 .guardian-evolution__core,
.guardian-widget--level-10 .guardian-evolution__core {
  width: 26px;
  height: 26px;
  border-color: rgba(239, 195, 94, 0.86);
  background: rgba(227, 181, 74, 0.26);
  box-shadow: 0 0 28px rgba(232, 184, 71, 0.7);
}

.guardian-widget--level-9 .guardian-evolution__orbit,
.guardian-widget--level-10 .guardian-evolution__orbit,
.guardian-widget--level-10 .guardian-evolution__shield {
  border-color: rgba(232, 193, 100, 0.46);
}

.guardian-widget--level-10 .guardian-evolution {
  opacity: 1;
}

.guardian-widget__scene-head,
.guardian-widget__identity {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
}

.guardian-widget__scene-head {
  top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  color: #82e5d1;
}

.guardian-widget__scene-head strong {
  padding: 7px 10px;
  border: 1px solid rgba(125, 225, 206, 0.42);
  border-radius: 6px;
  background: rgba(5, 18, 22, 0.72);
  color: #ffffff;
}

.guardian-widget__identity {
  bottom: 22px;
}

.guardian-widget__identity p {
  margin: 0 0 6px;
  color: #69d5c0;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.guardian-widget__identity h2 {
  margin: 0;
  max-width: 680px;
  color: #ffffff;
  font-size: 31px;
  line-height: 1.05;
}

.guardian-widget__identity span {
  display: block;
  max-width: 680px;
  margin-top: 10px;
  color: #c8d8d6;
  font-size: 14px;
  line-height: 1.45;
}

.guardian-widget__console {
  min-width: 0;
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 14px;
  border-left: 1px solid #21413f;
  background: #0a181d;
}

.guardian-widget__xp-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.guardian-widget__xp-row span,
.guardian-widget__capabilities dt,
.guardian-widget__next span {
  color: #7eaaa4;
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.guardian-widget__xp-row strong {
  display: block;
  margin-top: 3px;
  font-size: 30px;
  color: #ffffff;
}

.guardian-widget__xp-row small {
  margin-left: 5px;
  color: #86aaa5;
  font-size: 12px;
}

.guardian-passport-button {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-color: #2b5e58;
  background: #10262a;
  color: #79decb;
  font-size: 24px;
}

.guardian-widget__level-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #193036;
}

.guardian-widget__level-progress span {
  display: block;
  width: var(--value, 0%);
  height: 100%;
  background: #49cbb3;
  box-shadow: 0 0 18px rgba(73, 203, 179, 0.42);
}

.guardian-widget__until {
  margin: -6px 0 2px;
  color: #9bb8b4;
  font-size: 12px;
}

.guardian-widget__capabilities {
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid #1d373b;
  border-bottom: 1px solid #1d373b;
}

.guardian-widget__capabilities div {
  padding: 7px 0;
}

.guardian-widget__capabilities dd {
  margin: 3px 0 0;
  color: #eef7f5;
  font-size: 14px;
  line-height: 1.35;
}

.guardian-widget__next {
  width: 100%;
  min-height: 66px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  align-items: center;
  text-align: left;
  border: 1px solid #28645b;
  border-radius: 6px;
  background: #102a2d;
  color: #ffffff;
  cursor: pointer;
}

.guardian-widget__next span:first-child {
  grid-column: 1;
}

.guardian-widget__next strong {
  grid-column: 1;
  font-size: 14px;
  line-height: 1.3;
}

.guardian-widget__next span:last-child {
  grid-column: 2;
  grid-row: 1 / 3;
  color: #75dcc8;
  font-size: 24px;
}

.guardian-overlay {
  position: fixed;
  z-index: 1300;
  inset: 0;
  padding: 28px;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(3, 12, 15, 0.78);
  backdrop-filter: blur(10px);
}

.guardian-passport {
  width: min(1040px, 100%);
  max-height: calc(100vh - 56px);
  padding: 24px;
  overflow-y: auto;
  border: 1px solid #2c5f58;
  border-radius: 8px;
  color: #eff8f6;
  background: #09171b;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.guardian-passport__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #203c3f;
}

.guardian-passport h2 {
  margin: 4px 0 0;
  color: #ffffff;
}

.guardian-passport .eyebrow {
  color: #69d5c0;
}

.guardian-passport__head .icon-btn {
  background: #10262a;
  border-color: #315b58;
  color: #ffffff;
}

.guardian-passport__summary {
  padding: 18px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #203c3f;
}

.guardian-passport__summary div {
  min-width: 0;
  padding: 14px;
  background: #0d1e23;
}

.guardian-passport__summary span,
.guardian-passport__summary strong {
  display: block;
}

.guardian-passport__summary span {
  color: #7da7a2;
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.guardian-passport__summary strong {
  margin-top: 5px;
  color: #ffffff;
  line-height: 1.35;
}

.guardian-evolution-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.guardian-evolution-step {
  min-height: 74px;
  padding: 12px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #203c3f;
  border-radius: 6px;
  background: #0c1c21;
}

.guardian-evolution-step__level {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #315a57;
  border-radius: 50%;
  color: #9ab7b3;
  font-weight: 850;
}

.guardian-evolution-step strong,
.guardian-evolution-step small {
  display: block;
}

.guardian-evolution-step strong {
  color: #f3f8f7;
}

.guardian-evolution-step small {
  margin-top: 4px;
  color: #809f9b;
}

.guardian-evolution-step__status {
  color: #668784;
  font-size: 11px;
  font-weight: 800;
}

.guardian-evolution-step--active {
  border-color: #4bcbb3;
  background: #102a2d;
  box-shadow: inset 3px 0 #4bcbb3;
}

.guardian-evolution-step--active .guardian-evolution-step__level,
.guardian-evolution-step--complete .guardian-evolution-step__level {
  color: #ffffff;
  border-color: #4bcbb3;
  background: #174239;
}

.guardian-evolution-step--locked {
  opacity: 0.54;
}

.guardian-achievements {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #203c3f;
}

.guardian-achievements > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guardian-achievements > div span {
  padding: 8px 10px;
  border: 1px solid #6f5b2d;
  border-radius: 5px;
  background: #211d13;
  color: #e9c878;
  font-size: 12px;
  font-weight: 800;
}

.guardian-level-up {
  width: min(520px, 100%);
  padding: 34px;
  text-align: center;
  border: 1px solid #4bcbb3;
  border-radius: 8px;
  color: #eaf6f4;
  background: #09171b;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.guardian-level-up__number {
  width: 88px;
  height: 88px;
  margin: 16px auto;
  display: grid;
  place-items: center;
  border: 1px solid #4bcbb3;
  border-radius: 50%;
  color: #ffffff;
  background: #123b35;
  font-size: 38px;
}

.guardian-level-up h2 {
  margin: 8px 0;
  color: #ffffff;
}

.guardian-level-up p,
.guardian-level-up blockquote {
  color: #a7c0bc;
}

.guardian-level-up blockquote {
  margin: 22px 0;
  padding: 14px 0;
  border-top: 1px solid #24413f;
  border-bottom: 1px solid #24413f;
}

@media (prefers-reduced-motion: no-preference) {
  .guardian-widget__scene img {
    animation: guardian-breathe 9s ease-in-out infinite alternate;
  }
}

@keyframes guardian-breathe {
  from { transform: scale(1.015); }
  to { transform: scale(1.04); }
}

.student-progress-card__head,
.student-next-panel {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.progress-help {
  position: relative;
}

.progress-help summary {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef5f4;
  color: var(--brand);
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}

.progress-help summary::-webkit-details-marker {
  display: none;
}

.progress-help p {
  position: absolute;
  right: 0;
  top: 46px;
  z-index: 5;
  width: min(360px, 80vw);
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--muted);
  line-height: 1.45;
}

.xp-source-list {
  display: grid;
  gap: 8px;
}

.xp-source-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #eef1f5;
  padding-bottom: 8px;
}

.xp-source-list span {
  color: var(--muted);
}

.student-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.student-stat {
  text-align: center;
  display: grid;
  place-items: center;
  min-height: 104px;
}

.student-next-panel__meta {
  min-width: 150px;
  border: 1px solid #d4e7e4;
  border-radius: 8px;
  background: #f7fbfa;
  padding: 14px;
  text-align: center;
}

.student-next-panel__meta strong {
  display: block;
  font-size: 34px;
  color: var(--brand);
}

.lesson-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  gap: 22px;
  align-items: stretch;
}

.lesson-overview__body {
  display: grid;
  align-content: center;
  gap: 12px;
}

.lesson-overview__cover {
  width: 100%;
  min-height: 260px;
  border-radius: 8px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(23, 86, 118, 0.92), rgba(42, 157, 143, 0.82));
}

.lesson-overview__cover--empty {
  background:
    linear-gradient(135deg, rgba(23, 86, 118, 0.92), rgba(42, 157, 143, 0.82)),
    url("assets/course-map.svg");
  background-size: cover;
  background-position: center;
}

.student-route-flow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.student-route-card {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  text-align: center;
  cursor: pointer;
}

.student-route-card:hover {
  border-color: rgba(23, 86, 118, 0.35);
  background: #f7fafb;
}

.student-route-card.active {
  border-color: rgba(23, 86, 118, 0.4);
  background: #eef7f8;
  box-shadow: inset 0 -3px 0 var(--brand);
}

.student-route-card strong {
  color: var(--ink);
  font-size: 17px;
}

.student-route-card span {
  width: fit-content;
  border-radius: 999px;
  background: #eef5f4;
  color: var(--brand);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 850;
}

.course-module-editor select,
.course-module-editor input {
  width: 100%;
}

.progress-bar {
  height: 10px;
  background: #dce5ea;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: var(--value, 0%);
  background: linear-gradient(90deg, var(--brand-2), var(--accent));
}

.course-progress-panel {
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.course-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

.course-progress-head strong {
  color: var(--ink);
}

.course-progress-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
  gap: 8px;
}

.course-progress-step {
  position: relative;
  min-height: 18px;
  border-radius: 999px;
  background: #e6eaf0;
  overflow: hidden;
}

.course-progress-step span {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
}

.course-progress-step.active span {
  background: linear-gradient(90deg, #c4455c, #e9a11b);
}

.course-progress-step.locked {
  opacity: 0.65;
}

.course-progress-step small {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.course-progress-step.locked small {
  color: #667085;
}

.course-progress-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  background:
    linear-gradient(90deg, rgba(19, 41, 61, 0.9), rgba(19, 41, 61, 0.55)),
    url("assets/course-map.svg");
  background-size: cover;
  background-position: center;
}

.login-copy {
  color: #fff;
  padding: min(8vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-copy h1 {
  max-width: 720px;
}

.login-copy p {
  max-width: 620px;
  color: #e4edf4;
  font-size: 18px;
  line-height: 1.55;
}

.login-box {
  margin: min(6vw, 70px);
  align-self: center;
  padding: 24px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field label {
  font-weight: 750;
  font-size: 14px;
}

.field-help {
  color: var(--muted);
  font-size: 12px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.password-field input {
  min-width: 0;
}

.password-field button {
  border: 1px solid rgba(27, 95, 122, 0.28);
  border-radius: 8px;
  background: rgba(27, 95, 122, 0.08);
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  padding: 11px 12px;
  white-space: nowrap;
}

.password-field--compact {
  gap: 6px;
}

.password-field--compact button {
  padding: 10px 8px;
}

.field textarea {
  resize: vertical;
}

.admin-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  overflow: hidden;
}

.lesson-layout {
  display: block;
  overflow: hidden;
}

.lesson-menu {
  background: #f0f5f7;
  border-right: 1px solid var(--line);
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.lesson-menu button {
  min-height: 54px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
  text-align: center;
  padding: 12px 14px;
  color: #304257;
  font-weight: 750;
}

.lesson-menu button.active,
.lesson-menu button:hover {
  background: #fff;
  border-color: #c9d8dc;
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.08);
  color: var(--brand);
}

.lesson-content {
  min-width: 0;
  padding: 32px 42px 42px;
  width: 100%;
}

.lecture-body {
  font-size: 17px;
  line-height: 1.66;
  max-width: 1180px;
  margin: 0 auto;
}

.lecture-body p,
.homework-row span,
.glossary-row span,
.variant span {
  white-space: pre-line;
}

.lecture-hero {
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.lecture-hero h2 {
  max-width: 860px;
  margin-bottom: 16px;
  font-size: 34px;
}

.lecture-hero .lecture-topic-title {
  max-width: none;
  width: 100%;
  font-size: clamp(20px, 1.45vw, 27px);
  line-height: 1.14;
  margin-top: 18px;
  margin-bottom: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.lecture-lead,
.lecture-thesis {
  max-width: 880px;
  color: #39485c;
  font-size: 18px;
  line-height: 1.48;
}

.lecture-registration-card {
  max-width: 880px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #cfe1e4;
  border-radius: 8px;
  background: linear-gradient(135deg, #f4fbfa, #fff);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.lecture-registration-card div {
  display: grid;
  gap: 5px;
}

.lecture-registration-card strong {
  color: var(--brand);
  font-size: 18px;
}

.lecture-registration-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
}

.lecture-thesis {
  margin: 0;
  padding: 18px 22px;
  border-left: 6px solid var(--accent);
  background: linear-gradient(135deg, #fff8e8, #eef8f6);
  border-radius: 0 8px 8px 0;
  box-shadow: inset 0 0 0 1px rgba(233, 161, 27, 0.18);
  font-weight: 800;
}

.lecture-thesis blockquote {
  margin: 0;
  color: #172033;
}

.lecture-meta-row,
.lecture-hero-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lecture-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
  gap: 12px;
}

.lecture-hero-grid div {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 16px 14px;
  display: grid;
  gap: 8px;
  align-content: start;
  text-align: center;
  justify-items: center;
}

.lecture-hero-grid strong {
  line-height: 1.25;
}

.lecture-hero-grid span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.38;
}

.lecture-section {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.lecture-section-marker {
  position: sticky;
  top: 18px;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #e8f4f2;
  color: var(--brand);
  font-weight: 900;
}

.lecture-section-content {
  min-width: 0;
  max-width: 900px;
}

.lecture-section h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.22;
}

.lecture-body--participants .lecture-hero {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 86, 118, 0.08), rgba(233, 161, 27, 0.08)),
    #fff;
  box-shadow: 0 16px 34px rgba(23, 32, 51, 0.08);
}

.lecture-body--participants .lecture-hero h2 {
  max-width: 960px;
  margin-top: 14px;
  font-size: clamp(28px, 2.3vw, 42px);
  line-height: 1.08;
}

.lecture-body--participants .lecture-thesis {
  max-width: 980px;
}

.lecture-body--participants .lecture-section {
  padding: 32px 0;
}

.lecture-body--participants .lecture-section-marker {
  background: linear-gradient(135deg, #175676, #e9a11b);
  color: #fff;
  box-shadow: 0 10px 22px rgba(23, 86, 118, 0.18);
}

.lecture-body--participants .lecture-section h3 {
  color: #172033;
}

.lecture-body--participants .lecture-section-content > p:not(.lecture-callout):not(.lecture-definition):not(.lecture-conclusion) {
  max-width: 860px;
  color: #334258;
}

.lecture-section-intro {
  margin-bottom: 18px;
  color: var(--brand);
  font-weight: 780;
  line-height: 1.45;
}

.lecture-section p {
  margin-bottom: 14px;
  line-height: 1.66;
  text-indent: 0;
}

.lecture-list {
  margin: 0 0 14px;
  padding-left: 20px;
  display: grid;
  gap: 7px;
  line-height: 1.58;
}

.lecture-list li::marker {
  color: var(--brand-2);
}

.lecture-visual-grid {
  display: grid;
  gap: 16px;
  margin: 22px 0 8px;
}

.lecture-visual-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(23, 32, 51, 0.08);
}

.lecture-visual-card img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #07111a;
  border-bottom: 1px solid var(--line);
}

.lecture-visual-card figcaption {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.lecture-visual-card figcaption strong {
  color: var(--brand);
  font-size: 18px;
  line-height: 1.25;
}

.lecture-visual-card figcaption > span {
  color: #39485c;
  font-size: 15px;
  line-height: 1.48;
}

.lecture-visual-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.lecture-visual-points span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef5f4;
  color: #245860;
  font-size: 12px;
  font-weight: 800;
}

.glossary-term {
  position: relative;
  display: inline;
  color: var(--brand);
  font-weight: 850;
  border-bottom: 1px dotted rgba(23, 86, 118, 0.62);
  cursor: help;
}

.glossary-term::after {
  content: attr(data-definition);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 20;
  width: min(300px, 70vw);
  padding: 10px 12px;
  border-radius: 8px;
  background: #172033;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
  box-shadow: 0 16px 34px rgba(23, 32, 51, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.glossary-term:hover::after,
.glossary-term:focus::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.lecture-callout,
.memory-card,
.lecture-definition {
  margin: 16px 0;
  padding: 15px 18px;
  border: 1px solid #cfe2df;
  border-left: 5px solid var(--brand-2);
  background: #f2fbf8;
  border-radius: 0 8px 8px 0;
}

.lecture-callout--strong {
  border-left-color: var(--accent);
  background: #fff8e8;
}

.lecture-callout--bot {
  border-left-color: var(--brand);
  background: #edf5fb;
}

.lecture-definition {
  border-left-color: var(--brand);
  background: #edf5fb;
  font-weight: 720;
}

.lecture-conclusion {
  font-weight: 720;
}

.memory-card {
  display: grid;
  gap: 4px;
  background: #f8fafc;
  border-left-color: var(--accent);
}

.memory-card strong {
  font-size: 16px;
  color: var(--brand);
}

.memory-card span {
  color: #172033;
  font-size: 17px;
  font-weight: 780;
  line-height: 1.38;
}

.term-grid {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.term-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 0.65fr);
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
}

.term-row strong {
  color: var(--brand);
}

.term-row span {
  color: #39485c;
}

.cases-shell {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.cases-hero {
  padding: 24px;
  border: 1px solid #cfe2df;
  border-radius: 8px;
  background: linear-gradient(135deg, #f4fbfa, #fffaf0);
}

.cases-hero h2 {
  max-width: 780px;
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1.16;
}

.cases-hero p:not(.eyebrow) {
  max-width: 820px;
  color: #39485c;
  font-size: 17px;
  line-height: 1.52;
}

.cases-section {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 16px;
}

.cases-section__head {
  display: grid;
  gap: 8px;
}

.cases-section__head h3,
.case-task h3,
.case-reflection h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.24;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 14px;
}

.case-grid--mosaic {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  align-items: start;
}

.cases-wide-cover {
  width: 100%;
  aspect-ratio: 1916 / 821;
  border: 1px solid #24394a;
  border-radius: 8px;
  background: #07111a;
  overflow: hidden;
}

.cases-wide-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cases-wide-cover picture {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 600px) {
  .cases-wide-cover {
    aspect-ratio: 996 / 1580;
  }
}

.case-card,
.case-task {
  border: 1px solid #d7e4e8;
  border-radius: 8px;
  background: #f8fbfc;
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.case-cover-card {
  border: 1px solid #d7e4e8;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(22, 32, 51, 0.08);
}

.case-cover-card[open] {
  grid-column: span 2;
}

.case-cover-card summary {
  display: grid;
  gap: 12px;
  padding: 12px;
  justify-items: center;
  cursor: pointer;
  list-style: none;
}

.case-cover-card[open] summary {
  max-width: 380px;
  margin: 0 auto;
}

.case-cover-card summary::-webkit-details-marker {
  display: none;
}

.case-cover-card__media-wrap {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid #d7e4e8;
  border-radius: 8px;
  background: #07111a;
}

.case-cover-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.case-cover-card__placeholder {
  display: grid;
  align-content: end;
  gap: 12px;
  width: 100%;
  aspect-ratio: 2 / 3;
  padding: 18px;
  background:
    linear-gradient(160deg, rgba(25, 94, 119, 0.22), rgba(239, 163, 31, 0.18)),
    #07111a;
  color: #fff;
}

.case-cover-card__placeholder span {
  justify-self: start;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(234, 246, 244, 0.14);
  color: #cfe8ee;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.case-cover-card__placeholder strong {
  color: #fff;
  font-size: 22px;
  line-height: 1.18;
}

.case-cover-card__cta {
  justify-self: center;
  padding: 9px 13px;
  border-radius: 999px;
  background: #eaf6f4;
  color: var(--brand);
  font-size: 14px;
  font-weight: 900;
}

.case-cover-card[open] .case-cover-card__cta {
  background: #fff1df;
  color: var(--accent-2);
}

.case-cover-detail {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.case-story-flow {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-left: 5px solid var(--brand);
  border-radius: 0 8px 8px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
  color: #39485c;
  font-size: 18px;
  line-height: 1.62;
}

.case-story-flow p {
  margin: 0;
}

.case-story-flow p strong {
  display: inline;
  margin-right: 8px;
  color: var(--brand);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.case-story-flow p span {
  color: #39485c;
}

.case-story-flow__conclusion {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid #d7e4e8;
  color: var(--ink);
}

.case-story-flow__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #eaf6f4;
  color: var(--brand);
  font-size: 24px;
  font-weight: 950;
}

.case-story-flow__conclusion strong {
  color: var(--brand);
}

.case-card__story {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-left: 5px solid var(--brand);
  border-radius: 0 8px 8px 0;
  background: #fff;
  color: #39485c;
  font-size: 18px;
  line-height: 1.62;
}

.case-card__story p {
  margin: 0;
}

.case-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.22;
}

.case-card__row {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-left: 4px solid var(--brand);
  border-radius: 0 8px 8px 0;
  background: #fff;
}

.case-card__row--danger {
  border-left-color: var(--accent-2);
}

.case-card__row strong {
  color: var(--brand);
  font-size: 13px;
  text-transform: uppercase;
}

.case-card__row span,
.case-task p,
.case-reflection p {
  color: #39485c;
  line-height: 1.5;
}

.case-card__takeaway {
  padding: 12px 14px;
  border-radius: 8px;
  background: #eaf6f4;
  color: var(--brand);
  font-weight: 800;
  line-height: 1.4;
}

.mistake-list {
  display: grid;
  gap: 10px;
}

.mistake-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid #d7e4e8;
  border-radius: 8px;
  background: #fbfcfd;
}

.mistake-card__number {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fff1df;
  color: var(--accent-2);
  font-weight: 900;
}

.mistake-card h4 {
  margin: 0 0 6px;
  font-size: 18px;
}

.mistake-card p {
  margin: 4px 0;
  color: #39485c;
  line-height: 1.42;
}

@media (max-width: 760px) {
  .case-cover-card[open] {
    grid-column: span 1;
  }

  .case-cover-card[open] summary {
    max-width: none;
  }
}

.case-task-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.case-mini-cover-card {
  align-self: stretch;
  height: 100%;
  border: 1px solid #24394a;
  border-radius: 8px;
  background: #f8fbfc;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(22, 32, 51, 0.08);
}

.case-mini-cover-card[open] {
  display: flex;
  flex-direction: column;
}

.case-mini-cover-card[open] > summary {
  flex: 0 0 auto;
}

.case-mini-cover-card[open] > .case-mini-cover-card__content {
  flex: 1 1 auto;
}

.case-mini-cover-card summary {
  display: block;
  cursor: pointer;
  list-style: none;
  background: #07111a;
}

.case-mini-cover-card summary::-webkit-details-marker {
  display: none;
}

.case-mini-cover-card summary img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

.case-mini-cover-card__content {
  display: flex;
  flex-direction: column;
  align-content: start;
  gap: 12px;
  padding: 16px;
}

.case-mini-cover-card__content h3,
.case-mini-cover-card__content p {
  margin: 0;
}

.case-mini-cover-card__content p {
  color: #39485c;
  line-height: 1.5;
}

.case-options,
.case-metrics {
  display: grid;
  gap: 8px;
}

.case-options span,
.case-metrics span {
  padding: 9px 10px;
  border: 1px solid #d7e4e8;
  border-radius: 8px;
  background: #fff;
  color: #304257;
  font-weight: 720;
}

.case-story-panel {
  display: grid;
  gap: 7px;
  padding: 14px 15px;
  border: 1px solid #cfe1e6;
  border-left: 4px solid #16a0a7;
  border-radius: 8px;
  background: #f1f8f8;
}

.case-story-panel--analysis {
  border-left-color: #1684d7;
  background: #f2f7fc;
}

.case-story-panel > strong,
.case-question-head > span,
.case-hidden-answer__label {
  color: #126078;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.case-question-head {
  display: grid;
  gap: 5px;
  padding-top: 2px;
}

.case-question-head h3 {
  font-size: 21px;
  line-height: 1.2;
}

.case-options--interactive {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.case-options--interactive .case-option-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  min-height: 152px;
  padding: 14px;
  border: 1px solid #c9dbe2;
  border-bottom-width: 4px;
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff 0%, #edf5f7 100%);
  color: #23384b;
  font: inherit;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(18, 48, 66, 0.09);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.case-options--interactive .case-option-card:hover {
  transform: translateY(-2px);
  border-color: #63aeba;
  box-shadow: 0 12px 20px rgba(18, 48, 66, 0.14);
}

.case-options--interactive .case-option-card.selected {
  transform: translateY(-2px);
  border-color: #087d91;
  background: linear-gradient(145deg, #e8f8f6 0%, #d8eff2 100%);
  box-shadow: 0 0 0 3px rgba(8, 125, 145, 0.12), 0 12px 20px rgba(18, 48, 66, 0.14);
}

.case-options--interactive .case-option-card span {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.case-options--interactive .case-option-card .case-option-card__letter {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #123a4f;
  color: #fff;
  font-size: 16px;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18), 0 5px 10px rgba(18, 58, 79, 0.18);
}

.case-option-card.selected .case-option-card__letter {
  background: #087d91;
}

.case-analysis-questions {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: analysis-question;
}

.case-analysis-questions li {
  counter-increment: analysis-question;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid #d4e2ea;
  border-radius: 8px;
  background: #fff;
  color: #293f53;
  font-weight: 800;
}

.case-analysis-questions li::before {
  content: counter(analysis-question);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #14547a;
  color: #fff;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}

.case-thought-gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
  margin-top: auto;
  padding: 13px;
  border: 1px solid #d5e2e8;
  border-radius: 8px;
  background: #fff;
}

.case-thought-gate__timer {
  display: flex;
  align-items: center;
  gap: 11px;
}

.case-thought-gate__clock {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border: 4px solid #2e8fa5;
  border-radius: 50%;
  background: #eaf7f8;
  color: #124c63;
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 6px 14px rgba(18, 76, 99, 0.13);
}

.case-thought-gate__timer div {
  display: grid;
  gap: 2px;
}

.case-thought-gate__timer small {
  color: #617286;
}

.case-thought-gate > .muted {
  grid-column: 1 / -1;
  font-size: 13px;
}

.case-thought-gate .btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.case-hidden-answer {
  display: grid;
  gap: 10px;
  padding: 15px;
  border: 1px solid #a9d9c9;
  border-left: 4px solid #249d6b;
  border-radius: 8px;
  background: #ecf8f3;
  animation: case-answer-in 220ms ease-out;
}

.case-hidden-answer[hidden] {
  display: none;
}

.case-hidden-answer ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 22px;
  color: #304a43;
}

.case-hidden-answer strong {
  color: #176646;
  line-height: 1.4;
}

@keyframes case-answer-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .case-options--interactive {
    grid-template-columns: 1fr;
  }

  .case-options--interactive .case-option-card {
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto;
    align-items: center;
    min-height: 74px;
  }
}

@media (max-width: 600px) {
  .case-mini-cover-card__content {
    padding: 13px;
  }

  .case-thought-gate {
    grid-template-columns: 1fr;
  }

  .case-thought-gate .btn,
  .case-thought-gate > .muted {
    grid-column: 1;
    width: 100%;
  }
}

.case-reflection {
  grid-template-columns: minmax(0, 0.6fr) minmax(280px, 0.4fr);
  align-items: start;
}

.case-checklist {
  padding: 16px;
  border-radius: 8px;
  background: #112c3f;
  color: #fff;
  display: grid;
  gap: 8px;
}

.case-checklist p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.question-box,
.practice-box,
.media-box {
  padding: 18px;
}

.practice-box {
  padding: 12px;
}

.quiz-shell {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid #d5e1e7;
  border-radius: 8px;
  background: #f5f8fb;
}

.quiz-topline,
.quiz-actions,
.quiz-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.quiz-topline h2 {
  margin-top: 4px;
}

.quiz-score {
  min-width: 112px;
  padding: 12px 14px;
  border: 1px solid #cbdde5;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.quiz-score strong {
  display: block;
  color: var(--brand);
  font-size: 24px;
  line-height: 1;
}

.quiz-score span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.quiz-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce8ee;
}

.quiz-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.quiz-map {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quiz-dot {
  width: 36px;
  height: 36px;
  border: 1px solid #cbdde5;
  border-radius: 8px;
  background: #fff;
  color: #5b6878;
  font-weight: 900;
}

.quiz-dot.current {
  border-color: var(--brand);
  background: #e8f4f2;
  color: var(--brand);
  box-shadow: inset 0 0 0 2px rgba(23, 86, 118, 0.14);
}

.quiz-dot.done {
  border-color: rgba(36, 127, 88, 0.42);
  background: #edf9f3;
  color: var(--ok);
}

.quiz-dot.wrong {
  border-color: rgba(196, 69, 92, 0.38);
  background: #fff2f4;
  color: var(--danger);
}

.quiz-card {
  display: grid;
  gap: 18px;
  padding: 26px;
}

.quiz-card__head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.quiz-card__status {
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e8f4f2;
  color: var(--brand);
  line-height: 1;
}

.quiz-card__status.ok {
  background: #edf9f3;
  color: var(--ok);
}

.quiz-card__status.bad {
  background: #fff2f4;
  color: var(--danger);
}

.quiz-card h3 {
  max-width: 820px;
  margin: 0;
  color: #172033;
  font-size: 24px;
  line-height: 1.25;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.answer {
  min-height: 94px;
  border: 1px solid #d4e0e7;
  background: #f9fbfc;
  border-radius: 8px;
  padding: 16px;
  text-align: left;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: #172033;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.answer:hover {
  border-color: rgba(23, 86, 118, 0.45);
  background: #fff;
  box-shadow: 0 12px 24px rgba(23, 32, 51, 0.08);
  transform: translateY(-1px);
}

.answer strong {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #e8f4f2;
  color: var(--brand);
  font-size: 18px;
  line-height: 1;
}

.answer span {
  font-size: 16px;
  font-weight: 760;
  line-height: 1.38;
}

.answer.correct {
  border-color: rgba(36, 127, 88, 0.62);
  background: #edf9f3;
  box-shadow: inset 0 0 0 2px rgba(36, 127, 88, 0.1);
}

.answer.correct strong {
  background: var(--ok);
  color: #fff;
}

.answer.wrong {
  border-color: rgba(196, 69, 92, 0.58);
  background: #fff2f4;
  box-shadow: inset 0 0 0 2px rgba(196, 69, 92, 0.08);
}

.answer.wrong strong {
  background: var(--danger);
  color: #fff;
}

.feedback {
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 700;
}

.feedback.ok {
  background: #edf9f3;
  color: var(--ok);
}

.feedback.bad {
  background: #fff2f4;
  color: var(--danger);
}

.practice-visual,
.variant-visual {
  min-height: 140px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(23, 86, 118, 0.12), rgba(233, 161, 27, 0.12)),
    url("assets/market-case.svg");
  background-size: cover;
  background-position: center;
}

.variant-visual--image {
  display: block;
  height: 180px;
  min-height: 180px;
  object-fit: cover;
  object-position: center;
  background: #f7fafb;
}

.practice-trainer {
  display: grid;
  gap: 12px;
  background: #f5f8fb;
}

.practice-slide-count {
  position: absolute;
  z-index: 2;
  left: 14px;
  top: 14px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(232, 244, 242, 0.94);
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.practice-slide__text h3 {
  margin: 8px 0 0;
  color: var(--brand);
  font-size: 15px;
  line-height: 1.25;
  text-transform: uppercase;
}

.practice-slide {
  border: 1px solid #d4e0e7;
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 0;
  overflow: hidden;
}

.practice-slide--situation {
  grid-template-columns: minmax(0, 1fr);
}

.practice-slide--situation .practice-slide__visual {
  width: 100%;
  aspect-ratio: 1962 / 801;
  min-height: 0;
  justify-self: center;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  background: #07131c;
}

.practice-slide.correct {
  border-color: rgba(36, 127, 88, 0.58);
  box-shadow: inset 0 0 0 2px rgba(36, 127, 88, 0.1);
}

.practice-slide.wrong {
  border-color: rgba(196, 69, 92, 0.58);
  box-shadow: inset 0 0 0 2px rgba(196, 69, 92, 0.08);
}

.practice-slide__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  background: #eef5f4;
  border-bottom: 1px solid var(--line);
  display: grid;
}

.practice-slide--answer .practice-slide__visual {
  aspect-ratio: 1962 / 801;
  min-height: 0;
  max-height: none;
  background: #07131c;
}

.practice-slide__visual img,
.practice-slide__visual .practice-visual {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  background: #07131c;
}

.practice-slide--answer .practice-slide__visual img {
  min-height: 0;
}

.practice-slide--situation .practice-slide__visual img {
  min-height: 0;
}

.practice-slide--situation .practice-slide__body {
  width: min(100%, 880px);
  max-width: 880px;
  justify-self: center;
  padding-top: 22px;
  text-align: center;
}

.practice-slide--answer .practice-slide__body {
  width: 100%;
  max-width: none;
  justify-self: stretch;
  padding: 26px 30px 30px;
}

.practice-slide__body {
  min-width: 0;
  padding: 22px 24px 24px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.practice-slide__label {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e8f4f2;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.practice-slide__body h2 {
  color: #172033;
  font-size: 24px;
  line-height: 1.16;
}

.practice-slide--situation .practice-slide__body h2,
.practice-slide--answer .practice-slide__body h2 {
  justify-self: center;
  max-width: 760px;
  font-size: 22px;
  line-height: 1.18;
}

.practice-slide--answer .practice-slide__body h2 {
  width: 100%;
  max-width: none;
}

.practice-variant-title {
  width: min(100%, 860px);
  justify-self: center;
  margin-top: -4px;
  text-align: center;
}

.practice-slide__text {
  display: grid;
  gap: 10px;
}

.practice-slide__text p {
  margin: 0;
  color: #344257;
  font-size: 17px;
  line-height: 1.55;
}

.practice-slide--answer .practice-slide__text {
  justify-items: center;
}

.practice-slide--answer .practice-slide__text p {
  width: min(100%, 820px);
  padding: 13px 16px;
  border: 1px solid #d7e2e9;
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  background: #f7fafc;
  color: #26364d;
}

.practice-slide--answer .practice-slide__text h3 {
  width: min(100%, 820px);
  justify-self: center;
  padding: 10px 14px;
  border-radius: 8px;
  background: #e8f4f2;
  color: var(--brand);
  text-align: center;
}

.practice-variant-story {
  width: 100%;
  justify-self: stretch;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  text-align: left;
}

.practice-decision-flow {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid #d7e2e9;
  border-radius: 8px;
  background: #f4f8fb;
}

.practice-decision-flow span {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 44px;
  color: #26364d;
}

.practice-decision-flow span:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -8px;
  color: #87a0b2;
  font-weight: 900;
}

.practice-decision-flow small {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.practice-decision-flow strong {
  font-size: 14px;
  line-height: 1.25;
}

.practice-variant-step {
  display: grid;
  gap: 7px;
  padding: 14px 16px;
  border: 1px solid #d7e2e9;
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  background: #f7fafc;
}

.practice-variant-step--action {
  grid-column: span 4;
}

.practice-variant-step--context {
  grid-column: span 8;
}

.practice-variant-step--result {
  grid-column: span 5;
}

.practice-variant-step--lesson {
  grid-column: span 7;
}

.practice-variant-step span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.practice-variant-step strong {
  color: #172033;
  font-size: 18px;
  line-height: 1.25;
}

.practice-variant-step p {
  margin: 0;
  color: #334259;
  font-size: 16px;
  line-height: 1.5;
}

.practice-variant-step--action {
  background: #fffafa;
}

.practice-variant-step--context {
  background: #f8fbfc;
}

.practice-variant-step--result {
  background: #fff6f4;
}

.practice-variant-step--lesson {
  background: #f4f8fb;
}

.practice-variant-story--danger .practice-variant-step {
  border-left-color: #d9654f;
}

.practice-variant-story--danger .practice-variant-step span,
.practice-variant-story--danger .practice-variant-step--result strong {
  color: #b43f36;
}

.practice-variant-story--success .practice-variant-step {
  border-left-color: var(--ok);
}

.practice-variant-story--success .practice-variant-step span,
.practice-variant-story--success .practice-variant-step--result strong {
  color: #247f58;
}

.practice-variant-story--success .practice-variant-step--action,
.practice-variant-story--success .practice-variant-step--result {
  background: #f1faf7;
}

.practice-variant-story--warning .practice-variant-step {
  border-left-color: #e0a22a;
}

.practice-variant-story--warning .practice-variant-step span,
.practice-variant-story--warning .practice-variant-step--result strong {
  color: #9a6510;
}

.practice-variant-story--warning .practice-variant-step--action,
.practice-variant-story--warning .practice-variant-step--result {
  background: #fff9ed;
}

.practice-variant-story--neutral .practice-variant-step {
  border-left-color: #8190a4;
}

.practice-variant-story--neutral .practice-variant-step span,
.practice-variant-story--neutral .practice-variant-step--result strong {
  color: #5d6b7f;
}

.practice-slide__text--story {
  gap: 12px;
  justify-items: center;
}

.practice-story-line {
  width: min(100%, 780px);
  padding: 0 8px;
}

.practice-story-line.lead {
  color: #172033;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.48;
}

.practice-story-line.panic,
.practice-story-line.news {
  width: min(100%, 820px);
  padding: 14px 18px;
  border: 1px solid #d7e2e9;
  border-radius: 8px;
  background: #f7fafc;
  color: #26364d;
}

.practice-story-line.panic {
  border-left: 5px solid #d9654f;
}

.practice-story-line.news {
  border-left: 5px solid var(--brand);
}

.practice-story-line.question {
  margin-top: 4px;
  padding: 16px 18px;
  border-radius: 8px;
  background: #e8f4f2;
  color: var(--brand);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
}

.practice-choice-panel {
  display: grid;
  gap: 18px;
  border: 1px solid #d4e0e7;
  border-radius: 8px;
  background: #fff;
  padding: 28px;
}

.practice-choice-panel__head {
  display: grid;
  gap: 12px;
  justify-items: center;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.practice-choice-panel__head h2 {
  color: #172033;
  font-size: 26px;
  line-height: 1.16;
}

.practice-choice-panel__head p {
  margin: 0;
  color: #344257;
  font-size: 18px;
  line-height: 1.55;
}

.practice-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.practice-choice-card {
  display: grid;
  gap: 10px;
  min-height: 190px;
  border: 1px solid #d4e0e7;
  border-radius: 8px;
  background: #f8fbfc;
  color: var(--ink);
  padding: 18px;
  text-align: left;
}

.practice-choice-card:hover,
.practice-choice-card.selected {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 2px rgba(23, 86, 118, 0.1);
}

.practice-choice-card span {
  width: fit-content;
  border-radius: 999px;
  background: #e8f4f2;
  color: var(--brand);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 900;
}

.practice-choice-card strong {
  font-size: 20px;
  line-height: 1.22;
}

.practice-choice-card small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.practice-choice-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.practice-result {
  display: grid;
  gap: 10px;
  border-radius: 8px;
  padding: 18px;
  margin-top: 4px;
  text-align: left;
}

.practice-result--correct {
  border: 1px solid #b9ddd2;
  border-left: 5px solid var(--ok);
  background: #f1faf7;
}

.practice-result--wrong {
  border: 1px solid #f1c4c1;
  border-left: 5px solid var(--danger);
  background: #fff5f4;
}

.practice-result span {
  width: fit-content;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.practice-result h3 {
  color: #172033;
  font-size: 20px;
  line-height: 1.25;
}

.practice-result p {
  margin: 0;
  color: #344257;
  font-size: 16px;
  line-height: 1.55;
}

.practice-actions {
  display: grid;
  grid-template-columns: minmax(120px, 0.5fr) minmax(220px, 1fr) minmax(120px, 0.5fr);
  gap: 10px;
}

.practice-actions__spacer {
  min-height: 42px;
}

.variant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.variant {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 10px;
  text-align: left;
}

.variant.selected {
  border-color: var(--brand);
  outline: 3px solid rgba(23, 86, 118, 0.12);
}

.variant.correct {
  border-color: var(--ok);
  background: #edf9f3;
}

.variant.wrong {
  border-color: var(--danger);
  background: #fff2f4;
}

.homework-shell {
  display: grid;
  gap: 12px;
}

.homework-intro {
  margin: 0 0 6px;
  max-width: 860px;
  color: #39485c;
  font-size: 17px;
  line-height: 1.5;
}

.homework-row,
.glossary-row {
  padding: 14px;
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.homework-row--rich {
  padding: 18px;
  gap: 12px;
}

.homework-row--rich > strong {
  font-size: 20px;
  line-height: 1.24;
}

.homework-main-link {
  width: fit-content;
}

.homework-steps {
  margin: 0;
  padding-left: 24px;
  display: grid;
  gap: 8px;
  color: #2f3d51;
  line-height: 1.48;
}

.homework-steps li::marker {
  color: var(--brand);
  font-weight: 900;
}

.homework-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.homework-links a {
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid #cfe1e4;
  border-radius: 8px;
  background: #f7fbfb;
  color: var(--brand);
  font-weight: 850;
  text-decoration: none;
}

.homework-complete-panel {
  margin-top: 8px;
  border: 1px solid #cfe1e4;
  border-radius: 8px;
  background: #f7fbfb;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.homework-complete-panel h3 {
  margin: 8px 0 6px;
}

.homework-complete-panel p {
  margin: 0;
  line-height: 1.45;
}

.lesson-complete-card {
  border: 1px solid #b9d9d5;
  border-radius: 8px;
  background: linear-gradient(135deg, #f4fbf8 0%, #ffffff 58%, #f8fbff 100%);
  padding: 20px;
  display: grid;
  gap: 16px;
  box-shadow: 0 14px 34px rgba(22, 91, 103, 0.08);
}

.lesson-complete-card__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.lesson-complete-card__head h3 {
  margin: 8px 0 6px;
  font-size: 24px;
  line-height: 1.15;
}

.lesson-complete-card__head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.lesson-complete-card__pill {
  background: #dff4e8;
  color: #197247;
}

.lesson-score-total {
  min-width: 148px;
  border-radius: 8px;
  background: #0f5d6f;
  color: #fff;
  padding: 16px 18px;
  text-align: center;
}

.lesson-score-total strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.lesson-score-total span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.lesson-score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.lesson-score-grid > div {
  min-height: 78px;
  border: 1px solid #dbe7ea;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  align-content: center;
  gap: 3px;
}

.lesson-score-grid span,
.lesson-score-grid small {
  color: var(--muted);
  font-weight: 800;
}

.lesson-score-grid strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.homework-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.homework-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
  line-height: 1.38;
}

.homework-table th,
.homework-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.homework-table th {
  background: #eef5f4;
  color: var(--brand);
  font-weight: 900;
}

.homework-table tr:last-child td {
  border-bottom: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef5f4;
  color: #245860;
  font-size: 12px;
  font-weight: 800;
}

.storage-badge {
  min-height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.storage-badge strong {
  color: var(--brand);
}

.signal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  align-items: stretch;
  gap: 18px;
}

.signal-hero h2,
.post-card h2,
.signal-card h2 {
  max-width: 880px;
}

.signal-warning {
  display: grid;
  gap: 8px;
  align-content: center;
  border: 1px solid #f1c98c;
  border-left: 5px solid #e39a21;
  border-radius: 8px;
  background: #fff8eb;
  color: #4f3d1f;
  padding: 16px;
}

.signal-warning strong {
  color: #9a5d00;
}

.signal-list,
.market-report-list,
.post-list {
  display: grid;
  gap: 16px;
}

.post-section {
  display: grid;
  gap: 14px;
}

.post-section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  max-width: 1180px;
}

.post-section__head h3 {
  color: #172033;
  font-size: 28px;
  line-height: 1.15;
}

.post-section__head p {
  max-width: 820px;
}

.post-list--webinars .post-card {
  border-color: #bfdce6;
  background:
    linear-gradient(180deg, rgba(246, 251, 253, 0.94), rgba(255, 255, 255, 0.98)),
    #ffffff;
}

.signal-list__label {
  padding: 4px 2px;
}

.signal-list__label h2 {
  margin-bottom: 0;
}

.market-report-card {
  display: grid;
  gap: 18px;
  border: 1px solid #273746;
  border-radius: 8px;
  background: #08111d;
  color: #eef4f8;
  box-shadow: 0 22px 56px rgba(8, 17, 29, 0.22);
  padding: 22px;
  overflow: hidden;
}

.market-report-card .eyebrow {
  color: #f05b52;
}

.market-report-card .muted {
  color: #a8b5c4;
}

.market-report-card__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.market-report-card__head h2 {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: clamp(26px, 3vw, 38px);
}

.market-report-mode {
  display: grid;
  gap: 6px;
  min-width: 220px;
  border: 1px solid rgba(240, 91, 82, 0.45);
  border-radius: 8px;
  background: rgba(240, 91, 82, 0.08);
  padding: 14px;
}

.market-report-mode span {
  color: #f05b52;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}

.market-report-mode strong {
  color: #ffffff;
  line-height: 1.25;
}

.market-report-cover {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #02060a;
}

.market-report-cover-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #02060a;
}

.market-report-cover-date {
  position: absolute;
  top: 6.8%;
  left: 50%;
  min-width: 142px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: rgba(6, 8, 12, 0.96);
  color: #ff4040;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 7px 10px;
  text-align: center;
  text-shadow: 0 0 12px rgba(255, 64, 64, 0.45);
  z-index: 2;
}

.market-report-cover-wrap--detail .market-report-cover-date {
  font-size: clamp(17px, 1.5vw, 24px);
  min-width: clamp(170px, 16vw, 260px);
  padding: 9px 14px;
}

.market-report-summary {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
}

.market-report-summary > div,
.market-report-block,
.market-report-bottomline {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 16px;
}

.market-report-summary span,
.market-report-block h3,
.market-report-bottomline strong {
  color: #f05b52;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
}

.market-report-summary strong {
  display: block;
  margin: 7px 0 8px;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.25;
}

.market-report-summary p,
.market-report-block p,
.market-report-bottomline p {
  margin: 0;
  color: #d7e0ea;
  line-height: 1.55;
}

.market-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.market-report-grid--three {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
}

.market-report-block {
  display: grid;
  gap: 12px;
}

.market-report-block--danger {
  border-color: rgba(240, 91, 82, 0.4);
  background: rgba(240, 91, 82, 0.07);
}

.market-report-verdict {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(42, 157, 143, 0.32);
  border-radius: 8px;
  background: rgba(42, 157, 143, 0.08);
  padding: 10px 12px;
}

.market-report-verdict span {
  color: #a8b5c4;
  font-weight: 800;
}

.market-report-verdict strong {
  color: #6ee7b7;
}

.market-report-list-items {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #d7e0ea;
  line-height: 1.45;
}

.market-history-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.market-history-grid div {
  min-height: 130px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(4, 9, 15, 0.5);
  padding: 13px;
}

.market-history-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
}

.market-history-grid p {
  color: #c4ceda;
  font-size: 14px;
}

.market-scenario-table {
  display: grid;
  gap: 8px;
}

.market-scenario-row {
  display: grid;
  grid-template-columns: 0.7fr 1.4fr 0.8fr 0.9fr 1.2fr;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(4, 9, 15, 0.45);
  padding: 11px 12px;
  color: #d7e0ea;
}

.market-scenario-row--head {
  background: rgba(240, 91, 82, 0.12);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.market-scenario-row strong {
  color: #ffffff;
}

.market-report-bottomline {
  border-color: rgba(233, 161, 27, 0.42);
  background: rgba(233, 161, 27, 0.08);
}

.market-report-bottomline strong {
  color: #f4bf4f;
}

.market-report-card--compact {
  display: block;
  padding: 0;
  background: #ffffff;
  color: var(--ink);
}

.market-report-details {
  display: block;
}

.market-report-details > summary {
  list-style: none;
}

.market-report-details > summary::-webkit-details-marker {
  display: none;
}

.market-report-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  cursor: pointer;
  background: #ffffff;
  padding: 12px;
  overflow: hidden;
}

.market-report-banner .market-report-cover {
  width: 100%;
  height: 100%;
  max-height: none;
  border: 0;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}

.market-report-banner .market-report-cover-wrap {
  width: 100%;
  height: 100%;
}

.market-report-banner .market-report-cover-date {
  min-width: 96px;
  font-size: 10px;
  padding: 5px 7px;
}

.market-report-banner__visual {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #02060a;
  overflow: hidden;
}

.market-report-banner__body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.market-report-banner__body .eyebrow {
  color: var(--accent);
  margin: 0;
}

.market-report-banner__body h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.1;
}

.market-report-banner__body p {
  display: -webkit-box;
  margin: 0;
  max-width: 900px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.market-report-banner__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.market-report-banner__meta span,
.market-report-banner__meta strong,
.market-report-banner__meta button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbfc;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  padding: 7px 11px;
}

.market-report-banner__meta strong,
.market-report-banner__meta button {
  border-color: rgba(27, 95, 122, 0.28);
  background: rgba(27, 95, 122, 0.08);
  color: var(--accent);
}

.market-report-cover--empty {
  display: grid;
  min-height: 280px;
  place-items: center;
  color: #a8b5c4;
  font-weight: 900;
  text-transform: uppercase;
}

.market-report-open-hint {
  position: absolute;
  right: 18px;
  bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(5, 11, 19, 0.86);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  padding: 10px 14px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

.market-report-details[open] .market-report-open-hint {
  color: #f4bf4f;
}

.market-report-detail-panel {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 18px;
}

.market-report-card--compact .market-report-card__head h2 {
  color: var(--ink);
  font-size: clamp(24px, 2.4vw, 34px);
}

.market-report-card--compact .market-report-card__head .muted {
  color: var(--muted);
}

.market-report-card--compact .market-report-mode {
  border-color: rgba(27, 95, 122, 0.2);
  background: rgba(27, 95, 122, 0.06);
}

.market-report-card--compact .market-report-mode span {
  color: var(--accent);
}

.market-report-card--compact .market-report-mode strong {
  color: var(--ink);
}

.market-report-lines,
.market-report-compact-section,
.market-report-action {
  display: grid;
  gap: 8px;
}

.market-report-line,
.market-scenario-line {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: #f8fbfc;
  padding: 12px 14px;
}

.market-report-line strong,
.market-report-compact-section h3,
.market-report-trigger-grid > div > strong,
.market-report-action strong {
  color: #f05b52;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.market-report-line span,
.market-scenario-line span,
.market-report-line-list span,
.market-report-action p {
  color: #334155;
  line-height: 1.5;
}

.market-report-line-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.market-report-line-list li {
  position: relative;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  padding: 9px 12px 9px 28px;
}

.market-report-line-list li::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 12px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #f05b52;
}

.market-report-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.market-report-metric-grid > div {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  padding: 10px 12px;
}

.market-report-metric-grid strong {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.market-report-metric-grid span {
  color: #334155;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.market-scenario-lines {
  display: grid;
  gap: 8px;
}

.market-scenario-line {
  grid-template-columns: 80px minmax(0, 1.3fr) 90px 110px minmax(0, 1fr);
}

.market-scenario-line strong {
  color: var(--ink);
}

.market-report-trigger-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.market-report-trigger-grid > div {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(42, 157, 143, 0.24);
  border-radius: 8px;
  background: rgba(42, 157, 143, 0.05);
  padding: 12px;
}

.market-report-trigger-grid > .is-danger {
  border-color: rgba(240, 91, 82, 0.32);
  background: rgba(240, 91, 82, 0.06);
}

.market-report-action {
  border: 1px solid rgba(233, 161, 27, 0.5);
  border-left: 5px solid #e9a11b;
  border-radius: 8px;
  background: #fff8e8;
  padding: 14px 16px;
}

.market-report-action strong {
  color: #f4bf4f;
  font-size: 15px;
}

.market-report-action p {
  margin: 0;
  font-weight: 800;
}

.market-report-archive {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.market-report-archive__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.market-report-archive__head p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.market-report-archive__head > strong {
  border: 1px solid rgba(27, 95, 122, 0.18);
  border-radius: 999px;
  background: rgba(27, 95, 122, 0.08);
  color: var(--accent);
  white-space: nowrap;
  font-size: 13px;
  padding: 7px 11px;
}

.market-report-archive-list {
  display: grid;
  gap: 8px;
}

.market-report-archive-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) minmax(160px, 0.45fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  padding: 11px 12px;
  text-align: left;
}

.market-report-archive-item:hover {
  border-color: rgba(27, 95, 122, 0.32);
  background: #f8fbfc;
}

.market-report-archive-item span,
.market-report-archive-item em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.market-report-archive-item strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.post-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 18px;
  align-items: center;
}

.post-counter {
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 1px solid #cfe5e6;
  border-radius: 8px;
  background: #f2fbfa;
  text-align: center;
  color: var(--brand);
  padding: 16px;
}

.post-counter strong {
  color: var(--brand);
  font-size: 42px;
  line-height: 1;
}

.post-counter span {
  color: var(--text);
  font-weight: 800;
}

.signal-card,
.post-card {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
}

.signal-card--compact {
  display: block;
  padding: 0;
}

.signal-details {
  display: block;
}

.signal-details > summary {
  list-style: none;
}

.signal-details > summary::-webkit-details-marker {
  display: none;
}

.signal-banner {
  display: grid;
  grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  cursor: pointer;
  padding: 12px;
}

.signal-banner__visual {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #07131c;
  overflow: hidden;
}

.signal-card__cover {
  width: 100%;
  aspect-ratio: 1962 / 801;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  background: #07131c;
}

.signal-banner .signal-card__cover {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}

.signal-card__cover--empty {
  display: grid;
  place-items: center;
  color: #a8b5c4;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-banner__body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.signal-banner__body .eyebrow {
  color: var(--accent);
  margin: 0;
}

.signal-banner__body h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.1;
}

.signal-banner__body p {
  display: -webkit-box;
  margin: 0;
  max-width: 920px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.signal-banner__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.signal-banner__meta span,
.signal-banner__meta strong,
.signal-banner__meta button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbfc;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  padding: 7px 11px;
}

.signal-banner__meta strong,
.signal-banner__meta button {
  border-color: rgba(27, 95, 122, 0.28);
  background: rgba(27, 95, 122, 0.08);
  color: var(--accent);
}

.signal-detail-screen {
  gap: 14px;
}

.signal-back-btn {
  width: fit-content;
}

.signal-detail-window {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 18px;
}

.market-report-card--detail,
.signal-card--detail {
  box-shadow: none;
}

.signal-card__cover--detail {
  max-height: 520px;
  object-fit: contain;
}

.bot-heroes {
  display: grid;
  gap: 14px;
  border: 1px solid #d7e4ec;
  border-radius: 8px;
  background: #f8fbfc;
  padding: 18px;
}

.bot-heroes__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.bot-heroes__head h2,
.hero-bot-card h3 {
  margin: 0;
  color: var(--ink);
}

.bot-heroes__head p {
  max-width: 860px;
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.bot-heroes__head > strong {
  min-width: max-content;
  border-radius: 8px;
  background: #13293d;
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
  padding: 8px 11px;
}

.bot-heroes__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.bot-heroes__empty {
  display: grid;
  gap: 6px;
  border: 1px dashed #b9cbd8;
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  padding: 18px;
}

.bot-heroes__empty strong {
  color: var(--brand);
  font-size: 16px;
}

.bot-heroes__empty span {
  line-height: 1.5;
}

.hero-bot-card {
  display: grid;
  grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.hero-bot-card__visual {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #07131c;
}

.hero-bot-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-bot-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #b7c4cf;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-bot-card__body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.hero-bot-card h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15;
}

.hero-bot-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bot-card-stat-grid,
.hero-bot-card__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 7px;
}

.bot-card-stat-grid div,
.hero-bot-card__stats div {
  display: grid;
  gap: 4px;
  border: 1px solid #e1ebf1;
  border-radius: 8px;
  background: #f8fbfc;
  padding: 10px 12px;
}

.bot-card-stat-grid span,
.hero-bot-card__stats span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.bot-card-stat-grid strong,
.hero-bot-card__stats strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.hero-bot-card button {
  width: fit-content;
  border: 1px solid rgba(27, 95, 122, 0.28);
  border-radius: 999px;
  background: rgba(27, 95, 122, 0.08);
  color: var(--accent);
  cursor: pointer;
  font-weight: 900;
  padding: 9px 13px;
}

.hero-bot-detail {
  display: grid;
  gap: 14px;
}

.hero-bot-detail__cover {
  width: 100%;
  max-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #07131c;
  object-fit: contain;
}

.hero-bot-detail__body {
  display: grid;
  gap: 14px;
  background: #ffffff;
}

.hero-bot-detail__verdict {
  display: grid;
  gap: 6px;
  border: 1px solid #cce3dc;
  border-left: 5px solid #247246;
  border-radius: 8px;
  background: #f2fbf6;
  padding: 14px 16px;
}

.hero-bot-detail__verdict strong {
  color: #247246;
  font-size: 22px;
}

.hero-bot-detail__verdict span {
  color: #25354b;
  font-weight: 760;
  line-height: 1.45;
}

.hero-financial-result {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: 14px;
  border: 1px solid #b8decf;
  border-left: 5px solid #247246;
  border-radius: 8px;
  background: #f2fbf6;
  padding: 16px;
}

.hero-financial-result h3 {
  margin: 4px 0 6px;
  color: #247246;
  font-size: clamp(26px, 3vw, 38px);
}

.hero-financial-result span {
  color: #315247;
  font-weight: 820;
}

.hero-financial-result__rows {
  display: grid;
  gap: 8px;
}

.hero-financial-result__rows div,
.hero-bot-table div {
  display: grid;
  grid-template-columns: minmax(170px, 280px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(36, 114, 70, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 10px 12px;
}

.hero-financial-result__rows span,
.hero-bot-table span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-financial-result__rows strong,
.hero-bot-table strong {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.35;
}

.hero-bot-table {
  display: grid;
  gap: 8px;
}

.hero-bot-table div {
  border-color: #e2ebf0;
  background: #f8fbfc;
}

.hero-bot-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-bot-list li {
  position: relative;
  border: 1px solid #e2ebf0;
  border-radius: 8px;
  background: #fbfdfe;
  color: #2f4057;
  font-weight: 720;
  line-height: 1.45;
  padding: 10px 12px 10px 32px;
}

.hero-bot-list li::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #247246;
}

.signal-detail-panel {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 18px;
}

.signal-open-link {
  width: fit-content;
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
  padding: 11px 14px;
}

.signal-card__head,
.post-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.signal-pair {
  min-width: max-content;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  padding: 9px 12px;
  font-size: 16px;
}

.signal-status {
  width: max-content;
}

.signal-status.is-published {
  background: #e9f8ef;
  color: #247246;
}

.signal-status.is-draft {
  background: #fff4db;
  color: #8a5a00;
}

.signal-status.is-hidden {
  background: #eef2f5;
  color: #596879;
}

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

.signal-metrics div {
  display: grid;
  gap: 5px;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  padding: 12px;
}

.signal-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-metrics strong {
  color: var(--ink);
  line-height: 1.25;
}

.signal-section {
  display: grid;
  gap: 10px;
  border: 1px solid #d8e7ec;
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  background: #fbfdfe;
  padding: 16px 18px;
}

.signal-section h3 {
  margin: 0;
  color: var(--brand);
  font-size: 16px;
  text-transform: uppercase;
}

.signal-body,
.post-body {
  display: grid;
  gap: 10px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

.signal-body p {
  margin: 0;
}

.signal-callout {
  display: grid;
  gap: 6px;
  border: 1px solid #f1d8a8;
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: #fff9ed;
  padding: 14px 16px;
}

.signal-callout strong {
  color: #9a6510;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-callout span {
  color: #3c4658;
  line-height: 1.5;
}

.signal-zone-list,
.signal-control-grid,
.signal-score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.signal-zone,
.signal-control-grid div,
.signal-score-grid div {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.signal-zone strong,
.signal-control-grid strong,
.signal-score-grid strong {
  color: var(--ink);
  line-height: 1.25;
}

.signal-zone span,
.signal-control-grid span,
.signal-score-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.signal-zone--good {
  border-color: #b9ddd2;
  background: #f1faf7;
}

.signal-zone--middle {
  border-color: #f1d8a8;
  background: #fff9ed;
}

.signal-zone--bad {
  border-color: #f1c4c1;
  background: #fff5f4;
}

.signal-install {
  border: 1px solid #d8e7ec;
  border-radius: 8px;
  background: #fbfdfe;
  overflow: hidden;
}

.signal-install summary {
  cursor: pointer;
  color: var(--brand);
  font-weight: 900;
  padding: 15px 18px;
}

.signal-install ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 24px 18px 44px;
  color: var(--text);
  line-height: 1.48;
}

.signal-score-panel {
  display: grid;
  gap: 12px;
}

.signal-score-panel p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.signal-score-total {
  border-color: rgba(27, 95, 122, 0.28) !important;
  background: rgba(27, 95, 122, 0.08) !important;
}

.signal-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.signal-risk {
  display: grid;
  gap: 8px;
  align-items: start;
  border: 1px solid #cce3dc;
  border-radius: 8px;
  background: #f1faf7;
  padding: 15px;
}

.signal-risk strong {
  color: #14634b;
}

.signal-risk--danger {
  border-color: #f1c4c1;
  background: #fff5f4;
}

.signal-risk--danger strong {
  color: #a93b32;
}

.post-card {
  max-width: 1180px;
}

.post-card--preview {
  gap: 16px;
}

.post-card--detail {
  max-width: 1180px;
}

.post-card__cover-frame {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 21 / 8;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #07131c;
  overflow: hidden;
}

.post-card__cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.post-card__cover-placeholder {
  display: grid;
  gap: 10px;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  background:
    radial-gradient(circle at 35% 30%, rgba(43, 188, 216, 0.22), transparent 36%),
    linear-gradient(135deg, #07131c, #13293d);
  color: #ffffff;
  text-align: center;
}

.post-card__cover-placeholder strong {
  max-width: 720px;
  font-size: clamp(24px, 3vw, 46px);
  font-weight: 950;
  line-height: 1.1;
}

.post-card__cover-placeholder small {
  color: #b8dbe5;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.post-video-panel {
  display: grid;
  gap: 14px;
  border: 1px solid #cfe5eb;
  border-radius: 8px;
  background: #f6fbfd;
  padding: 14px;
}

.post-video-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.post-video-panel__head h3 {
  color: #172033;
  font-size: 22px;
  line-height: 1.2;
}

.post-video-player {
  display: block;
  width: 100%;
  max-height: 72vh;
  border: 1px solid #0d1d2a;
  border-radius: 8px;
  background: #07131c;
}

.post-video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}

.post-video-actions .btn {
  text-decoration: none;
}

.post-video-status:empty {
  display: none;
}

.post-video-status {
  margin: 10px 0 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.video-library,
.video-watch {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.video-library-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 26px;
  border-left: 5px solid #18a8bf;
}

.video-library-hero h2,
.video-watch-info h2 {
  margin: 4px 0 8px;
  color: var(--ink);
  line-height: 1.08;
}

.video-library-hero p:last-child {
  max-width: 830px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.video-library-stat {
  display: grid;
  place-items: center;
  width: 150px;
  min-height: 118px;
  padding: 14px;
  border: 1px solid #c9e3e8;
  border-radius: 8px;
  background: #eff9fa;
  color: #175b73;
  text-align: center;
}

.video-library-stat strong {
  font-size: 42px;
  line-height: 1;
}

.video-library-stat span {
  max-width: 110px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.video-library-toolbar,
.video-shelf__head,
.video-announcement-actions,
.video-carousel-actions,
.video-layout-switch,
.video-playlists {
  display: flex;
  align-items: center;
}

.video-library-toolbar {
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.video-playlists {
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding: 2px 0 5px;
  scrollbar-width: thin;
}

.video-filter,
.video-layout-switch button,
.video-carousel-actions button {
  min-height: 40px;
  border: 1px solid #cbdbe2;
  border-radius: 8px;
  background: #ffffff;
  color: #314258;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.video-filter {
  flex: 0 0 auto;
  padding: 8px 13px;
  white-space: nowrap;
}

.video-filter.active,
.video-layout-switch button.active {
  border-color: #18688a;
  background: #18688a;
  color: #ffffff;
}

.video-layout-switch {
  flex: 0 0 auto;
  gap: 4px;
  padding: 3px;
  border: 1px solid #d8e2e7;
  border-radius: 8px;
  background: #edf3f5;
}

.video-layout-switch button {
  min-height: 34px;
  padding: 6px 11px;
  border-color: transparent;
  background: transparent;
}

.video-shelf {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.video-shelf__head {
  justify-content: space-between;
  gap: 16px;
}

.video-shelf__head h3 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 24px;
}

.video-carousel-actions,
.video-announcement-actions {
  gap: 8px;
}

.video-carousel-actions button {
  display: grid;
  place-items: center;
  width: 42px;
  padding: 0;
  color: #155f7c;
  font-size: 23px;
  line-height: 1;
}

.video-carousel-actions button:hover,
.video-filter:hover,
.video-layout-switch button:hover {
  border-color: #6fa7ba;
}

.video-card-track {
  min-width: 0;
}

.video-card-track--carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 268px);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  padding: 2px 2px 12px;
}

.video-card-track--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.video-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d3e0e5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(25, 54, 75, 0.07);
  scroll-snap-align: start;
}

.video-card__cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #cbdbe2;
  background: #07131c;
  cursor: pointer;
}

.video-card__cover img,
.video-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card__placeholder {
  place-items: center;
  background: linear-gradient(145deg, #07131c, #17445a);
  color: #ffffff;
}

.video-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: rgba(4, 20, 31, 0.78);
  color: #ffffff;
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, background 160ms ease;
}

.video-card__cover:hover .video-card__play {
  background: #1687aa;
  transform: translate(-50%, -50%) scale(1.07);
}

.video-card__play svg {
  width: 22px;
  height: 22px;
}

.video-card__type {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 9px;
  border-radius: 6px;
  background: rgba(5, 24, 35, 0.88);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.video-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 14px;
}

.video-card__body > span {
  color: #19708c;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.video-card__body h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.24;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.video-card__body p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.video-card__link {
  width: fit-content;
  margin-top: auto;
  padding: 7px 0 0;
  border: 0;
  background: transparent;
  color: #176c89;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.video-watch__back {
  width: fit-content;
}

.video-watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.72fr);
  align-items: start;
  gap: 18px;
  min-width: 0;
}

.video-watch-stage,
.video-watch-info {
  min-width: 0;
}

.post-video-panel--library {
  padding: 0;
  border-color: #0c2534;
  background: #07131c;
  box-shadow: 0 18px 38px rgba(13, 35, 51, 0.16);
}

.post-video-panel--library .post-video-player {
  width: 100%;
  max-height: min(70vh, 760px);
  border: 0;
}

.video-watch-info {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid #d3e0e5;
  border-radius: 8px;
  background: #ffffff;
}

.video-watch-info p {
  margin: 0;
  color: #435168;
  line-height: 1.55;
}

.video-watch-points {
  padding: 14px;
  border-left: 4px solid #1e9eb5;
  background: #f0f8fa;
}

.video-watch-points ul {
  display: grid;
  gap: 7px;
  margin: 9px 0 0;
  padding-left: 19px;
  color: #344257;
}

.video-watch-note {
  padding-top: 12px;
  border-top: 1px solid #dbe5e9;
  font-size: 13px;
}

.blog-video-announcement {
  display: grid;
  gap: 14px;
}

.blog-video-announcement .post-section__head {
  align-items: end;
}

.post-card__cta {
  width: fit-content;
}

.post-back {
  width: fit-content;
}

.post-summary {
  border-left: 4px solid var(--brand);
  margin: 0;
  padding: 10px 0 10px 14px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}

.post-teaser {
  max-width: 900px;
  color: #344257;
  font-size: 18px;
  line-height: 1.58;
}

.post-hook {
  display: grid;
  gap: 7px;
  border: 1px solid #f1dfb8;
  border-left: 5px solid #e39a21;
  border-radius: 8px;
  background: #fffaf0;
  padding: 14px 16px;
}

.post-hook strong {
  color: #a8660b;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.post-hook span {
  color: #344257;
  font-size: 16px;
  line-height: 1.5;
}

.post-preview-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-preview-points li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
  color: #344257;
  font-weight: 800;
  line-height: 1.35;
  padding: 12px 14px;
}

.post-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.public-blog-page {
  display: grid;
  gap: 22px;
  min-height: 100vh;
  padding: clamp(18px, 4vw, 46px);
  background:
    linear-gradient(180deg, rgba(241, 247, 250, 0.94), rgba(255, 255, 255, 0.96)),
    #f4f7fb;
}

.public-blog-head,
.public-blog-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(19, 41, 61, 0.08);
  padding: 22px;
}

.public-blog-head h1,
.public-blog-cta h2 {
  color: #172033;
  line-height: 1.1;
}

.public-blog-head h1 {
  max-width: 860px;
  margin-top: 12px;
  font-size: clamp(32px, 5vw, 64px);
}

.public-blog-head p,
.public-blog-cta p {
  max-width: 840px;
  color: #66738a;
  font-size: 17px;
  line-height: 1.55;
}

.public-blog-brand {
  display: grid;
  gap: 4px;
  min-width: 220px;
  border-radius: 8px;
  background: #13293d;
  color: #ffffff;
  padding: 16px;
}

.public-blog-brand span {
  color: #b8c9d9;
  font-size: 13px;
  line-height: 1.35;
}

.public-blog-article {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.public-blog-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.trial-registration {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: 28px;
  width: min(1180px, 100%);
  margin: 0 auto;
  border: 1px solid #b9d6df;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(19, 41, 61, 0.1);
  padding: clamp(20px, 3vw, 34px);
}

.trial-registration[hidden] {
  display: none;
}

.trial-registration__intro {
  align-content: start;
  display: grid;
  gap: 12px;
  border-right: 1px solid var(--line);
  padding-right: 28px;
}

.trial-registration__intro h2 {
  color: #172033;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.trial-registration__intro p:last-child,
.trial-registration__note {
  color: #66738a;
  font-size: 16px;
  line-height: 1.5;
}

.trial-registration__form {
  display: grid;
  gap: 16px;
}

.trial-registration__form .btn {
  min-height: 52px;
  justify-content: center;
}

.trial-access-pill {
  border-color: #8fcfba;
  background: #e8f8f0;
  color: #13704f;
}

.trial-expired-card,
.trial-restricted-panel {
  align-content: center;
}

.admin-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.post-card__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-body p {
  margin: 0;
}

.post-body {
  display: grid;
  gap: 16px;
}

.post-body__lead {
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(18, 99, 126, 0.1), rgba(227, 154, 33, 0.08));
  color: #172033;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.55;
  padding: 16px 18px;
}

.post-body__heading {
  border-top: 1px solid var(--line);
  color: #172033;
  font-size: 24px;
  line-height: 1.2;
  margin: 8px 0 0;
  padding-top: 20px;
}

.post-note,
.post-example,
.post-list-block {
  display: grid;
  gap: 8px;
  border-radius: 8px;
  padding: 16px 18px;
}

.post-note strong,
.post-example strong,
.post-list-block strong {
  color: var(--brand);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.post-note p,
.post-example p {
  color: var(--text);
  line-height: 1.58;
  margin: 0;
}

.post-note--definition {
  border: 1px solid #cfe5eb;
  border-left: 5px solid var(--brand);
  background: #f6fbfd;
}

.post-note--callout {
  border: 1px solid #f1dfb8;
  border-left: 5px solid #e39a21;
  background: #fffaf0;
}

.post-example {
  border: 1px solid #d8e7ec;
  border-left: 5px solid #31a36f;
  background: #f5fbf7;
}

.post-list-block {
  border: 1px solid var(--line);
  background: #fbfdfe;
}

.post-list-block ul,
.post-checklist {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 22px;
}

.post-list-block li,
.post-checklist li {
  color: #344257;
  line-height: 1.5;
}

.post-checklist {
  border: 1px solid #d8e7ec;
  border-radius: 8px;
  background: #fbfdfe;
  padding: 18px 18px 18px 44px;
}

.post-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.post-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.post-table th,
.post-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.post-table th {
  background: #f1f7fa;
  color: var(--brand);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.post-table td {
  color: #344257;
  line-height: 1.45;
}

.post-table tr:last-child td {
  border-bottom: 0;
}

.post-takeaway {
  display: grid;
  gap: 7px;
  border: 1px solid #d8e7ec;
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  background: #fbfdfe;
  padding: 14px 16px;
}

.post-takeaway strong {
  color: var(--brand);
  text-transform: uppercase;
  font-size: 13px;
}

.post-takeaway span {
  color: var(--text);
  line-height: 1.55;
}

.launch-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  align-items: center;
  border-left: 5px solid #e39a21;
  background: #fffaf0;
}

.launch-hero--ready {
  border-left-color: var(--ok);
  background: #f1faf7;
}

.launch-score {
  display: grid;
  place-items: center;
  min-height: 136px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.launch-score strong {
  color: var(--brand);
  font-size: 42px;
  line-height: 1;
}

.launch-score span {
  color: var(--muted);
  font-weight: 800;
}

.launch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.launch-check {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 16px;
}

.launch-check--ready {
  border-color: #b9ddd2;
  background: #f7fcfa;
}

.launch-check--todo {
  border-color: #f1c98c;
  background: #fffaf0;
}

.launch-check__status {
  width: fit-content;
  border-radius: 999px;
  background: #eef5f4;
  color: var(--brand);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 850;
}

.launch-check--todo .launch-check__status {
  background: #fff0d1;
  color: #9a5d00;
}

.launch-check h3,
.launch-check p {
  margin: 0;
}

.launch-check p {
  color: var(--text);
  line-height: 1.45;
}

.launch-check span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.admin-readiness-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}

.admin-readiness-head h3,
.admin-readiness-head p {
  margin: 0;
}

.admin-readiness-head strong {
  min-width: 86px;
  border-radius: 8px;
  background: #eef5f4;
  color: var(--brand);
  padding: 10px 12px;
  text-align: center;
  font-size: 26px;
  line-height: 1;
}

.admin-readiness-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-readiness-card {
  display: grid;
  gap: 7px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px;
}

.admin-readiness-card--ready {
  border-color: #b9ddd2;
  background: #f7fcfa;
}

.admin-readiness-card--todo {
  border-color: #f1c98c;
  background: #fffaf0;
}

.admin-readiness-card span {
  width: fit-content;
  border-radius: 999px;
  background: #eef5f4;
  color: var(--brand);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 850;
}

.admin-readiness-card--todo span {
  background: #fff0d1;
  color: #9a5d00;
}

.admin-readiness-card h4,
.admin-readiness-card p {
  margin: 0;
}

.admin-readiness-card h4 {
  color: var(--ink);
  font-size: 16px;
}

.admin-readiness-card p,
.admin-readiness-card small {
  color: var(--muted);
  line-height: 1.4;
}

.admin-readiness-card small {
  font-weight: 750;
}

.lesson-publication {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-left: 5px solid #f1c98c;
}

.lesson-publication h3,
.lesson-publication p {
  margin: 0;
}

.lesson-publication--published {
  border-left-color: var(--ok);
  background: #f7fcfa;
}

.lesson-publication--draft {
  background: #fffaf0;
}

.lesson-publication--locked {
  border-left-color: #d7665c;
  background: #fff5f4;
}

.lesson-publication__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.lesson-publication__actions .btn {
  white-space: nowrap;
}

.launch-steps {
  display: grid;
  gap: 10px;
}

.launch-steps div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  padding: 12px;
}

.launch-steps strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}

.chat-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 16px;
}

.chat-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 18px;
  align-items: center;
}

.chat-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.chat-stats div {
  display: grid;
  gap: 4px;
  place-items: center;
  min-height: 92px;
  border: 1px solid #d8e7ec;
  border-radius: 8px;
  background: #f8fbfc;
  text-align: center;
  padding: 12px;
}

.chat-stats strong {
  color: var(--brand);
  font-size: 30px;
  line-height: 1;
}

.chat-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.chat-announcements {
  display: grid;
}

.chat-channel {
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.chat-channel--primary {
  border-top: 4px solid var(--brand);
}

.chat-channel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-message {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  padding: 14px;
}

.chat-message strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.3;
}

.chat-message span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.chat-message p {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
}

.chat-message--announcement {
  border-left: 5px solid var(--brand);
  background: #fbfdfe;
}

.chat-rules {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid #f1c98c;
  border-left: 5px solid #e39a21;
  border-radius: 8px;
  background: #fff8eb;
  color: #4f3d1f;
  padding: 16px;
}

.chat-rules strong {
  color: #9a5d00;
}

.chat-rules span {
  line-height: 1.5;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 12px;
}

.media-box {
  display: grid;
  align-content: start;
  gap: 16px;
}

.media-box__body {
  display: grid;
  gap: 10px;
  align-content: start;
}

.podcast-card,
.media-player-box {
  border: 1px solid #d4e0e7;
  border-radius: 8px;
  background: #f7fafb;
  overflow: hidden;
}

.podcast-card {
  display: grid;
}

.podcast-cover,
.media-visual-image {
  width: 100%;
  aspect-ratio: 1935 / 813;
  height: auto;
  min-height: 0;
  max-height: none;
  display: block;
  object-fit: contain;
  background: #07131c;
}

.media-visual-image {
  object-fit: contain;
  background: #f7fafb;
}

.media-presentation-card {
  border: 1px solid #d4e0e7;
  border-radius: 8px;
  background: #f7fafb;
  padding: 14px;
}

.media-presentation-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid #d4e0e7;
  border-radius: 6px;
  background: #eef3f5;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.media-presentation-viewer {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #eef3f5;
}

.media-presentation-thumb {
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: #eef3f5;
  cursor: pointer;
}

.media-presentation-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #eef3f5;
}

.media-presentation-open {
  margin-top: 12px;
  justify-content: center;
  width: 100%;
}

.media-presentation-note {
  display: block;
  margin-top: 8px;
  color: #738094;
  font-size: 13px;
  line-height: 1.35;
}

body.modal-open {
  overflow: hidden;
}

.presentation-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(7, 19, 28, 0.72);
  padding: 0;
}

.presentation-modal__dialog {
  position: absolute;
  min-width: min(640px, calc(100vw - 24px));
  min-height: min(420px, calc(100vh - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  border: 1px solid #d4e0e7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(7, 19, 28, 0.35);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.presentation-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid #d4e0e7;
  background: #f7fafb;
  color: #172033;
}

.presentation-modal__head-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.presentation-modal__head strong {
  font-size: 18px;
}

.presentation-modal__counter {
  color: #738094;
  font-size: 13px;
  font-weight: 800;
}

.presentation-modal__close {
  width: 38px;
  height: 38px;
  border: 1px solid #d4e0e7;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.presentation-modal__viewer {
  position: relative;
  min-height: 0;
  background: #eef3f5;
  display: grid;
}

.presentation-modal__pdf {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #eef3f5;
  pointer-events: none;
}

.presentation-modal__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 64px;
  transform: translateY(-50%);
  border: 1px solid rgba(212, 224, 231, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #175676;
  box-shadow: 0 14px 32px rgba(7, 19, 28, 0.18);
  cursor: pointer;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  display: grid;
  place-items: center;
}

.presentation-modal__nav:hover:not(:disabled) {
  background: #175676;
  color: #fff;
}

.presentation-modal__nav:disabled {
  cursor: default;
  opacity: 0.28;
}

.presentation-modal__nav--prev {
  left: 14px;
}

.presentation-modal__nav--next {
  right: 14px;
}

.presentation-modal__resize {
  position: absolute;
  z-index: 2;
  background: transparent;
}

.presentation-modal__resize--n,
.presentation-modal__resize--s {
  left: 14px;
  right: 14px;
  height: 12px;
  cursor: ns-resize;
}

.presentation-modal__resize--n {
  top: -6px;
}

.presentation-modal__resize--s {
  bottom: -6px;
}

.presentation-modal__resize--e,
.presentation-modal__resize--w {
  top: 14px;
  bottom: 14px;
  width: 12px;
  cursor: ew-resize;
}

.presentation-modal__resize--e {
  right: -6px;
}

.presentation-modal__resize--w {
  left: -6px;
}

.presentation-modal__resize--nw,
.presentation-modal__resize--ne,
.presentation-modal__resize--sw,
.presentation-modal__resize--se {
  width: 22px;
  height: 22px;
}

.presentation-modal__resize--nw {
  top: -7px;
  left: -7px;
  cursor: nwse-resize;
}

.presentation-modal__resize--ne {
  top: -7px;
  right: -7px;
  cursor: nesw-resize;
}

.presentation-modal__resize--sw {
  bottom: -7px;
  left: -7px;
  cursor: nesw-resize;
}

.presentation-modal__resize--se {
  right: -7px;
  bottom: -7px;
  cursor: nwse-resize;
}

body.modal-resizing,
body.modal-resizing * {
  user-select: none;
}

body.modal-resizing .presentation-modal__pdf {
  pointer-events: none;
}

.media-empty-visual {
  min-height: 240px;
  border: 1px dashed #b9cad3;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 86, 118, 0.08), rgba(233, 161, 27, 0.08)),
    #f7fafb;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 18px;
  text-align: center;
}

.media-empty-visual strong {
  color: #172033;
  font-size: 17px;
}

.media-empty-visual span,
.media-size-note {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.media-size-note {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border: 1px solid #d4e0e7;
  border-radius: 8px;
  background: #f7fafb;
}

.media-admin-guide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.media-admin-guide__item {
  border: 1px solid #d4e0e7;
  border-radius: 8px;
  background: #f7fafb;
  padding: 12px;
  display: grid;
  gap: 5px;
}

.media-admin-guide__item strong {
  color: #172033;
  font-size: 15px;
}

.media-admin-guide__item span {
  color: var(--brand);
  font-weight: 900;
}

.media-admin-guide__item small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.podcast-controls {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.media-player {
  width: 100%;
  display: block;
}

.media-video {
  width: 100%;
  min-height: 260px;
  border: 1px solid #d4e0e7;
  border-radius: 8px;
  background: #07131c;
  display: block;
}

.media-pdf-preview {
  width: 100%;
  min-height: 260px;
  border: 1px solid #d4e0e7;
  border-radius: 8px;
  background: #f7fafb;
}

.media-pdf-image {
  width: 100%;
  min-height: 260px;
  max-height: 360px;
  border: 1px solid #d4e0e7;
  border-radius: 8px;
  object-fit: contain;
  background: #f7fafb;
  display: block;
}

.media-link-text {
  overflow-wrap: anywhere;
}

.material-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.material-form .field {
  min-width: 0;
}

.material-form > .btn {
  grid-column: 1 / -1;
  justify-self: start;
}

.media-edit-form {
  border-top: 1px solid #d4e0e7;
  padding-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.media-edit-form .field {
  min-width: 0;
}

.media-edit-form > .btn {
  grid-column: 1 / -1;
  justify-self: start;
}

.admin-form,
.admin-list {
  display: grid;
  gap: 14px;
}

.admin-lesson-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(27, 95, 122, 0.2);
  border-radius: 8px;
  background: #f8fbfc;
}

.admin-lesson-picker h3 {
  margin: 3px 0 6px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.22;
}

.admin-lesson-picker .muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.editor-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.quick-editor-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  align-items: start;
}

.quick-editor-panel {
  display: grid;
  gap: 14px;
}

.quick-editor-meta {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(27, 95, 122, 0.18);
  border-radius: 8px;
  background: rgba(27, 95, 122, 0.06);
  padding: 12px 14px;
}

.quick-editor-meta strong {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-editor-meta span {
  color: var(--muted);
  line-height: 1.45;
}

#quickEditValue {
  min-height: 240px;
  font-size: 16px;
  line-height: 1.55;
}

.user-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 160px 140px 180px auto;
  gap: 10px;
  align-items: end;
}

.users-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.users-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 150px 170px minmax(130px, 230px);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.users-row__actions {
  align-items: stretch;
}

.users-row__actions .btn {
  flex: 1 1 110px;
  justify-content: center;
}

.users-row:last-child {
  border-bottom: 0;
}

.users-row--head {
  background: #eef5f4;
  color: #245860;
  font-weight: 800;
}

.users-row select,
.users-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.sessions-list {
  display: grid;
  gap: 10px;
}

.session-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.audit-meta {
  margin: 0;
  white-space: pre-wrap;
  background: #f6f7fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: #304257;
  overflow-x: auto;
}

.reports-list {
  display: grid;
  gap: 10px;
}

.asset-library {
  gap: 18px;
}

.asset-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  align-items: center;
}

.asset-hero-note {
  display: grid;
  gap: 8px;
  border: 1px solid #cce3dc;
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  background: #f1faf7;
  padding: 16px;
}

.asset-hero-note strong {
  color: var(--brand);
}

.asset-browser-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  padding: 0 2px;
}

.asset-browser-tabs button {
  min-width: 180px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #eef4f7;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
  padding: 13px 16px;
  text-align: left;
}

.asset-browser-tabs button.active {
  background: #ffffff;
  color: var(--brand);
  box-shadow: 0 -2px 0 var(--brand) inset;
}

.asset-group-panel {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 0 8px 8px 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 22px;
}

.asset-group-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.asset-group-head h2 {
  margin: 0 0 8px;
}

.asset-group-head > strong {
  min-width: max-content;
  border-radius: 999px;
  background: #e8f4f2;
  color: var(--brand);
  padding: 8px 12px;
}

.asset-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.asset-tier-stack {
  display: grid;
  gap: 18px;
}

.asset-tier {
  display: grid;
  gap: 12px;
}

.asset-tier__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  border: 1px solid #d8e4ed;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(18, 99, 126, 0.07), rgba(255, 255, 255, 0.84));
  padding: 14px 16px;
}

.asset-tier__head h3 {
  margin: 3px 0 4px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
}

.asset-tier__head span {
  display: block;
  max-width: 880px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.asset-tier__head > strong {
  flex: 0 0 auto;
  border-radius: 8px;
  background: #112b45;
  color: #ffffff;
  font-weight: 950;
  padding: 8px 10px;
}

.asset-card {
  display: grid;
  grid-template-rows: 220px 54px 52px 136px 132px 142px 124px auto;
  align-content: start;
  gap: 12px;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  padding: 16px;
}

.asset-card--placeholder {
  border-style: dashed;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(238, 246, 250, 0.7)),
    #f8fbfc;
}

.asset-card--placeholder .asset-card__logo-placeholder {
  border-style: dashed;
  background:
    linear-gradient(135deg, rgba(18, 99, 126, 0.04), rgba(255, 255, 255, 0.9)),
    #f6fafc;
  color: #86a0ad;
}

.asset-card--placeholder .asset-card__top span {
  background: #dbe7ee;
  color: #466070;
}

.asset-card--placeholder .asset-card__top strong,
.asset-card--placeholder h3,
.asset-card--placeholder p {
  color: #718393;
}

.asset-card--button {
  width: 100%;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.asset-card--button:hover,
.asset-card--button:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 18px 34px rgba(19, 41, 61, 0.14);
  outline: 0;
  transform: translateY(-2px);
}

.asset-card__visual {
  position: relative;
  width: 100%;
  height: 220px;
  min-height: 220px;
}

.asset-card__direction {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(7, 18, 17, 0.78);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  padding: 7px 9px;
  text-transform: uppercase;
}

.asset-card__direction--crypto {
  background: linear-gradient(135deg, rgba(19, 41, 61, 0.94), rgba(25, 183, 216, 0.9));
}

.asset-card__direction--rwa {
  background: linear-gradient(135deg, rgba(19, 41, 61, 0.94), rgba(34, 182, 110, 0.9));
}

.asset-card__direction--traditional {
  background: linear-gradient(135deg, rgba(19, 41, 61, 0.94), rgba(169, 59, 50, 0.9));
}

.asset-card__logo {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: 1px solid rgba(18, 99, 126, 0.18);
  background: #071211;
  object-fit: contain;
}

.asset-card__logo-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 1px dashed #d3e1e9;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(18, 99, 126, 0.06), rgba(255, 255, 255, 0.74)),
    #f3f8fb;
  color: var(--brand);
  font-size: clamp(18px, 1.65vw, 28px);
  font-weight: 950;
  text-align: center;
}

.asset-card__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  min-height: 54px;
}

.asset-card__top span {
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 950;
  padding: 8px 10px;
}

.asset-card__top strong {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  text-transform: uppercase;
}

.asset-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.18;
  min-height: 52px;
}

.asset-card__section,
.asset-card__risk {
  display: grid;
  align-content: start;
  gap: 5px;
}

.asset-card__section {
  min-height: 132px;
}

.asset-card b {
  color: var(--brand);
  font-size: 12px;
  text-transform: uppercase;
}

.asset-card p {
  margin: 0;
  color: #344257;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.asset-card__risk {
  border-top: 1px solid var(--line);
  min-height: 124px;
  padding-top: 10px;
}

.asset-card__risk p {
  -webkit-line-clamp: 3;
}

.asset-card__risk b {
  color: #a93b32;
}

.asset-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.asset-edit-button {
  border-color: #d7e4eb;
  background: #f7fafb;
  color: var(--brand);
}

.asset-passport {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 136px;
  border: 1px solid #d8e4ed;
  border-radius: 8px;
  background: #f5f9fc;
  padding: 10px 12px;
}

.asset-passport--empty {
  opacity: 0;
  pointer-events: none;
}

.asset-passport__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.asset-passport__head > strong {
  color: var(--brand);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.asset-passport__score {
  display: inline-grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, #6b3e16, #9a5b1f);
  box-shadow: 0 8px 18px rgba(17, 43, 69, 0.14);
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
}

.asset-passport__score--red {
  background: linear-gradient(135deg, #8d1f1f, #d34235);
}

.asset-passport__score--orange {
  background: linear-gradient(135deg, #a24a16, #f28c28);
}

.asset-passport__score--yellow {
  background: linear-gradient(135deg, #b98212, #f2c94c);
  color: #1f2a37;
}

.asset-passport__score--lime {
  background: linear-gradient(135deg, #6a9f20, #a8d64f);
  color: #102315;
}

.asset-passport__score--green {
  background: linear-gradient(135deg, #16723b, #22b66e);
}

.asset-passport__score--bright {
  background: linear-gradient(135deg, #008f5a, #00d084);
}

.asset-passport__rows {
  display: grid;
  gap: 6px;
}

.asset-passport__row {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #243248;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.asset-passport__icon {
  display: grid;
  place-items: center;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #112b45;
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
}

.asset-passport__icon--usa {
  background: linear-gradient(135deg, #152f57, #a93b32);
}

.asset-passport__icon--semiconductors_ai {
  background: linear-gradient(135deg, #13293d, #1e7aa8);
}

.asset-passport__icon--crypto_equity {
  background: linear-gradient(135deg, #0b2a62, #1d7fff);
}

.asset-passport__icon--crypto,
.asset-passport__icon--crypto_utility {
  background: linear-gradient(135deg, #13293d, #19b7d8);
}

.asset-passport__icon--assetomics_75,
.asset-passport__icon--assetomics {
  background: linear-gradient(135deg, #9a6510, #f2a21d);
}

.asset-passport p {
  margin: 0;
  color: #344257;
  font-size: 15px;
  line-height: 1.45;
}

.asset-passport__warning {
  border-top: 1px solid #e7d6c2;
  color: #8a3b2f !important;
  font-weight: 800;
  padding-top: 9px;
}

.asset-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(7, 18, 27, 0.58);
  padding: 28px;
}

.asset-modal {
  width: min(1180px, 100%);
  max-height: min(860px, calc(100vh - 56px));
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(7, 18, 27, 0.36);
  padding: 22px;
}

.asset-modal--full {
  width: min(1540px, calc(100vw - 36px));
  max-height: calc(100vh - 28px);
  padding: 22px 26px 28px;
}

.asset-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.asset-modal--full .asset-modal__header {
  position: sticky;
  top: -22px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.96);
  padding-top: 4px;
}

.asset-modal__header h2 {
  margin: 0 0 6px;
  font-size: 34px;
}

.asset-modal__header span {
  color: var(--muted);
  font-weight: 800;
}

.asset-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.asset-modal__body {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}

.asset-modal__logo {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: 8px;
  object-fit: contain;
  background: #071211;
}

.asset-modal__summary {
  display: grid;
  gap: 14px;
  border: 1px solid #cce3dc;
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  background: #f4fbfa;
  padding: 18px;
}

.asset-modal__summary strong,
.asset-modal__section h3 {
  margin: 0;
  color: var(--brand);
  font-size: 14px;
  text-transform: uppercase;
}

.asset-modal__summary p {
  margin: 0;
  color: #243248;
  font-size: 21px;
  font-weight: 850;
  line-height: 1.38;
}

.asset-modal__score {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-radius: 8px;
  background: #ffffff;
  padding: 13px 15px;
}

.asset-modal__score span {
  color: var(--muted);
  font-weight: 800;
}

.asset-modal__score b {
  color: var(--ink);
  font-size: 24px;
}

.asset-full-toggle {
  justify-self: start;
}

.asset-full-analysis {
  display: grid;
  gap: 12px;
  border: 1px solid #cfdce5;
  border-radius: 8px;
  background: #f8fbfc;
  margin-top: 16px;
  padding: 16px;
}

.asset-modal--full .asset-full-analysis {
  border: 0;
  background: transparent;
  margin-top: 18px;
  padding: 0;
}

.asset-full-analysis__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.asset-full-analysis__head h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 2.4vw, 34px);
}

.asset-full-analysis pre {
  max-height: 560px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: 8px;
  background: #ffffff;
  color: #26364d;
  font-family: inherit;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.62;
  margin: 0;
  padding: 16px;
}

.asset-analysis-loading {
  border-radius: 8px;
  background: #f7fafb;
  color: var(--muted);
  font-weight: 850;
  padding: 18px;
}

.asset-analysis-reader {
  display: grid;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 8px;
  background: #ffffff;
  padding: 24px 28px;
}

.asset-analysis-heading {
  margin: 22px 0 2px;
  border-top: 1px solid #dfe8ee;
  color: var(--ink);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.18;
  padding-top: 20px;
}

.asset-analysis-heading:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.asset-analysis-subheading {
  margin: 8px 0 0;
  color: var(--brand);
  font-size: 17px;
  text-transform: uppercase;
}

.asset-analysis-paragraph {
  max-width: 980px;
  margin: 0;
  color: #2f4057;
  font-size: 18px;
  font-weight: 560;
  line-height: 1.72;
}

.asset-analysis-paragraph strong {
  color: var(--ink);
  font-weight: 900;
}

.asset-analysis-kv {
  display: grid;
  grid-template-columns: minmax(150px, 260px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  max-width: 980px;
  border: 1px solid #e2ebf0;
  border-radius: 8px;
  background: #f8fbfc;
  padding: 11px 13px;
}

.asset-analysis-kv span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.asset-analysis-kv b {
  color: #26364d;
  font-weight: 760;
  line-height: 1.45;
}

.asset-analysis-callout {
  display: grid;
  gap: 7px;
  max-width: 1040px;
  border: 1px solid #d8e7ec;
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  background: #f7fbfc;
  padding: 15px 18px;
}

.asset-analysis-callout span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.asset-analysis-callout p {
  margin: 0;
  color: #25354b;
  font-size: 18px;
  font-weight: 780;
  line-height: 1.55;
}

.asset-analysis-callout--positive {
  border-color: #b8decf;
  border-left-color: #247246;
  background: #f2fbf6;
}

.asset-analysis-callout--positive span {
  color: #247246;
}

.asset-analysis-callout--danger {
  border-color: #f0c7c0;
  border-left-color: #a93b32;
  background: #fff7f5;
}

.asset-analysis-callout--danger span {
  color: #a93b32;
}

.asset-analysis-list {
  display: grid;
  gap: 8px;
  max-width: 960px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.asset-analysis-list li {
  position: relative;
  border: 1px solid #e2ebf0;
  border-radius: 8px;
  background: #fbfdfe;
  color: #2f4057;
  font-size: 17px;
  font-weight: 620;
  line-height: 1.5;
  padding: 11px 13px 11px 34px;
}

.asset-analysis-list li::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.asset-analysis-table-wrap {
  max-width: 1120px;
  overflow-x: auto;
  border: 1px solid #dfe8ee;
  border-radius: 8px;
  background: #ffffff;
}

.asset-analysis-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.asset-analysis-table th,
.asset-analysis-table td {
  border-bottom: 1px solid #e8eef2;
  color: #2f4057;
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
}

.asset-analysis-table th {
  background: #f3f7fa;
  color: var(--brand);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.asset-analysis-table tr:last-child td {
  border-bottom: 0;
}

.asset-modal-backdrop--guide {
  z-index: 84;
}

.asset-modal-backdrop--edit {
  z-index: 88;
}

.asset-edit-modal {
  width: min(1120px, calc(100vw - 36px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(7, 18, 27, 0.36);
  padding: 22px;
}

.asset-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.asset-edit-grid--text {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.asset-edit-field {
  display: grid;
  gap: 7px;
}

.asset-edit-field span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.asset-edit-field input,
.asset-edit-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  line-height: 1.45;
  padding: 11px 12px;
}

.asset-edit-field textarea {
  min-height: 128px;
  resize: vertical;
}

.asset-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}

.asset-guide-modal {
  width: min(1280px, calc(100vw - 36px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(7, 18, 27, 0.36);
  padding: 22px;
}

.asset-guide-modal__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.asset-guide-modal__head h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 42px);
}

.asset-guide-modal__head span {
  color: var(--muted);
  font-weight: 800;
}

.asset-guide-modal__body {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
  gap: 22px;
  margin-top: 18px;
}

.asset-guide-modal__cover {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #07131c;
  object-fit: cover;
}

.asset-guide-modal__content {
  display: grid;
  gap: 14px;
}

.asset-guide-modal__content section,
.asset-guide-route {
  border: 1px solid #d8e7ec;
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  background: #fbfdfe;
  padding: 16px 18px;
}

.asset-guide-modal__content h3 {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 16px;
  text-transform: uppercase;
}

.asset-guide-modal__content p,
.asset-guide-modal__content span {
  margin: 0;
  color: #344257;
  font-size: 17px;
  line-height: 1.55;
}

.asset-guide-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.asset-guide-columns article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  padding: 14px;
}

.asset-guide-columns strong {
  color: var(--ink);
  font-size: 20px;
}

.asset-guide-columns span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.asset-guide-warning {
  border-color: #f1d8a8 !important;
  border-left-color: var(--accent) !important;
  background: #fff9ed !important;
}

.asset-guide-route {
  border-left-color: #247246;
  background: #f2fbf6;
}

.asset-guide-route strong {
  color: #247246;
  font-size: 15px;
  text-transform: uppercase;
}

.asset-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.asset-modal__section {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.asset-modal__section--wide {
  grid-column: 1 / -1;
}

.asset-modal__section--positive {
  border-color: #b8decf;
  background: #f2fbf6;
}

.asset-modal__section--negative {
  border-color: #f0c7c0;
  background: #fff7f5;
}

.asset-modal__section p {
  margin: 0;
  color: #314158;
  line-height: 1.52;
}

.asset-metric-list,
.asset-tokenomics-list,
.asset-portfolio-list {
  display: grid;
  gap: 8px;
}

.asset-metric-list div,
.asset-tokenomics-list div,
.asset-portfolio-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-radius: 8px;
  background: #f7fafb;
  padding: 10px 12px;
}

.asset-metric-list span,
.asset-tokenomics-list span,
.asset-portfolio-list span {
  color: var(--muted);
  font-weight: 800;
}

.asset-metric-list b,
.asset-tokenomics-list b,
.asset-portfolio-list b {
  color: var(--ink);
}

.report-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 340px;
  background: #13293d;
  color: #fff;
  padding: 13px 15px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .video-library-hero,
  .video-watch-layout {
    grid-template-columns: 1fr;
  }

  .video-library-stat {
    width: 100%;
    min-height: 82px;
    grid-template-columns: auto 1fr;
    justify-content: start;
    column-gap: 12px;
  }

  .video-library-stat span {
    max-width: none;
    text-align: left;
  }

  .practice-variant-story,
  .practice-decision-flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .practice-variant-step--action,
  .practice-variant-step--context,
  .practice-variant-step--result,
  .practice-variant-step--lesson {
    grid-column: 1;
  }

  .practice-decision-flow span:not(:last-child)::after {
    content: "↓";
    right: auto;
    left: 11px;
    bottom: -13px;
  }

  .app-shell,
  .login-screen,
  .hero-panel,
  .grid.two,
  .grid.three,
  .lesson-layout,
  .admin-layout,
  .variant-grid,
  .media-grid,
  .module-grid,
  .student-dashboard-grid,
  .student-stat-grid,
  .lesson-overview,
  .student-route-flow,
	  .student-route-grid,
	  .diagnostic-strip,
  .diagnostic-path-head,
	  .diagnostic-options,
	  .diagnostic-actions,
	  .diagnostic-result-head,
	  .user-form-grid,
  .users-row,
  .session-row,
  .admin-lesson-picker,
  .quick-editor-hero,
  .material-form,
  .media-admin-guide,
  .media-edit-form,
  .lecture-hero-grid,
  .lecture-registration-card,
  .case-grid,
  .case-task-grid,
  .case-reflection,
  .answer-grid,
  .practice-slide,
  .practice-actions,
  .lecture-section,
  .term-row,
  .signal-hero,
  .signal-banner,
  .bot-heroes__grid,
  .hero-bot-card,
  .hero-financial-result,
  .market-report-card__head,
  .market-report-summary,
  .market-report-grid,
  .market-report-grid--three,
  .market-history-grid,
  .asset-hero,
  .asset-group-head,
  .asset-tier__head,
  .asset-card-grid,
  .asset-modal__body,
  .asset-modal__grid,
  .asset-guide-modal__body,
  .asset-guide-columns,
  .signal-metrics,
  .signal-zone-list,
  .signal-control-grid,
  .signal-score-grid,
  .signal-notes,
  .post-hero,
  .launch-hero,
  .launch-grid,
  .admin-readiness-grid,
  .lesson-publication,
	  .practice-choice-grid,
	  .homework-complete-panel,
  .lesson-complete-card__head,
  .lesson-score-grid,
	  .chat-hero,
  .chat-grid {
    grid-template-columns: 1fr;
  }

  .diagnostic-levels,
  .shadow-bank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 12px 14px;
    gap: 0;
    box-shadow: 0 14px 30px rgba(19, 41, 61, 0.18);
  }

  .brand {
    padding: 6px 0;
    border-bottom: 0;
  }

  .brand-menu-icon {
    display: grid;
  }

  .nav {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar--open .nav {
    display: grid;
  }

  .nav button {
    justify-content: center;
    text-align: center;
    padding: 12px 8px;
    min-height: 48px;
  }

  .sidebar-footer {
    display: none;
  }

  .student-progress-card__head,
  .student-next-panel,
  .course-progress-head,
  .course-progress-foot {
    align-items: stretch;
    flex-direction: column;
    display: flex;
  }

  .lesson-overview__cover {
    min-height: 220px;
  }

  .main {
    padding: 18px;
  }

  .market-report-mode {
    min-width: 0;
  }

  .market-report-line,
  .market-scenario-line,
  .market-report-trigger-grid,
  .market-report-metric-grid,
  .market-report-archive-item,
  .market-report-banner {
    grid-template-columns: 1fr;
  }

  .market-report-archive__head {
    display: grid;
  }

  .asset-modal__section--wide {
    grid-column: auto;
  }

  .asset-modal {
    padding: 16px;
  }

  .asset-modal--full,
  .asset-guide-modal,
  .asset-edit-modal {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 16px;
  }

  .asset-modal__header {
    align-items: stretch;
    flex-direction: column;
  }

  .asset-guide-modal__head {
    align-items: stretch;
    flex-direction: column;
  }

  .asset-modal__actions {
    justify-content: flex-start;
  }

  .bot-heroes__head {
    display: grid;
  }

  .asset-full-analysis__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .asset-analysis-reader {
    padding: 18px;
  }

  .asset-analysis-kv {
    grid-template-columns: 1fr;
  }

  .hero-financial-result__rows div,
  .hero-bot-table div {
    grid-template-columns: 1fr;
  }

  .asset-edit-grid,
  .asset-edit-grid--text {
    grid-template-columns: 1fr;
  }

  .asset-full-analysis pre {
    max-height: 460px;
    font-size: 15px;
  }

  .asset-modal__logo {
    min-height: 240px;
  }

  .market-report-banner__visual {
    max-width: 420px;
  }

  .market-scenario-table {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .market-scenario-row {
    min-width: 760px;
  }

  .lesson-menu {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lesson-content {
    padding: 24px;
  }

  .lecture-visual-card img {
    max-height: 420px;
  }

  .lecture-section-marker {
    position: static;
  }

  .quiz-shell {
    padding: 18px;
  }

  .practice-slide__visual {
    min-height: 280px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .practice-slide__visual img,
  .practice-slide__visual .practice-visual {
    min-height: 280px;
  }
}

@media (max-width: 620px) {
  .video-library,
  .video-watch {
    gap: 14px;
  }

  .video-library-hero {
    gap: 16px;
    padding: 18px 16px;
  }

  .video-library-hero h2,
  .video-watch-info h2 {
    font-size: 27px;
  }

  .video-library-toolbar,
  .video-shelf__head,
  .video-announcement-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .video-layout-switch {
    width: 100%;
  }

  .video-layout-switch button {
    flex: 1 1 50%;
  }

  .video-carousel-actions {
    align-self: flex-end;
  }

  .video-card-track--carousel {
    grid-auto-columns: min(76vw, 260px);
  }

  .video-card-track--grid {
    grid-template-columns: 1fr;
  }

  .video-watch-info {
    padding: 17px;
  }

  .post-video-panel--library .post-video-player {
    max-height: 58vh;
  }

  body {
    font-size: 16px;
  }

  .topbar,
  .quiz-topline,
  .quiz-actions,
  .quiz-card__head,
  .course-item,
  .module-item,
  .toc-item,
  .report-line {
    align-items: stretch;
    flex-direction: column;
    display: flex;
  }

  .signal-card__head,
  .market-report-card__head,
  .post-section__head,
  .post-card__meta,
  .chat-channel__head,
  .signal-risk,
  .bot-card-stat-grid,
  .hero-bot-card__stats,
  .chat-rules {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .post-video-panel__head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-head {
    align-items: stretch;
    flex-direction: column;
  }

  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diagnostic-levels,
  .shadow-bank-grid {
    grid-template-columns: 1fr;
  }

  .market-report-card {
    padding: 16px;
  }

  .market-report-card--compact {
    padding: 0;
  }

  .market-report-cover {
    max-height: 420px;
  }

  .market-report-open-hint {
    right: 12px;
    bottom: 12px;
    font-size: 12px;
    padding: 8px 10px;
  }

  .market-report-detail-panel {
    padding: 14px;
  }

  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-box {
    margin: 18px;
  }

  .login-copy {
    padding: 32px 18px;
  }

  .lesson-content {
    padding: 18px 16px 26px;
  }

  .quiz-card {
    padding: 18px;
  }

  .quiz-card h3 {
    font-size: 21px;
  }

  .answer {
    min-height: 84px;
    padding: 14px;
  }

  .practice-slide__body {
    padding: 18px;
  }

  .practice-slide__body h2 {
    font-size: 21px;
  }

  .quiz-score {
    width: 100%;
  }

  .lecture-hero h2 {
    font-size: 28px;
  }

  .lecture-hero .lecture-topic-title {
    white-space: normal;
  }

  .lecture-thesis {
    font-size: 17px;
  }

  .public-blog-page {
    gap: 14px;
    padding: 12px;
  }

  .public-blog-head,
  .public-blog-cta {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .public-blog-head h1 {
    margin-top: 10px;
    font-size: 32px;
    line-height: 1.08;
  }

  .public-blog-head p,
  .public-blog-cta p {
    font-size: 16px;
    line-height: 1.48;
  }

  .public-blog-brand {
    min-width: 0;
  }

  .public-blog-cta h2 {
    font-size: 30px;
    line-height: 1.08;
  }

  .public-blog-cta__actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .public-blog-cta__actions .btn {
    width: 100%;
    min-height: 54px;
    justify-content: center;
    text-align: center;
  }

  .trial-registration {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
  }

  .trial-registration__intro {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 18px;
  }

  .trial-registration__intro h2 {
    font-size: 30px;
  }

  .trial-registration__form .password-field {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .trial-registration__form .password-field button {
    min-width: 92px;
  }

  .post-card {
    gap: 14px;
    padding: 14px;
  }

  .post-card h2 {
    font-size: 30px;
    line-height: 1.12;
  }

  .post-card__cover-frame {
    border-radius: 8px;
  }

  .post-summary {
    font-size: 17px;
    line-height: 1.42;
    padding-left: 12px;
  }

  .post-teaser {
    font-size: 16px;
    line-height: 1.5;
  }

  .post-hook,
  .post-note,
  .post-example,
  .post-list-block,
  .post-checklist {
    padding: 13px 14px;
  }

  .post-body {
    gap: 14px;
  }

  .post-body p,
  .post-note p,
  .post-example p,
  .post-list-block li,
  .post-checklist li,
  .post-table td {
    font-size: 16px;
    line-height: 1.5;
  }

  .post-body__lead {
    font-size: 17px;
    line-height: 1.45;
    padding: 14px;
  }

  .post-body__heading {
    font-size: 25px;
    line-height: 1.15;
    padding-top: 16px;
  }

  .post-preview-points {
    grid-template-columns: 1fr;
  }

  .post-table-wrap {
    overflow-x: hidden;
  }

  .post-table {
    min-width: 0;
    table-layout: fixed;
  }

  .post-table th,
  .post-table td {
    padding: 10px 8px;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .post-table th {
    font-size: 11px;
    line-height: 1.25;
  }

  .post-checklist {
    padding-left: 34px;
  }

  .post-section__head h3 {
    font-size: 25px;
  }

  .post-video-panel {
    padding: 12px;
  }

  .post-video-panel__head h3 {
    font-size: 20px;
  }

  .login-copy {
    padding: 28px 18px;
  }

  .login-copy h1 {
    font-size: 38px;
    line-height: 1.08;
  }

  .login-copy p {
    font-size: 20px;
    line-height: 1.35;
  }

  .guardian-overlay {
    padding: 10px;
    align-items: start;
  }

  .guardian-passport {
    max-height: calc(100dvh - 20px);
    padding: 16px;
  }

  .guardian-passport__summary,
  .guardian-evolution-map {
    grid-template-columns: 1fr;
  }

  .guardian-evolution-step {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .guardian-evolution-step__level {
    width: 38px;
    height: 38px;
  }

  .guardian-evolution-step__status {
    grid-column: 2;
  }

  .guardian-level-up {
    margin-top: 12vh;
    padding: 24px 18px;
  }
}

@media (max-width: 980px) {
  .guardian-widget {
    grid-template-columns: 1fr;
  }

  .guardian-widget__scene {
    min-height: 330px;
  }

  .guardian-widget__console {
    border-left: 0;
    border-top: 1px solid #21413f;
  }
}

@media (max-width: 620px) {
  .guardian-widget__scene {
    min-height: 300px;
  }

  .guardian-widget__scene-head,
  .guardian-widget__identity {
    left: 16px;
    right: 16px;
  }

  .guardian-widget__scene-head {
    top: 14px;
  }

  .guardian-widget__identity {
    bottom: 16px;
  }

  .guardian-widget__identity h2 {
    font-size: 26px;
  }

  .guardian-widget__identity span {
    font-size: 13px;
  }

  .guardian-widget__console {
    padding: 18px 16px;
  }
}

/* Grid Guardian Command Center v2 */
.guardian-dashboard {
  --guardian-bg: #070f14;
  --guardian-surface: #0b171c;
  --guardian-surface-2: #101f24;
  --guardian-line: #244045;
  --guardian-text: #f4f8f7;
  --guardian-muted: #91aaa7;
  --guardian-emerald: #33d3ad;
  --guardian-cyan: #20b9dc;
  --guardian-gold: #d7aa4f;
  margin: -4px;
  padding: 16px;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  color: var(--guardian-text);
  border: 1px solid #193039;
  border-radius: 8px;
  background:
    linear-gradient(rgba(49, 121, 118, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 121, 118, 0.035) 1px, transparent 1px),
    var(--guardian-bg);
  background-size: 42px 42px;
  box-shadow: 0 28px 70px rgba(5, 17, 22, 0.18);
}

.guardian-dashboard h2,
.guardian-dashboard strong {
  color: var(--guardian-text);
}

.guardian-kicker {
  margin: 0;
  color: #5fe2c8;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 850;
  text-transform: uppercase;
}

.guardian-command-center {
  width: 100%;
  min-width: 0;
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(430px, 1.65fr) minmax(280px, 0.86fr);
  overflow: hidden;
  border: 1px solid var(--guardian-line);
  border-radius: 8px;
  background: #081318;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.32);
}

.guardian-command-center__focus,
.guardian-rank-panel {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 26px 24px;
  background: rgba(7, 18, 22, 0.94);
}

.guardian-command-center__focus {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--guardian-line);
}

.guardian-command-center__focus h2 {
  margin: 14px 0 10px;
  font-size: 34px;
  line-height: 1.04;
}

.guardian-command-center__focus h2 strong {
  color: #ffffff;
}

.guardian-command-center__focus > p:not(.guardian-kicker) {
  margin: 0;
  color: #75d7c5;
  font-size: 15px;
  line-height: 1.5;
}

.guardian-focus-list {
  margin-top: 32px;
  display: grid;
  gap: 1px;
  border: 1px solid var(--guardian-line);
  background: var(--guardian-line);
}

.guardian-focus-list div {
  min-width: 0;
  padding: 15px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  background: #0b1a1f;
}

.guardian-focus-list span {
  color: #ffffff;
  font-size: 24px;
  font-weight: 850;
}

.guardian-focus-list p {
  margin: 0;
  color: var(--guardian-muted);
  font-size: 12px;
  line-height: 1.35;
}

.guardian-data-note {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #718e8a;
  font-size: 11px;
  line-height: 1.4;
}

.guardian-data-note i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--guardian-emerald);
  box-shadow: 0 0 12px rgba(51, 211, 173, 0.72);
}

.guardian-command-center__scene {
  min-width: 0;
  position: relative;
  overflow: hidden;
  background: #081217;
}

.guardian-command-center__scene > img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) contrast(1.04);
  transition: transform 600ms ease, filter 600ms ease;
}

.guardian-command-center__scene-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 14, 18, 0.02) 48%, rgba(5, 14, 18, 0.92) 100%);
}

.guardian-command-center__identity {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 4px;
}

.guardian-command-center__identity span,
.guardian-command-center__identity small {
  color: #75d7c5;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.guardian-command-center__identity strong {
  font-size: 28px;
  line-height: 1.1;
}

.guardian-command-center__identity small {
  color: #9db5b2;
  text-transform: none;
}

.guardian-rank-panel {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--guardian-line);
}

.guardian-rank-panel__level {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

.guardian-rank-panel__level > span {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  clip-path: polygon(25% 6%, 75% 6%, 96% 50%, 75% 94%, 25% 94%, 4% 50%);
  color: #ffffff;
  background: linear-gradient(145deg, #1b7667, #17473f);
  font-size: 26px;
  font-weight: 900;
  box-shadow: 0 0 24px rgba(51, 211, 173, 0.25);
}

.guardian-rank-panel__level small,
.guardian-rank-panel__level strong {
  display: block;
}

.guardian-rank-panel__level small {
  color: #6f918d;
  font-size: 10px;
  font-weight: 800;
}

.guardian-rank-panel__level strong {
  margin-top: 4px;
  font-size: 17px;
  line-height: 1.25;
}

.guardian-rank-panel__xp {
  margin-top: 21px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.guardian-rank-panel__xp span {
  color: #7c9b97;
}

.guardian-rank-panel__bar {
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #1c3035;
}

.guardian-rank-panel__bar span {
  display: block;
  width: var(--value, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--guardian-emerald), var(--guardian-cyan));
  box-shadow: 0 0 18px rgba(51, 211, 173, 0.46);
}

.guardian-rank-panel__until {
  margin: 7px 0 0;
  color: #75918e;
  font-size: 11px;
  text-align: right;
}

.guardian-current-skill,
.guardian-next-task {
  margin-top: 18px;
  padding: 15px 0;
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--guardian-line);
}

.guardian-current-skill span,
.guardian-next-task span {
  color: #6e918c;
  font-size: 10px;
  font-weight: 850;
}

.guardian-current-skill strong,
.guardian-next-task strong {
  font-size: 16px;
}

.guardian-current-skill small,
.guardian-next-task small {
  color: #8ea7a4;
  font-size: 12px;
  line-height: 1.45;
}

.guardian-primary-action,
.guardian-passport-link,
.guardian-evolution-band header button {
  min-height: 48px;
  border: 1px solid #37b99f;
  border-radius: 6px;
  color: #ffffff;
  background: linear-gradient(180deg, #299c84, #1b6d5d);
  font-weight: 850;
  cursor: pointer;
}

.guardian-primary-action {
  margin-top: auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.guardian-passport-link {
  min-height: 38px;
  margin-top: 9px;
  color: #77cdbd;
  border-color: #264a4c;
  background: #0b1c21;
  font-size: 12px;
}

.guardian-dashboard-band {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--guardian-line);
  border-radius: 8px;
  background: rgba(9, 21, 26, 0.96);
}

.guardian-dashboard-band > header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 14px;
}

.guardian-dashboard-band > header h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.guardian-dashboard-band > header > span {
  color: #779591;
  font-size: 12px;
}

.guardian-achievement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.guardian-achievement-card {
  min-width: 0;
  min-height: 112px;
  padding: 14px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-content: center;
  gap: 4px 10px;
  border: 1px solid #263e43;
  border-radius: 6px;
  background: #0b191e;
}

.guardian-achievement-card__icon {
  width: 40px;
  height: 40px;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  border: 1px solid #50605b;
  border-radius: 50%;
  color: #82918d;
  font-weight: 900;
}

.guardian-achievement-card strong {
  align-self: end;
  font-size: 14px;
}

.guardian-achievement-card small {
  color: #758d89;
  font-size: 11px;
}

.guardian-achievement-card.is-unlocked {
  border-color: #6a572f;
  background: linear-gradient(145deg, #151b18, #17160f);
}

.guardian-achievement-card.is-unlocked .guardian-achievement-card__icon {
  border-color: #b68f40;
  color: #f0c767;
  background: #211d12;
  box-shadow: 0 0 16px rgba(215, 170, 79, 0.18);
}

.guardian-achievement-card.is-locked {
  opacity: 0.58;
}

.guardian-evolution-band header button {
  min-height: 38px;
  padding: 0 14px;
  color: #7cdbca;
  border-color: #2b5d58;
  background: #102326;
  font-size: 12px;
}

.guardian-evolution-track {
  display: grid;
  grid-template-columns: repeat(10, minmax(104px, 1fr));
  gap: 7px;
}

.guardian-evolution-node {
  min-width: 0;
  min-height: 112px;
  padding: 11px 8px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  text-align: center;
  border: 1px solid #294247;
  border-radius: 6px;
  background: #0a181d;
}

.guardian-evolution-node > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  clip-path: polygon(25% 6%, 75% 6%, 96% 50%, 75% 94%, 25% 94%, 4% 50%);
  color: #8ca29f;
  background: #1b3035;
  font-weight: 900;
}

.guardian-evolution-node strong {
  min-height: 30px;
  display: grid;
  place-items: center;
  font-size: 11px;
  line-height: 1.25;
}

.guardian-evolution-node small {
  color: #687f7c;
  font-size: 9px;
}

.guardian-evolution-node--active {
  border-color: var(--guardian-emerald);
  background: #102825;
  box-shadow: 0 0 22px rgba(51, 211, 173, 0.13), inset 0 -3px var(--guardian-emerald);
}

.guardian-evolution-node--active > span,
.guardian-evolution-node--complete > span {
  color: #ffffff;
  background: #1c7968;
}

.guardian-evolution-node--locked {
  opacity: 0.46;
}

.guardian-stat-grid {
  gap: 8px;
}

.guardian-stat-grid .student-stat {
  min-height: 90px;
  padding: 12px 8px;
  border-color: var(--guardian-line);
  border-radius: 6px;
  background: #0b191e;
  box-shadow: none;
}

.guardian-stat-grid .student-stat strong {
  font-size: 25px;
}

.guardian-stat-grid .student-stat .muted {
  color: #78918d;
  font-size: 11px;
}

.guardian-xp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
}

.guardian-xp-grid > div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.guardian-xp-grid span,
.guardian-xp-grid strong {
  font-size: 12px;
}

.guardian-xp-grid span {
  color: #8ca5a1;
}

.guardian-xp-grid i {
  height: 5px;
  grid-column: 1 / -1;
  overflow: hidden;
  border-radius: 3px;
  background: #1b3035;
}

.guardian-xp-grid b {
  width: var(--value, 0%);
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--guardian-emerald), var(--guardian-cyan));
}

.guardian-dashboard .progress-help summary {
  color: #7de1cf;
  background: #13292d;
}

.guardian-dashboard .progress-help p {
  border-color: var(--guardian-line);
  color: #a8bbb8;
  background: #0c1c21;
}

.guardian-followup-panel,
.guardian-dashboard .diagnostic-strip {
  border-color: var(--guardian-line);
  color: var(--guardian-text);
  background: #0b191e;
  box-shadow: none;
}

.guardian-followup-panel .muted,
.guardian-dashboard .diagnostic-strip .muted {
  color: #8ca5a1;
}

.guardian-followup-panel .student-next-panel__meta,
.guardian-dashboard .diagnostic-mini {
  border-color: #2b4c4e;
  color: #eaf5f3;
  background: #102529;
}

.guardian-followup-panel .student-next-panel__meta strong,
.guardian-dashboard .diagnostic-mini strong {
  color: #62d5be;
}

.guardian-passport__visual {
  margin: 18px 0;
  position: relative;
  overflow: hidden;
  border: 1px solid #28484b;
  border-radius: 6px;
  background: #071216;
}

.guardian-passport__visual img {
  width: 100%;
  max-height: 430px;
  display: block;
  object-fit: contain;
}

.guardian-passport__visual figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border: 1px solid #3e6a66;
  border-radius: 4px;
  color: #ffffff;
  background: rgba(7, 18, 22, 0.9);
  font-size: 11px;
  font-weight: 800;
}

@media (prefers-reduced-motion: no-preference) {
  .guardian-command-center:hover .guardian-command-center__scene > img {
    transform: scale(1.018);
    filter: saturate(1.02) contrast(1.05);
  }
}

@media (max-width: 1280px) {
  .guardian-command-center {
    grid-template-columns: minmax(190px, 0.62fr) minmax(380px, 1.35fr) minmax(265px, 0.78fr);
  }

  .guardian-command-center__focus,
  .guardian-rank-panel {
    padding: 22px 18px;
  }

  .guardian-command-center__focus h2 {
    font-size: 29px;
  }

  .guardian-evolution-track {
    overflow-x: auto;
    grid-template-columns: repeat(10, 118px);
    padding-bottom: 8px;
    scrollbar-width: thin;
  }
}

@media (max-width: 1180px) {
  .guardian-dashboard {
    margin: 0;
    padding: 12px;
  }

  .guardian-command-center {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  }

  .guardian-command-center__focus {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
    gap: 12px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--guardian-line);
  }

  .guardian-command-center__focus .guardian-kicker,
  .guardian-command-center__focus h2,
  .guardian-command-center__focus > p {
    grid-column: 1;
  }

  .guardian-command-center__focus h2 {
    margin: 8px 0 0;
  }

  .guardian-focus-list {
    grid-column: 2;
    grid-row: 1 / 5;
    margin-top: 0;
  }

  .guardian-data-note {
    margin-top: 4px;
  }

  .guardian-command-center__scene {
    min-height: 470px;
  }

  .guardian-rank-panel {
    border-left: 1px solid var(--guardian-line);
  }

  .guardian-achievement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guardian-xp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 620px) {
  .guardian-dashboard {
    padding: 8px;
    gap: 9px;
    border-radius: 0;
  }

  .guardian-command-center {
    display: flex;
    flex-direction: column;
  }

  .guardian-command-center__focus {
    order: 2;
    display: block;
    padding: 20px 16px;
  }

  .guardian-command-center__focus h2 {
    font-size: 29px;
  }

  .guardian-focus-list {
    margin-top: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guardian-focus-list div {
    padding: 12px 7px;
    display: block;
    text-align: center;
  }

  .guardian-focus-list p {
    margin-top: 4px;
  }

  .guardian-data-note {
    margin-top: 16px;
  }

  .guardian-command-center__scene {
    order: 1;
    min-height: 420px;
  }

  .guardian-command-center__scene > img {
    object-position: 50% center;
  }

  .guardian-command-center__identity strong {
    font-size: 24px;
  }

  .guardian-rank-panel {
    order: 3;
    padding: 20px 16px;
    border-top: 1px solid var(--guardian-line);
    border-left: 0;
  }

  .guardian-primary-action {
    margin-top: 16px;
  }

  .guardian-dashboard-band {
    padding: 15px 12px;
  }

  .guardian-dashboard-band > header {
    align-items: start;
  }

  .guardian-achievement-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .guardian-achievement-card {
    min-width: 230px;
    scroll-snap-align: start;
  }

  .guardian-evolution-band header button {
    display: none;
  }

  .guardian-evolution-track {
    margin-right: -12px;
    grid-template-columns: repeat(10, 118px);
    scroll-snap-type: x mandatory;
  }

  .guardian-evolution-node {
    scroll-snap-align: start;
  }

  .guardian-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guardian-xp-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .guardian-followup-panel {
    padding: 16px;
  }

  .guardian-passport__visual {
    overflow-x: auto;
  }

  .guardian-passport__visual img {
    width: 920px;
    max-width: none;
    height: auto;
  }

  .guardian-passport__visual figcaption {
    position: sticky;
    left: 10px;
    display: inline-block;
    transform: translateY(-52px);
  }
}

/* Grid Guardian cabinet v3: readable character progression */
.guardian-dashboard--v3 {
  gap: 14px;
}

.guardian-command-center--v3 {
  min-height: 660px;
  grid-template-columns: minmax(270px, 0.82fr) minmax(470px, 1.45fr) minmax(310px, 0.9fr);
}

.guardian-command-center--v3 .guardian-command-center__focus {
  justify-content: flex-start;
}

.guardian-avatar-intro {
  color: #9bb3b0 !important;
  font-size: 13px !important;
}

.guardian-avatar-intro strong {
  color: #f3fbf9;
}

.guardian-quality-list {
  margin-top: 22px;
  display: grid;
  gap: 13px;
}

.guardian-quality {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.guardian-quality > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px auto;
  align-items: center;
  gap: 6px;
}

.guardian-quality strong,
.guardian-quality span {
  font-size: 11px;
}

.guardian-quality strong {
  color: #dce9e7;
}

.guardian-quality span {
  color: #91a8a5;
  font-variant-numeric: tabular-nums;
}

.guardian-quality > i,
.guardian-identity-progress i {
  height: 7px;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: #1a2d32;
}

.guardian-quality > i b {
  width: var(--quality, 0%);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--quality-color, #33d3ad);
  box-shadow: 0 0 14px color-mix(in srgb, var(--quality-color, #33d3ad) 55%, transparent);
  transition: width 450ms ease;
}

.guardian-info-dot,
.guardian-card-help summary {
  width: 22px;
  height: 22px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #31575a;
  border-radius: 50%;
  color: #79d9c7;
  background: #102529;
  font-size: 11px;
  font-weight: 900;
  cursor: help;
}

.guardian-info-dot {
  position: relative;
}

.guardian-info-dot::after {
  content: attr(data-tooltip);
  width: min(280px, 72vw);
  padding: 10px 12px;
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: calc(100% + 9px);
  transform: translate(-50%, 5px);
  border: 1px solid #31575a;
  border-radius: 6px;
  color: #dce9e7;
  background: #071418;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: 160ms ease;
}

.guardian-info-dot:hover::after,
.guardian-info-dot:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.guardian-market-overlay {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.guardian-market-overlay span {
  padding: 6px 9px;
  border: 1px solid rgba(64, 139, 133, 0.52);
  border-radius: 4px;
  color: #8da9a5;
  background: rgba(5, 17, 21, 0.86);
  font-size: 9px;
  font-weight: 750;
}

.guardian-market-overlay b {
  margin-left: 4px;
  color: #58d6ba;
}

.guardian-command-center--v3 .guardian-command-center__scene > img {
  object-position: 50% center;
}

.guardian-command-center--v3 .guardian-command-center__scene::before,
.guardian-command-center--v3 .guardian-command-center__scene::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 74px;
  width: 24%;
  height: 31%;
  border: 1px solid rgba(52, 171, 149, 0.32);
  border-radius: 5px;
  background:
    linear-gradient(135deg, transparent 48%, rgba(49, 211, 173, 0.45) 49% 51%, transparent 52%) 0 0 / 54px 42px,
    linear-gradient(rgba(18, 67, 67, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 67, 67, 0.18) 1px, transparent 1px),
    rgba(5, 19, 23, 0.64);
  background-size: 54px 42px, 16px 16px, 16px 16px, auto;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.42);
  pointer-events: none;
}

.guardian-command-center--v3 .guardian-command-center__scene::before {
  left: 14px;
}

.guardian-command-center--v3 .guardian-command-center__scene::after {
  right: 14px;
  background:
    linear-gradient(180deg, transparent 0 18%, rgba(42, 202, 166, 0.28) 19% 23%, transparent 24% 46%, rgba(224, 83, 83, 0.26) 47% 52%, transparent 53%),
    linear-gradient(rgba(18, 67, 67, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 67, 67, 0.18) 1px, transparent 1px),
    rgba(5, 19, 23, 0.7);
  background-size: auto, 16px 16px, 16px 16px, auto;
}

.guardian-command-center--v3 .guardian-command-center__identity {
  padding: 14px 16px;
  gap: 6px;
  border: 1px solid rgba(53, 126, 120, 0.58);
  border-radius: 6px;
  background: rgba(5, 17, 21, 0.9);
  backdrop-filter: blur(8px);
}

.guardian-identity-progress {
  margin-top: 3px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.guardian-identity-progress i b {
  width: var(--value, 0%);
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--guardian-emerald), var(--guardian-cyan));
}

.guardian-identity-progress small {
  color: #a7bbb8 !important;
  font-size: 10px !important;
  text-transform: none !important;
}

.guardian-skill-panel {
  gap: 0;
}

.guardian-skill-panel > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.guardian-skill-panel > header h3 {
  margin: 5px 0 0;
  color: #f4fbfa;
  font-size: 21px;
}

.guardian-skill-panel > header > span {
  padding: 6px 8px;
  border: 1px solid #31575a;
  border-radius: 4px;
  color: #75d7c5;
  background: #102529;
  font-size: 11px;
  font-weight: 850;
}

.guardian-skill-panel__lead {
  margin: 14px 0 16px;
  color: #8fa7a3;
  font-size: 12px;
  line-height: 1.5;
}

.guardian-skill-stack {
  display: grid;
  gap: 9px;
}

.guardian-skill-card {
  min-width: 0;
  min-height: 64px;
  padding: 10px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  border: 1px solid #284348;
  border-radius: 6px;
  background: #0b1a1f;
}

.guardian-skill-card > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  clip-path: polygon(25% 6%, 75% 6%, 96% 50%, 75% 94%, 25% 94%, 4% 50%);
  color: #b6cbc7;
  background: #1b3438;
  font-weight: 900;
}

.guardian-skill-card small,
.guardian-skill-card strong {
  display: block;
}

.guardian-skill-card small {
  color: #668b86;
  font-size: 9px;
  font-weight: 850;
}

.guardian-skill-card strong {
  margin-top: 4px;
  font-size: 14px;
}

.guardian-skill-card.is-current {
  border-color: #38bd9f;
  background: linear-gradient(135deg, #102825, #0c1c21);
  box-shadow: inset 3px 0 #38d4b2;
}

.guardian-skill-card.is-current > span,
.guardian-skill-card.is-unlocked > span {
  color: #fff;
  background: #1d7465;
}

.guardian-skill-card.is-locked {
  opacity: 0.62;
}

.guardian-skill-panel .guardian-passport-link {
  margin-top: auto;
}

.guardian-dashboard-band > header > div > p:not(.guardian-kicker) {
  max-width: 780px;
  margin: 6px 0 0;
  color: #829d99;
  font-size: 12px;
  line-height: 1.5;
}

.guardian-achievement-card {
  position: relative;
  min-height: 150px;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  align-content: start;
  align-items: start;
  padding: 16px;
}

.guardian-achievement-card__icon {
  grid-row: auto;
}

.guardian-achievement-card > div {
  min-width: 0;
}

.guardian-achievement-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}

.guardian-achievement-card small {
  margin-top: 7px;
  display: block;
  font-size: 12px;
  line-height: 1.45;
}

.guardian-card-help {
  position: relative;
}

.guardian-card-help summary {
  list-style: none;
}

.guardian-card-help summary::-webkit-details-marker {
  display: none;
}

.guardian-card-help p {
  width: 235px;
  margin: 0;
  padding: 11px;
  position: absolute;
  z-index: 20;
  top: 30px;
  right: 0;
  border: 1px solid #31575a;
  border-radius: 6px;
  color: #cbdad7;
  background: #071418;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.46);
  font-size: 11px;
  line-height: 1.45;
}

.guardian-evolution-node {
  min-height: 150px;
  position: relative;
  align-content: start;
}

.guardian-evolution-node .guardian-info-dot {
  margin-top: auto;
}

.guardian-stat-grid .student-stat {
  min-height: 106px;
}

.guardian-stat-grid .student-stat .muted {
  max-width: 150px;
  line-height: 1.4;
}

.guardian-xp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.guardian-xp-row {
  min-width: 0;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.15fr) minmax(180px, 0.75fr);
  grid-template-areas:
    "head explanation action"
    "bar bar bar";
  align-items: center;
  gap: 7px 18px;
  border: 1px solid #203a3f;
  border-radius: 6px;
  background: #0a181d;
}

.guardian-xp-row__head {
  grid-area: head;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.guardian-xp-row__head strong {
  font-size: 13px;
}

.guardian-xp-row__head span {
  color: #70cbb9;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.guardian-xp-row p {
  grid-area: explanation;
  margin: 0;
  color: #91a9a5;
  font-size: 12px;
  line-height: 1.45;
}

.guardian-xp-row small {
  grid-area: action;
  color: #6d8f8a;
  font-size: 11px;
  line-height: 1.4;
}

.guardian-xp-row > i {
  height: 5px;
  grid-area: bar;
  overflow: hidden;
  border-radius: 3px;
  background: #1b3035;
}

.guardian-xp-row > i b {
  width: var(--value, 0%);
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--guardian-emerald), var(--guardian-cyan));
}

@media (max-width: 1280px) {
  .guardian-command-center--v3 {
    grid-template-columns: minmax(240px, 0.78fr) minmax(400px, 1.3fr) minmax(285px, 0.86fr);
  }

  .guardian-xp-row {
    grid-template-columns: minmax(190px, 0.55fr) minmax(0, 1fr);
    grid-template-areas:
      "head explanation"
      "action action"
      "bar bar";
  }
}

@media (max-width: 1180px) {
  .guardian-command-center--v3 {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  }

  .guardian-command-center--v3 .guardian-command-center__focus {
    display: block;
  }

  .guardian-quality-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .guardian-quality > div {
    grid-template-columns: minmax(0, 1fr) 22px;
  }

  .guardian-quality > div > span {
    grid-column: 1 / -1;
  }

  .guardian-command-center--v3 .guardian-data-note {
    margin-top: 18px;
  }
}

@media (max-width: 760px) {
  .guardian-quality-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .guardian-quality > div {
    grid-template-columns: minmax(0, 1fr) 22px auto;
  }

  .guardian-quality > div > span {
    grid-column: auto;
  }

  .guardian-xp-row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "explanation"
      "bar"
      "action";
  }
}

@media (max-width: 620px) {
  .guardian-command-center--v3 .guardian-command-center__scene {
    min-height: 430px;
  }

  .guardian-command-center--v3 .guardian-command-center__scene::before,
  .guardian-command-center--v3 .guardian-command-center__scene::after {
    display: none;
  }

  .guardian-market-overlay {
    overflow: hidden;
    justify-content: flex-start;
  }

  .guardian-market-overlay span:last-child {
    display: none;
  }

  .guardian-command-center--v3 .guardian-command-center__identity {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .guardian-identity-progress {
    grid-template-columns: minmax(0, 1fr);
  }

  .guardian-achievement-card {
    min-width: 280px;
  }

  .guardian-info-dot::after {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 20px;
    width: auto;
    transform: translateY(5px);
  }

  .guardian-info-dot:hover::after,
  .guardian-info-dot:focus-visible::after {
    transform: translateY(0);
  }

  .guardian-card-help p {
    position: fixed;
    z-index: 80;
    top: auto;
    left: 16px;
    right: 16px;
    bottom: 20px;
    width: auto;
  }
}

.guardian-passport__head p:not(.eyebrow) {
  margin: 6px 0 0;
  color: #86a09c;
  font-size: 12px;
}

.guardian-passport__qualities {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #28484b;
  border-radius: 6px;
  background: #09181c;
}

.guardian-passport__qualities > div {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.guardian-passport__qualities span {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  color: #dce9e7;
  font-size: 10px;
}

.guardian-passport__qualities span b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guardian-passport__qualities span > i {
  height: 5px;
  grid-column: 1 / -1;
  overflow: hidden;
  border-radius: 3px;
  background: #1a2d32;
}

.guardian-passport__qualities span > i em {
  height: 100%;
  display: block;
  border-radius: inherit;
}

.guardian-passport__atlas {
  margin-top: 18px;
  border-top: 1px solid #28484b;
}

.guardian-passport__atlas > summary {
  padding: 15px 0 0;
  color: #72d3c0;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 760px) {
  .guardian-passport__qualities > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Grid Guardian cabinet v4: character lifecycle, medals and visual evolution */
.guardian-command-center--v3 {
  min-height: 750px;
  grid-template-columns: minmax(330px, 0.98fr) minmax(500px, 1.42fr) minmax(320px, 0.92fr);
}

.guardian-lifecycle {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.guardian-lifecycle article {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #244146;
  border-radius: 5px;
  background: #0a191e;
}

.guardian-lifecycle span,
.guardian-lifecycle strong {
  display: block;
}

.guardian-lifecycle span {
  color: #78938f;
  font-size: 9px;
  line-height: 1.25;
}

.guardian-lifecycle strong {
  margin-top: 4px;
  color: #ecf8f5;
  font-size: 14px;
}

.guardian-quality-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 13px;
}

.guardian-quality > div {
  grid-template-columns: minmax(0, 1fr) 22px;
}

.guardian-quality > div > span {
  grid-column: 1 / -1;
  font-size: 9px;
}

.guardian-info-dot::after {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 5px);
}

.guardian-info-dot:hover::after,
.guardian-info-dot:focus-visible::after {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 5px);
}

.guardian-info-dot.is-tooltip-open::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.guardian-info-dot::after {
  content: none !important;
}

.guardian-tooltip-portal {
  width: min(300px, calc(100vw - 24px));
  padding: 11px 13px;
  position: fixed;
  z-index: 250;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 5px);
  border: 1px solid #3c6968;
  border-radius: 6px;
  color: #e2eeec;
  background: #071418;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.58);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.45;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.guardian-tooltip-portal.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.guardian-tooltip-portal.is-mobile {
  width: auto;
  left: 12px !important;
  right: 12px;
  top: auto !important;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateY(5px);
}

.guardian-tooltip-portal.is-mobile.is-visible {
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .guardian-info-dot:hover::after,
  .guardian-info-dot:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
}

.guardian-soft-step {
  margin-top: 18px;
  padding: 13px;
  border: 1px solid #28514f;
  border-radius: 6px;
  background: linear-gradient(135deg, #0c211f, #0a191e);
}

.guardian-soft-step span {
  color: #61d6be;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.guardian-soft-step p {
  margin: 7px 0 10px;
  color: #9db1ae;
  font-size: 11px;
  line-height: 1.45;
}

.guardian-soft-step button {
  width: 100%;
  min-height: 38px;
  border: 1px solid #3c9d8b;
  border-radius: 5px;
  color: #f3fbf9;
  background: #167662;
  font-weight: 800;
  cursor: pointer;
}

.guardian-worn-medals {
  position: absolute;
  z-index: 6;
  top: 43%;
  left: 58%;
  display: flex;
  gap: 5px;
  transform: rotate(-5deg);
  filter: drop-shadow(0 5px 9px rgba(0, 0, 0, 0.7));
}

.guardian-medal {
  --medal: #b7773d;
  --medal-dark: #60381f;
  width: 52px;
  height: 58px;
  position: relative;
  display: grid;
  place-items: center;
  color: #fff8e8;
}

.guardian-medal::before {
  content: "";
  width: 26px;
  height: 24px;
  position: absolute;
  top: 0;
  clip-path: polygon(0 0, 100% 0, 78% 100%, 50% 76%, 22% 100%);
  background: linear-gradient(135deg, var(--medal), var(--medal-dark));
}

.guardian-medal i {
  width: 42px;
  height: 42px;
  position: absolute;
  bottom: 0;
  display: grid;
  place-items: center;
  border: 3px solid color-mix(in srgb, var(--medal) 80%, white);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, color-mix(in srgb, var(--medal) 78%, white), var(--medal-dark));
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.25), 0 0 15px color-mix(in srgb, var(--medal) 35%, transparent);
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.guardian-medal--silver {
  --medal: #b9c8ce;
  --medal-dark: #50646d;
}

.guardian-medal--gold {
  --medal: #f2bd45;
  --medal-dark: #8c5b0c;
}

.guardian-medal--compact {
  width: 32px;
  height: 36px;
}

.guardian-medal--compact::before {
  width: 18px;
  height: 16px;
}

.guardian-medal--compact i {
  width: 27px;
  height: 27px;
  border-width: 2px;
  font-size: 8px;
}

.guardian-achievement-band > header > button,
.guardian-evolution-band > header > button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #31575a;
  border-radius: 5px;
  color: #79d9c7;
  background: #102529;
  font-weight: 800;
  cursor: pointer;
}

.guardian-achievement-card {
  min-height: 154px;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
}

.guardian-achievement-card > div > p {
  margin: 8px 0 0;
  color: #839b97;
  font-size: 11px;
  line-height: 1.4;
}

.guardian-achievement-card.is-unlocked {
  border-color: color-mix(in srgb, var(--guardian-gold) 55%, #284348);
  background: linear-gradient(135deg, rgba(75, 54, 13, 0.26), #0b1a1f);
}

.guardian-reward-progress {
  color: #71918c;
  font-size: 10px;
  font-weight: 800;
}

.guardian-evolution-atlas {
  margin: 16px 0 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid #2b4b4d;
  border-radius: 6px;
  background: #061216;
  cursor: zoom-in;
}

.guardian-evolution-atlas img {
  width: 100%;
  height: auto;
  display: block;
}

.guardian-evolution-atlas figcaption {
  padding: 10px 13px;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(72, 179, 158, 0.55);
  border-radius: 5px;
  color: #eaf8f5;
  background: rgba(4, 17, 21, 0.9);
  backdrop-filter: blur(8px);
  font-size: 11px;
}

.guardian-evolution-atlas figcaption span {
  color: #8ea6a2;
}

.guardian-reward-board {
  width: min(1420px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  padding: 24px;
  overflow: auto;
  border: 1px solid #31575a;
  border-radius: 7px;
  color: #eaf5f3;
  background: #071519;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72);
}

.guardian-reward-board__groups {
  margin-top: 18px;
  display: grid;
  gap: 18px;
}

.guardian-reward-group {
  padding: 16px;
  border: 1px solid #223f43;
  border-radius: 6px;
  background: #0a1a1f;
}

.guardian-reward-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.guardian-reward-group h3 {
  margin: 0;
  font-size: 18px;
}

.guardian-reward-group > header span {
  color: #70cbb9;
  font-size: 11px;
  font-weight: 850;
}

.guardian-reward-grid {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 8px;
}

.guardian-reward {
  min-width: 0;
  min-height: 142px;
  padding: 10px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-content: start;
  align-items: center;
  gap: 8px;
  border: 1px solid #284348;
  border-radius: 5px;
  background: #0b191e;
}

.guardian-reward.is-locked {
  opacity: 0.48;
  filter: saturate(0.25);
}

.guardian-reward strong,
.guardian-reward small {
  display: block;
}

.guardian-reward strong {
  font-size: 11px;
  line-height: 1.25;
}

.guardian-reward small {
  margin-top: 3px;
  color: #819b97;
  font-size: 9px;
}

.guardian-reward p {
  margin: 5px 0 0;
  grid-column: 1 / -1;
  color: #829995;
  font-size: 9px;
  line-height: 1.35;
}

.guardian-reward > span:last-child {
  grid-column: 1 / -1;
  color: #6cccb8;
  font-size: 9px;
  font-weight: 800;
}

.guardian-passport__atlas > .eyebrow {
  padding-top: 15px;
}

.guardian-passport__qualities > div {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guardian-achievements .guardian-medal {
  flex: 0 0 auto;
}

.guardian-achievements > div > span {
  display: flex;
  align-items: center;
  gap: 7px;
}

@media (max-width: 1440px) {
  .guardian-command-center--v3 {
    grid-template-columns: minmax(250px, 0.86fr) minmax(0, 1.32fr) minmax(250px, 0.86fr);
  }

  .guardian-reward-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
}

@media (max-width: 1180px) {
  .guardian-command-center--v3 {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  }

  .guardian-quality-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .guardian-quality-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guardian-passport__qualities > div,
  .guardian-reward-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guardian-evolution-atlas {
    overflow-x: auto;
  }

  .guardian-evolution-atlas img {
    width: 1050px;
    max-width: none;
  }

  .guardian-evolution-atlas figcaption {
    width: min(360px, calc(100vw - 72px));
    position: sticky;
    left: 12px;
    margin-top: -68px;
  }

  .guardian-worn-medals {
    top: 47%;
    left: 58%;
  }
}

@media (max-width: 620px) {
  .guardian-info-dot.is-tooltip-open::after {
    transform: translateY(0);
  }

  .guardian-reward-board {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 14px;
  }

  .guardian-reward-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .guardian-reward {
    min-height: 120px;
  }

  .guardian-evolution-atlas figcaption {
    display: grid;
  }
}

/* Grid Guardian cabinet refinement v5 */
.guardian-command-center--v3 .guardian-command-center__scene::before,
.guardian-command-center--v3 .guardian-command-center__scene::after {
  content: none !important;
  display: none !important;
}

.guardian-worn-medals {
  display: none !important;
}

.guardian-info-dot {
  cursor: pointer;
}

.guardian-info-dot::after,
.guardian-info-dot:hover::after,
.guardian-info-dot:focus-visible::after,
.guardian-info-dot.is-tooltip-open::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.guardian-evolution-entry {
  width: 100%;
  min-height: 58px;
  margin: 14px 0 16px;
  padding: 10px 40px 10px 12px;
  position: relative;
  display: grid;
  gap: 3px;
  border: 1px solid #31575a;
  border-radius: 6px;
  color: #e8f5f2;
  background: linear-gradient(135deg, #10282a, #0b1b20);
  text-align: left;
  cursor: pointer;
}

.guardian-evolution-entry::after {
  content: "\2192";
  position: absolute;
  top: 50%;
  right: 14px;
  color: #42d5b6;
  font-size: 20px;
  transform: translateY(-50%);
}

.guardian-evolution-entry:hover,
.guardian-evolution-entry:focus-visible {
  border-color: #42d5b6;
  background: linear-gradient(135deg, #143532, #0d2226);
}

.guardian-evolution-entry strong {
  font-size: 12px;
}

.guardian-evolution-entry span {
  color: #8da6a2;
  font-size: 9px;
  line-height: 1.35;
}

.guardian-origin-story {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #31575a;
  border-left: 4px solid #38c9aa;
  border-radius: 6px;
  background: linear-gradient(135deg, #0c2022, #09181c);
}

.guardian-origin-story h3 {
  margin: 5px 0 7px;
  color: #f0f8f6;
  font-size: 18px;
}

.guardian-origin-story > p:last-child {
  margin: 0;
  color: #9bb0ad;
  font-size: 12px;
  line-height: 1.55;
}

.guardian-evolution-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.guardian-evolution-step {
  min-width: 0;
  padding: 0;
  display: block;
  border: 1px solid #274347;
  border-radius: 6px;
  background: #09191d;
  overflow: hidden;
}

.guardian-evolution-step > summary {
  min-height: 66px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  list-style: none;
  cursor: pointer;
}

.guardian-evolution-step > summary::-webkit-details-marker {
  display: none;
}

.guardian-evolution-step > summary::after {
  content: "+";
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid #31575a;
  border-radius: 50%;
  color: #6ed8c3;
  font-weight: 900;
}

.guardian-evolution-step[open] > summary::after {
  content: "\2212";
}

.guardian-evolution-step__level {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #3f8c82;
  border-radius: 50%;
  color: #dff9f3;
  background: #12322f;
  font-weight: 900;
}

.guardian-evolution-step > summary > div strong,
.guardian-evolution-step > summary > div small {
  display: block;
}

.guardian-evolution-step > summary > div strong {
  color: #e8f3f1;
  font-size: 13px;
}

.guardian-evolution-step > summary > div small,
.guardian-evolution-step__status {
  margin-top: 3px;
  color: #758e8a;
  font-size: 9px;
}

.guardian-evolution-step__story {
  padding: 0 12px 13px 58px;
  border-top: 1px solid #20393d;
}

.guardian-evolution-step__story p {
  margin: 10px 0 0;
  color: #96aca8;
  font-size: 11px;
  line-height: 1.5;
}

.guardian-evolution-step__story strong {
  color: #5cd4bd;
}

.guardian-evolution-step--active {
  border-color: #3ed5b5;
  box-shadow: inset 3px 0 #3ed5b5;
}

.guardian-evolution-step--locked {
  opacity: 0.67;
}

.guardian-quality-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guardian-medal {
  --medal: #b7773d;
  --medal-dark: #60381f;
  width: 54px;
  height: 54px;
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.guardian-medal::before {
  content: none !important;
}

.guardian-medal i {
  width: 48px;
  height: 48px;
  position: relative;
  inset: auto;
  display: grid;
  place-content: center;
  gap: 1px;
  border: 2px solid color-mix(in srgb, var(--medal) 82%, white);
  border-radius: 8px;
  color: #fff8e8;
  background: radial-gradient(circle at 35% 25%, color-mix(in srgb, var(--medal) 78%, white), var(--medal-dark) 68%);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.28), 0 5px 15px rgba(0, 0, 0, 0.36);
  font-style: normal;
  text-align: center;
}

.guardian-medal i b,
.guardian-medal i small {
  display: block;
  line-height: 1;
}

.guardian-medal i b {
  font-size: 10px;
  letter-spacing: 0.04em;
}

.guardian-medal i small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 7px;
  font-weight: 900;
}

.guardian-medal--emblem i {
  clip-path: polygon(50% 0, 62% 21%, 86% 14%, 82% 40%, 100% 50%, 79% 64%, 86% 88%, 59% 82%, 50% 100%, 39% 81%, 13% 88%, 20% 62%, 0 50%, 20% 39%, 14% 13%, 39% 21%);
}

.guardian-medal--diamond i {
  border-radius: 4px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.guardian-medal--octagon i {
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

.guardian-medal--coin i {
  border-radius: 50%;
}

.guardian-medal--gear i {
  clip-path: polygon(35% 0, 65% 0, 71% 14%, 86% 14%, 86% 29%, 100% 35%, 100% 65%, 86% 71%, 86% 86%, 71% 86%, 65% 100%, 35% 100%, 29% 86%, 14% 86%, 14% 71%, 0 65%, 0 35%, 14% 29%, 14% 14%, 29% 14%);
}

.guardian-medal--shield i {
  border-radius: 5px 5px 14px 14px;
  clip-path: polygon(50% 0, 94% 16%, 86% 68%, 50% 100%, 14% 68%, 6% 16%);
}

.guardian-medal--compact {
  width: 34px;
  height: 34px;
}

.guardian-medal--compact i {
  width: 31px;
  height: 31px;
  border-width: 1px;
}

.guardian-medal--compact i b {
  font-size: 7px;
}

.guardian-medal--compact i small {
  font-size: 5px;
}

.guardian-reward-group > header > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.guardian-reward-group > header > div h3 {
  margin: 0;
}

.guardian-xp-row {
  grid-template-columns: minmax(170px, 0.72fr) minmax(260px, 1fr) minmax(280px, 1.25fr);
  align-items: center;
}

@media (max-width: 1180px) {
  .guardian-command-center--v3 .guardian-command-center__focus {
    grid-column: 1 / -1;
  }

  .guardian-quality-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .guardian-evolution-map {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .guardian-quality-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guardian-evolution-step > summary {
    grid-template-columns: 34px minmax(0, 1fr) 22px;
  }

  .guardian-evolution-step__status {
    display: none;
  }

  .guardian-evolution-step__story {
    padding-left: 12px;
  }

  .guardian-xp-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .guardian-quality-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .guardian-origin-story,
  .guardian-evolution-step > summary {
    padding-left: 10px;
    padding-right: 10px;
  }
}
